/* Drama Hub - Streaming / Premiere
 *
 * A clean, professional short-drama streaming look: near-black graphite
 * surfaces, a rose-to-coral brand gradient used sparingly (logo, primary
 * buttons, active states), a warm gold for ratings and focus, Poppins for
 * headings and Inter for text. Layout comes from _streaming-base.css
 * (left rail, full-bleed billboard, scrolling rows).
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&display=swap");

[data-style="streaming-premiere"] {
  --bg: #0b0b0f;
  --bg-rgb: 11, 11, 15;
  --surface: #111116;
  --elev: #1a1a1f;
  --line: #25252c;
  --line-2: #34343d;
  --fg: #ececf1;
  --fg-strong: #ffffff;
  --muted: #a6a6b0;
  --muted-2: #7d7d88;
  --accent: #ff2e63;
  --accent-rgb: 255, 46, 99;
  --accent-2: #ff7a45;
  --on-accent: #ffffff;
  --gold: #f5c344;
  --gold-rgb: 245, 195, 68;
  --img-bg: #1a1a1f;
  --ph-a: #1d1d23;
  --ph-b: #121217;
  --noart-a: #1d1d24;
  --noart-b: #0b0b0f;
  --soft-15: #ececf1;
  --soft-10: #8d8d98;
  --pm-grad: linear-gradient(135deg, #ff2e63 0%, #ff7a45 100%);
  --pm-ring: rgba(255, 255, 255, .07);
  --pm-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --stream-sidebar: 216px;
  --stream-gap: 30px;
  --stream-card: 176px;
  --stream-row-gap: 22px;
  --stream-col-gap: 14px;
  --stream-card-title: 13.5px;
  --stream-card-meta: 11.5px;
  --stream-nav-size: 14px;
  --stream-hero: min(72vh, 640px);
  --stream-page-title: clamp(30px, 3.6vw, 46px);
}

[data-style="streaming-premiere"] body {
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
}

/* ---- headings ------------------------------------------------------------ */
[data-style="streaming-premiere"] h1,
[data-style="streaming-premiere"] h2,
[data-style="streaming-premiere"] h3,
[data-style="streaming-premiere"] .bb-inner h2,
[data-style="streaming-premiere"] .shelf-head h2,
[data-style="streaming-premiere"] .section-head h2,
[data-style="streaming-premiere"] .pagehead h1,
[data-style="streaming-premiere"] .lhead h1,
[data-style="streaming-premiere"] .dhead h1,
[data-style="streaming-premiere"] .dhero h1,
[data-style="streaming-premiere"] .watch-title,
[data-style="streaming-premiere"] .home-intro h1,
[data-style="streaming-premiere"] .hero h1 {
  font-family: var(--pm-head);
  font-weight: 700;
  letter-spacing: -.015em;
}

[data-style="streaming-premiere"] .shelf-head h2,
[data-style="streaming-premiere"] .section-head h2 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  color: var(--fg-strong);
}

[data-style="streaming-premiere"] .shelf-head a,
[data-style="streaming-premiere"] .shelf-head button,
[data-style="streaming-premiere"] .section-head a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
[data-style="streaming-premiere"] .shelf-head a:hover,
[data-style="streaming-premiere"] .section-head a:hover { color: var(--gold); }

[data-style="streaming-premiere"] .eyebrow,
[data-style="streaming-premiere"] .bb-kicker { color: var(--gold); letter-spacing: .14em; }
[data-style="streaming-premiere"] .eyebrow .eic { color: var(--gold); }

/* ---- header -------------------------------------------------------------- */
[data-style="streaming-premiere"] .site-header {
  background: rgba(var(--bg-rgb), .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

[data-style="streaming-premiere"] .brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--pm-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg-strong);
}
[data-style="streaming-premiere"] .brand::before {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 28%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7.2v9.6c0 .6.7 1 1.2.6l7-4.8c.4-.3.4-.9 0-1.2l-7-4.8C9.7 6.2 9 6.6 9 7.2z'/%3E%3C/svg%3E") center / 18px no-repeat,
    var(--pm-grad);
  box-shadow: 0 6px 16px -6px rgba(255, 46, 99, .7);
}
[data-style="streaming-premiere"] .brand span {
  background: var(--pm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-style="streaming-premiere"] .search {
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
[data-style="streaming-premiere"] .search:focus-within {
  border-color: rgba(var(--gold-rgb), .6);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14);
}

[data-style="streaming-premiere"] :focus-visible { outline-color: var(--gold); }
[data-style="streaming-premiere"] ::selection { background: rgba(var(--accent-rgb), .35); }

/* ---- left rail ----------------------------------------------------------- */
[data-style="streaming-premiere"] .sidebar { border-right: 1px solid rgba(255, 255, 255, .05); }
[data-style="streaming-premiere"] .side-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted-2);
}
[data-style="streaming-premiere"] .side-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  color: #c9c9d2;
}
[data-style="streaming-premiere"] .side-nav a:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--fg-strong);
}
[data-style="streaming-premiere"] .side-nav a.on {
  background: rgba(var(--gold-rgb), .1);
  color: var(--gold);
  font-weight: 600;
}
[data-style="streaming-premiere"] .side-nav a.on::before { display: none; }
[data-style="streaming-premiere"] .side-nav a.on .sic { color: var(--gold); }
[data-style="streaming-premiere"] .side-nav a.on .sic.dot::before { background: var(--gold); }

/* ---- billboard ----------------------------------------------------------- */
[data-style="streaming-premiere"] .billboard { border: 0; box-shadow: none; }
[data-style="streaming-premiere"] .bb-shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .96) 0%, rgba(var(--bg-rgb), .72) 38%, rgba(var(--bg-rgb), .08) 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 46%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), 0) 22%);
}
[data-style="streaming-premiere"] .bb-inner h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
[data-style="streaming-premiere"] .bb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(var(--gold-rgb), .12);
  border: 1px solid rgba(var(--gold-rgb), .28);
  font-size: 10.5px;
}
[data-style="streaming-premiere"] .bb-meta { color: #d6d6de; }
[data-style="streaming-premiere"] .bb-desc { color: #c4c4cc; }
[data-style="streaming-premiere"] .bb-play,
[data-style="streaming-premiere"] .bb-more {
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--pm-head);
  font-weight: 600;
  font-size: 15px;
}
[data-style="streaming-premiere"] .bb-play {
  background: #ffffff;
  color: #0b0b0f;
}
[data-style="streaming-premiere"] .bb-play:hover { background: #e6e6ea; }
[data-style="streaming-premiere"] .bb-more {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
[data-style="streaming-premiere"] .bb-more:hover { background: rgba(255, 255, 255, .22); }
[data-style="streaming-premiere"] .bb-dot.on::before { background: var(--fg-strong); }

/* ---- poster cards (vertical, like short-drama apps) ----------------------- */
[data-style="streaming-premiere"] .card .poster {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: var(--elev);
  box-shadow: inset 0 0 0 1px var(--pm-ring);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
[data-style="streaming-premiere"] .card .poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
}
[data-style="streaming-premiere"] .card:hover .poster {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 34px -12px rgba(0, 0, 0, .9);
}
[data-style="streaming-premiere"] .card:hover .poster img { transform: scale(1.04); }
[data-style="streaming-premiere"] .card .t {
  margin-top: 9px;
  font-weight: 500;
  color: #e4e4ea;
}
[data-style="streaming-premiere"] .card:hover .t { color: #fff; }
[data-style="streaming-premiere"] .card .tmeta { color: var(--muted-2); }

[data-style="streaming-premiere"] .rate {
  left: 7px;
  top: 7px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(11, 11, 15, .72);
  border: 0;
  font-size: 11px;
  color: var(--gold);
}
[data-style="streaming-premiere"] .ep {
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: rgba(11, 11, 15, .6);
  font-size: 10.5px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
[data-style="streaming-premiere"] .cplay {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
}

/* Top 10: thin numbers in the brand gradient for #1. */
[data-style="streaming-premiere"] .rnum {
  font-family: var(--pm-head);
  -webkit-text-stroke: 2px rgba(255, 255, 255, .22);
}
[data-style="streaming-premiere"] .rnum.top {
  -webkit-text-stroke: 2px var(--accent);
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), .25));
}

/* ---- buttons, chips and detail page --------------------------------------- */
[data-style="streaming-premiere"] .dbtn { border-radius: 8px; font-weight: 600; }
[data-style="streaming-premiere"] .dbtn-play,
[data-style="streaming-premiere"] .abtn:not(.ghost):not(.danger) {
  background: var(--pm-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(255, 46, 99, .7);
}
[data-style="streaming-premiere"] .dbtn-play:hover,
[data-style="streaming-premiere"] .abtn:not(.ghost):not(.danger):hover { filter: brightness(1.08); }

[data-style="streaming-premiere"] .genres button,
[data-style="streaming-premiere"] .gchip,
[data-style="streaming-premiere"] .dgenres a,
[data-style="streaming-premiere"] .pill {
  border-radius: 999px;
}
[data-style="streaming-premiere"] .genres button.on,
[data-style="streaming-premiere"] .genreband .genres button.on {
  background: #fff;
  color: #0b0b0f;
  border-color: #fff;
}

[data-style="streaming-premiere"] .eps-grid a,
[data-style="streaming-premiere"] .deps a { border-radius: 8px; }
[data-style="streaming-premiere"] .eps-grid a.on,
[data-style="streaming-premiere"] .deps a:hover {
  border-color: var(--accent);
  color: #fff;
}

[data-style="streaming-premiere"] .pager a.on,
[data-style="streaming-premiere"] .pager span.on {
  background: #fff;
  color: #0b0b0f;
  border-color: #fff;
}

/* ---- footer and mobile tab bar -------------------------------------------- */
[data-style="streaming-premiere"] .site-footer { border-top: 1px solid rgba(255, 255, 255, .05); }
[data-style="streaming-premiere"] .mobile-tabbar {
  background: rgba(var(--bg-rgb), .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
[data-style="streaming-premiere"] .mobile-tabbar a.on { color: var(--fg-strong); }

/* More titles per row than the base streaming layout, vertical cards. */
[data-style="streaming-premiere"] .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) {
  [data-style="streaming-premiere"] .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  [data-style="streaming-premiere"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  [data-style="streaming-premiere"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  [data-style="streaming-premiere"] { --stream-card: 132px; }
  [data-style="streaming-premiere"] .brand { font-size: 16px; }
  [data-style="streaming-premiere"] .brand::before { width: 28px; height: 28px; background-size: 16px, auto; }
}
@media (max-width: 460px) {
  [data-style="streaming-premiere"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
