/* =========================================================
   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: space-between;
  align-items: center;
  gap: 12px;
  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-delete-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 4px 0 8px;
  font-weight: 700;
  text-decoration: none;
  background: #dc2626 !important;
  color: #fff !important;
  padding: 0.45rem 1.25rem;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: none !important;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
  border: 1px solid #dc2626 !important;
  outline: none !important;
  margin-left: auto;
}

.vp-layout .vp-delete-post:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

.vp-layout .vp-delete-post:active {
  transform: translateY(1px);
}

.vp-layout .vp-delete-post[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.vp-layout .vp-delete-post .material-icons-outlined {
  font-size: 16px;
  line-height: 1;
}

.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,
.vp-layout .vp-delete-post:focus,
.vp-layout .vp-delete-post:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.vp-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.vp-delete-modal--hidden {
  display: none;
}

.vp-delete-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.vp-delete-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 420px);
  margin: 0;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  font-family: var(--font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #111827 !important;
}

.vp-delete-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.vp-delete-modal__heading {
  margin: 0;
  font-size: 17px !important;
  line-height: 1.2 !important;
  color: #111827 !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0 !important;
  font-style: normal !important;
  font-variant: normal !important;
  margin-block: 0 !important;
}

.vp-delete-modal__x {
  border: 1px solid #d7dde7 !important;
  background: #fff !important;
  color: #111827 !important;
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .08s ease !important;
}

.vp-delete-modal__x svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex: 0 0 16px;
}

.vp-delete-modal__body {
  padding: 14px 16px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.vp-delete-modal__text,
.vp-delete-modal__note {
  margin: 0;
  color: #6b7280;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.vp-delete-modal__text {
  margin-bottom: 8px;
}

.vp-delete-modal__post {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #991b1b;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-family: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-block: 10px !important;
}

.vp-delete-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px 16px;
  flex-wrap: wrap;
}

.vp-delete-modal__btn {
  border: 1px solid transparent !important;
  border-radius: 12px;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  min-width: 110px;
  min-height: 40px;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .08s ease !important;
}

.vp-delete-modal__btn--danger {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
  box-shadow: none !important;
}

.vp-delete-modal__btn--danger:hover,
.vp-delete-modal__x:hover {
  background: color-mix(in srgb, #dbeafe 45%, #fff) !important;
  border-color: #93c5fd !important;
  color: #111827 !important;
}

.vp-delete-modal__btn--danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

.vp-delete-modal button,
.vp-delete-modal h2,
.vp-delete-modal p {
  box-sizing: border-box;
}

.vp-delete-modal .vp-delete-modal__dialog *,
.vp-delete-modal .vp-delete-modal__dialog *::before,
.vp-delete-modal .vp-delete-modal__dialog *::after {
  font-family: inherit !important;
}

.vp-delete-modal .vp-delete-modal__dialog h1,
.vp-delete-modal .vp-delete-modal__dialog h2,
.vp-delete-modal .vp-delete-modal__dialog h3,
.vp-delete-modal .vp-delete-modal__dialog h4,
.vp-delete-modal .vp-delete-modal__dialog h5,
.vp-delete-modal .vp-delete-modal__dialog h6 {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

.vp-delete-modal .vp-delete-modal__dialog p,
.vp-delete-modal .vp-delete-modal__dialog span,
.vp-delete-modal .vp-delete-modal__dialog button {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.vp-delete-modal .vp-delete-modal__dialog .vp-delete-modal__heading {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.vp-delete-modal button::before,
.vp-delete-modal button::after {
  content: none !important;
}

body.vp-delete-open {
  overflow: hidden;
}

/* 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;
  pointer-events: none;
}

.vp-scope .vp-card__media.is-playing>iframe,
.vp-scope .vp-card__media.is-playing>video {
  pointer-events: auto;
}

/* ---- Category ---- */
.vp-scope .vp-chip-row {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vp-scope .vp-chip {
  flex-shrink: 0;
}

.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: visible;
}

.vp-scope .vp-authors {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  row-gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.vp-scope .vp-author {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: clamp(130px, 14vw, 220px);
  overflow: visible;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #d8dee8;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 8px 12px 8px 8px;
  position: relative;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vp-scope .vp-author__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vp-scope .vp-author--compact {
  min-width: 54px;
  max-width: 54px;
  padding: 7px;
  gap: 0;
  justify-content: center;
  transition: max-width .18s ease, padding .18s ease, gap .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vp-scope .vp-author--compact .vp-author__text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  transition: max-width .18s ease, opacity .18s ease, margin-left .18s ease;
}

.vp-scope .vp-author--compact .vp-author__role {
  display: none;
}

.vp-scope .vp-author--compact:hover,
.vp-scope .vp-author--compact:focus-within {
  max-width: 170px;
  padding: 8px 12px 8px 8px;
  gap: 9px;
}

.vp-scope .vp-author--compact:hover .vp-author__text,
.vp-scope .vp-author--compact:focus-within .vp-author__text {
  max-width: 110px;
  opacity: 1;
  margin-left: 0;
}

/* Multi-author: single grouped box with stacked avatars */
.vp-scope .vp-authors.is-multi {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: auto;
  max-width: 100%;
  gap: 0;
  padding: 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.vp-scope .vp-authors.is-multi .vp-author--compact {
  min-width: 42px;
  max-width: 42px;
  padding: 0;
  margin-left: -10px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.vp-scope .vp-authors.is-multi .vp-author--compact:first-child {
  margin-left: 0;
}

.vp-scope .vp-authors.is-multi .vp-author--compact .vp-author__avatar {
  width: 42px;
  height: 42px;
}

.vp-scope .vp-authors.is-multi .vp-author--compact:hover,
.vp-scope .vp-authors.is-multi .vp-author--compact:focus-within {
  z-index: 4;
  max-width: 170px;
  margin-left: 4px;
  margin-right: 6px;
  padding: 8px 12px 8px 8px;
  gap: 9px;
  border: 1px solid #c9d1dd;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.vp-scope .vp-authors.is-multi .vp-author--compact:first-child:hover,
.vp-scope .vp-authors.is-multi .vp-author--compact:first-child:focus-within {
  margin-left: 0;
}

.vp-scope .vp-authors.is-multi .vp-author--more {
  margin-left: -10px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.vp-scope .vp-authors.is-multi .vp-author--more .vp-author__avatar--more {
  width: 42px;
  height: 42px;
}

.vp-scope .vp-author:hover {
  background: #f3f6fa;
  border-color: #c9d1dd;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.vp-scope .vp-author__avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.vp-scope .vp-author__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 150px;
  color: #1f2937;
}

.vp-scope .vp-author[data-full-name]:hover::after {
  content: attr(data-full-name);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 30;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  pointer-events: none;
}

.vp-scope .vp-author[data-full-name]:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-left: 1px solid #d8dee8;
  border-top: 1px solid #d8dee8;
  transform: rotate(45deg);
  margin-left: -4px;
  z-index: 29;
  pointer-events: none;
}

.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;
  border-radius: 10px;
  border: 1px solid #d8dee8;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 6px 10px 6px 6px;
}

.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: #ffffff;
  color: #111827;
  border: 1px solid #d8dee8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 30;
}



/* ---- Like & Share Buttons ---- */
/* Legacy .vp-act block removed - consolidated in Unified System */

/* =========================================================
   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)
   ========================================================= */
/* Legacy .vp-edit-btn block removed - consolidated in Unified System */


/* ---- 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: 12px;
  padding: 14px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Align video controls like YouTube: Play → Mute → Seek → Time → Fullscreen */
.vp-scope .vp-ctrl--play {
  order: 0;
  margin-right: 2px;
}

.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--speed {
  order: 4;
  position: relative;
  margin-left: 2px;
}

.vp-scope .vp-ctrl--fullscreen {
  order: 5;
  margin-left: 2px;
  cursor: pointer;
}


@media (max-width: 520px) {
  .vp-scope .vp-controls__inner {
    gap: 8px;
    padding: 10px 8px;
  }

  .vp-scope .vp-ctrl {
    width: 32px;
    height: 32px;
  }

  .vp-scope .vp-ctrl .material-icons-outlined {
    font-size: 22px;
  }
}

.vp-scope .vp-ctrl {
  all: unset;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  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: 26px;
  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: 12px 0;
  margin: -12px 0;
  height: 16px;
  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: 18px;
  height: 18px;
  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 15px/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;
}

.vp-scope .vp-speed-toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  color: #fff;
  font: 700 12px/1 var(--vp-font, system-ui);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-transform: none;
}

.vp-scope .vp-speed-icon {
  font-size: 22px;
  line-height: 1;
  opacity: 0.95;
}

.vp-scope .vp-speed-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.vp-scope .vp-speed-toggle:hover,
.vp-scope .vp-ctrl--speed.open .vp-speed-toggle {
  background: rgba(255, 255, 255, .12);
}

.vp-scope .vp-controls .vp-ctrl--speed {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.vp-scope .vp-speed-menu {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  min-width: 72px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(18, 18, 18, .96);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  display: none;
  z-index: 70;
}

.vp-scope .vp-ctrl--speed.open .vp-speed-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vp-scope .vp-speed-menu::after {
  content: none;
}

.vp-scope .vp-speed-option {
  all: unset;
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .92);
  font: 600 12px/1 var(--vp-font, system-ui);
  text-align: center;
  cursor: pointer;
}

.vp-scope .vp-speed-option:hover {
  background: rgba(255, 255, 255, .12);
}

.vp-scope .vp-speed-option.is-active {
  background: var(--vp-accent, #ffd400);
  color: #111;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .vp-scope .vp-authors {
    flex-wrap: wrap;
  }

  .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: #fff;
  --t-ink: #1b1b1b;
  --t-border: rgba(15, 23, 42, .08);
  --t-accent: var(--vp-accent, #7ea728);

  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 340px;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--t-bg);
  color: var(--t-ink);
  border: 1px solid var(--t-border);
  border-left: 4px solid var(--t-accent);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .08),
    0 2px 6px rgba(0, 0, 0, .04);
  font-size: 14.5px;
  font-weight: 500;
  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;
}

/* OK (Success) - Professional Light Green */
.vp-toast--ok {
  --t-bg: #F0FDF4;
  --t-ink: #166534;
  --t-border: #BBF7D0;
  --t-accent: #22C55E;
}

/* ERR (Error) - Elegant Light Red */
.vp-toast--err {
  --t-bg: #FEF2F2;
  --t-ink: #991B1B;
  --t-border: #FECACA;
  --t-accent: #EF4444;
}

.vp-toast--warn {
  --t-bg: #FFFBEB;
  --t-ink: #92400E;
  --t-border: #FDE68A;
  --t-accent: #F59E0B;
}

.vp-toast--info {
  --t-bg: #EFF6FF;
  --t-ink: #1E40AF;
  --t-border: #BFDBFE;
  --t-accent: #3B82F6;
}

/* ---- Dark mode polish ---- */
@media (prefers-color-scheme: dark) {
  .vp-toast {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, .35),
      0 0 0 1px rgba(255, 255, 255, .05) inset;
  }
}

@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-layout .vp-back-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .vp-layout .vp-delete-post {
    margin-left: 0;
    width: fit-content;
  }

  .vp-delete-modal__dialog {
      width: calc(100vw - 20px);
    }

  .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--speed {
  order: 4 !important;
}

.vp-scope .vp-controls__inner>.vp-ctrl--fullscreen {
  order: 5 !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;
}

/* Click Surface (YouTube-style toggle) */
.vp-scope .vp-click-surface {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Fix: Override Grapevine Theme specific styling for Edit Button */
/* Theme override removed - handled by Unified System */

/* ==========================================================================
   Unified Action Buttons System (Like, Share, Edit)
   ========================================================================== */

/* 1. BASE BUTTON CONTRACT (All Actions) */
/* Single Source of Truth for structure and transitions */
/* 1. BASE BUTTON CONTRACT (All Actions) */
/* Single Source of Truth for structure and transitions */
.vp-scope .vp-actions .vp-act {
  /* Layout & Shape */
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: .42rem .7rem !important;
  border-radius: 999px !important;

  /* Typography */
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-decoration: none !important;

  /* Default Visuals */
  background: #fff !important;
  border: 1px solid var(--vp-border-2, #e5e7eb) !important;
  color: var(--vp-text-2, #111) !important;
  fill: var(--vp-text-2, #111) !important;

  /* Transitions & Reset */
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease !important;
  box-shadow: none !important;
  /* Flat design as per previous approval */
  outline: none !important;
  /* Kill focus artifacts structure-wide */
  cursor: pointer !important;
  appearance: none !important;
}

/* 2. HOVER STATE (Theme-Proof Unified Hover) */
.vp-scope .vp-actions .vp-act:hover,
.vp-scope .vp-actions .vp-act:focus-visible,
.vp-scope .vp-actions .vp-act:active {

  /* Kill theme interference */
  text-decoration: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  outline: none !important;

  /* IMPORTANT: use full background shorthand */
  background: color-mix(in srgb, var(--vp-accent, #1a73e8), #fff 70%) !important;

  border-color: color-mix(in srgb, var(--vp-accent, #1a73e8), #fff 50%) !important;

  color: var(--vp-text-2, #111) !important;
}

/* 3. ICON BEHAVIOR ON HOVER (Default = Accent) */
/* By default, hovering a button turns the icon to Accent Color */
.vp-scope .vp-actions .vp-act:hover .material-icons-outlined,
.vp-scope .vp-actions .vp-act:focus .material-icons-outlined,
.vp-scope .vp-actions .vp-act:active .material-icons-outlined {
  color: var(--vp-accent, #1a73e8) !important;
}

/* Keep count text neutral on hover */
.vp-scope .vp-actions .vp-act:hover .vp-count,
.vp-scope .vp-actions .vp-act:focus .vp-count,
.vp-scope .vp-actions .vp-act:active .vp-count {
  color: var(--vp-text-2, #111) !important;
}

/* 4. MODIFIER: SHARE BUTTON (Neutral Icon on Hover) */
/* Share button icons should NOT turn accent color on hover */
.vp-scope .vp-actions .vp-share-btn:hover .material-icons-outlined,
.vp-scope .vp-actions .vp-share-btn:focus .material-icons-outlined,
.vp-scope .vp-actions .vp-share-btn:active .material-icons-outlined {
  color: inherit !important;
  /* Stays #111 */
}

/* 5. MODIFIER: ACTIVE LIKE BUTTON (Derived State) */
/* When Like is Active: White BG, Accent Icon, Dark Text */
.vp-scope .vp-actions .vp-like-toggle.liked,
.vp-scope .vp-actions .vp-like-toggle.is-active,
/* Support for potential future .active classes on other buttons */
.vp-scope .vp-actions .vp-act.is-active {
  background-color: #fff !important;
  border-color: var(--vp-border-2, #e0e0e0) !important;
  color: #111 !important;
}

/* Active Icon Color */
.vp-scope .vp-actions .vp-like-toggle.liked .material-icons-outlined,
.vp-scope .vp-actions .vp-like-toggle.is-active .material-icons-outlined {
  color: var(--vp-accent, #e0245e) !important;
}

/* 6. ACTIVE HOVER STATE (Like Button) */
/* Ensure hovering an active button still shows the unified mix background */
.vp-scope .vp-actions .vp-like-toggle.liked:hover,
.vp-scope .vp-actions .vp-like-toggle.is-active:hover {
  background: color-mix(in srgb, var(--vp-accent, #1a73e8), #fff 70%) !important;
  border-color: color-mix(in srgb, var(--vp-accent, #1a73e8), #fff 50%) !important;
}

/* 7. SUPPORTING MATERIALS (Separate Context) */
.vp-supporting-materials .vp-material-btn:hover {
  background-color: var(--vp-link-hover, #185abc);
  text-decoration: none;
  transform: translateY(-1px);
}



/* =========================================================
   FINAL Mobile Header Contract (Nuclear Vertical Stack / Target Match)
   ========================================================= */
@media (max-width: 680px) {

  /* 1. Main Header Container: Vertical Column */
  html body .vp-scope .vp-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    overflow: visible !important;
    background-color: transparent !important;
    /* Removed Pale Red Confirmation */
  }

  /* 2. Author: Top Row */
  html body .vp-scope .vp-authors {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 1 !important;
    margin-bottom: 8px !important;
  }

  /* Author Branding: Bigger prominence */
  html body .vp-scope .vp-author__avatar {
    width: 48px !important;
    height: 48px !important;
    margin-right: 12px !important;
  }

  html body .vp-scope .vp-author__name {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  html body .vp-scope .vp-author__role {
    font-size: 14px !important;
    color: #555 !important;
  }

  /* 3. Actions Container: Unified Wrapper (Rating Top, Buttons Bottom Row) */
  html body .vp-scope .vp-actions {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    /* Changed to row to allow buttons to sit together */
    flex-wrap: wrap !important;
    /* Allow wrapping */
    align-items: center !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    gap: 12px !important;
    /* Space between buttons */
    margin: 0 !important;
  }

  /* 4. Rating (Inside Actions): Force to TOP ROW */
  html body .vp-scope .vp-rating-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    /* Force full width to push buttons to next row */
    flex: 0 0 100% !important;
    /* Ensure it occupies the whole row */
    gap: 4px !important;
    margin: 0 0 4px 0 !important;
    /* Added small bottom margin for spacing */
    padding: 0 !important;
  }

  /* Stars */
  html body .vp-scope .vp-rating-stars {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 1px !important;
  }

  /* Rating Label */
  html body .vp-scope .vp-rating-label {
    display: block !important;
    text-align: left !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
  }

  /* 5. Interaction Buttons: Sit together on the second line */
  html body .vp-scope .vp-actions>.vp-act,
  html body .vp-scope .vp-actions>.vp-like-toggle,
  html body .vp-scope .vp-actions>.vp-share-btn,
  html body .vp-scope .vp-actions>.vp-edit-btn {
    display: inline-flex !important;
    width: auto !important;
    /* Allow buttons to shrink to content */
    margin: 0 !important;
    flex: 0 1 auto !important;
  }

}

/* ==========================================================================
   Shortcode Interaction Polish
   Scoped to .vp-scope only
   ========================================================================== */
.vp-scope.vp-align-left .vp-actions {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start;
}

.vp-scope.vp-align-center .vp-actions {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: center;
}

.vp-scope.vp-align-right .vp-actions {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-end;
}

.vp-scope.vp-align-inline {
  display: inline-block;
  vertical-align: middle;
}

.vp-scope.vp-align-inline .vp-actions {
  width: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: inline-flex;
}

/* Override base .vp-scope max-width centering for shortcode alignment modes */
.vp-scope.vp-align-left,
.vp-scope.vp-align-center,
.vp-scope.vp-align-right {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.vp-scope.vp-align-inline {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.vp-scope .vp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vp-scope .vp-actions .vp-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  white-space: nowrap;
}

.vp-scope .vp-actions .vp-count {
  margin-left: 4px;
  line-height: 1;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  min-width: 1ch;
}

@media (max-width: 680px) {
  .vp-scope.vp-align-right .vp-actions,
  .vp-scope.vp-align-center .vp-actions {
    justify-content: flex-start;
  }

  .vp-scope .vp-actions {
    column-gap: 8px;
    row-gap: 8px;
  }

  .vp-scope .vp-actions .vp-act {
    flex: 0 0 auto;
  }
}
