/* ==========================================================================
   Practice Care Plus · YouTube Broadcast Hub & Video Showcase
   Design System: "Paper & Navy" Premier Finish + Optional Z-Scroll & Theater Mode
   ========================================================================== */

:root {
  --paper: #edf1f7;
  --paper-2: #e1e8f2;
  --ink: #0d1b33;
  --pine: #0f3a74;
  --pine-deep: #082147;
  --coral: #1f6fd1;
  --coral-deep: #1859b0;
  --champagne: #c9a96a;
  --champagne-soft: rgba(201, 169, 106, .55);
  --gold: #c79a2b;
  --slate: #2d84e4;
  --positive: #2a7a4b;
  --attention: #b7791a;
  --critical: #bf3b2c;
  --muted: #56647a;
  --dim: #8794a8;
  --border: #dbe3ef;
  --border-strong: #b9c6da;
  --surface: rgba(255, 255, 255, .94);
  --surface-2: rgba(246, 249, 255, .86);
  --card-border: rgba(255, 255, 255, .95);
  --card-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(13, 27, 51, .055), 0 2px 4px rgba(8, 33, 71, .04), 0 22px 44px -26px rgba(8, 33, 71, .38);
  --card-shadow-hover: inset 0 1px 0 #fff, 0 0 0 1px rgba(31, 111, 209, .24), 0 4px 8px rgba(8, 33, 71, .05), 0 30px 54px -26px rgba(8, 33, 71, .45);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 20px;
}

/* Theater Mode (Dark Cinema Broadcast Theme) */
body[data-theater="true"] {
  --paper: #061022;
  --paper-2: #0a1933;
  --ink: #f4f7fc;
  --muted: #a6b7d0;
  --dim: #7588a6;
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .2);
  --surface: rgba(12, 27, 54, .88);
  --surface-2: rgba(16, 35, 68, .75);
  --card-border: rgba(255, 255, 255, .11);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(201, 169, 106, .18), 0 24px 48px -24px rgba(0, 0, 0, .75);
  --card-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(201, 169, 106, .45), 0 30px 60px -22px rgba(0, 0, 0, .88);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: rgba(31, 111, 209, .24); }

html, body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

body {
  background-image:
    radial-gradient(1100px 620px at 6% -14%, rgba(31, 111, 209, .16), transparent 60%),
    radial-gradient(900px 560px at 108% 112%, rgba(8, 33, 71, .14), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  background-attachment: fixed;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
}

body[data-theater="true"] {
  background-image:
    radial-gradient(1000px 560px at 12% -10%, rgba(31, 111, 209, .24), transparent 62%),
    radial-gradient(850px 500px at 94% 108%, rgba(201, 169, 106, .12), transparent 60%),
    linear-gradient(180deg, #050d1d, #09172e);
}

/* Z-Scroll Frame Mode vs Editorial Scroll Mode */
@media (min-width: 860px) {
  body[data-view="frames"] {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

a { color: var(--pine); }
body[data-theater="true"] a { color: #7cb6ff; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* ---------------------------------------------------------------- Top Navigation Bar */
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(13, 27, 51, .06);
  position: sticky;
  top: 0;
  z-index: 40;
}
body[data-theater="true"] .bar {
  background: rgba(7, 17, 36, .75);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.brand strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 1.02rem/1.1 var(--font-display);
  letter-spacing: -.01em;
}
.yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 .62rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c92a2a, #e03131);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(224, 49, 49, .65);
}
.yt-pill::before {
  content: "▶";
  font-size: .54rem;
}
.brand small {
  display: block;
  font: 500 .65rem/1.2 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(13, 27, 51, .06);
  color: var(--ink);
  font: 560 .84rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
body[data-theater="true"] .nav a {
  background: rgba(255, 255, 255, .08);
  color: #c5d9f8;
  border-color: rgba(255, 255, 255, .14);
}
.nav a:hover {
  background: rgba(31, 111, 209, .15);
  color: #fff;
  border-color: rgba(143, 194, 255, .4);
}

/* SVG Icon Sizing & Alignments */
.nav-icon {
  width: 18px !important;
  height: 18px !important;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.nav-icon.filled {
  fill: currentColor;
  stroke: none;
}
.mode-icon {
  width: 14px !important;
  height: 14px !important;
  display: block;
  flex-shrink: 0;
}
.btn-icon {
  width: 14px !important;
  height: 14px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav.icon-nav svg,
.mode-btn svg,
.pcp-btn svg {
  pointer-events: none;
}

/* Compact Icon-First Nav (e.g. Public TV Hub) */
.nav.icon-nav {
  gap: 6px;
}
.nav.icon-nav a,
.nav.icon-nav button.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(13, 27, 51, .14);
  background: rgba(255, 255, 255, .75);
  color: #3b506d;
  cursor: pointer;
  position: relative;
  transition: all .2s;
}
.nav.icon-nav a:active,
.nav.icon-nav button.nav-tab:active {
  transform: scale(.93);
}
.nav.icon-nav a span,
.nav.icon-nav button.nav-tab span {
  display: none;
}
.nav.icon-nav a:hover,
.nav.icon-nav button.nav-tab:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(15, 58, 116, .35);
  box-shadow: 0 4px 10px -4px rgba(13, 27, 51, .18);
}
.nav.icon-nav a[aria-current="page"],
.nav.icon-nav button.nav-tab[aria-selected="true"] {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
  box-shadow: 0 4px 12px -3px rgba(8, 33, 71, .45);
}
body[data-theater="true"] .nav.icon-nav a,
body[data-theater="true"] .nav.icon-nav button.nav-tab {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
}
body[data-theater="true"] .nav.icon-nav a:hover,
body[data-theater="true"] .nav.icon-nav button.nav-tab:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
body[data-theater="true"] .nav.icon-nav a[aria-current="page"],
body[data-theater="true"] .nav.icon-nav button.nav-tab[aria-selected="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mode Controls (Z-Scroll vs Scroll & Theater Mode) */
.mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 27, 51, .06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
body[data-theater="true"] .mode-switch {
  background: rgba(255, 255, 255, .07);
}
.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 .74rem/1 var(--font-body);
  width: 32px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
}
.mode-btn:active {
  transform: scale(.92);
}
.mode-btn:hover {
  color: var(--ink);
}
body[data-theater="true"] .mode-btn:hover {
  color: #fff;
}
.mode-btn span {
  display: none;
}
.mode-btn[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(8, 33, 71, .4);
}
body[data-theater="true"] .mode-btn[aria-pressed="true"] {
  background: var(--coral);
}

.cta, .pcp-btn.primary {
  position: relative;
  overflow: hidden;
  font: 650 .8rem/1 var(--font-body);
  color: #fff !important;
  background: linear-gradient(180deg, #2f7fe0, #1556b0) !important;
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(21, 86, 176, .75) !important;
  transition: transform .25s var(--ease);
}
.cta:hover, .pcp-btn.primary:hover {
  transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 1px));
}
.cta::after, .pcp-btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .cta:hover::after, .pcp-btn.primary:hover::after {
    transform: translateX(120%);
    transition: transform .9s var(--ease);
  }
}

.pcp-btn {
  font: 640 .8rem/1 var(--font-body);
  border-radius: 999px;
  padding: 10px 16px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.pcp-btn:hover {
  transform: translateY(-1px);
  border-color: var(--coral);
}
.pcp-btn.yt-sub {
  background: linear-gradient(180deg, #e03131, #b91c1c);
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(224, 49, 49, .65);
}
.pcp-btn.yt-sub[data-subscribed="true"] {
  background: var(--positive);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(42, 122, 75, .6);
}

/* ---------------------------------------------------------------- Z-Scroll DSIA (Deep Spatial Information Architecture) */
.stage-wrap {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 28px 6px;
  position: relative;
}

.deck-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
}
.deck-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 .74rem/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  display: inline-block;
}
.deck-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}
.deck-dot {
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 .74rem/1 var(--font-body);
  background: rgba(13, 27, 51, .06);
  color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease);
}
body[data-theater="true"] .deck-dot {
  background: rgba(255, 255, 255, .08);
}
.deck-dot[aria-current="step"] {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 58, 116, .5);
}
body[data-theater="true"] .deck-dot[aria-current="step"] {
  background: var(--coral);
}
.deck-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: .92rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.deck-arrow:not(:disabled):hover {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
  transform: translateY(-1px);
}
.deck-arrow:disabled {
  opacity: .38;
  cursor: default;
}

/* Frame container & Viewport (Level, flat, zero tilt) */
.frames-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  transition: transform .22s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.yt-frame {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 860px) {
  body[data-view="frames"] .yt-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, filter;
    transition:
      transform .52s cubic-bezier(0.16, 1, 0.3, 1),
      opacity .45s cubic-bezier(0.16, 1, 0.3, 1),
      filter .48s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
  }

  /* Past Frame: slides up and fades, completely level with 0deg rotation */
  body[data-view="frames"] .yt-frame[data-depth="past"],
  body[data-view="frames"] .yt-frame[data-active="false"]:not([data-depth="future"]) {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -28px, 0) scale(1.03);
    filter: blur(8px);
  }

  /* Active Frame: crisp, centered, perfectly flat, 0deg rotation */
  body[data-view="frames"] .yt-frame[data-depth="active"],
  body[data-view="frames"] .yt-frame[data-active="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
    z-index: 10;
  }

  /* Future Frame: slides down and fades, completely level with 0deg rotation */
  body[data-view="frames"] .yt-frame[data-depth="future"] {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 36px, 0) scale(0.96);
    filter: blur(8px);
  }
}

body[data-view="scroll"] .frames-viewport {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 32px;
}
body[data-view="scroll"] .deck-bar {
  display: none;
}

/* ---------------------------------------------------------------- Glass Cards & Light Thread */
.pcp-card {
  position: relative;
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s;
  --thread: rgba(13, 27, 51, .16);
  --thread-glow: transparent;
}
body[data-theater="true"] .pcp-card {
  --thread: rgba(143, 194, 255, .32);
}

.pcp-card:hover {
  box-shadow: var(--card-shadow-hover);
  --thread: rgba(31, 111, 209, .65);
  --thread-glow: rgba(31, 111, 209, .38);
}

/* Signature Glass Light Thread on Top Edge */
.pcp-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 22px;
  right: 22px;
  top: 3px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 51, .07);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .98) 50%, transparent) -50% 50% / 30% 100% no-repeat,
    radial-gradient(circle at 5px 50%, #fff 0 1px, var(--thread) 1.8px, transparent 4.6px) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, var(--thread) 0%, var(--thread) 55%, transparent 100%) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 55%, rgba(13, 27, 51, .10));
  box-shadow: 0 0 10px var(--thread-glow), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pcp-card[data-tone="positive"] {
  --thread: #2d84e4;
  --thread-glow: rgba(45, 132, 228, .6);
}
.pcp-card[data-tone="attention"] {
  --thread: var(--champagne);
  --thread-glow: rgba(201, 169, 106, .6);
}
.pcp-card[data-tone="youtube"] {
  --thread: #ff4d4d;
  --thread-glow: rgba(224, 49, 49, .6);
}

/* Midnight Glass Focal Card */
.pcp-card[data-role="focal"] {
  --thread: #8fc2ff;
  --thread-glow: rgba(90, 160, 255, .65);
  color: #f7f3e9;
  background-image:
    radial-gradient(520px 300px at 92% -10%, rgba(201, 169, 106, .22), transparent 65%),
    radial-gradient(700px 420px at 0% 120%, rgba(45, 132, 228, .3), transparent 62%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 15px),
    linear-gradient(155deg, #061633 0%, #0a2756 52%, #0f3a74 100%);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(201, 169, 106, .38), 0 34px 60px -28px rgba(6, 22, 51, .75);
}
.pcp-card[data-role="focal"]::before {
  border-color: rgba(255, 255, 255, .18);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .98) 50%, transparent) -50% 50% / 30% 100% no-repeat,
    radial-gradient(circle at 5px 50%, #fff 0 1px, var(--thread) 1.8px, transparent 4.6px) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, var(--thread) 0%, var(--thread) 55%, transparent 100%) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06));
}

/* Pointer spotlight */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pcp-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s var(--ease);
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 111, 209, .11), transparent 62%);
  }
  .pcp-card[data-role="focal"]::after {
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 62%);
  }
  .pcp-card:hover::after { opacity: 1; }
}

.kicker {
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcp-card[data-role="focal"] .kicker {
  color: var(--champagne);
  letter-spacing: .2em;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -.02em;
  margin: 8px 0 6px;
  line-height: 1.12;
}
.card-body {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}
.pcp-card[data-role="focal"] .card-body {
  color: #d3e2ec;
}
.card-source {
  margin-top: auto;
  padding-top: 10px;
  font: 500 .72rem/1.2 var(--font-body);
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pcp-card[data-role="focal"] .card-source {
  color: #9ab0c7;
}

/* ---------------------------------------------------------------- FRAME 1: Flagship Broadcast & Showreel */
.f1-player-card {
  grid-column: span 8;
  grid-row: span 2;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.player-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 650 .64rem/1 var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
.chip.champagne {
  background: rgba(201, 169, 106, .22);
  color: #ffe7b8;
  border-color: rgba(201, 169, 106, .45);
}
.chip.blue {
  background: rgba(31, 111, 209, .14);
  color: var(--pine);
  border-color: rgba(31, 111, 209, .25);
}
body[data-theater="true"] .chip.blue {
  color: #9ec8ff;
}

/* Video Stage Container */
.video-stage {
  position: relative;
  flex: 1;
  min-height: 230px;
  border-radius: 15px;
  overflow: hidden;
  background: #040d1e;
  border: 1px solid rgba(201, 169, 106, .35);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .75);
  display: grid;
  place-items: center;
}
.video-stage video,
.video-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.video-overlay-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(6, 22, 51, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  z-index: 4;
}
.video-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vid-btn {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 .74rem/1 var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, transform .2s;
}
.vid-btn:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}
.vid-btn.primary-play {
  background: var(--coral);
  border-color: transparent;
}

/* Chapter Timeline Pills inside Flagship Player */
.chapter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chapter-strip::-webkit-scrollbar { display: none; }
.chapter-pill {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #dce7f7;
  border-radius: 999px;
  padding: 5px 11px;
  font: 560 .72rem/1 var(--font-body);
  cursor: pointer;
  transition: all .2s;
}
.chapter-pill:hover, .chapter-pill[aria-current="true"] {
  background: rgba(201, 169, 106, .28);
  border-color: var(--champagne);
  color: #fff;
}
.chapter-pill b {
  color: var(--champagne);
  margin-right: 4px;
  font-feature-settings: "tnum";
}

.player-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.player-meta h1 {
  font: 560 clamp(1.25rem, 2.1vw, 1.75rem)/1.12 var(--font-display);
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: -.02em;
}
.player-meta p {
  margin: 0;
  font-size: .84rem;
  color: #c5d6eb;
  max-width: 66ch;
}
.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Right Column Cards on Frame 1 */
.f1-side-top {
  grid-column: span 4;
}
.f1-side-bottom {
  grid-column: span 4;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.stat-box {
  background: rgba(15, 58, 116, .06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
}
body[data-theater="true"] .stat-box {
  background: rgba(255, 255, 255, .05);
}
.stat-box strong {
  display: block;
  font: 600 1.2rem/1.05 var(--font-display);
  color: var(--pine);
}
body[data-theater="true"] .stat-box strong {
  color: var(--champagne);
}
.stat-box span {
  font: 500 .68rem/1.2 var(--font-body);
  color: var(--muted);
}

/* Up Next Queue List */
.queue-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}
.queue-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
body[data-theater="true"] .queue-item {
  background: rgba(255, 255, 255, .05);
}
.queue-item:hover, .queue-item[aria-current="true"] {
  border-color: var(--coral);
  background: #fff;
  transform: translateX(2px);
}
body[data-theater="true"] .queue-item:hover,
body[data-theater="true"] .queue-item[aria-current="true"] {
  background: rgba(31, 111, 209, .18);
}
.q-thumb {
  width: 68px;
  height: 42px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.q-thumb span {
  background: rgba(6, 22, 51, .82);
  padding: 2px 5px;
  border-radius: 4px;
  font: 600 .58rem/1 var(--font-body);
}
.q-info strong {
  display: block;
  font: 620 .8rem/1.25 var(--font-body);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-info small {
  display: block;
  font: 500 .68rem/1.2 var(--font-body);
  color: var(--muted);
  margin-top: 2px;
}

/* ---------------------------------------------------------------- FRAME 2: 6 Service Pillar Playlists & Episode Grid */
.f2-banner {
  grid-column: span 12;
  padding: 16px 22px;
  display: flex;
   flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.f2-banner-text h2 {
  font: 560 clamp(1.2rem, 2vw, 1.65rem)/1.12 var(--font-display);
  margin: 4px 0;
  color: #fff;
}
.f2-banner-text p {
  margin: 0;
  font-size: .84rem;
  color: #c5d6eb;
}
.pillar-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #e6effa;
  border-radius: 999px;
  padding: 7px 13px;
  font: 600 .74rem/1 var(--font-body);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, .18);
}
.filter-btn[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(31, 111, 209, .8);
}

/* Episode Grid in Frame 2 */
.episode-grid-mount {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.episode-grid-mount[data-count="1"] {
  grid-template-columns: minmax(320px, 560px);
}

.episode-grid-mount[data-count="2"] {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.ep-card {
  padding: 16px 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.ep-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 169, 106, .45);
  box-shadow: 0 16px 36px -12px rgba(6, 22, 51, .6);
}
.ep-thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 150px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(13, 27, 51, .08);
}
.ep-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 51, .15) 0%, rgba(6, 22, 51, .84) 100%);
}
.ep-thumb-play, .ep-thumb-time {
  position: relative;
  z-index: 2;
}
.ep-thumb-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(31, 111, 209, .92);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease), background .2s;
}
.ep-card:hover .ep-thumb-play {
  transform: scale(1.1);
  background: #e03131;
}
.ep-thumb-time {
  font: 650 .66rem/1 var(--font-body);
  background: rgba(6, 22, 51, .85);
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
}
.ep-card h3 {
  font: 620 .96rem/1.24 var(--font-display);
  margin: 2px 0 0;
  color: var(--ink);
}
.ep-card p {
  font-size: .79rem;
  line-height: 1.38;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-partner-bar {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 600 .71rem/1.2 var(--font-body);
  color: var(--pine);
}
body[data-theater="true"] .ep-partner-bar {
  color: #8fc2ff;
}

/* ---------------------------------------------------------------- FRAME 3: Shorts Deck & Channel Brand Kit + Concierge */
.f3-shorts-col {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.short-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 28px -16px rgba(6, 22, 51, .6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.short-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 51, .3) 0%, rgba(6, 22, 51, .15) 40%, rgba(6, 22, 51, .92) 100%);
}
.short-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -14px rgba(6, 22, 51, .8);
}
.short-top, .short-bottom {
  position: relative;
  z-index: 2;
}
.short-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(224, 49, 49, .9);
  color: #fff;
  font: 700 .58rem/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
}
.short-bottom h4 {
  font: 600 .86rem/1.22 var(--font-display);
  margin: 0 0 4px;
}
.short-bottom span {
  font: 500 .68rem/1.2 var(--font-body);
  color: #cbd9ec;
}

.f3-studio-col {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* How Practice Care Plus Works 3-Step Grid inside Public Frame 3 */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(15, 58, 116, .055);
  border: 1px solid var(--border);
}
body[data-theater="true"] .how-step {
  background: rgba(255, 255, 255, .05);
}
.how-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font: 700 .72rem/1 var(--font-body);
  display: grid;
  place-items: center;
}
body[data-theater="true"] .how-num {
  background: var(--coral);
}
.how-step strong {
  display: block;
  font: 640 .84rem/1.2 var(--font-display);
  color: var(--ink);
  margin-bottom: 3px;
}
.how-step p {
  margin: 0;
  font-size: .76rem;
  line-height: 1.38;
  color: var(--muted);
}

/* Direct Contact & PracticeCarePlus.com Links inside Public Frame 3 */
.direct-contact-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}
.direct-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(201, 169, 106, .35);
  color: #fff !important;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.direct-contact-item:hover {
  background: rgba(255, 255, 255, .16);
  border-color: var(--champagne);
  transform: translateX(2px);
}
.direct-contact-item .dc-label {
  font: 560 .72rem/1.2 var(--font-body);
  color: #c5d6eb;
}
.direct-contact-item strong {
  font: 650 .8rem/1.2 var(--font-body);
  color: #ffe7b8;
}

/* Thumbnail / Banner Canvas Preview inside Frame 3 */
.thumb-studio-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #061633;
  position: relative;
}
.thumb-studio-preview canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Fulfillment Simulator */
.fdemo-step-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 .76rem/1 var(--font-body);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.fdemo-step-tab:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.fdemo-step-tab.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(8, 33, 71, .5);
}
.studio-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.studio-controls input, .studio-controls select {
  font: 500 .8rem/1 var(--font-body);
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

/* ---------------------------------------------------------------- Native Top-Layer Dialogs (<dialog>) */
dialog.pcp-dialog {
  width: min(680px, 92vw);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(201, 169, 106, .42);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  color: var(--ink);
  box-shadow: 0 36px 80px -24px rgba(6, 22, 51, .75);
  overflow: hidden;
  z-index: 1000;
}

dialog.pcp-dialog:not([open]) {
  display: none !important;
}

dialog.pcp-dialog[open] {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

dialog.pcp-dialog::backdrop {
  background-color: rgba(6, 18, 42, .75) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

.dialog-inner {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: 88vh;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font: 560 1.45rem/1.15 var(--font-display);
  margin: 4px 0 0;
}
.dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.takeaway-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.takeaway-list li {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(15, 58, 116, .06);
  border: 1px solid var(--border);
  font-size: .86rem;
  line-height: 1.4;
}
body[data-theater="true"] .takeaway-list li {
  background: rgba(255, 255, 255, .05);
}

.vetted-partner-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #061633, #0f3a74);
  color: #fff;
  border: 1px solid rgba(201, 169, 106, .45);
}
.vetted-partner-box h4 {
  font: 560 1.1rem/1.2 var(--font-display);
  margin: 4px 0 6px;
}
.vetted-partner-box p {
  margin: 0 0 12px;
  font-size: .84rem;
  color: #d0e0f5;
}

/* Form inside Concierge Dialog */
.pcp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pcp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  grid-column: 1 / -1;
}
.pcp-field.half { grid-column: auto; }
.pcp-field label {
  font: 650 .7rem/1.2 var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.pcp-field input, .pcp-field select, .pcp-field textarea {
  font: 500 .9rem/1.3 var(--font-body);
  padding: 10px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
.pcp-note {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--muted);
  background: rgba(15, 58, 116, .06);
  padding: 9px 12px;
  border-radius: 10px;
}

/* Footer */
.legal {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 28px 12px;
  font: 500 .72rem/1.3 var(--font-body);
  color: var(--dim);
}
.legal a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 14px;
}
.legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Toast Notification */
.pcp-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--pine-deep);
  color: #fff;
  border: 1px solid var(--champagne);
  padding: 11px 18px;
  border-radius: 14px;
  font: 600 .84rem/1.3 var(--font-body);
  z-index: 120;
  transition: opacity .3s, transform .35s var(--ease);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .65);
}
.pcp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive Breakpoints & Mobile App Polish */
@media (max-width: 1024px) {
  .f1-player-card, .f1-side-top, .f1-side-bottom,
  .ep-card, .f3-shorts-col, .f3-studio-col {
    grid-column: span 12;
  }
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 859px) {
  body[data-view="frames"] {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .frames-viewport {
    min-height: auto;
  }
  body[data-view="frames"] .yt-frame {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    padding-bottom: 12px;
  }
  body[data-view="frames"] .yt-frame[data-active="false"] {
    display: none !important;
  }
  body[data-view="frames"] .yt-frame[data-active="true"] {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  /* 1. Header: Single sleek non-wrapping row */
  .bar {
    padding: 8px 14px;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-logo {
    height: 30px;
    width: auto;
    flex-shrink: 0;
  }
  .brand strong {
    font-size: .92rem;
    white-space: nowrap;
    gap: 6px;
  }
  .yt-pill {
    padding: 3px 6px;
    font-size: .56rem;
    letter-spacing: .08em;
  }
  .brand small {
    display: none !important;
  }
  .nav.icon-nav {
    display: none !important;
  }
  .mode-switch {
    display: none !important;
  }
  .bar-end {
    margin-left: auto;
    gap: 6px;
    flex-shrink: 0;
  }
  .pcp-btn.yt-sub {
    padding: 7px 11px;
    font-size: .72rem;
    border-radius: 999px;
  }
  .cta,
  .pcp-btn.primary {
    padding: 7px 13px;
    font-size: .72rem;
    border-radius: 999px;
  }

  /* 2. Deck Segmented Control */
  .deck-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 0 10px;
  }
  .deck-status {
    justify-content: center;
    font-size: .66rem;
    letter-spacing: .09em;
  }
  .deck-controls {
    width: 100%;
  }
  .deck-dots {
    width: 100%;
    margin-right: 0;
    gap: 6px;
  }
  .deck-dot {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: .72rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .deck-arrow {
    display: none !important;
  }

  /* 3. Stage & Cards */
  .stage-wrap {
    padding: 4px 12px 36px;
  }
  .f1-player-card {
    padding: 12px 12px 16px;
    border-radius: 18px;
    gap: 10px;
  }
  .player-topline {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
  }
  .player-topline .kicker {
    font-size: .62rem;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .player-badges {
    gap: 4px;
    flex-shrink: 0;
  }
  #activePillarBadge {
    padding: 4px 8px;
    font-size: .62rem;
    white-space: nowrap;
  }
  #activeVideoIdBadge {
    display: none !important;
  }
  .video-stage {
    min-height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .chapter-strip {
    padding: 4px 0 6px;
    gap: 5px;
  }
  .chapter-pill {
    padding: 5px 9px;
    font-size: .68rem;
  }
  .player-meta h1 {
    font-size: 1.22rem;
    line-height: 1.2;
    margin: 4px 0;
  }
  .player-meta p {
    font-size: .8rem;
    line-height: 1.4;
    color: #b8cde6;
  }

  /* 4. Action Buttons Grid */
  .player-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  .player-actions #btnInspectActive {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 12px 14px;
    font-size: .84rem;
    font-weight: 700;
  }
  .player-actions a[href*="practicecareplus.com"] {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 9px 12px;
    font-size: .78rem;
  }
  .player-actions #btnWatchOnYouTube,
  .player-actions #btnCopyShareLink {
    grid-column: span 1;
    justify-content: center;
    padding: 9px 8px;
    font-size: .78rem;
  }

  /* 5. Stat Row & Right Column */
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
  }
  .stat-box {
    padding: 7px 6px;
    text-align: center;
    border-radius: 10px;
  }
  .stat-box strong {
    font-size: 1.05rem;
  }
  .stat-box span {
    font-size: .62rem;
    line-height: 1.1;
  }
  .queue-item {
    padding: 8px;
    border-radius: 12px;
    gap: 10px;
  }
  .q-thumb {
    width: 68px;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 8px;
  }
  .q-info strong {
    font-size: .82rem;
    line-height: 1.2;
  }
  .q-info small {
    font-size: .68rem;
  }

  /* 6. Frame 2 Filters & Frame 3 Shorts */
  .pillar-filters {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pillar-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: .74rem;
    border-radius: 999px;
  }
  .episodes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pcp-form {
    grid-template-columns: 1fr;
  }
  .pcp-field.half {
    grid-column: 1 / -1;
  }
  dialog.pcp-dialog {
    width: min(540px, 94vw);
    border-radius: 20px;
  }
  .dialog-inner {
    padding: 18px 16px;
  }
  .legal {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .legal a {
    margin: 0 12px 0 0;
  }
}
