/* DramaMov Stage 2 deterministic bundle.
 * Generated from current live CSS in original cascade order.
 * Source files remain untouched for rollback and future Vite migration.
 */

/* ===== BEGIN public/dramamov/css/base.css ===== */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --sd-bg: #07070a;
  --sd-bg-elevated: #0c0c10;
  --sd-surface-1: #101015;
  --sd-surface-2: #15151b;
  --sd-surface-3: #1b1b22;
  --sd-contrast-rgb: 255 255 255;
  --sd-line: rgb(var(--sd-contrast-rgb) / 0.08);
  --sd-line-strong: rgb(var(--sd-contrast-rgb) / 0.14);
  --sd-panel: rgb(var(--sd-contrast-rgb) / 0.025);
  --sd-panel-hover: rgb(var(--sd-contrast-rgb) / 0.055);
  --sd-text: #f8f8fa;
  --sd-text-soft: #d4d4da;
  --sd-muted: #8b8b96;
  --sd-muted-strong: #a7a7b0;
  --sd-accent-rgb: 76 141 255;
  --sd-accent: #4c8dff;
  --sd-accent-hover: #6ca2ff;
  --sd-accent-soft: rgb(var(--sd-accent-rgb) / 0.14);
  --sd-on-accent: #ffffff;
  --sd-info: #60a5fa;
  --sd-success: #4ade80;
  --sd-warning: #fbbf24;
  --sd-danger: #f87171;
  --sd-nav-bg: rgba(7, 7, 10, 0.94);
  --sd-glass-bg: rgba(9, 9, 12, 0.84);
  --sd-theme-control-bg: rgba(15, 15, 20, 0.62);
  --sd-radius-sm: 10px;
  --sd-radius-md: 14px;
  --sd-radius-lg: 20px;
  --sd-radius-xl: 28px;
  --sd-sidebar: 236px;
  --sd-admin-sidebar: 248px;
  --sd-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] {
  color-scheme: light;
  --sd-bg: #f6f7fb;
  --sd-bg-elevated: #ffffff;
  --sd-surface-1: #ffffff;
  --sd-surface-2: #f0f2f7;
  --sd-surface-3: #e8ebf2;
  --sd-contrast-rgb: 17 24 39;
  --sd-line: rgb(var(--sd-contrast-rgb) / 0.09);
  --sd-line-strong: rgb(var(--sd-contrast-rgb) / 0.15);
  --sd-panel: rgb(var(--sd-contrast-rgb) / 0.025);
  --sd-panel-hover: rgb(var(--sd-contrast-rgb) / 0.05);
  --sd-text: #12151c;
  --sd-text-soft: #343a46;
  --sd-muted: #737b89;
  --sd-muted-strong: #596170;
  --sd-accent-rgb: 37 99 235;
  --sd-accent: #2563eb;
  --sd-accent-hover: #1d4ed8;
  --sd-accent-soft: rgb(var(--sd-accent-rgb) / 0.11);
  --sd-on-accent: #ffffff;
  --sd-info: #2563eb;
  --sd-success: #15803d;
  --sd-warning: #a16207;
  --sd-danger: #dc2626;
  --sd-nav-bg: rgba(249, 250, 253, 0.94);
  --sd-glass-bg: rgba(255, 255, 255, 0.84);
  --sd-theme-control-bg: rgba(255, 255, 255, 0.7);
  --sd-shadow: 0 22px 70px rgba(29, 43, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--sd-bg);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sd-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 80% -10%, rgb(var(--sd-accent-rgb) / 0.08), transparent 26rem),
    radial-gradient(circle at 8% 105%, rgba(70, 110, 220, 0.07), transparent 30rem),
    var(--sd-bg);
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

::selection {
  background: rgb(var(--sd-accent-rgb) / 0.28);
}

:focus-visible {
  outline: 2px solid rgb(var(--sd-accent-rgb) / 0.9);
  outline-offset: 3px;
}

.sd-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.sd-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #5f9cff, #2563eb);
  box-shadow: 0 10px 30px rgb(var(--sd-accent-rgb) / 0.22);
  font-size: 15px;
  font-weight: 950;
}

.sd-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.sd-brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-brand-copy small {
  color: var(--sd-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd-brand.is-compact .sd-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.sd-brand.is-compact .sd-brand-copy strong {
  font-size: 14px;
}

.sd-eyebrow {
  color: var(--sd-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sd-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sd-line);
}

.sd-page-intro h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.sd-page-intro p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sd-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sd-button,
.sd-icon-button {
  border: 1px solid var(--sd-line-strong);
  background: rgb(var(--sd-contrast-rgb) / 0.04);
  color: var(--sd-text);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.sd-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 800;
}

.sd-button.is-primary {
  border-color: transparent;
  background: var(--sd-accent);
}

.sd-button:hover,
.sd-icon-button:hover {
  border-color: rgb(var(--sd-contrast-rgb) / 0.22);
  background: rgb(var(--sd-contrast-rgb) / 0.075);
}

.sd-button.is-primary:hover {
  background: var(--sd-accent-hover);
}

.sd-button:active,
.sd-icon-button:active {
  transform: translateY(1px);
}

.sd-button:disabled,
.sd-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.sd-icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
}

.sd-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--sd-muted-strong);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sd-status-pill.is-success { color: var(--sd-success); border-color: rgba(74, 222, 128, 0.22); }
.sd-status-pill.is-warning { color: var(--sd-warning); border-color: rgba(251, 191, 36, 0.24); }
.sd-status-pill.is-danger { color: var(--sd-danger); border-color: rgba(248, 113, 113, 0.24); }
.sd-status-pill.is-info { color: var(--sd-info); border-color: rgba(96, 165, 250, 0.24); }

.sd-empty-state {
  display: grid;
  gap: 5px;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-md);
  background: var(--sd-panel);
  padding: 18px;
}

.sd-empty-state span {
  color: var(--sd-muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .sd-page-intro {
    display: grid;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.sd-system-state {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--sd-bg);
  text-align: center;
}

.sd-system-state > div {
  width: min(520px, 100%);
}

.sd-system-state h1 {
  margin: 10px 0;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.sd-system-state p {
  margin: 0 0 22px;
  color: var(--sd-muted);
  line-height: 1.6;
}

/* UX005 — final product polish */
.sd-skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  border: 1px solid var(--sd-line-strong);
  border-radius: 10px;
  background: var(--sd-bg-elevated);
  color: var(--sd-text);
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: var(--sd-shadow);
  transition: transform 120ms ease;
}

.sd-skip-link:focus {
  transform: translateY(0);
}

.sd-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(h1, h2, h3, strong, p, span, small) {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .sd-button,
  .sd-icon-button,
  .sd-status-pill {
    border: 1px solid ButtonText;
  }
}


/* THEME001 — shared public/admin appearance control */
.sd-theme-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: var(--sd-theme-control-bg);
  color: var(--sd-text-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0.78;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sd-theme-toggle:hover,
.sd-theme-toggle:focus-visible {
  opacity: 1;
  border-color: var(--sd-line-strong);
  background: var(--sd-bg-elevated);
}

.sd-theme-toggle:active {
  transform: scale(0.96);
}

.sd-theme-icon { display: none; }
html[data-theme="dark"] .sd-theme-icon-to-light { display: block; }
html[data-theme="light"] .sd-theme-icon-to-dark { display: block; }

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 80% -10%, rgb(var(--sd-accent-rgb) / 0.07), transparent 25rem),
    radial-gradient(circle at 8% 105%, rgba(78, 116, 206, 0.05), transparent 30rem),
    var(--sd-bg);
}

/* BRANDING002 — uploaded logo support without changing existing brand geometry. */
.sd-brand-mark.has-image {
  overflow: hidden;
  padding: 4px;
  background: rgb(var(--sd-contrast-rgb) / 0.04);
  border: 1px solid var(--sd-line);
}

.sd-brand-mark.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== END public/dramamov/css/base.css ===== */

/* ===== BEGIN public/dramamov/css/consumer-shell.css ===== */
.sd-consumer-shell {
  min-height: 100dvh;
}

.sd-consumer-sidebar {
  display: none;
}

.sd-consumer-workspace {
  min-width: 0;
  min-height: 100dvh;
}

.sd-consumer-mobile-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top) + 9px) 14px 9px;
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-nav-bg);
  backdrop-filter: blur(20px);
}

.sd-consumer-mobile-actions {
  display: flex;
  gap: 7px;
}

.sd-consumer-mobile-actions a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--sd-line);
  border-radius: 11px;
  color: var(--sd-text-soft);
  background: var(--sd-panel);
}

.sd-consumer-content {
  min-width: 0;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.sd-consumer-bottom-nav {
  position: fixed;
  z-index: 50;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
  border: 1px solid var(--sd-line-strong);
  border-radius: 21px;
  background: var(--sd-nav-bg);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(24px);
}

.sd-consumer-bottom-nav a {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 3px;
  border-radius: 16px;
  padding: 7px 2px 6px;
  color: #777782;
  font-size: 9px;
  font-weight: 750;
}

.sd-consumer-bottom-nav a.is-active {
  color: var(--sd-accent);
  background: transparent;
}

.sd-consumer-bottom-nav a:nth-child(3).is-active {
  background: transparent;
}

@media (min-width: 900px) {
  .sd-consumer-shell {
    display: grid;
    grid-template-columns: var(--sd-sidebar) minmax(0, 1fr);
  }

  .sd-consumer-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100dvh;
    flex-direction: column;
    padding: 22px 16px;
    border-right: 1px solid var(--sd-line);
    background: var(--sd-glass-bg);
    backdrop-filter: blur(24px);
  }

  .sd-consumer-nav {
    display: grid;
    gap: 5px;
    margin-top: 34px;
  }

  .sd-consumer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    padding: 11px 12px;
    color: #898993;
    font-size: 13px;
    font-weight: 700;
    transition: color 150ms ease, background 150ms ease;
  }

  .sd-consumer-nav a:hover {
    color: var(--sd-text-soft);
    background: rgb(var(--sd-contrast-rgb) / 0.035);
  }

  .sd-consumer-nav a.is-active {
    color: #fff;
    background: rgb(var(--sd-contrast-rgb) / 0.065);
  }

  .sd-consumer-nav a.is-active svg {
    color: var(--sd-accent);
  }

  .sd-consumer-sidebar-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
  }

  .sd-consumer-sidebar-foot a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-muted-strong);
    font-size: 11px;
    font-weight: 700;
  }

  .sd-consumer-sidebar-foot small {
    color: #5f5f69;
    font-size: 9px;
  }

  .sd-consumer-mobile-header,
  .sd-consumer-bottom-nav {
    display: none;
  }

  .sd-consumer-content {
    padding-bottom: 0;
  }
}

/* UX002: Reels keeps global navigation available without framing the video like a normal page. */
.sd-consumer-shell.is-immersive .sd-consumer-content {
  padding-bottom: 0;
  background: #000;
}

@media (max-width: 899px) {
  .sd-consumer-shell.is-immersive .sd-consumer-mobile-header {
    display: none;
  }

  .sd-consumer-shell.is-immersive .sd-consumer-bottom-nav {
    border-color: rgb(var(--sd-contrast-rgb) / 0.1);
    background: rgba(8, 8, 10, 0.72);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.32);
  }
}

/* UX005 mobile polish */
@media (max-width: 899px) {
  .sd-consumer-mobile-actions a,
  .sd-consumer-bottom-nav a {
    min-width: 44px;
    min-height: 44px;
  }

  .sd-consumer-bottom-nav {
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
  }
}

@media (max-width: 360px) {
  .sd-consumer-bottom-nav {
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding-inline: 2px;
    border-radius: 17px;
  }

  .sd-consumer-bottom-nav a {
    padding-inline: 0;
    font-size: 8px;
  }
}

/* UX006 — minimal, familiar consumer navigation */
@media (max-width: 899px) {
  .sd-consumer-content {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .sd-consumer-bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    gap: 0;
    min-height: 58px;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--sd-line);
    border-radius: 0;
    background: var(--sd-nav-bg);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
  }

  .sd-consumer-bottom-nav a,
  .sd-consumer-bottom-nav a:nth-child(3) {
    min-height: 48px;
    gap: 2px;
    border-radius: 0;
    padding: 5px 2px 3px;
    color: #777780;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
    transition: color 120ms ease, transform 120ms ease;
  }

  .sd-consumer-bottom-nav a svg {
    width: 20px;
    height: 20px;
  }

  .sd-consumer-bottom-nav a.is-active,
  .sd-consumer-bottom-nav a:nth-child(3).is-active {
    color: var(--sd-accent);
    background: transparent;
  }

  .sd-consumer-bottom-nav a:active {
    transform: scale(0.96);
  }

  .sd-consumer-shell.is-immersive .sd-consumer-bottom-nav {
    border-top-color: rgb(var(--sd-contrast-rgb) / 0.09);
    background: linear-gradient(to top, rgba(5, 5, 7, 0.98), rgba(5, 5, 7, 0.84));
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  .sd-consumer-nav {
    gap: 2px;
  }

  .sd-consumer-nav a {
    border-radius: 8px;
    padding: 10px 10px;
    background: transparent;
  }

  .sd-consumer-nav a:hover,
  .sd-consumer-nav a.is-active {
    background: transparent;
  }

  .sd-consumer-nav a.is-active {
    color: var(--sd-text);
  }
}


/* THEME001 — mobile public chrome stays content-first; desktop layout is unchanged. */
.sd-consumer-theme-toggle {
  position: fixed;
  z-index: 58;
  top: 14px;
  right: 18px;
}

@media (max-width: 899px) {
  .sd-consumer-mobile-header {
    display: none;
  }

  .sd-consumer-content {
    padding-top: calc(env(safe-area-inset-top) + 36px);
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .sd-consumer-theme-toggle {
    top: calc(env(safe-area-inset-top) + 6px);
    right: max(10px, env(safe-area-inset-right));
  }

  .sd-consumer-bottom-nav {
    border-top-color: var(--sd-line);
    background: var(--sd-nav-bg);
  }

  .sd-consumer-bottom-nav a,
  .sd-consumer-bottom-nav a:nth-child(3) {
    color: var(--sd-muted);
  }

  .sd-consumer-bottom-nav a.is-active,
  .sd-consumer-bottom-nav a:nth-child(3).is-active {
    color: var(--sd-accent);
  }

  .sd-consumer-shell.is-immersive .sd-consumer-content {
    padding-top: 0;
  }
}

@media (min-width: 900px) {
  .sd-consumer-theme-toggle {
    top: 14px;
    right: 18px;
  }
}

/* v2.2 — public appearance control lives only inside Profile. */
@media (max-width: 899px) {
  .sd-consumer-content {
    padding-top: env(safe-area-inset-top);
  }

  .sd-consumer-shell.is-immersive .sd-consumer-content {
    padding-top: 0;
  }
}


/* v2.4 — richer desktop navigation; mobile five-tab contract stays unchanged. */
@media (min-width: 900px) {
  .sd-consumer-sidebar { overflow: hidden; }
  .sd-consumer-nav { min-height: 0; overflow-y: auto; margin: 24px -5px 0; padding: 0 5px 8px; scrollbar-width: thin; }
  .sd-consumer-nav-group { display: grid; gap: 1px; margin-top: 13px; }
  .sd-consumer-nav-group:first-child { margin-top: 0; }
  .sd-consumer-nav-label { padding: 0 10px 5px; color: var(--sd-muted); font-size: 7px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
  .sd-consumer-nav a { padding-block: 8px; font-size: 11px; }
}


/* DramaMov Stage 11.7 — compact premium mobile navigation.
   Monochrome social-video chrome with a restrained accent halo instead of a
   flat bright active color. */
@media (max-width: 899px) {
  .sd-consumer-content {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .sd-consumer-bottom-nav {
    z-index: 80;
    min-height: 56px;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(8,9,12,.90);
    box-shadow: 0 -10px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(26px) saturate(1.16);
  }

  .sd-consumer-bottom-nav a,
  .sd-consumer-bottom-nav a:nth-child(3) {
    position: relative;
    z-index: 0;
    min-height: 46px;
    gap: 1px;
    padding: 5px 2px 2px;
    border-radius: 12px;
    color: rgba(218,220,230,.46);
    font-size: 7.5px;
    font-weight: 680;
    letter-spacing: -.01em;
    transition: color 150ms ease, transform 150ms ease;
  }

  .sd-consumer-bottom-nav a::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 3px;
    left: 50%;
    width: 38px;
    height: 29px;
    border: 1px solid transparent;
    border-radius: 12px;
    transform: translateX(-50%) scale(.92);
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, rgb(var(--sd-accent-rgb) / .22), rgb(var(--sd-accent-rgb) / .06) 70%, transparent 72%);
    box-shadow: 0 8px 18px rgb(var(--sd-accent-rgb) / .08), inset 0 1px rgb(255 255 255 / .04);
    transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease;
  }

  .sd-consumer-bottom-nav a svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    transition: color 150ms ease, transform 150ms ease, filter 150ms ease;
  }

  .sd-consumer-bottom-nav a.is-active,
  .sd-consumer-bottom-nav a:nth-child(3).is-active {
    color: rgba(255,255,255,.94);
    background: transparent;
  }

  .sd-consumer-bottom-nav a.is-active::before,
  .sd-consumer-bottom-nav a:nth-child(3).is-active::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    border-color: rgb(var(--sd-accent-rgb) / .13);
  }

  .sd-consumer-bottom-nav a.is-active svg,
  .sd-consumer-bottom-nav a:nth-child(3).is-active svg {
    color: rgba(255,255,255,.97);
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgb(var(--sd-accent-rgb) / .22));
  }

  .sd-consumer-bottom-nav a:active {
    transform: scale(.955);
  }

  .sd-consumer-shell.is-immersive .sd-consumer-bottom-nav {
    border-top-color: rgba(255,255,255,.075);
    background: linear-gradient(180deg, rgba(7,8,11,.82), rgba(5,6,8,.96));
    box-shadow: 0 -10px 30px rgba(0,0,0,.24);
  }
}

/* ===== END public/dramamov/css/consumer-shell.css ===== */

/* ===== BEGIN public/dramamov/css/consumer-pages.css ===== */
.consumer-page {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding: 30px clamp(16px, 3.5vw, 48px) 80px;
}

.consumer-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.consumer-page-header h1 {
  margin: 6px 0 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.consumer-page-header p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.6;
}

.consumer-search {
  width: min(520px, 100%);
  display: flex;
  gap: 8px;
}

.consumer-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  outline: none;
  background: var(--sd-surface-1);
  color: #fff;
  padding: 11px 15px;
}

.consumer-search input:focus {
  border-color: rgb(var(--sd-accent-rgb) / 0.5);
}

.consumer-search button {
  border: 0;
  border-radius: 999px;
  background: var(--sd-accent);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 17px;
}

.consumer-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-xl);
  background:
    radial-gradient(circle at 78% 18%, rgb(var(--sd-accent-rgb) / 0.14), transparent 34%),
    linear-gradient(145deg, rgb(var(--sd-contrast-rgb) / 0.04), rgb(var(--sd-contrast-rgb) / 0.01));
  padding: clamp(24px, 5vw, 52px);
}

.consumer-hero-copy > span,
.consumer-section-heading span {
  color: var(--sd-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.consumer-hero-copy h1 {
  max-width: 720px;
  margin: 10px 0 12px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.consumer-hero-copy p {
  color: var(--sd-muted);
  margin: 0 0 24px;
}

.consumer-hero-art {
  justify-self: end;
  width: min(260px, 100%);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 24px;
  background: var(--sd-surface-2);
  box-shadow: var(--sd-shadow);
}

.consumer-hero-art img,
.consumer-drama-poster img,
.recommendation-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consumer-hero-fallback,
.consumer-poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgb(var(--sd-accent-rgb) / 0.35), transparent 32%),
    linear-gradient(150deg, #15151c, #09090c);
  font-size: 72px;
  font-weight: 950;
}

.consumer-section,
.recommendation-section {
  margin-top: 34px;
}

.consumer-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.consumer-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.035em;
}

.consumer-section-heading small {
  color: var(--sd-muted);
  font-size: 10px;
}

.consumer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.consumer-drama-card {
  min-width: 0;
  color: #fff;
}

.consumer-drama-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.5;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-surface-1);
  transition: transform 160ms ease, border-color 160ms ease;
}

.consumer-drama-card:hover .consumer-drama-poster {
  transform: translateY(-3px);
  border-color: rgb(var(--sd-accent-rgb) / 0.36);
}

.consumer-drama-card > strong,
.recommendation-card > strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consumer-drama-card > small,
.recommendation-card > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--sd-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consumer-poster-fallback {
  font-size: 42px;
}

.consumer-poster-fallback span {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--sd-accent);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.consumer-episode-chip {
  position: absolute;
  left: 9px;
  bottom: 9px;
  border: 1px solid rgb(var(--sd-contrast-rgb) / 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 900;
}

.consumer-state,
.consumer-error {
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  padding: 20px;
  color: var(--sd-muted);
  background: rgb(var(--sd-contrast-rgb) / 0.02);
}

.consumer-error {
  margin-bottom: 14px;
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

.recommendation-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 178px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.recommendation-card {
  min-width: 0;
}

.recommendation-poster {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4.5;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-surface-1);
}

.recommendation-poster b {
  font-size: 42px;
}

.recommendation-poster small {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.82);
  color: #fff;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 850;
}

.consumer-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.consumer-profile-grid article,
.consumer-ranking-row {
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-md);
  background: rgb(var(--sd-contrast-rgb) / 0.025);
}

.consumer-profile-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.consumer-profile-grid span {
  color: var(--sd-muted);
  font-size: 10px;
}

.consumer-profile-grid strong {
  font-size: 24px;
}

.consumer-ranking {
  display: grid;
  gap: 8px;
}

.consumer-ranking-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.consumer-ranking-row > b {
  color: var(--sd-accent);
  font-size: 18px;
}

.consumer-ranking-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.consumer-ranking-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consumer-ranking-row span,
.consumer-ranking-row small {
  color: var(--sd-muted);
  font-size: 9px;
}

.ux001-reels-entry {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgb(var(--sd-accent-rgb) / 0.18), transparent 28rem),
    #050507;
}

.ux001-reels-entry section {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  text-align: center;
}

.ux001-reels-entry h1 {
  margin: 12px 0;
  font-size: clamp(44px, 9vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.ux001-reels-entry p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--sd-muted);
  line-height: 1.65;
}

.ux001-reels-entry .sd-button {
  margin-inline: 4px;
}

.ux001-reels-state {
  display: block;
  color: var(--sd-muted);
  font-size: 11px;
}

.sd-consumer-content > .library-shell,
.sd-consumer-content > .detail-shell {
  min-height: 0;
  background: transparent;
}

.sd-consumer-content > .library-shell {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.sd-consumer-content .library-header,
.sd-consumer-content .detail-topbar {
  display: none;
}

@media (max-width: 1100px) {
  .consumer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .consumer-page {
    padding: 22px 14px 44px;
  }

  .consumer-page-header {
    display: grid;
    align-items: start;
  }

  .consumer-search {
    width: 100%;
  }

  .consumer-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 16px;
    border-radius: 20px;
    padding: 22px 18px;
  }

  .consumer-hero-copy h1 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .consumer-hero-art {
    border-radius: 16px;
  }

  .consumer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .consumer-section-heading {
    align-items: flex-start;
  }

  .consumer-section-heading small {
    display: none;
  }

  .recommendation-rail {
    grid-auto-columns: minmax(118px, 38vw);
    gap: 9px;
  }

  .consumer-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .consumer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sd-consumer-content > .detail-state {
  min-height: calc(100dvh - 58px);
  background: transparent;
}

/* UX003 — complete consumer experience */
.consumer-section-heading > a {
  color: var(--sd-text-soft);
  font-size: 10px;
  font-weight: 800;
}

.consumer-rail,
.consumer-continue-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 178px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.consumer-continue-row {
  grid-auto-columns: minmax(210px, 260px);
}

.consumer-continue-card {
  min-width: 0;
  color: #fff;
}

.consumer-continue-card > div {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  background: var(--sd-surface-1);
}

.consumer-continue-card img,
.consumer-ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consumer-continue-card i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--sd-accent);
}

.consumer-continue-card > strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.consumer-continue-card > span {
  color: var(--sd-muted);
  font-size: 9px;
}

.consumer-filter-panel,
.consumer-auth-card {
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-xl);
  background: rgb(var(--sd-contrast-rgb) / .025);
  padding: clamp(16px, 3vw, 24px);
}

.consumer-filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  background: var(--sd-surface-1);
  padding: 0 13px;
}

.consumer-filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 13px 0;
}

.consumer-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.consumer-filter-grid label,
.consumer-auth-form label {
  display: grid;
  gap: 6px;
}

.consumer-filter-grid label > span,
.consumer-auth-form label > span {
  color: var(--sd-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.consumer-filter-grid select,
.consumer-auth-form input {
  width: 100%;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  outline: none;
  background: var(--sd-surface-1);
  color: #fff;
  padding: 11px 12px;
}

.consumer-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.consumer-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.consumer-skeleton-grid i {
  aspect-ratio: 3 / 4.5;
  border-radius: 16px;
  background: linear-gradient(100deg, rgb(var(--sd-contrast-rgb) / .035), rgb(var(--sd-contrast-rgb) / .075), rgb(var(--sd-contrast-rgb) / .035));
  background-size: 200% 100%;
  animation: sd-skeleton 1.4s linear infinite;
}

@keyframes sd-skeleton { to { background-position: -200% 0; } }

.consumer-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.consumer-pagination button,
.consumer-ranking-tabs button,
.detail-range-tabs button {
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: rgb(var(--sd-contrast-rgb) / .025);
  color: var(--sd-muted);
  cursor: pointer;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 800;
}

.consumer-pagination button.is-active,
.consumer-ranking-tabs button.is-active,
.detail-range-tabs button.is-active {
  border-color: rgb(var(--sd-accent-rgb) / .35);
  background: var(--sd-accent-soft);
  color: #fff;
}

.consumer-ranking-tabs,
.detail-range-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.consumer-ranking-row {
  grid-template-columns: 42px 52px minmax(0, 1fr) auto;
}

.consumer-ranking-row.is-top {
  background: linear-gradient(90deg, rgb(var(--sd-accent-rgb) / .08), rgb(var(--sd-contrast-rgb) / .02));
}

.consumer-ranking-cover {
  width: 42px;
  aspect-ratio: 3 / 4.5;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sd-surface-2);
}

.consumer-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-xl);
  background: rgb(var(--sd-contrast-rgb) / .025);
}

.consumer-profile-header h1 { margin: 4px 0 2px; font-size: clamp(28px,4vw,44px); }
.consumer-profile-header p { margin: 0; color: var(--sd-muted); font-size: 11px; }
.consumer-profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--sd-accent-soft); color: #fff; }

.consumer-auth-card {
  width: min(560px, 100%);
  margin: 6vh auto 0;
}
.consumer-auth-heading h2 { margin: 8px 0; font-size: clamp(28px,5vw,46px); letter-spacing: -.04em; }
.consumer-auth-heading p { margin: 0 0 20px; color: var(--sd-muted); line-height: 1.6; }
.consumer-auth-form { display: grid; gap: 12px; }
.consumer-auth-error { border: 1px solid rgba(248,113,113,.25); border-radius: 11px; padding: 10px 12px; color: #fca5a5; font-size: 11px; }
.consumer-auth-switch { width: 100%; margin-top: 12px; border: 0; background: transparent; color: var(--sd-muted); cursor: pointer; font-size: 11px; }

@media (max-width: 1100px) {
  .consumer-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .consumer-skeleton-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .consumer-filter-grid { grid-template-columns: 1fr 1fr; }
  .consumer-skeleton-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .consumer-profile-header { grid-template-columns: auto minmax(0,1fr); }
  .consumer-profile-header > button { grid-column: 1 / -1; justify-self: stretch; }
  .consumer-ranking-row { grid-template-columns: 34px 44px minmax(0, 1fr); }
  .consumer-ranking-row > small { display: none; }
}

.consumer-history-compact {
  display: grid;
  gap: 7px;
}

.consumer-history-compact > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--sd-line);
  border-radius: 13px;
  background: rgb(var(--sd-contrast-rgb) / .02);
  padding: 11px 13px;
  color: #fff;
}

.consumer-history-compact > a div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.consumer-history-compact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.consumer-history-compact span,
.consumer-history-compact small {
  color: var(--sd-muted);
  font-size: 9px;
}

/* UX005 content resilience and interaction polish */
.consumer-drama-card:focus-visible .consumer-drama-poster,
.consumer-continue-card:focus-visible > div,
.consumer-ranking-row:focus-visible {
  border-color: rgb(var(--sd-accent-rgb) / 0.58);
  box-shadow: 0 0 0 3px rgb(var(--sd-accent-rgb) / 0.12);
}

.consumer-drama-card > strong,
.consumer-continue-card > strong,
.consumer-ranking-row strong {
  max-width: 100%;
}

.consumer-hero-copy h1,
.consumer-page-header h1,
.consumer-profile-header h1 {
  text-wrap: balance;
}

.consumer-state,
.consumer-error,
.library-state,
.library-empty,
.detail-state {
  line-height: 1.6;
}

.consumer-filter-grid select,
.consumer-auth-form input,
.consumer-filter-search input {
  min-height: 44px;
}

.consumer-pagination button,
.consumer-ranking-tabs button,
.detail-range-tabs button {
  min-width: 40px;
  min-height: 40px;
}

.consumer-hero-art,
.consumer-drama-poster,
.consumer-continue-card > div,
.consumer-ranking-cover {
  contain: paint;
}

@media (max-width: 720px) {
  .consumer-page-header h1 {
    font-size: clamp(30px, 10vw, 46px);
  }

  .consumer-hero-copy h1 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .consumer-filter-panel,
  .consumer-auth-card,
  .consumer-profile-header {
    border-radius: 18px;
  }

  .consumer-history-compact > a {
    min-height: 58px;
  }
}

@media (max-width: 390px) {
  .consumer-filter-grid {
    grid-template-columns: 1fr;
  }

  .consumer-hero {
    grid-template-columns: minmax(0, 1fr) 96px;
    padding: 18px 15px;
  }

  .consumer-hero-copy h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .consumer-section-heading h2 {
    font-size: 23px;
  }
}

/* UX006 — content-first public catalog polish */
.consumer-page {
  width: min(100%, 1240px);
  padding: 24px clamp(16px, 3vw, 36px) 64px;
}

.consumer-home-page {
  padding-top: 20px;
}

.consumer-compact-page {
  padding-top: 22px;
}

.consumer-page-header-compact {
  margin-bottom: 18px;
}

.consumer-page-header-compact h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.consumer-hero-compact {
  min-height: 300px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: clamp(20px, 4vw, 42px);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  background:
    radial-gradient(circle at 82% 20%, rgb(var(--sd-accent-rgb) / 0.11), transparent 34%),
    linear-gradient(145deg, rgb(var(--sd-contrast-rgb) / 0.035), rgb(var(--sd-contrast-rgb) / 0.008));
}

.consumer-hero-copy > span {
  color: #b5b5bd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.consumer-hero-copy h1 {
  max-width: 660px;
  margin: 8px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
}

.consumer-hero-copy p {
  margin-bottom: 18px;
  font-size: 11px;
}

.consumer-hero-art {
  width: min(220px, 100%);
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.consumer-section,
.recommendation-section {
  margin-top: 28px;
}

.consumer-section-heading {
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
}

.consumer-section-heading h2 {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.consumer-section-heading > a,
.consumer-section-heading small {
  color: #8d8d96;
  font-size: 9px;
  font-weight: 750;
}

.consumer-grid {
  gap: 12px;
}

.consumer-drama-poster,
.recommendation-poster {
  border-radius: 12px;
  border-color: rgb(var(--sd-contrast-rgb) / 0.07);
  background: #101014;
}

.consumer-drama-card:hover .consumer-drama-poster {
  transform: translateY(-2px);
  border-color: rgb(var(--sd-contrast-rgb) / 0.16);
}

.consumer-drama-card > strong,
.recommendation-card > strong {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.3;
}

.consumer-drama-card > small,
.recommendation-card > span {
  margin-top: 2px;
  color: #777780;
  font-size: 8px;
}

.consumer-poster-fallback,
.consumer-hero-fallback {
  background:
    radial-gradient(circle at 50% 26%, rgb(var(--sd-accent-rgb) / 0.2), transparent 31%),
    linear-gradient(150deg, #141419, #09090c);
}

.consumer-poster-fallback strong {
  font-size: 36px;
}

.consumer-episode-chip {
  left: 7px;
  bottom: 7px;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  padding: 4px 6px;
  font-size: 7px;
}

.consumer-rail,
.recommendation-rail {
  grid-auto-columns: minmax(128px, 158px);
  gap: 11px;
  padding-bottom: 4px;
}

.consumer-continue-row {
  grid-auto-columns: minmax(132px, 158px);
  gap: 11px;
}

.consumer-continue-card > div {
  aspect-ratio: 3 / 4.4;
  border-radius: 12px;
  border-color: rgb(var(--sd-contrast-rgb) / 0.07);
}

.consumer-continue-card > strong {
  margin-top: 7px;
  font-size: 10px;
}

.consumer-continue-card > span {
  font-size: 8px;
}

.consumer-filter-panel-compact {
  border-radius: 16px;
  padding: 14px;
}

.consumer-filter-panel-compact .consumer-filter-search {
  border-radius: 11px;
}

.consumer-filter-panel-compact .consumer-filter-grid {
  margin-top: 10px;
}

.consumer-filter-panel-compact .consumer-filter-actions {
  margin-top: 10px;
}

.consumer-browse-results {
  margin-top: 24px;
}

.consumer-ranking-tabs {
  margin-bottom: 14px;
}

.consumer-ranking-tabs button {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 9px;
}

.consumer-ranking-row {
  min-height: 68px;
  grid-template-columns: 34px 44px minmax(0, 1fr);
  gap: 11px;
  border-radius: 12px;
  padding: 9px 11px;
}

.consumer-ranking-row.is-top {
  background: rgb(var(--sd-contrast-rgb) / 0.025);
}

.consumer-ranking-row > b {
  font-size: 14px;
}

.consumer-ranking-cover {
  width: 40px;
  border-radius: 7px;
}

.consumer-ranking-row > div:last-child strong {
  font-size: 11px;
}

.consumer-ranking-row span {
  font-size: 8px;
}

@media (max-width: 720px) {
  .consumer-page {
    padding: 16px 12px 32px;
  }

  .consumer-home-page {
    padding-top: 12px;
  }

  .consumer-page-header-compact {
    margin-bottom: 14px;
  }

  .consumer-page-header-compact h1 {
    font-size: 28px;
  }

  .consumer-hero-compact {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 14px;
    border-radius: 16px;
    padding: 17px 14px;
  }

  .consumer-hero-copy h1 {
    font-size: clamp(29px, 9.5vw, 40px);
    -webkit-line-clamp: 3;
  }

  .consumer-hero-copy p {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .consumer-hero-art {
    border-radius: 12px;
  }

  .consumer-section,
  .recommendation-section {
    margin-top: 24px;
  }

  .consumer-section-heading h2 {
    font-size: 19px;
  }

  .consumer-rail,
  .recommendation-rail {
    grid-auto-columns: minmax(116px, 31vw);
    gap: 9px;
  }

  .consumer-continue-row {
    grid-auto-columns: minmax(120px, 31vw);
    gap: 9px;
  }

  .consumer-grid,
  .consumer-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .consumer-drama-card > strong,
  .recommendation-card > strong {
    font-size: 10px;
  }

  .consumer-filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .consumer-filter-grid select {
    min-height: 40px;
    padding: 9px 10px;
  }

  .consumer-filter-grid label > span {
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .consumer-grid,
  .consumer-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consumer-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .consumer-hero-compact {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

/* v2.2 — compact Browse search/filter surfaces + dense Profile library. */
.consumer-browse-page {
  overflow: visible;
}

.consumer-browse-head {
  position: relative;
  z-index: 35;
}

.consumer-browse-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.consumer-live-search {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  padding: 0 11px;
  background: color-mix(in srgb, var(--sd-bg-elevated) 84%, transparent);
  color: var(--sd-muted-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.consumer-live-search:focus-within {
  border-color: rgb(var(--sd-accent-rgb) / .42);
  box-shadow: 0 0 0 3px rgb(var(--sd-accent-rgb) / .08);
}

.consumer-live-search input {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--sd-text);
  font-size: 13px;
}

.consumer-live-search input::placeholder {
  color: var(--sd-muted);
}

.consumer-search-clear {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sd-muted);
  cursor: pointer;
}

.consumer-filter-trigger {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--sd-bg-elevated) 84%, transparent);
  color: var(--sd-text-soft);
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.consumer-filter-trigger.is-open,
.consumer-filter-trigger:hover {
  border-color: rgb(var(--sd-accent-rgb) / .38);
  color: var(--sd-accent);
}

.consumer-filter-trigger > span {
  font-size: 10px;
  font-weight: 800;
}

.consumer-filter-trigger > b {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sd-accent);
  color: var(--sd-on-accent);
  font-size: 8px;
}

.consumer-search-popover,
.consumer-filter-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  border: 1px solid var(--sd-line-strong);
  background: color-mix(in srgb, var(--sd-bg-elevated) 88%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
}

.consumer-search-popover {
  left: 0;
  width: min(100%, 620px);
  overflow: hidden;
  border-radius: 16px;
}

.consumer-search-popover-head,
.consumer-filter-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.consumer-search-popover-head {
  min-height: 38px;
  padding: 8px 11px 5px;
}

.consumer-search-popover-head > span,
.consumer-filter-popover-head span {
  color: var(--sd-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.consumer-search-popover-head small {
  color: var(--sd-muted);
  font-size: 8px;
}

.consumer-search-suggestions {
  display: grid;
  padding: 2px 6px 6px;
}

.consumer-search-suggestions > a {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  padding: 6px;
  color: var(--sd-text);
}

.consumer-search-suggestions > a:hover,
.consumer-search-suggestions > a:focus-visible {
  background: var(--sd-panel-hover);
}

.consumer-search-suggestion-poster {
  width: 38px;
  aspect-ratio: 3 / 4.5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--sd-surface-2);
}

.consumer-search-suggestion-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consumer-search-suggestion-poster b {
  font-size: 15px;
}

.consumer-search-suggestions > a > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.consumer-search-suggestions strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.consumer-search-suggestions span {
  color: var(--sd-muted);
  font-size: 8px;
}

.consumer-search-suggestions svg {
  color: var(--sd-muted);
}

.consumer-search-popover-state {
  padding: 18px 12px;
  color: var(--sd-muted);
  font-size: 10px;
  text-align: center;
}

.consumer-search-all {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-top: 1px solid var(--sd-line);
  background: transparent;
  color: var(--sd-accent);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.consumer-filter-popover {
  right: 0;
  width: min(340px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: 17px;
  padding: 13px;
}

.consumer-filter-popover-head {
  grid-column: 1 / -1;
  min-height: 34px;
}

.consumer-filter-popover-head > div {
  display: grid;
  gap: 2px;
}

.consumer-filter-popover-head strong {
  color: var(--sd-text);
  font-size: 12px;
}

.consumer-filter-popover-head > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: var(--sd-panel);
  color: var(--sd-muted-strong);
  cursor: pointer;
}

.consumer-filter-popover > label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.consumer-filter-popover > label > span {
  color: var(--sd-muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.consumer-filter-popover select {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  outline: none;
  padding: 0 9px;
  background: var(--sd-surface-1);
  color: var(--sd-text);
  font-size: 10px;
}

.consumer-filter-reset {
  grid-column: 1 / -1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: transparent;
  color: var(--sd-muted-strong);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.consumer-profile-page {
  position: relative;
}

.consumer-profile-toolbar {
  min-height: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 6px;
}

.consumer-profile-toolbar .sd-theme-toggle {
  opacity: .72;
}

.consumer-profile-header-compact {
  padding: 18px;
}

.consumer-profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--sd-line);
  border-radius: 15px;
  background: var(--sd-panel);
}

.consumer-profile-tabs button {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 11px;
  padding: 0 8px;
  background: transparent;
  color: var(--sd-muted-strong);
  cursor: pointer;
}

.consumer-profile-tabs button.is-active {
  background: var(--sd-accent-soft);
  color: var(--sd-accent);
}

.consumer-profile-tabs button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  font-weight: 800;
}

.consumer-profile-tabs button > b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(var(--sd-contrast-rgb) / .06);
  color: currentColor;
  font-size: 8px;
}

.consumer-profile-tab-short {
  display: none;
}

.consumer-profile-library-panel {
  min-height: 150px;
  margin-top: 12px;
}

.consumer-profile-library-panel .consumer-state {
  padding: 16px;
}

.consumer-profile-library-link {
  width: fit-content;
  display: block;
  margin: 10px 0 0 auto;
  color: var(--sd-muted-strong);
  font-size: 8.5px;
  font-weight: 800;
}

.consumer-profile-continue-row {
  grid-auto-columns: minmax(112px, 144px);
}

@media (max-width: 899px) {
  .consumer-browse-page {
    padding-top: 4px;
  }

  .consumer-browse-head {
    position: sticky;
    top: env(safe-area-inset-top);
    margin: 0 -12px;
    padding: 7px 12px 9px;
    background: color-mix(in srgb, var(--sd-bg) 88%, transparent);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
  }

  .consumer-browse-head .consumer-page-header-compact {
    margin-bottom: 8px;
  }

  .consumer-browse-head .consumer-page-header-compact h1 {
    font-size: 25px;
  }

  .consumer-browse-results {
    margin-top: 18px;
  }

  .consumer-filter-trigger {
    width: 44px;
    padding: 0;
  }

  .consumer-filter-trigger > span {
    display: none;
  }

  .consumer-filter-trigger > b {
    position: absolute;
    top: -5px;
    right: -4px;
  }

  .consumer-search-popover {
    right: 0;
    width: 100%;
  }

  .consumer-profile-page {
    padding-top: 6px;
  }

  .consumer-profile-toolbar {
    margin-bottom: 7px;
  }

  .consumer-profile-header-compact {
    gap: 12px;
    padding: 15px;
  }

  .consumer-profile-header-compact h1 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .consumer-profile-tabs {
    margin-top: 10px;
  }

  .consumer-profile-tabs button {
    min-height: 40px;
    gap: 4px;
    padding-inline: 5px;
  }

  .consumer-profile-tabs button > span {
    font-size: 8.5px;
  }

  .consumer-profile-tabs button > b {
    min-width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .consumer-profile-library-panel {
    margin-top: 10px;
  }
}

@media (max-width: 420px) {
  .consumer-profile-tab-long {
    display: none;
  }

  .consumer-profile-tab-short {
    display: inline;
  }

  .consumer-profile-tabs button > span {
    font-size: 8px;
  }

  .consumer-profile-tabs button svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 350px) {
  .consumer-profile-tabs button > b {
    display: none;
  }

  .consumer-profile-tabs button {
    gap: 3px;
    padding-inline: 3px;
  }
}

/* v2.3 — final public density polish: integrated profile theme, poker-stack hero, search-first Browse. */
.consumer-profile-page {
  padding-top: 8px;
}

.consumer-profile-toolbar {
  display: none;
}

.consumer-profile-header-compact {
  position: relative;
  padding: 16px 62px 16px 16px;
}

.consumer-profile-copy {
  min-width: 0;
}

.consumer-profile-theme-toggle {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  opacity: .72;
}

.consumer-profile-theme-toggle:hover,
.consumer-profile-theme-toggle:focus-visible {
  opacity: 1;
}

.consumer-profile-logout {
  margin-top: 28px;
}

.consumer-profile-library-panel {
  min-height: 110px;
  margin-top: 8px;
}

.consumer-profile-continue-row {
  grid-auto-columns: minmax(104px, 128px);
  gap: 8px;
}

.consumer-profile-favorites-grid {
  gap: 8px;
}

.consumer-profile-favorites-grid .consumer-drama-card > strong {
  margin-top: 5px;
  font-size: 9px;
}

.consumer-history-compact {
  gap: 5px;
}

.consumer-history-compact > a {
  min-height: 46px;
  border-radius: 11px;
  padding: 8px 10px;
}

.consumer-profile-library-link {
  margin-top: 7px;
}

.consumer-browse-page {
  padding-top: 10px;
}

.consumer-browse-head {
  margin-top: 0;
}

.consumer-hero-art-stack {
  position: relative;
  justify-self: end;
  width: min(260px, 100%);
  height: 318px;
  isolation: isolate;
}

.consumer-hero-card {
  position: absolute;
  display: block;
  width: 182px;
  aspect-ratio: 3 / 4.5;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: var(--sd-surface-2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .26);
  transform-origin: 50% 82%;
  transition: transform 220ms ease, opacity 220ms ease, border-color 220ms ease;
}

.consumer-hero-card img,
.consumer-hero-card .consumer-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consumer-hero-card.is-back {
  z-index: 1;
  left: 0;
  top: 28px;
  opacity: .78;
  transform: rotate(-6deg) translateY(2px);
  animation: sd-hero-card-back 6.2s ease-in-out infinite;
}

.consumer-hero-card.is-front {
  z-index: 2;
  right: 0;
  top: 0;
  transform: rotate(3.5deg);
  animation: sd-hero-card-front 5.4s ease-in-out infinite;
}

.consumer-hero-art-stack:not(.has-secondary) .consumer-hero-card.is-front {
  right: 18px;
  transform: rotate(1.5deg);
}

.consumer-hero-art-stack:hover .consumer-hero-card.is-back {
  opacity: .9;
  transform: rotate(-8deg) translate(-4px, -2px);
}

.consumer-hero-art-stack:hover .consumer-hero-card.is-front {
  transform: rotate(5deg) translate(4px, -4px);
}

@keyframes sd-hero-card-front {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes sd-hero-card-back {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}

@media (max-width: 720px) {
  .consumer-profile-page {
    padding-top: 2px;
  }

  .consumer-profile-header-compact {
    padding: 13px;
    padding-top: 14px;
  }

  .consumer-profile-copy {
    padding-right: 38px;
  }

  .consumer-profile-theme-toggle {
    top: 9px;
    right: 9px;
  }

  .consumer-profile-logout {
    margin-top: 0;
  }

  .consumer-profile-tabs {
    margin-top: 8px;
  }

  .consumer-profile-library-panel {
    margin-top: 7px;
  }

  .consumer-profile-continue-row {
    grid-auto-columns: minmax(96px, 29vw);
  }

  .consumer-profile-favorites-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .consumer-browse-page {
    padding-top: 0;
  }

  .consumer-browse-head {
    padding-top: max(7px, env(safe-area-inset-top));
  }

  .consumer-hero {
    grid-template-columns: minmax(0, 1fr) 126px;
  }

  .consumer-hero-art-stack {
    width: 126px;
    height: 170px;
  }

  .consumer-hero-card {
    width: 88px;
    border-radius: 11px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
  }

  .consumer-hero-card.is-back {
    left: 0;
    top: 22px;
    transform: rotate(-7deg);
  }

  .consumer-hero-card.is-front {
    right: 0;
    top: 0;
    transform: rotate(4deg);
  }

  .consumer-hero-art-stack:not(.has-secondary) .consumer-hero-card.is-front {
    right: 13px;
  }
}

@media (max-width: 390px) {
  .consumer-profile-favorites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consumer-hero {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .consumer-hero-art-stack {
    width: 112px;
    height: 154px;
  }

  .consumer-hero-card {
    width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consumer-hero-card {
    animation: none !important;
  }
}

/* Stage 4 — mixed Short + Movies cards inside Profile */
.consumer-library-favorite-card { color: var(--sd-text); text-decoration: none; min-width: 0; }
.consumer-library-favorite-card > div { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 9px; background: var(--sd-surface-2); }
.consumer-library-favorite-card img { width: 100%; height: 100%; object-fit: cover; }
.consumer-library-favorite-card b { width: 100%; height: 100%; display: grid; place-items: center; }
.consumer-library-favorite-card strong { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; }
.consumer-library-favorite-card small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sd-muted); font-size: 7.5px; }

/* v6.1 — content-type separated profile library */
.consumer-profile-library-groups {
  display: grid;
  gap: 18px;
}
.consumer-profile-library-group {
  min-width: 0;
}
.consumer-profile-library-group-head {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.consumer-profile-library-group-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -.02em;
}
.consumer-profile-library-group-head a {
  color: var(--sd-muted-strong);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}
.consumer-profile-library-group-head a:hover,
.consumer-profile-library-group-head a:focus-visible {
  color: var(--sd-accent);
}
.consumer-content-kind-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  border: 1px solid rgb(var(--sd-contrast-rgb) / .11);
  border-radius: 999px;
  background: rgb(var(--sd-contrast-rgb) / .04);
  color: var(--sd-text-soft);
  padding: 2px 5px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}
@media (max-width: 620px) {
  .consumer-profile-library-groups { gap: 15px; }
  .consumer-profile-library-group-head h3 { font-size: 12px; }
  .consumer-profile-library-group .consumer-profile-continue-row { grid-auto-columns: minmax(86px, 24vw); }
  .consumer-profile-library-group .consumer-profile-favorites-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* v6.3 — Short Drama metadata filter density: keep the expanded 8-field popover usable on short screens. */
.consumer-filter-popover {
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 520px) {
  .consumer-filter-popover {
    max-height: min(68vh, 520px);
    scrollbar-width: thin;
  }
}

/* AUTH003 — social provider entry without changing the existing profile shell. */
.consumer-social-auth { display: grid; gap: 9px; margin-top: 15px; }
.consumer-social-auth-button {
  min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--sd-line); border-radius: 12px; background: rgb(var(--sd-contrast-rgb) / .025);
  color: var(--sd-text); text-decoration: none; font-size: 11px; font-weight: 780;
}
.consumer-social-auth-button:hover { border-color: rgb(var(--sd-accent-rgb) / .4); background: rgb(var(--sd-accent-rgb) / .06); }
.consumer-social-auth-button > span {
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #202124; font-weight: 900; font-size: 12px;
}
.consumer-auth-divider { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: var(--sd-muted); font-size: 9px; }
.consumer-auth-divider::before, .consumer-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--sd-line); }

/* Stage 4 — account premium status */
.consumer-premium-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 5px; padding: 5px 8px; border: 1px solid var(--sd-line-soft); border-radius: 999px; color: var(--sd-muted-strong); font-size: 10px; font-weight: 760; }
.consumer-premium-badge.is-active { border-color: rgb(var(--sd-accent-rgb) / 0.32); background: rgb(var(--sd-accent-rgb) / 0.09); color: var(--sd-accent); }
.consumer-premium-badge small { color: inherit; opacity: 0.75; font-size: 9px; font-weight: 650; }

/* Stage 6 — Premium checkout */
.premium-public-page{max-width:1080px;margin:0 auto;padding-bottom:110px}.premium-public-hero{padding:30px 0 18px}.premium-public-title{display:flex;align-items:center;gap:10px;margin-top:6px}.premium-public-title h1{margin:0;font-size:clamp(28px,5vw,48px)}.premium-public-hero>p{max-width:680px;color:var(--sd-muted);line-height:1.6}.premium-public-current{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--sd-accent) 32%,transparent);border-radius:999px;background:color-mix(in srgb,var(--sd-accent) 9%,transparent)}.premium-public-provider{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:10px 0 18px;border:1px solid var(--sd-border);border-radius:18px;background:var(--sd-surface)}.premium-public-provider>div{display:flex;align-items:center;gap:10px}.premium-public-provider strong,.premium-public-provider small{display:block}.premium-public-provider small{color:var(--sd-muted);margin-top:2px}.premium-public-provider select{min-width:180px}.premium-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.premium-public-card{padding:18px;border:1px solid var(--sd-border);border-radius:20px;background:var(--sd-surface);display:flex;flex-direction:column;gap:13px}.premium-public-card-head{display:flex;align-items:center;gap:10px}.premium-public-card-head strong,.premium-public-card-head span{display:block}.premium-public-card-head span{font-size:12px;color:var(--sd-muted);margin-top:2px}.premium-public-card>p{margin:0;color:var(--sd-muted);line-height:1.5;min-height:44px}.premium-public-price{font-size:24px;font-weight:800}.premium-public-benefits{display:flex;flex-direction:column;gap:7px;font-size:13px}.premium-public-benefits span{display:flex;align-items:center;gap:7px}.premium-public-card .sd-button{margin-top:auto;justify-content:center}.premium-public-login{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--sd-border);border-radius:20px;background:var(--sd-surface)}.premium-public-login div{flex:1}.premium-public-login p{margin:3px 0 0;color:var(--sd-muted)}.consumer-premium-manage-link{display:inline-block;margin-top:7px;font-size:12px;color:var(--sd-accent);font-weight:700}.premium-payment-page{min-height:70vh;display:grid;place-items:center}.premium-payment-card{width:min(560px,100%);padding:26px;border:1px solid var(--sd-border);border-radius:24px;background:var(--sd-surface);text-align:center}.premium-payment-card h1{margin:12px 0 6px}.premium-payment-card>p{color:var(--sd-muted);line-height:1.55}.premium-payment-card.is-success>svg{color:#35b56f}.premium-payment-card.is-error>svg{color:#e06565}.premium-payment-card.is-pending>svg{color:var(--sd-accent)}.premium-payment-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:16px 0}.premium-payment-meta span{font-size:11px;padding:5px 8px;border:1px solid var(--sd-border);border-radius:999px;color:var(--sd-muted)}.premium-payment-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px}@media(max-width:640px){.premium-public-provider{align-items:stretch;flex-direction:column}.premium-public-provider select{width:100%}.premium-public-login{align-items:flex-start;flex-wrap:wrap}.premium-public-login .sd-button{width:100%;justify-content:center}}

/* ===== END public/dramamov/css/consumer-pages.css ===== */

/* ===== BEGIN public/dramamov/css/library.css ===== */
.library-shell {
  min-height: 100dvh;
  padding: 0 clamp(16px, 4vw, 58px) 70px;
  background: radial-gradient(circle at 75% 0%, rgb(var(--sd-accent-rgb) / 0.09), transparent 30%), #07070a;
  color: #f6f6f7;
}
.library-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(var(--sd-contrast-rgb) / .07); }
.library-header a { color: #9696a0; text-decoration: none; font-size: 11px; font-weight: 800; }
.library-header strong, .library-title span, .library-section-title span { color: var(--sd-accent); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.library-title { padding: 42px 0 32px; }
.library-title h1 { margin: 4px 0; font-size: clamp(46px, 7vw, 84px); letter-spacing: -.05em; }
.library-title p { max-width: 560px; color: #8d8d98; }
.library-section { margin-top: 34px; }
.library-section-title h2 { margin: 4px 0 15px; font-size: 26px; }
.library-state, .library-empty { border: 1px solid rgb(var(--sd-contrast-rgb) / .07); border-radius: 15px; background: rgb(var(--sd-contrast-rgb) / .025); color: #8d8d98; padding: 18px; }
.library-state { display: grid; gap: 7px; }
.continue-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 11px; }
.continue-grid > a { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 12px; min-width: 0; border: 1px solid rgb(var(--sd-contrast-rgb) / .07); border-radius: 15px; background: rgb(var(--sd-contrast-rgb) / .025); color: #fff; padding: 9px; text-decoration: none; }
.continue-poster, .favorite-grid a > div { overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 50% 30%, rgb(var(--sd-accent-rgb) / .25), transparent 34%), #141419; }
.continue-poster { aspect-ratio: 3 / 4.5; }
.continue-poster img, .favorite-grid img { width: 100%; height: 100%; object-fit: cover; }
.continue-poster b, .favorite-grid b { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; }
.continue-copy { min-width: 0; align-self: center; display: grid; gap: 5px; }
.continue-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.continue-copy span, .continue-copy small { color: #858590; font-size: 9px; }
.continue-track { height: 3px; overflow: hidden; border-radius: 999px; background: rgb(var(--sd-contrast-rgb) / .08); }
.continue-track i { display: block; height: 100%; border-radius: inherit; background: var(--sd-accent); }
.favorite-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; }
.favorite-grid a { color: #fff; text-decoration: none; }
.favorite-grid a > div { aspect-ratio: 3 / 4.5; }
.favorite-grid a > strong { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.history-list { display: grid; gap: 7px; }
.history-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgb(var(--sd-contrast-rgb) / .06); border-radius: 12px; background: rgb(var(--sd-contrast-rgb) / .02); color: #fff; padding: 12px 14px; text-decoration: none; }
.history-list a > div { min-width: 0; display: grid; gap: 3px; }
.history-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-list span, .history-list small { color: #7e7e89; font-size: 9px; }
@media (max-width: 620px) { .library-shell { padding: 0 14px 40px; } .continue-grid { grid-template-columns: 1fr; } .favorite-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* v2.3 — denser Library/Favorites/History surfaces. */
.library-shell {
  padding-bottom: 54px;
}

.library-title {
  padding: 22px 0 14px;
}

.library-title h1 {
  margin: 3px 0;
  font-size: clamp(36px, 5.5vw, 58px);
}

.library-title p {
  max-width: 500px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.library-section {
  margin-top: 20px;
}

.library-section-title h2 {
  margin: 3px 0 9px;
  font-size: 21px;
}

.continue-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.continue-grid > a {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
  border-radius: 12px;
  padding: 7px;
}

.continue-poster {
  border-radius: 8px;
}

.continue-copy {
  gap: 3px;
}

.continue-copy strong {
  font-size: 11px;
}

.continue-copy span,
.continue-copy small {
  font-size: 8px;
}

.favorite-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
}

.favorite-grid a > div {
  border-radius: 9px;
}

.favorite-grid a > strong {
  margin-top: 5px;
  font-size: 9.5px;
}

.history-list {
  gap: 5px;
}

.history-list a {
  border-radius: 10px;
  padding: 9px 11px;
}

.history-list strong {
  font-size: 11px;
}

.library-state,
.library-empty {
  border-radius: 12px;
  padding: 13px;
}

@media (max-width: 620px) {
  .library-shell {
    padding: 0 12px 34px;
  }

  .library-title {
    padding: 14px 2px 9px;
  }

  .library-title h1 {
    font-size: 36px;
  }

  .library-title p {
    max-width: 360px;
    font-size: 10px;
  }

  .library-section {
    margin-top: 16px;
  }

  .library-section-title h2 {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .continue-grid {
    gap: 7px;
  }

  .continue-grid > a {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 88px;
    padding: 6px;
  }

  .favorite-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .favorite-grid a > strong {
    font-size: 8.5px;
  }
}

@media (max-width: 360px) {
  .favorite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v2.4 — dedicated library routes */
.library-route-shell { max-width: 1180px; margin-inline: auto; padding-top: 0; }
.library-route-title { padding-top: 24px; padding-bottom: 18px; }
.library-route-title h1 { font-size: clamp(34px,4vw,50px); }
.library-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.library-pagination button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--sd-line); border-radius: 10px; background: transparent; color: var(--sd-text-soft); padding: 8px 11px; cursor: pointer; font-size: 9px; font-weight: 800; }
.library-pagination button:disabled { opacity: .35; cursor: default; }
.library-pagination span { color: var(--sd-muted); font-size: 9px; }

/* Stage 4 — unified Short + Movies library */
.continue-poster,
.favorite-grid a > div { position: relative; }
.library-kind-badge {
  position: absolute;
  left: 5px;
  top: 5px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgb(var(--sd-contrast-rgb) / .12);
  border-radius: 999px;
  background: rgb(5 5 8 / .72);
  backdrop-filter: blur(8px);
  color: #f4f4f7;
  padding: 2px 5px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

/* v6.1 — library content-type separation */
.library-type-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: -4px 0 18px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.library-type-tabs::-webkit-scrollbar { display: none; }
.library-type-tabs a {
  flex: 0 0 auto;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: rgb(var(--sd-contrast-rgb) / .025);
  color: var(--sd-muted-strong);
  padding: 7px 10px;
  font-size: 8.5px;
  font-weight: 850;
  text-decoration: none;
}
.library-type-tabs a.is-active {
  border-color: rgb(var(--sd-accent-rgb) / .35);
  background: var(--sd-accent-soft);
  color: var(--sd-accent);
}
.library-group-stack { display: grid; gap: 26px; }
.library-group { min-width: 0; }
.library-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.library-group-head h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.library-group-head a { color: var(--sd-muted-strong); font-size: 8.5px; font-weight: 850; text-decoration: none; }
.library-group-head a:hover { color: var(--sd-accent); }
.library-inline-kind {
  display: inline-flex;
  align-items: center;
  margin-right: 3px;
  border: 1px solid rgb(var(--sd-contrast-rgb) / .12);
  border-radius: 999px;
  background: rgb(var(--sd-contrast-rgb) / .04);
  color: #b9b9c3;
  padding: 2px 5px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}
@media (max-width: 620px) {
  .library-type-tabs { margin-bottom: 14px; }
  .library-group-stack { gap: 21px; }
  .library-group-head h2 { font-size: 17px; }
}

/* v6.8 — episode baru awareness in Library */
.library-new-episode-badge {
  position: absolute; right: 5px; top: 5px; z-index: 2; border: 1px solid rgb(var(--sd-accent-rgb) / .28); border-radius: 999px;
  background: var(--sd-accent); color: #fff; padding: 2px 5px; font-size: 6.5px; font-style: normal; font-weight: 950; line-height: 1.2;
}

/* ===== END public/dramamov/css/library.css ===== */

/* ===== BEGIN public/dramamov/css/drama-detail.css ===== */
.detail-shell,
.detail-state {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 70% 8%, rgb(var(--sd-accent-rgb) / 0.1), transparent 30%),
    #07070a;
  color: #f7f7f8;
}

.detail-shell {
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.detail-topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(var(--sd-contrast-rgb) / 0.07);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.detail-topbar a {
  color: #aaaab4;
  text-decoration: none;
}

.detail-topbar span {
  color: var(--sd-accent);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 720px);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  min-height: 600px;
  padding: 46px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4.7;
  overflow: hidden;
  border: 1px solid rgb(var(--sd-contrast-rgb) / 0.09);
  border-radius: 28px;
  background: #121218;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgb(var(--sd-accent-rgb) / 0.35), transparent 33%),
    linear-gradient(150deg, #17171f, #09090c);
  font-size: 92px;
  font-weight: 950;
}

.detail-kicker,
.detail-section-heading span,
.detail-sources > span {
  color: var(--sd-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.detail-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-meta span {
  border: 1px solid rgb(var(--sd-contrast-rgb) / 0.09);
  border-radius: 999px;
  padding: 6px 9px;
  color: #a0a0aa;
  font-size: 9px;
  font-weight: 800;
}

.detail-copy p {
  max-width: 650px;
  margin: 22px 0 28px;
  color: #9a9aa4;
  line-height: 1.7;
}

.detail-watch {
  display: inline-flex;
  border-radius: 999px;
  background: var(--sd-accent);
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
}

.detail-episodes {
  max-width: 960px;
}

.detail-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}

.detail-section-heading h2 {
  margin: 4px 0 0;
  font-size: 30px;
}

.detail-section-heading small {
  color: #858590;
}

.detail-episode-list {
  display: grid;
  gap: 7px;
}

.detail-episode-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(var(--sd-contrast-rgb) / 0.07);
  border-radius: 14px;
  background: rgb(var(--sd-contrast-rgb) / 0.025);
  color: #fff;
  padding: 13px 15px;
  text-decoration: none;
}

.detail-episode-list a:hover {
  border-color: rgb(var(--sd-accent-rgb) / 0.26);
}

.detail-episode-list a > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.detail-episode-list strong {
  color: var(--sd-accent-hover);
  font-size: 10px;
}

.detail-episode-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.detail-episode-list small {
  color: #7f7f89;
  font-size: 9px;
}

.detail-episode-list b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(var(--sd-accent-rgb) / 0.11);
  color: var(--sd-accent-hover);
  font-size: 9px;
}

.detail-sources {
  max-width: 960px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(var(--sd-contrast-rgb) / 0.07);
}

.detail-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.detail-sources small {
  border-radius: 999px;
  background: #111116;
  color: #92929c;
  padding: 7px 10px;
}

.detail-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.detail-state a {
  color: var(--sd-accent-hover);
}

@media (max-width: 720px) {
  .detail-shell {
    padding: 0 16px 50px;
  }

  .detail-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    min-height: auto;
    align-items: start;
    padding: 28px 0 34px;
  }

  .detail-poster {
    border-radius: 16px;
  }

  .detail-copy h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .detail-copy p {
    font-size: 12px;
  }

  .detail-episode-list a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .detail-episode-list b {
    display: none;
  }
}


.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-favorite { border: 1px solid rgb(var(--sd-contrast-rgb) / .11); border-radius: 999px; background: rgb(var(--sd-contrast-rgb) / .035); color: #d1d1d6; padding: 12px 18px; font-weight: 850; cursor: pointer; }
.detail-favorite.is-favorite { border-color: rgb(var(--sd-accent-rgb) / .28); background: rgb(var(--sd-accent-rgb) / .1); color: var(--sd-accent-hover); }
.detail-favorite.is-auth-required { color: #858590; }

.detail-range-tabs {
  margin: 0 0 14px;
}

/* ===== END public/dramamov/css/drama-detail.css ===== */

/* ===== BEGIN public/dramamov/css/theme.css ===== */
/* THEME001 — one shared theme for public + admin. */

html[data-theme="light"] .sd-brand-copy strong,
html[data-theme="light"] .consumer-drama-card,
html[data-theme="light"] .consumer-continue-card,
html[data-theme="light"] .consumer-history-compact > a,
html[data-theme="light"] .consumer-ranking-row,
html[data-theme="light"] .recommendation-card,
html[data-theme="light"] .continue-grid > a,
html[data-theme="light"] .favorite-grid a,
html[data-theme="light"] .history-list a,
html[data-theme="light"] .detail-shell,
html[data-theme="light"] .detail-state,
html[data-theme="light"] .detail-episode-list a,
html[data-theme="light"] .intel-shell,
html[data-theme="light"] .intel-ranking a,
html[data-theme="light"] .ready-shell,
html[data-theme="light"] .ops-shell {
  color: var(--sd-text);
}

html[data-theme="light"] .consumer-search input,
html[data-theme="light"] .consumer-filter-search input,
html[data-theme="light"] .consumer-filter-grid select,
html[data-theme="light"] .consumer-auth-form input,
html[data-theme="light"] .cf-search input {
  color: var(--sd-text);
  background-color: transparent;
}

html[data-theme="light"] .consumer-search input::placeholder,
html[data-theme="light"] .consumer-filter-search input::placeholder,
html[data-theme="light"] .consumer-auth-form input::placeholder,
html[data-theme="light"] .cf-search input::placeholder {
  color: var(--sd-muted);
}

html[data-theme="light"] .consumer-hero,
html[data-theme="light"] .consumer-hero-compact,
html[data-theme="light"] .consumer-profile-header,
html[data-theme="light"] .consumer-filter-panel,
html[data-theme="light"] .consumer-filter-panel-compact,
html[data-theme="light"] .consumer-auth-card,
html[data-theme="light"] .consumer-ranking-row,
html[data-theme="light"] .consumer-state,
html[data-theme="light"] .consumer-error,
html[data-theme="light"] .library-state,
html[data-theme="light"] .library-empty,
html[data-theme="light"] .continue-grid > a,
html[data-theme="light"] .history-list a,
html[data-theme="light"] .detail-episode-list a,
html[data-theme="light"] .admin-overview-hero,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-source-card,
html[data-theme="light"] .admin-metric-card,
html[data-theme="light"] .admin-provider-card,
html[data-theme="light"] .admin-list-row,
html[data-theme="light"] .admin-stat,
html[data-theme="light"] .intel-health,
html[data-theme="light"] .intel-metric,
html[data-theme="light"] .intel-list article,
html[data-theme="light"] .intel-ranking a,
html[data-theme="light"] .ready-hero,
html[data-theme="light"] .ready-grid article,
html[data-theme="light"] .ops-stats article,
html[data-theme="light"] .current-card,
html[data-theme="light"] .recent-card,
html[data-theme="light"] .phase-row,
html[data-theme="light"] .last-error,
html[data-theme="light"] .cf-card,
html[data-theme="light"] .cf-queue-list article,
html[data-theme="light"] .cf-provider-trigger,
html[data-theme="light"] .cf-mode-tabs,
html[data-theme="light"] .cf-search {
  border-color: var(--sd-line);
  background-color: var(--sd-panel);
}

html[data-theme="light"] .consumer-drama-poster,
html[data-theme="light"] .recommendation-poster,
html[data-theme="light"] .consumer-continue-card > div,
html[data-theme="light"] .consumer-ranking-cover,
html[data-theme="light"] .continue-poster,
html[data-theme="light"] .favorite-grid a > div,
html[data-theme="light"] .detail-poster,
html[data-theme="light"] .cf-poster,
html[data-theme="light"] .cf-detail-poster {
  border-color: var(--sd-line);
  background-color: var(--sd-surface-2);
}

html[data-theme="light"] .consumer-poster-fallback,
html[data-theme="light"] .consumer-hero-fallback,
html[data-theme="light"] .detail-poster-fallback,
html[data-theme="light"] .cf-artwork-fallback {
  color: var(--sd-text);
  background:
    radial-gradient(circle at 50% 28%, rgb(var(--sd-accent-rgb) / 0.16), transparent 34%),
    linear-gradient(150deg, var(--sd-surface-2), var(--sd-bg-elevated));
}

html[data-theme="light"] .consumer-drama-card:hover .consumer-drama-poster {
  border-color: var(--sd-line-strong);
}

html[data-theme="light"] .consumer-section-heading > a,
html[data-theme="light"] .consumer-section-heading small,
html[data-theme="light"] .consumer-drama-card > small,
html[data-theme="light"] .recommendation-card > span,
html[data-theme="light"] .continue-copy span,
html[data-theme="light"] .continue-copy small,
html[data-theme="light"] .consumer-history-compact span,
html[data-theme="light"] .consumer-history-compact small,
html[data-theme="light"] .library-title p,
html[data-theme="light"] .library-header a,
html[data-theme="light"] .history-list span,
html[data-theme="light"] .history-list small,
html[data-theme="light"] .detail-copy p,
html[data-theme="light"] .detail-meta span,
html[data-theme="light"] .detail-section-heading small,
html[data-theme="light"] .detail-episode-list small,
html[data-theme="light"] .detail-sources small,
html[data-theme="light"] .intel-health > span,
html[data-theme="light"] .intel-metric span,
html[data-theme="light"] .intel-list article p,
html[data-theme="light"] .intel-list article small,
html[data-theme="light"] .ready-hero > span,
html[data-theme="light"] .ready-hero > p,
html[data-theme="light"] .ready-grid article span,
html[data-theme="light"] .ready-grid article p,
html[data-theme="light"] .ready-footer {
  color: var(--sd-muted);
}

html[data-theme="light"] .detail-sources small,
html[data-theme="light"] .cf-provider-menu,
html[data-theme="light"] .cf-detail-drawer,
html[data-theme="light"] .sd-admin-drawer {
  background: var(--sd-bg-elevated);
  color: var(--sd-text);
}

html[data-theme="light"] .cf-provider-menu > button:hover,
html[data-theme="light"] .cf-provider-menu > button.is-selected,
html[data-theme="light"] .sd-admin-nav-group a:hover,
html[data-theme="light"] .sd-admin-nav-group a.is-active {
  background: var(--sd-panel-hover);
}

html[data-theme="light"] .cf-mode-tabs button.is-active,
html[data-theme="light"] .consumer-pagination button.is-active,
html[data-theme="light"] .consumer-ranking-tabs button.is-active,
html[data-theme="light"] .detail-range-tabs button.is-active {
  color: var(--sd-accent);
}

html[data-theme="light"] .sd-button:not(.is-primary),
html[data-theme="light"] .sd-icon-button,
html[data-theme="light"] .intel-header a,
html[data-theme="light"] .intel-header button,
html[data-theme="light"] .ready-actions a,
html[data-theme="light"] .ready-actions button,
html[data-theme="light"] .detail-favorite {
  color: var(--sd-text);
  background: var(--sd-panel);
  border-color: var(--sd-line-strong);
}

html[data-theme="light"] .sd-button.is-primary,
html[data-theme="light"] .consumer-search button,
html[data-theme="light"] .detail-watch,
html[data-theme="light"] .start-button {
  color: var(--sd-on-accent);
}

html[data-theme="light"] .sd-consumer-sidebar,
html[data-theme="light"] .sd-admin-sidebar,
html[data-theme="light"] .sd-admin-desktop-topbar,
html[data-theme="light"] .sd-admin-mobile-header {
  border-color: var(--sd-line);
  background: var(--sd-glass-bg);
}

html[data-theme="light"] .sd-consumer-nav a,
html[data-theme="light"] .sd-admin-nav-group a,
html[data-theme="light"] .sd-admin-sidebar-foot a,
html[data-theme="light"] .sd-admin-topbar-links a {
  color: var(--sd-muted-strong);
}

html[data-theme="light"] .sd-consumer-nav a:hover,
html[data-theme="light"] .sd-consumer-nav a.is-active,
html[data-theme="light"] .sd-admin-nav-group a:hover,
html[data-theme="light"] .sd-admin-nav-group a.is-active {
  color: var(--sd-text);
}

html[data-theme="light"] .sd-consumer-bottom-nav {
  background: var(--sd-nav-bg);
  border-top-color: var(--sd-line);
  box-shadow: 0 -10px 30px rgba(29, 43, 68, 0.06);
}

html[data-theme="light"] .sd-consumer-bottom-nav a {
  color: var(--sd-muted);
}

html[data-theme="light"] .sd-consumer-bottom-nav a.is-active {
  color: var(--sd-accent);
}

/* Video surfaces remain dark even if the app chrome is light. */
html[data-theme="light"] .sd-consumer-shell.is-immersive {
  --sd-text: #f8f8fa;
  --sd-text-soft: #d4d4da;
  --sd-muted: #8b8b96;
  --sd-muted-strong: #a7a7b0;
  --sd-contrast-rgb: 255 255 255;
  --sd-line: rgb(255 255 255 / 0.08);
  --sd-line-strong: rgb(255 255 255 / 0.14);
  --sd-nav-bg: rgba(7, 7, 10, 0.94);
}

html[data-theme="light"] .sd-consumer-shell.is-immersive .sd-consumer-bottom-nav a {
  color: #777780;
}

html[data-theme="light"] .sd-consumer-shell.is-immersive .sd-consumer-bottom-nav a.is-active {
  color: #ffffff;
}

@media (max-width: 899px) {
  /* With the duplicated mobile header gone, content starts close to the safe area. */
  .consumer-home-page,
  .consumer-compact-page {
    padding-top: 8px;
  }
}

html[data-theme="light"] .admin-provider-trigger,
html[data-theme="light"] .admin-provider-menu,
html[data-theme="light"] .admin-provider-menu button,
html[data-theme="light"] .cf-provider-menu,
html[data-theme="light"] .cf-detail-drawer {
  color: var(--sd-text);
}

html[data-theme="light"] .admin-provider-trigger,
html[data-theme="light"] .admin-provider-menu {
  background: var(--sd-bg-elevated);
  border-color: var(--sd-line);
}

html[data-theme="light"] .admin-provider-menu button:hover,
html[data-theme="light"] .admin-provider-menu button.is-selected {
  background: var(--sd-panel-hover);
}

html[data-theme="light"] .cf-selection-bar {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgb(var(--sd-accent-rgb) / 0.2);
  box-shadow: 0 12px 34px rgba(29, 43, 68, 0.08);
}

html[data-theme="light"] .ops-shell,
html[data-theme="light"] .intel-shell,
html[data-theme="light"] .ready-shell,
html[data-theme="light"] .library-shell,
html[data-theme="light"] .detail-shell,
html[data-theme="light"] .detail-state {
  background-color: transparent;
}

html[data-theme="light"] .stop-button,
html[data-theme="light"] .admin-provider-trigger,
html[data-theme="light"] .admin-provider-menu {
  color: var(--sd-text);
}

html[data-theme="light"] .stop-button {
  background: var(--sd-panel);
  border-color: var(--sd-line-strong) !important;
}

html[data-theme="light"] .cf-mode-tabs button.is-active {
  background: var(--sd-accent-soft);
}


/* Stage 11.7 premium mobile navigation — light theme companion. */
@media (max-width: 899px) {
  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav {
    border-top-color: rgba(18,22,32,.08);
    background: rgba(249,250,252,.92);
    box-shadow: 0 -10px 32px rgba(28,38,58,.08);
  }

  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a,
  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a:nth-child(3) {
    color: rgba(37,42,54,.46);
  }

  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a.is-active,
  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a:nth-child(3).is-active {
    color: rgba(14,17,24,.94);
  }

  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a.is-active svg,
  html[data-theme="light"] .sd-consumer-shell:not(.is-immersive) .sd-consumer-bottom-nav a:nth-child(3).is-active svg {
    color: rgba(14,17,24,.96);
  }
}

/* ===== END public/dramamov/css/theme.css ===== */

/* ===== BEGIN public/dramamov/css/laravel-ui.css ===== */
/* DramaMov Laravel-only compatibility layer. Keep this small; proven ShortDrama CSS remains canonical. */
.dm-theme-toggle {
  position: fixed;
  z-index: 70;
  top: calc(env(safe-area-inset-top) + 10px);
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: var(--sd-theme-control-bg);
  color: var(--sd-text-soft);
  cursor: pointer;
  backdrop-filter: blur(18px);
}
.dm-theme-toggle svg { width: 17px; height: 17px; }
.sd-brand-mark.has-image { overflow: hidden; background: transparent; }
.sd-brand-mark.has-image img { width: 100%; height: 100%; object-fit: cover; }
.dm-poster-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dm-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 950; }
.dm-stage-note {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin: 18px auto;
  padding: 16px 18px;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-panel);
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.6;
}
.dm-stage-note strong { color: var(--sd-text); }
.dm-stage-note a { color: var(--sd-accent); font-weight: 800; }
.dm-browse-form { position: relative; }
.dm-browse-form select { cursor: pointer; }
.dm-filter-actions { display: flex; gap: 8px; align-items: center; }
.dm-filter-actions .consumer-filter-reset { flex: 1; }
.dm-hidden { display: none !important; }
.dm-pagination-link {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  color: var(--sd-muted-strong);
  font-size: 11px;
  font-weight: 800;
}
.dm-pagination-link.is-active { color: var(--sd-accent); border-color: rgb(var(--sd-accent-rgb) / .35); background: var(--sd-accent-soft); }
.dm-pagination-link.is-disabled { opacity: .35; pointer-events: none; }
.dm-ranking-panel[hidden] { display: none !important; }
.dm-profile-guest { max-width: 680px; margin: 40px auto; }
.dm-profile-guest h1 { margin: 8px 0; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.05em; }
.dm-profile-guest p { color: var(--sd-muted); line-height: 1.65; }
.dm-reels-preview {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px 88px;
  background: #000;
}
.dm-reels-phone {
  position: relative;
  width: min(430px, 100%);
  min-height: min(78dvh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background: #0b0b0d;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.dm-reels-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.dm-reels-phone::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.96), rgba(0,0,0,.08) 58%, rgba(0,0,0,.28)); }
.dm-reels-copy { position:absolute; z-index:2; left:18px; right:70px; bottom:22px; color:#fff; }
.dm-reels-copy span { color:#9abfff; font-size:10px; font-weight:900; letter-spacing:.14em; }
.dm-reels-copy h1 { margin:7px 0; font-size:25px; letter-spacing:-.04em; }
.dm-reels-copy p { margin:0; color:#c6c6cb; font-size:11px; line-height:1.55; }
.dm-reels-copy .sd-button { margin-top:14px; }
.dm-inline-meta { color: var(--sd-muted); font-size: 10px; }
.dm-detail-error { max-width: 760px; margin: 80px auto; }
@media (min-width: 900px) {
  .dm-theme-toggle { top: 18px; right: 22px; }
}

/* ===== END public/dramamov/css/laravel-ui.css ===== */

/* ===== BEGIN public/dramamov/css/auth.css ===== */
/* DramaMov Stage 6 — Laravel web-session/auth compatibility layer. */
.dm-auth-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 13px;padding:4px;border:1px solid var(--sd-line);border-radius:13px;background:rgb(var(--sd-contrast-rgb)/.025)}
.dm-auth-mode-tabs button{min-height:34px;border:0;border-radius:9px;background:transparent;color:var(--sd-muted);font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.dm-auth-mode-tabs button.is-active{background:rgb(var(--sd-accent-rgb)/.12);color:var(--sd-accent)}
.dm-auth-notice{margin:12px 0;padding:10px 12px;border:1px solid rgb(var(--sd-accent-rgb)/.28);border-radius:11px;background:rgb(var(--sd-accent-rgb)/.08);color:var(--sd-accent);font-size:10px;font-weight:700}
.dm-linked-providers{margin-top:6px;color:var(--sd-muted);font-size:9px}
.consumer-profile-header>form{align-self:center}
.dm-auth-admin-form{display:grid;gap:14px}
.dm-auth-clear-form{display:flex;justify-content:flex-end;margin-top:-6px}
.dm-auth-provider-count{padding:5px 8px;border:1px solid var(--sd-line);border-radius:999px;color:var(--sd-muted);font-size:9px;font-weight:800}
@media(max-width:640px){.consumer-profile-header>form{grid-column:1/-1}.consumer-profile-header>form .consumer-profile-logout{width:100%;justify-content:center}}

/* ===== END public/dramamov/css/auth.css ===== */

/* ===== BEGIN public/dramamov/css/ads.css ===== */
.sd-ad-slot{width:100%;margin:14px 0}.sd-ad-slot.is-overlay{position:fixed;z-index:24;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 110px));margin:0;pointer-events:none}.sd-ad-slot.is-overlay .sd-ad-creative{pointer-events:auto}.sd-ad-creative{position:relative;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:color-mix(in srgb,var(--sd-surface,#12141a) 92%,transparent);box-shadow:0 16px 44px rgba(0,0,0,.18);overflow:hidden}.sd-ad-creative>a{display:block;color:inherit;text-decoration:none}.sd-ad-label{position:absolute;z-index:2;top:8px;left:8px;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.68);color:#fff;font-size:10px;letter-spacing:.06em;text-transform:uppercase}.sd-ad-native{min-height:92px;display:flex;align-items:center;gap:12px;padding:12px}.sd-ad-native img{width:104px;height:72px;border-radius:12px;object-fit:cover;background:#16181d}.sd-ad-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.sd-ad-copy strong{font-size:14px;line-height:1.2}.sd-ad-copy span{font-size:12px;line-height:1.35;opacity:.72}.sd-ad-cta{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--sd-accent,#4c8dff);white-space:nowrap}.sd-ad-video-wrap{position:relative;aspect-ratio:16/9;background:#050608}.sd-ad-video-wrap video{width:100%;height:100%;object-fit:cover}.sd-ad-video-wrap .sd-ad-copy{position:absolute;left:12px;right:12px;bottom:12px;padding:28px 10px 9px;border-radius:12px;background:linear-gradient(transparent,rgba(0,0,0,.76));color:#fff}.sd-ad-html{min-height:72px;padding:14px}.sd-ad-creative.is-compact{border-radius:14px}.sd-ad-creative.is-compact .sd-ad-native{min-height:70px;padding:9px}.sd-ad-creative.is-compact .sd-ad-native img{width:76px;height:54px}.sd-ad-gate{display:grid;place-items:center;gap:12px;min-height:min(68vh,720px);padding:20px;border-radius:18px;background:#08090c}.sd-ad-gate>.sd-ad-creative{width:min(760px,100%)}.sd-ad-gate>button{border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}.sd-ad-gate>button:disabled{opacity:.48;cursor:default}.sd-ad-gate-loading{display:grid;place-items:center;min-height:min(68vh,720px);border-radius:18px;background:#08090c;color:rgba(255,255,255,.7)}@media(max-width:720px){.sd-ad-slot.is-overlay{width:calc(100% - 92px);bottom:calc(84px + env(safe-area-inset-bottom))}.sd-ad-native img{width:82px;height:62px}.sd-ad-cta{display:none}}

/* ===== END public/dramamov/css/ads.css ===== */

/* ===== BEGIN public/dramamov/css/stage9.css ===== */
/* DramaMov Stage 9 — remote catalog + operations. All additions are prefixed to stay loose and safe. */
.dm9-movies-page,.dm9-watch-page{width:min(100%,1500px);margin:0 auto;padding:28px clamp(18px,3vw,44px) 56px}.dm9-movies-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.dm9-movies-head h1{margin:5px 0 4px;font-size:clamp(30px,4vw,50px);letter-spacing:-.045em}.dm9-movies-head p{margin:0;color:var(--sd-text-muted,#98a0af)}.dm9-eyebrow,.dm9-section-head span{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--sd-accent)}.dm9-head-actions,.dm9-nextprev,.dm9-pill-row{display:flex;gap:8px;flex-wrap:wrap}.dm9-head-actions a,.dm9-back,.dm9-reset,.dm9-nextprev a{border:1px solid var(--sd-border);border-radius:999px;padding:9px 13px;background:var(--sd-surface);color:inherit;text-decoration:none}.dm9-filterbar{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(130px,1fr)) auto auto;gap:8px;margin:18px 0 24px}.dm9-filterbar select,.dm9-filterbar input,.dm9-filterbar button,.dm9-admin-filter select,.dm9-admin-filter input,.dm9-edit-grid input,.dm9-edit-grid select,.dm9-brand-form input,.dm9-brand-form select,.dm9-brand-form textarea{min-height:42px;border:1px solid var(--sd-border);border-radius:11px;background:var(--sd-surface);color:var(--sd-text);padding:0 11px}.dm9-filterbar button{background:var(--sd-accent);color:white;border-color:transparent;font-weight:800;padding:0 17px}.dm9-search{position:relative}.dm9-search span{position:absolute;left:12px;top:10px}.dm9-search input{width:100%;padding-left:34px}.dm9-notice{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid rgb(var(--sd-accent-rgb)/.28);background:rgb(var(--sd-accent-rgb)/.09);border-radius:16px;padding:14px 16px;margin-bottom:16px}.dm9-notice div{display:grid}.dm9-notice span{color:var(--sd-text-muted);font-size:13px}.dm9-notice button{border:0;background:var(--sd-accent);color:#fff;border-radius:999px;padding:8px 12px;font-weight:700}.dm9-section{margin:32px 0}.dm9-section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:14px}.dm9-section-head h2{margin:3px 0 0;font-size:22px}.dm9-section-head>a{color:var(--sd-accent);text-decoration:none;font-size:13px;font-weight:700}.dm9-card-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.dm9-remote-card{min-width:0;color:inherit;text-decoration:none;display:block}.dm9-remote-poster{position:relative;display:block;aspect-ratio:2/3;border-radius:16px;overflow:hidden;background:linear-gradient(140deg,rgb(var(--sd-accent-rgb)/.22),var(--sd-surface));box-shadow:0 12px 28px rgba(0,0,0,.14)}.dm9-remote-poster img{width:100%;height:100%;object-fit:cover;transition:transform .22s}.dm9-remote-card:hover img{transform:scale(1.025)}.dm9-poster-fallback{width:100%;height:100%;place-items:center;font-size:46px;font-weight:900}.dm9-kind,.dm9-new{position:absolute;top:9px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;background:rgba(0,0,0,.68);color:#fff;backdrop-filter:blur(8px)}.dm9-kind{left:9px}.dm9-new{right:9px;background:var(--sd-accent)}.dm9-remote-copy{display:grid;gap:3px;padding-top:9px}.dm9-remote-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm9-remote-copy small,.dm9-remote-copy em{font-style:normal;color:var(--sd-text-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm9-continue-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,190px);overflow:auto;gap:13px;padding-bottom:5px}.dm9-continue-row a{display:grid;color:inherit;text-decoration:none;gap:5px}.dm9-continue-row a>span{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--sd-surface)}.dm9-continue-row img{width:100%;height:100%;object-fit:cover}.dm9-continue-row small{color:var(--sd-text-muted)}.dm9-pagination,.dm9-admin-pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin:24px 0}.dm9-pagination a,.dm9-admin-pagination a{color:inherit;text-decoration:none;border:1px solid var(--sd-border);border-radius:999px;padding:8px 12px}.dm9-empty{grid-column:1/-1;padding:45px;border:1px dashed var(--sd-border);border-radius:18px;text-align:center;color:var(--sd-text-muted)}
/* horizontal remote player */
.dm9-watch-page{padding-top:14px}.dm9-watch-head{display:flex;gap:16px;align-items:center;padding:10px 0 14px}.dm9-watch-head>a{color:inherit;text-decoration:none}.dm9-watch-head div{display:grid}.dm9-watch-head span{font-size:12px;color:var(--sd-text-muted)}.dm9-player-shell{width:100%;background:#000;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.22)}.dm9-video-stage{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden;outline:none}.dm9-video-stage video{width:100%;height:100%;object-fit:contain;background:#000}.dm9-player-loading,.dm9-player-error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:9px;background:rgba(0,0,0,.62);color:white;z-index:4}.dm9-player-error button{margin:auto;border:0;border-radius:999px;padding:9px 14px}.dm9-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:62px;height:62px;border:0;border-radius:50%;background:rgba(0,0,0,.58);color:#fff;font-size:24px;z-index:3}.dm9-player-controls{position:absolute;z-index:5;left:0;right:0;bottom:0;padding:30px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.88));color:#fff}.dm9-seek{width:100%;accent-color:var(--sd-accent)}.dm9-control-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.dm9-control-row>div{display:flex;gap:7px;align-items:center}.dm9-control-row button,.dm9-control-row select{border:0;border-radius:8px;background:rgba(255,255,255,.13);color:#fff;min-height:32px;padding:0 9px}.dm9-control-row select option{color:#111}.dm9-control-row span{font-size:12px}.dm9-watch-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;margin-top:22px}.dm9-title-panel{border-bottom:1px solid var(--sd-border);padding-bottom:20px}.dm9-title-line{display:flex;justify-content:space-between;gap:20px}.dm9-title-line span{font-size:11px;color:var(--sd-accent);font-weight:800}.dm9-title-line h1{font-size:29px;margin:4px 0 8px}.dm9-title-line p{color:var(--sd-text-muted);line-height:1.65;margin:0;max-width:850px}.dm9-favorite{height:40px;white-space:nowrap;border:1px solid var(--sd-border);border-radius:999px;background:var(--sd-surface);color:inherit;padding:0 14px}.dm9-favorite.is-active{background:rgb(var(--sd-accent-rgb)/.13);border-color:rgb(var(--sd-accent-rgb)/.4);color:var(--sd-accent)}.dm9-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.dm9-meta span{border-radius:999px;background:var(--sd-surface);padding:5px 8px;font-size:11px;color:var(--sd-text-muted)}.dm9-episodes{margin-top:26px}.dm9-episode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.dm9-episode-grid a{position:relative;display:grid;grid-template-columns:32px 1fr auto;gap:7px;align-items:center;color:inherit;text-decoration:none;border:1px solid var(--sd-border);background:var(--sd-surface);border-radius:11px;padding:9px}.dm9-episode-grid a.is-active{border-color:var(--sd-accent);background:rgb(var(--sd-accent-rgb)/.08)}.dm9-episode-grid a>span{font-weight:900;color:var(--sd-accent)}.dm9-episode-grid strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm9-episode-grid em{font-style:normal;font-size:9px;font-weight:900;color:var(--sd-accent)}.dm9-watch-aside{display:grid;align-content:start;gap:18px}.dm9-rec-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dm9-rec-list .dm9-remote-copy strong{font-size:11px}.dm9-rec-list .dm9-remote-copy em{display:none}
/* Stage 9 admin utilities */
.dm9-ops-page{--dm9-gap:14px}.dm9-health-mark{font-size:58px;line-height:1;color:var(--sd-accent)}.dm9-attention-list,.dm9-job-list,.dm9-health-list,.dm9-setting-summary{display:grid;gap:8px}.dm9-attention-list>a,.dm9-health-item{display:flex;justify-content:space-between;gap:12px;color:inherit;text-decoration:none;border:1px solid var(--sd-border);border-radius:12px;padding:12px}.dm9-attention-list p,.dm9-health-item p{margin:3px 0 0;color:var(--sd-text-muted);font-size:12px}.dm9-shortcut-grid{}.admin-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-shortcut-grid>a{display:grid;color:inherit;text-decoration:none;border:1px solid var(--sd-border);background:var(--sd-surface);border-radius:14px;padding:14px}.admin-shortcut-grid p{color:var(--sd-text-muted);font-size:12px}.admin-shortcut-grid span{color:var(--sd-accent);font-size:12px}.dm9-job-list>article{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--sd-border);padding:12px 0}.dm9-job-list article>div:first-child{display:grid;gap:4px}.dm9-job-list small,.dm9-job-list p{color:var(--sd-text-muted);margin:0}.dm9-codebox{display:grid;gap:6px;margin-top:15px}.dm9-codebox code{padding:10px;border-radius:9px;background:var(--sd-bg);border:1px solid var(--sd-border);font-size:12px}.dm9-admin-filter{display:grid;grid-template-columns:2fr repeat(5,1fr) auto auto;gap:7px;margin-bottom:15px}.dm9-remote-admin-list{display:grid;gap:8px}.dm9-remote-admin-row{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:12px;border:1px solid var(--sd-border);border-radius:14px;padding:10px}.dm9-admin-poster{width:55px;aspect-ratio:2/3;border-radius:9px;overflow:hidden;background:var(--sd-bg);display:grid;place-items:center;font-weight:900}.dm9-admin-poster img{width:100%;height:100%;object-fit:cover}.dm9-admin-copy{min-width:0}.dm9-admin-copy>div{display:flex;gap:8px;align-items:center}.dm9-admin-copy small,.dm9-admin-copy p,.dm9-admin-copy em{display:block;margin:3px 0;color:var(--sd-text-muted);font-size:11px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm9-admin-copy em{color:#ef8c8c}.dm9-admin-actions{display:flex;align-items:start;gap:6px;flex-wrap:wrap;justify-content:end}.dm9-admin-details{grid-column:2/-1}.dm9-admin-details summary{cursor:pointer;color:var(--sd-accent);font-size:12px}.dm9-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.dm9-edit-grid label,.dm9-brand-form label{display:grid;gap:5px;font-size:11px}.dm9-span2{grid-column:1/-1}.dm9-check{display:flex!important;align-items:center;gap:7px}.dm9-check input{min-height:auto;width:auto}.dm9-danger{color:#ef7777!important}.dm9-count{min-width:36px;text-align:center;border-radius:999px;background:var(--sd-bg);padding:7px}.dm9-platform-grid,.dm9-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dm9-setting-summary span{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--sd-border);padding-top:8px}.dm9-setting-summary small{color:var(--sd-text-muted)}.dm9-pill-row span{border-radius:999px;background:var(--sd-bg);padding:7px 10px;font-size:11px}.dm9-brand-preview{display:flex;align-items:center;gap:14px}.dm9-brand-mark,.dm9-asset-preview{display:grid;place-items:center;border-radius:13px;background:var(--sd-bg);overflow:hidden}.dm9-brand-mark{width:58px;height:58px;font-size:25px;font-weight:900}.dm9-brand-mark img,.dm9-asset-preview img{width:100%;height:100%;object-fit:contain}.dm9-accent-swatch{margin-left:auto;width:38px;height:38px;border-radius:50%;border:4px solid var(--sd-surface);box-shadow:0 0 0 1px var(--sd-border)}.dm9-asset-grid article{display:grid;gap:10px}.dm9-asset-preview{height:110px}.dm9-asset-grid form{display:flex;gap:7px;align-items:center}.dm9-asset-grid input[type=file]{max-width:220px}.dm9-brand-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.dm9-brand-form label>span{display:flex;justify-content:space-between}.dm9-brand-form label>span small{font-size:9px;color:var(--sd-accent)}.dm9-brand-form textarea{padding:10px;resize:vertical}.dm9-brand-form input[type=checkbox]{width:20px;min-height:20px}.dm9-admin-pagination{margin-bottom:0}
@media(max-width:1180px){.dm9-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dm9-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}.dm9-search{grid-column:span 2}.dm9-admin-filter{grid-template-columns:repeat(3,1fr)}.dm9-admin-filter input{grid-column:span 2}.admin-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dm9-movies-page,.dm9-watch-page{padding:18px 14px 90px}.dm9-movies-head{align-items:start;flex-direction:column}.dm9-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dm9-filterbar{grid-template-columns:1fr 1fr}.dm9-search{grid-column:1/-1}.dm9-watch-grid{grid-template-columns:1fr}.dm9-watch-aside{grid-row:2}.dm9-episode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dm9-control-row{align-items:flex-start}.dm9-control-row>div:last-child{position:absolute;right:10px;bottom:48px;max-width:75%;overflow:auto}.dm9-control-row select{max-width:100px}.dm9-admin-filter,.dm9-brand-form,.dm9-platform-grid,.dm9-asset-grid{grid-template-columns:1fr}.dm9-admin-filter input,.dm9-span2{grid-column:auto}.dm9-remote-admin-row{grid-template-columns:45px 1fr}.dm9-admin-poster{width:45px}.dm9-admin-actions,.dm9-admin-details{grid-column:1/-1;justify-content:start}.admin-shortcut-grid{grid-template-columns:1fr}.dm9-job-list>article{display:grid}}
@media(max-width:520px){.dm9-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dm9-video-stage{aspect-ratio:16/9;border-radius:0}.dm9-player-shell{margin-left:-14px;margin-right:-14px;width:calc(100% + 28px);border-radius:0}.dm9-title-line{display:grid}.dm9-favorite{justify-self:start}.dm9-episode-grid{grid-template-columns:1fr}.dm9-rec-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dm9-import-list{display:grid;gap:9px}.dm9-import-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;border-bottom:1px solid var(--sd-border);padding:13px 0}.dm9-import-main>div{display:flex;align-items:center;gap:8px}.dm9-import-main small,.dm9-import-main p{color:var(--sd-text-muted);font-size:11px;margin:4px 0}.dm9-import-stats{display:grid;gap:3px;font-size:11px;color:var(--sd-text-muted)}.intel-list,.admin-compact-list,.intel-ranking,.admin-runtime-list,.admin-runtime-checks{display:grid;gap:8px}.intel-list article,.admin-runtime-checks article{border:1px solid var(--sd-border);border-radius:12px;padding:12px}.intel-list p,.admin-runtime-checks p{color:var(--sd-text-muted);margin:5px 0 0}.admin-compact-list>div,.admin-runtime-list>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--sd-border);padding:9px 0}.admin-compact-list>div>div{display:grid}.admin-compact-list small{color:var(--sd-text-muted)}.intel-ranking a{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;color:inherit;text-decoration:none;border-bottom:1px solid var(--sd-border);padding:9px 0}.intel-ranking b{color:var(--sd-accent)}.admin-runtime-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page-footnote{margin-top:14px;color:var(--sd-text-muted);font-size:11px}.dm9-foundation p{color:var(--sd-text-muted);max-width:900px}
@media(max-width:800px){.dm9-import-item{grid-template-columns:1fr}.admin-runtime-checks{grid-template-columns:1fr}}

/* ===== END public/dramamov/css/stage9.css ===== */
