/* =========================================================
   VinePoster — Baseline Public Layout (Standalone, No BG)
   ========================================================= */

/* ---- Tokens ---- */
:root {
  --vp-bg: var(--vp-bg, #faf5ef);
  --vp-accent: var(--vp-accent, #ffd400);
  --vp-text-2: var(--vp-text-2, #0b0b0b);
  --vp-border-2: #e6e6e6;
  --vp-muted: #000;
  --vp-max: 720px;
  --vp-title-size: clamp(26px, 2.1vw, 34px);
  --vp-title-lh: 1.16;
  --vp-body-size: 16px;
  --vp-body-lh: 1.72;
  --vp-meta-size: 13px;
  --vp-link: #1a73e8;
  --vp-link-hover: #185abc;
  --vp-accent-hover: color-mix(in srgb, var(--vp-accent), #fff 80%);
}

/* Root layout zone (no color background) */
.vp-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 4px;
  padding-bottom: 80px;
  background: transparent !important;
  margin: 0 auto;
}

/* Back button row - pinned visually to top, separate from card */
.vp-layout .vp-back-wrap {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2px;
}

/* =========================================================
   Back Pill (Top-level Button Above Card)
   ========================================================= */

.vp-layout .vp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 4px 0 8px;
  font-weight: 700;
  text-decoration: none;
  background: var(--vp-accent, #e53935) !important;
  color: var(--vp-on-accent, #fff) !important;
  padding: 0.45rem 1.25rem;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.08s ease;
  border: none !important;
  outline: none !important;
}

.vp-layout .vp-back span,
.vp-layout .vp-back i,
.vp-layout .vp-back svg,
.vp-layout .vp-back .material-icons-outlined {
  color: var(--vp-on-accent, #fff) !important;
  fill: var(--vp-on-accent, #fff) !important;
}

.vp-layout .vp-back__chev,
.vp-layout .vp-back .material-icons-outlined {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -0.5px;
}

.vp-layout .vp-back:hover {
  background: color-mix(in srgb, var(--vp-accent), #000 14%) !important;
  color: var(--vp-on-accent, #fff) !important;
}

.vp-layout .vp-back:active {
  transform: translateY(1px);
}

.vp-layout .vp-back:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================================================
   Universal Button Contrast Handling
   ========================================================= */
.vp-layout button,
.vp-layout [type="button"],
.vp-layout [type="submit"],
.vp-layout .vp-btn {
  color: var(--vp-on-accent, #fff);
  fill: var(--vp-on-accent, #fff);
}

#vp-back-btn,
.vp-layout .vp-back {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#vp-back-btn:focus,
#vp-back-btn:active,
.vp-layout .vp-back:focus,
.vp-layout .vp-back:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* White article card */
/* ---- Page ---- */
.vp-layout .vp-page {
  max-width: 800px;
  width: 100%;
  border-radius: 16px;
  background: var(--vp-bg, #fff);
  padding: 28px 18px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  overflow: visible;
  position: relative;
}

/* ---- Scope ----
   Controls inner typography, content width, and default rhythm
   inside vp-page. */
.vp-scope {
  font-family: var(--vp-font-body, 'Inter', sans-serif);
  color: var(--vp-text-2, #0b0b0b);
  line-height: 1.65;
  max-width: var(--vp-max, 720px);
  margin: 0 auto;
  font-size: var(--vp-body-size, 16px);
}



/* =========================================================
   Featured Media, Meta, Authors, Actions
   ========================================================= */

/* ---- Featured media ---- */
.vp-scope .vp-card__media {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  height: 0;
  padding-top: 56.25%;
  margin: 0 0 14px;
}

.vp-scope .vp-card__media>.fluid-width-video-wrapper,
.vp-scope .vp-card__media>.wp-block-embed__wrapper,
.vp-scope .vp-card__media>.responsive-embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.vp-scope .vp-card__media>iframe,
.vp-scope .vp-card__media>video,
.vp-scope .vp-card__media>img,
.vp-scope .vp-card__media>.fluid-width-video-wrapper>iframe,
.vp-scope .vp-card__media>.wp-block-embed__wrapper>iframe,
.vp-scope .vp-card__media>.responsive-embed>iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  border: 0;
  z-index: 1;
  pointer-events: none;
}

.vp-featured-shell .vp-video-real.is-active {
  z-index: 30 !important;
  opacity: 1 !important;
}

.vp-scope .vp-card__media>img,
.vp-scope .vp-card__media>video {
  object-fit: cover;
}

.vp-scope .vp-card__media>iframe {
  object-fit: contain;
  background: #000;
}

/* ---- Play overlay ---- */
.vp-scope .vp-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  /* keep above video */
  opacity: 1;
  transition: opacity .2s ease;
}



.vp-scope .vp-card__play .vp-play {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .36);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
}

.vp-scope .vp-card__play .vp-play::before {
  content: "play_arrow";
  font-family: "Material Icons Outlined";
  color: #fff;
  font-size: 100px;
  line-height: 1;
}

.vp-scope .vp-card__media.is-playing .vp-card__play {
  opacity: 0;
}

/* ---- Category ---- */
.vp-scope .vp-chip-row {
  margin-bottom: 8px;
}

.vp-scope .vp-chip,
.vp-scope .vp-chip a {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  padding: .42rem .7rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06) !important;
  text-decoration: none !important;
  background-clip: padding-box !important;
}

@media (min-width:768px) {

  .vp-scope .vp-chip,
  .vp-scope .vp-chip a {
    font-size: 13px !important;
    padding: .44rem .78rem !important;
  }
}

.vp-scope .vp-chip {
  margin: 0 0 10px !important;
}

/* ---- Title ---- */
.vp-scope .vp-title {
  margin: 0 0 5px !important;
  font-size: var(--vp-title-size) !important;
  line-height: var(--vp-title-lh) !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: .1px !important;
}

/* ---- Introduction (below title) ---- */
.vp-scope .vp-intro {
  margin: 0 0 10px !important;
  font-size: calc(var(--vp-body-size) + 0px);
  line-height: 1.62;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
  max-width: 720px;
}

.vp-scope .vp-intro p {
  margin: 0 !important;
}

/* ---- Meta ---- */
.vp-scope .vp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--vp-meta-size);
  color: var(--vp-muted);
  font-weight: 500;
  margin: 0 0 8px !important;
}

.vp-scope .vp-dot {
  margin: 0 4px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.vp-scope .vp-ic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* ---- Authors + Actions ---- */
.vp-scope .vp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 10px 0 12px !important;
  overflow: hidden;
}

.vp-scope .vp-authors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.vp-scope .vp-author {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.vp-scope .vp-author__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vp-scope .vp-author:hover {
  background: #f7f8fb;
}

.vp-scope .vp-author__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
}

.vp-scope .vp-author__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.vp-scope .vp-author__role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  opacity: .75;
}

.vp-scope .vp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.vp-author--more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-author__avatar--more {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--vp-on-surface, #111);
  background: color-mix(in oklab, var(--vp-accent, #7ea728) 15%, white);
  border: 1px solid color-mix(in oklab, var(--vp-accent, #7ea728) 35%, #ccc);
}

.vp-author--more:hover::after {
  content: attr(title);
  position: absolute;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 10;
}



/* ---- Like & Share Buttons ---- */
.vp-scope .vp-actions .vp-act {
  appearance: none;
  border: 1px solid var(--vp-border-2, #e5e7eb);
  background: #fff;
  color: var(--vp-text-2, #111);
  fill: var(--vp-text-2, #111);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: .42rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: all .18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}


.vp-scope .vp-actions .vp-act:hover {
  background: color-mix(in srgb, var(--vp-accent), #fff 85%);
  border-color: color-mix(in srgb, var(--vp-accent), #fff 65%);
}

/* =========================================================
   Like Button (Simplified and Reliable)
   ========================================================= */
.vp-like-toggle .heart--filled {
  display: none;
  color: var(--vp-accent, #e91e63);
}

.vp-like-toggle .heart--empty {
  display: inline-flex;
  color: #444;
}

/* When active (liked) */
.vp-like-toggle.is-active .heart--filled {
  display: inline-flex;
  animation: vp-heart-pop 0.25s ease;
}

.vp-like-toggle.is-active .heart--empty {
  display: none;
}

.vp-like-toggle span {
  pointer-events: none;
}


/* Animation */
@keyframes vp-heart-pop {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Active button background and glow */
.vp-like-toggle.is-active {
  background: var(--vp-accent);
  border-color: var(--vp-accent);
  color: var(--vp-on-accent, #fff);
  fill: var(--vp-on-accent, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vp-accent), #fff 70%);
}


/* =========================================================
   Edit Button (Author/Admin)
   ========================================================= */
.vp-scope .vp-edit-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--color-text, #000);
  fill: var(--color-text, #000);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .42rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  font-size: 13px;
  transition: all 0.18s ease;
  text-decoration: none;
}

.vp-scope .vp-edit-btn:hover {
  background: color-mix(in srgb, var(--vp-accent), #fff 80%);
  border-color: color-mix(in srgb, var(--vp-accent), #fff 60%);
}


/* ---- Divider ---- */
.vp-scope .vp-divider {
  height: 1px;
  background: #e7e9ee;
  margin: 8px 0 12px;
}

/* ---- Content ---- */
.vp-scope .vp-content {
  margin-top: 10px;
  font-family: var(--font-family, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  line-height: var(--vp-body-lh);
}

.vp-scope .vp-content :where(h2, h3, h4) {
  margin: 1.5em 0 .55em;
  line-height: 1.22;
  font-weight: 800;
  color: #111;
}

.vp-scope .vp-content :where(p) {
  margin: .85em 0;
}

.vp-scope .vp-content :where(ul, ol) {
  margin: .85em 0 .85em 1.15em;
}

.vp-scope .vp-content blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 14px;
  color: #334155;
  margin: 1em 0;
}

.vp-scope .vp-content a {
  color: var(--vp-link);
  text-decoration: underline;
}

.vp-scope .vp-content a:hover {
  color: var(--vp-link-hover);
}

/* ---- Feedback ---- */
.vp-scope .vp-feedback {
  margin: 26px 0;
  padding: 16px 0 0;
  border-top: 2px solid var(--vp-border-2);
}

.vp-scope .vp-feedback__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vp-scope .vp-input {
  flex: 1 1 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid #e7e9ee;
}

.vp-scope .vp-input__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.vp-scope .vp-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-weight: 600;
}

.vp-scope .vp-btn {
  border: 0;
  background: var(--vp-accent);
  color: var(--vp-on-accent, var(--vp-contrast, #000));
  fill: var(--vp-on-accent, var(--vp-contrast, #000));
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .08s ease;
}

.vp-scope .vp-btn:hover {
  background: color-mix(in srgb, var(--vp-accent), #000 14%);
}

.vp-scope .vp-btn:active {
  transform: translateY(1px);
}

.vp-scope .vp-feedback__count {
  font-weight: 600;
  color: #111;
}

/* ---- Video Controls ---- */
.vp-scope .vp-controls {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  z-index: 40;
}

.vp-scope .vp-controls__inner {
  max-width: var(--vp-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Align video controls like YouTube: Mute → Seek → Time → Fullscreen */
.vp-scope .vp-ctrl--mute {
  order: 1;
}

.vp-scope .vp-seek {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.vp-scope .vp-time {
  order: 3;
  margin-left: 10px;
}

.vp-scope .vp-ctrl--fullscreen {
  order: 4;
  margin-left: auto;
  cursor: pointer;
}


@media (max-width: 520px) {
  .vp-scope .vp-controls__inner {
    gap: 8px;
    padding: 10px 8px;
  }

  .vp-scope .vp-ctrl {
    width: 28px;
    height: 28px;
  }

  .vp-scope .vp-ctrl .material-icons-outlined {
    font-size: 20px;
  }
}

.vp-scope .vp-ctrl {
  all: unset;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--vp-on-accent, var(--vp-contrast, #000));
  cursor: pointer;
  border-radius: 6px;
}

.vp-scope .vp-ctrl:hover {
  background: rgba(255, 255, 255, .08);
}

.vp-scope .vp-ctrl svg {
  width: 20px;
  height: 20px;
  opacity: .95;
}

.vp-scope .vp-ctrl .material-icons-outlined {
  font-size: 22px;
  line-height: 1;
  color: #fff;
  opacity: 0.95;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fullscreen toggle button behavior */
.icon-fullscreen,
.icon-exit-fullscreen {
  pointer-events: none;
}

.vp-ctrl--fullscreen .icon-exit-fullscreen {
  display: none !important;
}

.vp-ctrl--fullscreen.is-fullscreen .icon-fullscreen {
  display: none !important;
}

.vp-ctrl--fullscreen.is-fullscreen .icon-exit-fullscreen {
  display: inline-flex !important;
}


/* When in fullscreen mode */
.vp-card__media:fullscreen {
  z-index: 9999;
}

/* =========================================================
   Rating System (Stars) - Refined UI
   ========================================================= */
.vp-rating-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  /* Tight inline spacing */
  margin-right: 12px !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.vp-rating-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  line-height: 1 !important;
}

/* Star Buttons: Aggressive Reset */
.vp-star-btn {
  all: unset !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 1px !important;
  /* Tiny horizontal breathing room */
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  color: #c4c7c5 !important;
  /* Default Empty (Material neutral grey) */
  transition: transform 0.1s ease, color 0.1s ease !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

/* Star Icon Size */
.vp-star-btn .material-icons-outlined {
  font-size: 24px !important;
  /* Standard Icon size */
  line-height: 1 !important;
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  overflow: hidden !important;
}

/* States */
.vp-star-btn:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  /* No scale animation */
}

/* Filled / Half states (Applied by JS classes) */
.vp-star-btn.vp-star--filled,
.vp-star-btn.vp-star--half {
  color: var(--vp-rating-color, #fbbc04) !important;
  /* Material Amber */
}

/* Hover Interactivity (Progressive Fill) */
/* When hovering container, reset all stars to empty grey first */
.vp-rating-container:not(.vp-rating-readonly).is-hovering .vp-star-btn {
  color: #c4c7c5 !important;
}

/* Then color the ones up to the hovered star */
.vp-rating-container:not(.vp-rating-readonly) .vp-star-btn.is-hover-filled {
  color: var(--vp-rating-color, #fbbc04) !important;
}

/* Read-Only Mode */
.vp-rating-readonly .vp-star-btn {
  cursor: default !important;
  pointer-events: none !important;
}

/* Label (e.g. "No ratings" or "4.5") */
.vp-rating-label {
  font-size: 17px !important;
  /* Larger text */
  font-weight: 500 !important;
  color: #666 !important;
  /* Muted grey */
  margin-left: 8px !important;
  line-height: 24px !important;
  display: inline-block !important;
}

.vp-rating-val {
  vertical-align: middle !important;
}

.vp-rating-count {
  color: #757575 !important;
  font-size: 14px !important;
  /* Slightly smaller than main val */
  vertical-align: middle !important;
}

/* 
   Orphan properties commented out to fix syntax error:
   background: #000;
   width: 100%;
   height: 100%;
*/
}

.vp-card__media:fullscreen iframe,
.vp-card__media:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ---- Video Progress + Timer ---- */
.vp-scope .vp-seek {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  margin: -10px 0;
  height: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.vp-scope .vp-seek__bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}

.vp-scope .vp-seek__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--vp-accent, #ffd400);
}

.vp-scope .vp-seek__knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}

.vp-scope .vp-time {
  margin-left: 8px;
  font: 700 13.5px/1 var(--vp-font, system-ui);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.vp-scope .vp-ctrl--mute .icon-muted {
  display: none;
}

.vp-scope .vp-ctrl--mute.is-muted .icon-sound {
  display: none;
}

.vp-scope .vp-ctrl--mute.is-muted .icon-muted {
  display: block;
}

.vp-scope .vp-controls .vp-ctrl,
.vp-scope .vp-controls .vp-ctrl:focus,
.vp-scope .vp-controls .vp-ctrl:active {
  background: transparent !important;
  color: #fff !important;
  fill: #fff !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .vp-scope .vp-title {
    font-size: clamp(24px, 5.5vw, 32px) !important;
  }

  .vp-scope .vp-meta {
    font-size: 13px;
    gap: 6px;
  }

  .vp-scope .vp-author__avatar {
    width: 28px;
    height: 28px;
  }

  .vp-scope .vp-author__name {
    font-size: 12px;
  }

  .vp-scope .vp-actions {
    gap: 8px;
  }

  .vp-scope .vp-act {
    padding: .38rem .64rem;
  }
}

.vp-fs-exit {
  all: revert-layer !important;
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background-color: var(--vp-accent, #7ea728) !important;
  color: var(--vp-on-accent, #fff) !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font: normal 22px/1 "Material Icons Outlined" !important;
  text-align: center !important;
}

.vp-fs-exit.show {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.vp-fs-exit:not(.show) {
  transition-delay: 0s;
  opacity: 0 !important;
  transform: scale(0.9) !important;
}


.vp-fs-exit:hover,
.vp-fs-exit:focus,
.vp-fs-exit.show:hover {
  background-color: color-mix(in srgb, var(--vp-accent, #7ea728) 80%, #000) !important;
  filter: none !important;
}

.vp-fs-exit span {
  pointer-events: none !important;
  color: inherit !important;
}




/* ---- Toast ---- */
.vp-toast {
  --t-bg: color-mix(in oklab, var(--vp-accent, #7ea728) 12%, #fff);
  --t-ink: var(--vp-text, #1b1b1b);

  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 340px;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--t-bg);
  color: var(--vp-on-accent, var(--vp-contrast, #000));
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 4px solid var(--vp-accent, #7ea728);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .18),
    0 2px 6px rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.vp-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vp-toast--ok {
  --t-bg: color-mix(in oklab, #2e7d32 14%, #fff);
  border-left-color: #2e7d32;
}

.vp-toast--err {
  --t-bg: color-mix(in oklab, #d32f2f 14%, #fff);
  border-left-color: #d32f2f;
}

.vp-toast--warn {
  --t-bg: color-mix(in oklab, #f57c00 14%, #fff);
  border-left-color: #f57c00;
}

.vp-toast--info {
  --t-bg: color-mix(in oklab, #1976d2 14%, #fff);
  border-left-color: #1976d2;
}

/* ---- Dark mode polish ---- */
@media (prefers-color-scheme: dark) {
  .vp-toast {
    --t-ink: #f5f5f5;
    border-color: rgba(255, 255, 255, .10);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, .55),
      0 0 0 1px rgba(255, 255, 255, .06) inset;
  }

  .vp-toast--ok {
    --t-bg: color-mix(in oklab, #2e7d32 26%, #111);
  }

  .vp-toast--err {
    --t-bg: color-mix(in oklab, #d32f2f 26%, #111);
  }

  .vp-toast--warn {
    --t-bg: color-mix(in oklab, #f57c00 26%, #111);
  }

  .vp-toast--info {
    --t-bg: color-mix(in oklab, #1976d2 26%, #111);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vp-toast {
    transition: none;
  }
}

@media (max-width: 520px) {
  .vp-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* =========================================================
   Embedded Video Alignment & Sizing
   ========================================================= */
/* Ensure the .vp-ar wrapper enforces 16:9 ratio (Inline Video Contract) */
.vp-scope .vp-content figure.vp-video .vp-ar {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

/* Ensure children (iframe, video) fill the wrapper */
.vp-scope .vp-content figure.vp-video .vp-ar iframe,
.vp-scope .vp-content figure.vp-video .vp-ar video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vp-scope .vp-content figure.vp-video {
  display: block;
  text-align: center;
  margin: 1.5em auto;
  line-height: 0;
}

.vp-scope .vp-content .vp-card__media {
  position: relative;
  width: 100%;
  max-width: min(600px, 95vw);
  margin: 1.5em auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.vp-scope .vp-content .vp-card__media iframe,
.vp-scope .vp-content .vp-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  background: #000;
}


/* Material icon compatibility for mute toggle */
.vp-scope .vp-ctrl--mute .material-icons-outlined.icon-muted {
  display: none;
}

.vp-scope .vp-ctrl--mute.is-muted .material-icons-outlined.icon-sound {
  display: none;
}

.vp-scope .vp-ctrl--mute.is-muted .material-icons-outlined.icon-muted {
  display: inline-flex;
}

/* Seekbar polish */
.vp-scope .vp-seek__bar {
  transition: width .1s linear;
}

.vp-scope .vp-seek__knob {
  cursor: grab;
}

/* Overlay hover polish */
.vp-scope .vp-card__play:hover .vp-play {
  background: rgba(0, 0, 0, 0.48);
}

@media (max-width: 480px) {
  .vp-scope .vp-content .vp-card__media {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em auto;
  }
}


/* Force 16:9 box for all video players (featured + inline) */
.vp-card__media[data-vp-player="vimeo"],
.vp-card__media[data-vp-player="youtube"],
.vp-content .vp-card__media[data-vp-player="vimeo"],
.vp-content .vp-card__media[data-vp-player="youtube"] {
  aspect-ratio: 16 / 9;
  height: auto !important;
  padding: 0 !important;
  background: #000;
  overflow: hidden;
}

.vp-act.vp-share-btn.is-shared {
  background: var(--vp-accent);
  color: var(--vp-on-accent);
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.vp-act.vp-share-btn.is-shared .material-icons-outlined {
  color: var(--vp-on-accent);
}

/* ---- Generic Inline Images ---- */
.vp-scope .vp-content img {
  display: block !important;
  width: 100% !important;
  max-width: 600px !important;
  height: auto !important;
  margin: 1.25em auto !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  background: #fafafa !important;
  line-height: 0 !important;
  position: static !important;
  transform: none !important;
}

/* ---- Figure / Image Wrapper ---- */
.vp-scope .vp-content figure,
.vp-scope .vp-content .wp-block-image,
.vp-scope .vp-content .hds-media,
.vp-scope .vp-content .hds-media-inner,
.vp-scope .vp-content .hds-media-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 1.25em auto 1em auto !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 0 !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  height: auto !important;
}

/* ---- Anchor Inside Figure ---- */
.vp-scope .vp-content figure a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

/* ---- Image Inside Figure ---- */
.vp-scope .vp-content figure img,
.vp-scope .vp-content .wp-block-image img,
.vp-scope .vp-content .hds-media img,
.vp-scope .vp-content .hds-media-inner img {
  display: block !important;
  width: 100% !important;
  max-width: 600px !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: #fafafa !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  vertical-align: middle !important;
  line-height: 0 !important;
}

/* ---- Captions ---- */
.vp-scope .vp-content figcaption,
.vp-scope .vp-content .hds-caption,
.vp-scope .vp-content .hds-caption-text {
  display: block !important;
  max-width: 600px !important;
  width: 100% !important;
  margin: 0.6em auto 1em auto !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #555 !important;
  line-height: 1.45 !important;
  float: none !important;
}

/* ---- Paragraph Rhythm ---- */
.vp-scope .vp-content p {
  margin-top: 1.1em !important;
  margin-bottom: 1.1em !important;
  line-height: var(--vp-body-lh) !important;
  text-align: left !important;
}

.vp-scope .vp-content p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
}

.vp-scope .vp-content h2,
.vp-scope .vp-content h3,
.vp-scope .vp-content blockquote {
  text-align: left !important;
}

/* Responsive fix */
@media (max-width: 480px) {
  .vp-layout {
    padding: 32px 1rem;
  }

  .vp-layout .vp-back-wrap {
    justify-content: center;
  }

  .vp-layout .vp-back {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* =========================================================
   Comment Section Placement (below white card)
   ========================================================= */
.vp-layout>.vp-comments {
  width: 100%;
  max-width: 800px;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
  align-self: stretch;
  display: block;
  background: var(--vp-comment-bg, #ffffff) !important;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   File
   ========================================================= */

.vp-scope .vp-content figure.vp-file {
  display: inline-block !important;
  margin: 0 0.35em !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: middle !important;
  text-align: left !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.vp-scope .vp-content p>figure.vp-file {
  display: inline-block !important;
  margin: 0 0.35em !important;
  vertical-align: middle !important;
}

.vp-scope .vp-content figure.vp-file a.vp-btn-file {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.5rem 0.9rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border-radius: 8px !important;
  background: var(--vp-accent, #e53935) !important;
  color: var(--vp-on-accent, #fff) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: background 0.15s ease;
}

.vp-scope .vp-content figure.vp-file a.vp-btn-file:hover {
  background: var(--vp-accent-dark, #c62828) !important;
}

.vp-scope .vp-content figure.vp-file .material-icons-outlined {
  font-size: 14px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

@media (max-width: 480px) {
  .vp-scope .vp-content figure.vp-file a.vp-btn-file {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.9rem !important;
    gap: 0.3rem !important;
  }
}

/* =========================================================
   VinePoster — PDF Viewer Modal (DHCI Compliant)
   ========================================================= */

#vp-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--vp-transition);
}

#vp-pdf-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop */
#vp-pdf-modal .vp-pdf-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--vp-surface) 15%, black 70%);
  backdrop-filter: blur(4px);
}

/* Frame */
#vp-pdf-modal .vp-pdf-frame {
  position: relative;
  background: var(--vp-surface);
  color: var(--vp-on-surface);
  width: 92%;
  max-width: 960px;
  height: 85vh;
  border-radius: var(--vp-radius-lg);
  box-shadow: var(--vp-shadow-lg);
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  transition: transform var(--vp-transition), opacity var(--vp-transition);
}

#vp-pdf-modal.is-active .vp-pdf-frame {
  transform: translateY(0);
  opacity: 1;
}

#vp-pdf-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--vp-surface);
}

/* Close button */
#vp-pdf-modal .vp-pdf-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.8rem;
  background: none;
  border: 0;
  color: var(--vp-on-surface);
  cursor: pointer;
  transition: color var(--vp-transition);
}

#vp-pdf-modal .vp-pdf-close:hover {
  color: var(--vp-accent);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #vp-pdf-modal .vp-pdf-frame {
    width: 94%;
    height: 82vh;
    border-radius: var(--vp-radius-md);
  }
}

/* =========================================================
   Override — Inline File Buttons (Unified for <figure> and <span>)
   ========================================================= */
.vp-scope .vp-content figure.vp-file,
.vp-scope .vp-content p>figure.vp-file,
.vp-scope .vp-content span.vp-file,
.vp-scope .vp-content p>span.vp-file {
  display: inline-block !important;
  margin: 0 0.35em !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: middle !important;
  text-align: left !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.vp-scope .vp-content figure.vp-file a.vp-btn-file,
.vp-scope .vp-content span.vp-file a.vp-btn-file {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.5rem 0.9rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border-radius: 8px !important;
  background: var(--vp-accent, #e53935) !important;
  color: var(--vp-on-accent, #fff) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: background 0.15s ease;
}

.vp-scope .vp-content figure.vp-file a.vp-btn-file:hover,
.vp-scope .vp-content span.vp-file a.vp-btn-file:hover {
  background: var(--vp-accent-dark, #c62828) !important;
}

.vp-scope .vp-content figure.vp-file .material-icons-outlined,
.vp-scope .vp-content span.vp-file .material-icons-outlined {
  font-size: 14px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Force proper control order and spacing */
.vp-scope .vp-controls__inner>.vp-ctrl--mute {
  order: 1 !important;
}

.vp-scope .vp-controls__inner>.vp-seek {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0;
}

.vp-scope .vp-controls__inner>.vp-time {
  order: 3 !important;
  margin-left: 10px !important;
}

.vp-scope .vp-controls__inner>.vp-ctrl--fullscreen {
  order: 4 !important;
  margin-left: auto !important;
}

/* =========================================================
   VinePoster — File Button Alignment (Fixed Width)
   ========================================================= */
.vp-scope .vp-content .vp-file.vp-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0.75em auto !important;
  text-align: center !important;
}

.vp-scope .vp-content .vp-file.vp-left {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0.75em 0 !important;
  text-align: left !important;
}

.vp-scope .vp-content .vp-file.vp-right {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0.75em 0 !important;
  text-align: right !important;
}

/* Inline buttons stay inline */
.vp-scope .vp-content .vp-file.vp-inline {
  display: inline !important;
  vertical-align: middle !important;
  margin: 0 0.25em !important;
}

/* =========================================================
   VinePoster — Safe Image Hover Cue (no video interference)
   ========================================================= */
.vp-scope .vp-content img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.vp-scope .vp-content img:hover {
  transform: scale(1.02);
}

/* Explicitly protect all playable media */
.vp-scope .vp-content video,
.vp-scope .vp-content iframe {
  position: relative;
  z-index: 5;
  background: #000;
  object-fit: contain;
  pointer-events: auto;
}


/* =========================================================
   VinePoster — Fix: Prevent file buttons from stretching
   ========================================================= */
.vp-scope .vp-content .vp-file a.vp-btn-file {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: fit-content !important;
  min-width: 0 !important;
}

/* ===================================================================
   Featured Video Component (Corrected & Consolidated)
   =================================================================== */

/* 1. Main Container
-------------------------------------------------------------------*/
.vp-featured-shell {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin: 0 0 14px;
}

/* 2. Thumbnail Wrapper & Overlay
-------------------------------------------------------------------*/
.vp-video-thumb {
  position: absolute;
  /* The ::after pseudo-element will have z-index: 1, so this container needs a stacking context */
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* The dark overlay, applied ONLY to the thumbnail wrapper */
.vp-video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: inherit;
  /* This was missing */
  z-index: 1;
  /* Sits on top of image, but BELOW the play button */
  pointer-events: none;
  transition: background-color 0.25s ease;
}

.vp-featured-shell:hover .vp-video-thumb::after {
  background-color: rgba(0, 0, 0, 0.20);
}

/* The thumbnail image itself */
.vp-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Lowest layer */
}

/* 3. Play Button
-------------------------------------------------------------------*/
.vp-video-thumb .vp-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* This z-index ensures it sits above its parent's ::after overlay (which has z-index: 1) */
  z-index: 2;
  pointer-events: auto;
  /* Always clickable */
}

/* 4. Video Player
-------------------------------------------------------------------*/
.vp-video-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Initially behind the thumbnail */
  opacity: 0;
  pointer-events: none;
}

.vp-video-real iframe,
.vp-video-real video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* 5. Playing State
-------------------------------------------------------------------*/
.vp-featured-shell.is-playing .vp-video-real {
  z-index: 3;
  /* Bring video to the front */
  opacity: 1;
  pointer-events: auto;
}

.vp-featured-shell.is-playing .vp-video-thumb {
  opacity: 0;
  pointer-events: none;
}

/* Force YouTube/Vimeo iframe BELOW VinePoster controls until video starts */
.vp-featured-shell iframe,
.vp-featured-shell video {
  pointer-events: none !important;
  z-index: 1 !important;
}

/* VinePoster custom controls must sit on top */
.vp-scope .vp-controls {
  z-index: 40 !important;
}

/* VinePoster wrapper for active playback */
.vp-featured-shell .vp-video-real.is-active {
  pointer-events: auto !important;
  z-index: 30 !important;
}



.vp-featured-shell .vp-video-thumb {
  pointer-events: none !important;
}

.vp-featured-shell .vp-video-real {
  pointer-events: auto !important;
}

.vp-featured-shell .vp-card__media {
  pointer-events: auto !important;
}

.vp-featured-shell iframe {
  pointer-events: auto !important;
}

.vp-pdf-frame {
  background: #fff;
  display: block;
}

/*This is for reckitt hiding like*/
.vp-content .wpulike,
.vp-content .wp_ulike_general_class {
  display: none !important;
}

/* =========================================================
   Supporting Materials (Legacy Migration Fallback)
   ========================================================= */
.vp-supporting-materials {
  margin-top: 24px;
}

.vp-supporting-materials h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.vp-supporting-materials .vp-material-item {
  margin: 10px 0;
}

.vp-supporting-materials .vp-material-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  background-color: var(--vp-link, #1a73e8);
  color: #fff !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.vp-supporting-materials .vp-material-btn:hover {
  background-color: var(--vp-link-hover, #185abc);
  text-decoration: none;
  transform: translateY(-1px);
}