:root {
  --bg: #08090b; --surface: #111318; --surface-2: #181b21; --line: rgba(255,255,255,.1);
  --text: #f7f8fa; --muted: #9ca2ad; --soft: #686e78; --red: #ff3447; --green: #56d49b;
  --display: "Manrope", sans-serif; --body: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 280px; min-height: 100vh; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[v-cloak] { display: none !important; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: 76px; padding: 0 clamp(20px,4vw,64px); display: flex; align-items: center; gap: 52px; transition: background .3s, height .3s; background: linear-gradient(180deg,rgba(4,5,7,.85),transparent); }
.site-header.scrolled { height: 64px; background: rgba(8,9,11,.92); box-shadow: 0 1px rgba(255,255,255,.06); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand strong { font: 800 16px/1 var(--display); letter-spacing: .055em; }
.brand strong span { color: var(--red); }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; transform: skew(-5deg); background: linear-gradient(145deg,#ff5060,#cb1527); box-shadow: 0 7px 20px rgba(255,52,71,.24); }
.brand-mark span { display: block; margin-left: 2px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid white; transform: skew(5deg); }
.desktop-nav { display: flex; gap: 30px; font-size: 14px; }
.desktop-nav a { color: #c0c3ca; transition: color .2s; }
.desktop-nav a:hover,.desktop-nav a.active { color: white; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.round-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.round-button:hover { background: rgba(255,255,255,.09); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(140deg,#424a5b,#242831); color: #dce0e8; font-size: 10px; font-weight: 700; }

.hero { --hero-image: none; position: relative; min-height: min(82vh,780px); display: flex; align-items: flex-end; background-image: var(--hero-image), radial-gradient(circle at 75% 30%,#242936 0,transparent 38%), linear-gradient(145deg,#151922,#08090b 70%); background-repeat: no-repeat; background-size: min(54vw,670px) auto, cover, cover; background-position: 78% 42%, center, center; }
.hero::before { content:""; position: absolute; inset: 0; background: linear-gradient(90deg,#08090b 5%,rgba(8,9,11,.88) 30%,rgba(8,9,11,.12) 72%), linear-gradient(0deg,#08090b 0%,transparent 42%); }
.hero-shade { position: absolute; right: 9vw; top: 15%; width: min(44vw,560px); aspect-ratio: 16/10; border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.5); opacity: .18; }
.hero-content { position: relative; z-index: 2; width: min(590px,90%); margin: 0 0 clamp(110px,13vh,145px) clamp(20px,6vw,88px); }
.eyebrow,.kicker { color: #babec7; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow i { width: 19px; height: 3px; border-radius: 9px; background: var(--red); }
.hero h1 { max-width: 630px; margin: 18px 0 16px; font: 800 clamp(42px,6.1vw,84px)/.98 var(--display); letter-spacing: -.065em; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.65); }
.hero-meta { display: flex; align-items: center; gap: 13px; color: #d2d5da; font-size: 13px; font-weight: 600; }
.match { color: var(--green); font-weight: 700; }
.rating { padding: 1px 5px; border: 1px solid #848994; border-radius: 3px; color: #e3e5e9; font-size: 10px; font-weight: 700; }
.hero-content > p { max-width: 500px; margin: 17px 0 25px; color: #c2c5cc; font-size: clamp(14px,1.4vw,17px); line-height: 1.6; text-shadow: 0 2px 10px #000; }
.hero-buttons { display: flex; gap: 11px; }
.button { min-height: 45px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; transition: transform .18s,background .18s,opacity .18s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.button-light { color: #090a0c; background: white; }
.button-light svg { fill: currentColor; stroke: none; }
.button-glass { color: white; background: rgba(80,84,92,.65); backdrop-filter: blur(10px); }
.button-glass:hover { background: rgba(103,107,116,.8); }
.empty-hero h1 { font-size: clamp(40px,5vw,72px); }
.scroll-cue { position: absolute; z-index: 2; right: clamp(20px,4vw,64px); bottom: 65px; display: flex; align-items: center; gap: 10px; color: #858a94; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right; }
.scroll-cue span { display: block; width: 32px; height: 1px; background: #858a94; }

.catalog { position: relative; z-index: 3; min-height: 440px; max-width: 1500px; margin: -62px auto 0; padding: 0 clamp(20px,4vw,64px) 100px; scroll-margin-top: 80px; }
.section-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-heading h2 { margin: 6px 0 0; font: 700 clamp(24px,2.5vw,34px)/1.15 var(--display); letter-spacing: -.035em; }
.kicker { color: var(--red); }
.movie-count { color: var(--soft); font-size: 13px; }
.movie-grid,.skeleton-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(12px,1.4vw,22px); }
.movie-card { min-width: 0; outline: none; cursor: pointer; }
.poster-frame { position: relative; isolation: isolate; aspect-ratio: 2/3; overflow: hidden; border-radius: 10px; background: #181b21; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .28s,box-shadow .28s; }
.movie-card:hover .poster-frame,.movie-card:focus .poster-frame { z-index: 3; transform: translateY(-7px) scale(1.025); box-shadow: 0 20px 45px rgba(0,0,0,.55); }
.poster-frame img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%,rgba(255,52,71,.45),transparent 35%),linear-gradient(145deg,#2a2f3a,#13151a); }
.poster-fallback span { font: 800 clamp(28px,4vw,62px)/1 var(--display); letter-spacing: -.07em; color: rgba(255,255,255,.2); }
.card-overlay { position: absolute; z-index: 2; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; opacity: 0; background: linear-gradient(0deg,rgba(0,0,0,.95),transparent 55%); transition: opacity .24s; }
.movie-card:hover .card-overlay,.movie-card:focus .card-overlay { opacity: 1; }
.card-play { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: #111; background: white; border: 0; cursor: pointer; }
.card-play svg { width: 18px; margin-left: 2px; fill: currentColor; stroke: none; }
.card-duration { font-size: 11px; font-weight: 600; }
.movie-card h3 { margin: 13px 1px 6px; overflow: hidden; color: #e9eaed; font: 700 14px/1.3 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.movie-card > p { margin: 0 1px; display: flex; gap: 8px; color: #727883; font-size: 10px; }
.movie-card > p .match { color: var(--green); }
.skeleton { aspect-ratio: 2/3; border-radius: 10px; background: linear-gradient(110deg,#14171c 25%,#20242b 45%,#14171c 65%); background-size: 250% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position-x: -250%; } }
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 22px; background: var(--surface-2); color: #555c68; }
.empty-icon svg { width: 34px; }
.empty-state h3 { margin: 0 0 8px; color: white; font: 700 20px var(--display); }
.empty-state p { margin: 0; max-width: 410px; padding: 0 18px; font-size: 14px; }
.search-panel { max-width: 560px; margin: 0 0 30px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(23,25,31,.96); box-shadow: 0 14px 50px #000; }
.search-panel svg { flex: none; color: #747a84; }
.search-panel input { width: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: 15px; }
.search-panel button { border: 0; color: #9297a1; background: none; font-size: 22px; cursor: pointer; }

.modal-backdrop,.player-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(1,2,3,.82); backdrop-filter: blur(12px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.details-modal { position: relative; width: min(850px,100%); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #14161b; box-shadow: 0 30px 90px #000; }
.modal-close,.player-close { position: absolute; z-index: 4; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: rgba(10,11,14,.8); font-size: 24px; cursor: pointer; }
.modal-art { --detail-image: none; height: min(46vh,400px); background-image: var(--detail-image),linear-gradient(135deg,#303642,#101217); background-position: center 28%; background-size: cover; }
.modal-art div { width: 100%; height: 100%; background: linear-gradient(0deg,#14161b,transparent 70%); }
.modal-copy { margin-top: -58px; position: relative; padding: 0 clamp(22px,5vw,52px) 42px; }
.modal-copy h2 { margin: 7px 0 12px; font: 800 clamp(28px,5vw,48px)/1.05 var(--display); letter-spacing: -.04em; }
.modal-meta { display: flex; gap: 12px; align-items: center; color: #adb1b8; font-size: 13px; }
.modal-copy .button { margin-top: 9px; }
.player-modal { display: flex; flex-direction: column; justify-content: center; background: #020303; }
.player-close { top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right)); }
.player-heading { width: min(1200px,100%); margin-bottom: 14px; }
.player-heading span { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.player-heading h2 { margin: 4px 0 0; font: 700 clamp(18px,2.5vw,28px) var(--display); }
.video-shell { position: relative; width: min(1200px,100%); max-height: calc(100dvh - 130px); aspect-ratio: 16/9; overflow: hidden; border:1px solid rgba(255,255,255,.07); border-radius: 12px; background: black; box-shadow: 0 28px 86px rgba(0,0,0,.72); }
.video-shell.media-menu-open { overflow: visible; }
.video-shell.player-shell-fullscreen,
.video-shell:fullscreen,
.video-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}
.video-shell.player-shell-fullscreen video,
.video-shell:fullscreen video,
.video-shell:-webkit-full-screen video { border-radius: 0; }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: inherit; color-scheme: dark; cursor: pointer; }
.video-shell video::cue {
  color: #fff;
  background: transparent;
  font-family: "Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  font-size: clamp(22px,2vw,25px);
  font-weight: 600;
  line-height: 1.42;
  text-shadow:
    0 1px 2px rgba(0,0,0,.98),
    0 2px 7px rgba(0,0,0,.9),
    1px 0 1px rgba(0,0,0,.82),
    -1px 0 1px rgba(0,0,0,.82);
}
.video-shell video.subtitles-rtl::cue { direction: rtl; unicode-bidi: plaintext; text-align: center; }
.video-shell.player-shell-fullscreen video::cue,
.video-shell:fullscreen video::cue,
.video-shell:-webkit-full-screen video::cue { font-size: clamp(24px,2.2vw,28px); }
.player-control-surface {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 16px);
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  background: linear-gradient(to top,rgba(0,0,0,.9) 0%,rgba(0,0,0,.58) 46%,rgba(0,0,0,.16) 74%,transparent 100%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease,visibility 0s linear 0s;
}
.video-shell.player-controls-hidden:not(.media-menu-open) .player-control-surface {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease,visibility 0s linear .18s;
}
.video-shell.player-controls-visible .player-control-surface,
.video-shell.media-menu-open .player-control-surface {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.player-control-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.player-control-primary,.player-media-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.player-control-primary { gap: 6px; }
.player-media-controls {
  width: max-content;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 2px;
}
.player-time {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: rgba(255,255,255,.96);
  font: 600 12px/1 "DM Sans",system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.player-duration { color: rgba(255,255,255,.64); font-weight: 500; }
.player-seek {
  --player-played: 0%;
  --player-buffered: 0%;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
}
.player-seek::-webkit-slider-runnable-track {
  width: 100%;
  height: 3.5px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right,var(--cinema-accent,var(--red)) 0 var(--player-played),rgba(255,255,255,.38) var(--player-played) var(--player-buffered),rgba(255,255,255,.18) var(--player-buffered) 100%);
}
.player-seek::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3.25px;
  border: 0;
  border-radius: 50%;
  background: var(--cinema-accent,var(--red));
  box-shadow: 0 1px 5px rgba(0,0,0,.72);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s ease,box-shadow .12s ease;
}
.player-seek:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(229,9,20,.18),0 1px 5px rgba(0,0,0,.72);
}
.player-seek::-moz-range-track { height: 3.5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); }
.player-seek::-moz-range-progress { height: 3.5px; border-radius: 999px; background: var(--cinema-accent,var(--red)); }
.player-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--cinema-accent,var(--red)); box-shadow: 0 1px 5px rgba(0,0,0,.72); }
.player-seek:focus-visible { outline: none; }
.player-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255,112,122,.72),0 1px 5px rgba(0,0,0,.72); }
@media (hover:hover) and (pointer:fine) {
  .player-seek:hover::-webkit-slider-runnable-track { height:5px; }
  .player-seek:hover::-webkit-slider-thumb { width:12px; height:12px; margin-top:-3.5px; }
  .player-seek:hover::-moz-range-track,.player-seek:hover::-moz-range-progress { height:5px; }
  .player-seek:hover::-moz-range-thumb { width:12px; height:12px; }
}
.media-menu { position: relative; min-width: 0; flex: 0 0 auto; }
.media-control-trigger,.player-volume-control,.player-play-control,.player-fullscreen-control {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: #f7f7f8;
  background: transparent;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
  transition: color .16s ease,background .16s ease,opacity .16s ease,transform .16s ease;
}
.media-control-trigger::before,.player-volume-control::before,.player-play-control::before,.player-fullscreen-control::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius:50%;
}
.media-control-trigger[aria-expanded="true"],
.player-fullscreen-control[aria-pressed="true"] {
  background: rgba(255,255,255,.13);
}
.subtitle-menu .media-control-trigger.active { color:var(--cinema-accent,var(--red)); background:rgba(232,61,91,.13); }
.player-volume-control[aria-pressed="true"] { color:rgba(255,255,255,.72); }
.media-control-trigger:active,.player-volume-control:active,.player-play-control:active,.player-fullscreen-control:active { background:rgba(255,255,255,.16); transform:scale(.92); }
@media (hover:hover) and (pointer:fine) {
  .media-control-trigger:hover,.player-volume-control:hover,.player-play-control:hover,.player-fullscreen-control:hover { background:rgba(255,255,255,.1); }
}
.media-control-trigger:focus-visible,
.player-volume-control:focus-visible,
.player-play-control:focus-visible,
.player-fullscreen-control:focus-visible,
.media-menu-item:focus-visible {
  outline: 2px solid rgba(255,112,122,.95);
  outline-offset: 2px;
}
.media-control-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #f4f4f5;
}
.media-control-icon svg,.player-volume-control svg,.player-fullscreen-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.player-play-control svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.media-control-cc {
  width: 22px;
  min-width: 22px;
  height: 16px;
  padding: 1px 3px 0;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .035em;
}
.media-menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(220px,calc(100vw - 32px));
  max-height: min(52dvh,340px);
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  color: #f7f7f8;
  background: rgba(14,15,18,.94);
  box-shadow: 0 20px 55px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  transform-origin: right bottom;
}
.media-menu-title {
  min-height: 38px;
  padding: 6px 9px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.media-menu-title span {
  font: 750 12px var(--display);
  letter-spacing: .015em;
}
.media-menu-title small {
  max-width: 112px;
  overflow: hidden;
  color: #898b92;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-menu-item {
  width: 100%;
  min-height: 44px;
  margin: 3px 0 0;
  padding: 6px 9px;
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  color: #bebfc4;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color .14s ease,background .14s ease,transform .14s ease;
}
.media-menu-item:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
}
.media-menu-item:active { transform: scale(.985); }
.media-menu-item.selected {
  color: #fff;
  background: linear-gradient(90deg,rgba(255,52,71,.16),rgba(255,255,255,.055));
}
.media-menu-item .media-menu-copy {
  gap: 3px;
  align-items: flex-start;
}
.media-menu-item .media-menu-copy strong {
  max-width: 158px;
  color: inherit;
  font-size: 12px;
}
.media-menu-item .media-menu-copy small {
  color: #85878e;
  font-size: 9px;
  font-weight: 600;
}
.media-menu-item.selected .media-menu-copy small { color: #b7b8bd; }
.media-menu-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #ff6570;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .14s ease,transform .14s ease;
}
.media-menu-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.media-menu-item.selected .media-menu-check {
  opacity: 1;
  transform: scale(1);
}
.media-menu-copy[dir="auto"] { unicode-bidi: plaintext; }
.media-menu-pop-enter-active,.media-menu-pop-leave-active {
  transition: opacity .16s ease,transform .16s ease;
}
.media-menu-pop-enter-from,.media-menu-pop-leave-to {
  opacity: 0;
  transform: translateY(6px) scale(.975);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .media-control-trigger { background: rgba(18,19,23,.97); }
  .media-menu-panel { background: rgba(14,15,18,.985); }
}
.video-loading,.video-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.78); text-align: center; }
.video-loading span,.mini-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-loading p,.video-error p { color: var(--muted); }
.video-error strong { font: 700 21px var(--display); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: -80px; transform: translateX(-50%); padding: 12px 18px; border: 1px solid rgba(255,80,90,.35); border-radius: 9px; background: #35171b; transition: bottom .3s; }
.toast.show { bottom: 24px; }
footer { min-height: 170px; padding: 50px clamp(20px,4vw,64px); display: flex; align-items: flex-start; justify-content: space-between; color: var(--soft); border-top: 1px solid rgba(255,255,255,.05); }
footer p { margin: 4px 0; font-size: 12px; }

/* Admin */
.admin-body { background: radial-gradient(circle at 8% 0,rgba(255,52,71,.08),transparent 25%),var(--bg); }
.login-page { min-height: 100dvh; padding: 30px; display: grid; place-items: center; }
.login-page > .brand { position: absolute; top: 30px; left: 34px; }
.login-card { width: min(430px,100%); padding: 42px; border: 1px solid var(--line); border-radius: 18px; background: rgba(18,20,25,.9); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.admin-chip { display: inline-block; padding: 5px 9px; border-radius: 6px; color: #ff7e89; background: rgba(255,52,71,.1); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-card h1 { margin: 17px 0 6px; font: 800 34px var(--display); letter-spacing: -.045em; }
.login-card > p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.login-card label,.publish-card label,.edit-panel label { display: block; margin-top: 17px; color: #c2c6cd; font-size: 12px; font-weight: 600; }
.login-card input,.publish-card input,.publish-card select,.publish-card textarea,.edit-panel input,.edit-panel select,.edit-panel textarea { width: 100%; min-height: 48px; margin-top: 8px; padding: 0 14px; outline: none; border: 1px solid var(--line); border-radius: 8px; color: white; background: #0d0f12; transition: border .2s,box-shadow .2s; }
.publish-card textarea,.edit-panel textarea { min-height: 105px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.publish-card select,.edit-panel select { appearance: auto; }
.login-card input:focus,.publish-card input:focus,.publish-card select:focus,.publish-card textarea:focus,.edit-panel input:focus,.edit-panel select:focus,.edit-panel textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,52,71,.1); }
.button-accent { color: white; background: linear-gradient(135deg,#ff4052,#dd2032); box-shadow: 0 8px 24px rgba(255,52,71,.18); }
.full-button { width: 100%; margin-top: 24px; }
.back-link { display: block; margin-top: 22px; color: var(--muted); text-align: center; font-size: 12px; }
.form-error,.form-success { margin: 16px 0 0 !important; padding: 11px 13px; border-radius: 7px; font-size: 12px !important; }
.form-error { color: #ff8791 !important; background: rgba(255,52,71,.1); }
.form-success { color: #72dfac; background: rgba(86,212,155,.1); }
.page-feedback { margin: -18px 0 22px !important; }
.admin-header { height: 72px; padding: 0 clamp(20px,4vw,64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.85); backdrop-filter: blur(14px); }
.admin-header > div { display: flex; align-items: center; gap: 20px; }
.admin-user { color: #d7d9de; font-size: 13px; font-weight: 600; }
.view-site,.text-button { color: var(--muted); font-size: 12px; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; }
.view-site:hover,.text-button:hover { color: white; }
.admin-main { width: min(1100px,100%); margin: 0 auto; padding: 64px 24px 100px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 37px; }
.admin-title h1 { margin: 7px 0 7px; font: 800 clamp(34px,5vw,50px)/1 var(--display); letter-spacing: -.05em; }
.admin-title p { margin: 0; color: var(--muted); font-size: 14px; }
.library-stat { padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; background: var(--surface); }
.library-stat strong { margin-right: 5px; color: white; font-size: 18px; }
.publish-card { padding: clamp(22px,4vw,38px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.publish-heading { display: flex; align-items: center; gap: 14px; }
.publish-heading h2 { margin: 0 0 4px; font: 700 21px var(--display); }
.publish-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.publish-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color: #ff7885; background: rgba(255,52,71,.1); }
.url-field > div { position: relative; }
.url-field svg { position: absolute; z-index: 2; left: 14px; top: 21px; width: 17px; color: #6d737e; }
.url-field input { padding-left: 43px; }
.publish-card label span { display: block; }
.publish-card label small { color: var(--soft); font-size: 10px; font-weight: 400; }
.optional-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.genre-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.genre-fieldset legend { margin-bottom: 11px; color: #c2c6cd; font-size: 12px; font-weight: 600; }
.genre-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.publish-card .genre-option,.edit-panel .genre-option { position: relative; margin: 0; cursor: pointer; }
.genre-option input { position: absolute; opacity: 0; pointer-events: none; }
.genre-option span { min-height: 32px; padding: 0 11px; display: inline-flex !important; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #0d0f12; font-size: 11px; transition: color .2s,border-color .2s,background .2s; }
.genre-option input:checked + span { border-color: rgba(255,52,71,.48); color: #fff; background: rgba(255,52,71,.13); }
.genre-option input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.publish-card .toggle-field,.edit-panel .toggle-field { margin-top: 21px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle-field > input { width: 19px; min-height: 19px; height: 19px; margin: 0; accent-color: var(--red); }
.toggle-field > span { display: flex !important; flex-direction: column; gap: 2px; }
.toggle-field strong { color: #e9ebef; }
.toggle-field small { color: var(--soft); font-weight: 400; }
.publish-button { margin-top: 22px; min-width: 210px; }
.mini-spinner { width: 17px; height: 17px; border-width: 2px; border-top-color: white; }
.admin-list-section { margin-top: 55px; }
.admin-movie-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-movie { min-height: 93px; padding: 13px 17px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.admin-movie:last-child { border-bottom: 0; }
.admin-thumb { width: 48px; aspect-ratio: 2/3; flex: none; overflow: hidden; display: grid; place-items: center; border-radius: 5px; color: #737a86; background: linear-gradient(145deg,#343a46,#1b1e25); font: 700 12px var(--display); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-movie-copy { min-width: 0; flex: 1; }
.admin-title-line { display: flex; align-items: center; gap: 8px; }
.admin-movie-copy h3 { margin: 0 0 6px; overflow: hidden; font: 700 14px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.admin-movie-copy p { margin: 0; color: var(--soft); font-size: 11px; }
.admin-movie-copy .admin-genres { margin-top: 5px; overflow: hidden; color: #858c98; text-overflow: ellipsis; white-space: nowrap; }
.content-type-badge { color: #d8dbe1; font-weight: 600; }
.featured-badge { margin: -5px 0 2px; padding: 3px 7px; flex: none; border-radius: 999px; color: #ffd573; background: rgba(255,190,46,.11); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.admin-row-actions { display: flex; gap: 8px; }
.delete-button,.edit-button { min-width: 82px; height: 36px; padding: 0 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.edit-button:hover { color: white; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.delete-button:hover { color: #ff7380; border-color: rgba(255,52,71,.3); background: rgba(255,52,71,.06); }
.delete-button svg,.edit-button svg { width: 14px; }
.delete-confirm { display: flex; gap: 7px; }
.delete-confirm button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.delete-confirm button:first-child { border-color: rgba(255,52,71,.35); color: #ff7b87; background: rgba(255,52,71,.08); }
.admin-empty { padding: 50px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

.admin-modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(2,3,5,.86); backdrop-filter: blur(10px); }
.edit-panel { width: min(720px,100%); max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: #12151b; box-shadow: 0 35px 100px #000; }
.edit-panel > header { padding: 25px 28px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.edit-panel > header h2 { margin: 10px 0 0; font: 700 23px var(--display); }
.edit-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: white; background: #1b1f27; font-size: 23px; cursor: pointer; }
.edit-scroll { overflow-y: auto; padding: 3px 28px 28px; }
.edit-panel > footer { min-height: 76px; padding: 14px 28px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.edit-cancel { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.admin-modal-enter-active,.admin-modal-leave-active { transition: opacity .18s; }
.admin-modal-enter-from,.admin-modal-leave-to { opacity: 0; }

@media (max-width: 1100px) { .movie-grid,.skeleton-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 768px) {
  .video-shell video::cue,
  .video-shell.player-shell-fullscreen video::cue,
  .video-shell:fullscreen video::cue,
  .video-shell:-webkit-full-screen video::cue { font-size: clamp(20px,2.8vw,22px); }
  .player-control-surface { padding: 36px calc(env(safe-area-inset-right) + 10px) calc(env(safe-area-inset-bottom) + 7px) calc(env(safe-area-inset-left) + 10px); }
  .player-control-row { gap: 5px; }
  .player-control-primary { gap: 5px; }
  .player-media-controls { gap: 0; }
  .player-time { font-size: 11.5px; }
  .media-control-trigger,.player-volume-control,.player-play-control,.player-fullscreen-control {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .media-control-trigger::before,.player-volume-control::before,.player-play-control::before,.player-fullscreen-control::before { inset:0; }
  .media-control-icon { width: 20px; height: 20px; }
  .media-control-icon svg,.player-volume-control svg,.player-fullscreen-control svg { width: 20px; height: 20px; }
  .player-play-control svg { width:22px; height:22px; }
  .media-control-cc { width: 21px; min-width: 21px; height: 15px; font-size: 7.5px; }
  .media-menu-panel {
    bottom: calc(100% + 8px);
    width: min(200px,calc(100vw - 24px));
    max-height: min(44dvh,264px);
    padding: 6px;
    border-radius: 11px;
  }
  .media-menu-title { min-height: 32px; padding: 4px 7px 6px; gap: 8px; }
  .media-menu-title span { font-size: 12px; }
  .media-menu-title small { max-width: 90px; font-size: 9.5px; }
  .media-menu-item {
    min-height: 40px;
    margin-top: 2px;
    padding: 4px 7px;
    grid-template-columns: 17px minmax(0,1fr);
    gap: 6px;
    border-radius: 8px;
  }
  .media-menu-item .media-menu-copy { gap: 2px; }
  .media-menu-item .media-menu-copy strong { max-width: 148px; font-size: 13px; }
  .media-menu-item .media-menu-copy small { font-size: 10px; }
  .media-menu-check { width: 16px; height: 16px; }
  .media-menu-check svg { width: 14px; height: 14px; }
}
@media (max-width: 700px) {
  .site-header { height: 62px; padding: 0 17px; } .desktop-nav { display: none; } .header-actions { gap: 8px; }
  .hero { min-height: 72svh; max-height: 680px; background-size: auto 68%,cover,cover; background-position: 68% 25%,center,center; }
  .hero::before { background: linear-gradient(90deg,rgba(8,9,11,.82),rgba(8,9,11,.08)),linear-gradient(0deg,#08090b 2%,rgba(8,9,11,.15) 65%); }
  .hero-content { width: calc(100% - 36px); margin: 0 18px 85px; }
  .hero h1 { max-width: 92%; margin-top: 12px; font-size: clamp(37px,12vw,55px); }
  .hero-content > p { max-width: 90%; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
  .hero-buttons .button { min-height: 43px; padding: 0 17px; font-size: 13px; } .scroll-cue { display: none; }
  .catalog { margin-top: -35px; padding: 0 17px 70px; }
  .movie-grid,.skeleton-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 9px; }
  .poster-frame { border-radius: 7px; aspect-ratio: 2/3; }
  .movie-card h3 { margin-top: 8px; font-size: 11px; } .movie-card > p { gap: 5px; font-size: 8px; }
  .card-overlay { opacity: 1; padding: 8px; background: linear-gradient(0deg,rgba(0,0,0,.72),transparent 40%); }
  .card-play { width: 32px; height: 32px; } .card-duration { display: none; }
  .section-heading { margin-bottom: 17px; } .section-heading h2 { font-size: 23px; }
  .modal-backdrop { padding: 0; align-items: end; } .details-modal { max-height: 88dvh; border-radius: 18px 18px 0 0; }
  .modal-art { height: 42dvh; background-position: center 25%; } .modal-copy { padding-bottom: max(30px,env(safe-area-inset-bottom)); }
  .player-modal { padding: 8px; } .player-heading { padding-right: 48px; }
  .video-shell { width: 100%; max-height: none; aspect-ratio: 16/9; border-radius: 9px; }
  footer { min-height: 140px; flex-direction: column; gap: 15px; }
  .login-page { padding: 18px; } .login-page > .brand { top: 22px; left: 20px; } .login-card { padding: 28px 22px; }
  .admin-header { height: 62px; } .admin-user,.view-site { display: none; }
  .admin-main { padding: 42px 17px 70px; } .admin-title { align-items: flex-start; gap: 20px; } .library-stat { display: none; }
  .optional-fields { grid-template-columns: 1fr; gap: 0; } .publish-button { width: 100%; }
  .admin-movie { align-items: flex-start; flex-wrap: wrap; } .admin-movie-copy { padding-top: 5px; }
  .admin-row-actions,.delete-confirm { width: 100%; padding-left: 64px; }
  .delete-button,.edit-button { flex: 1; }
  .admin-modal-backdrop { padding: 0; align-items: end; } .edit-panel { max-height: 94dvh; border-radius: 17px 17px 0 0; }
  .edit-panel > header,.edit-scroll,.edit-panel > footer { padding-inline: 20px; }
}
@media (max-width: 480px) {
  .video-shell video::cue,
  .video-shell.player-shell-fullscreen video::cue,
  .video-shell:fullscreen video::cue,
  .video-shell:-webkit-full-screen video::cue { font-size: clamp(18px,4.8vw,20px); line-height: 1.38; }
  .player-control-surface { padding: 30px calc(env(safe-area-inset-right) + 6px) calc(env(safe-area-inset-bottom) + 4px) calc(env(safe-area-inset-left) + 6px); }
  .player-control-row { gap: 3px; }
  .player-control-primary { gap: 4px; }
  .player-media-controls { gap: 0; }
  .player-time { font-size: 10.5px; gap: 3px; }
  .player-seek { height: 26px; margin-bottom: 0; }
  .player-seek::-webkit-slider-runnable-track { height: 3.5px; }
  .player-seek::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -3.75px; }
  .player-seek:active::-webkit-slider-thumb { transform: scale(1.15); }
  .player-seek::-moz-range-track,.player-seek::-moz-range-progress { height: 3.5px; }
  .player-seek::-moz-range-thumb { width: 11px; height: 11px; }
  .media-control-trigger,.player-volume-control,.player-play-control,.player-fullscreen-control {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .media-control-trigger::before,.player-volume-control::before,.player-play-control::before,.player-fullscreen-control::before { inset:0; }
  .media-control-icon { width: 20px; height: 20px; }
  .media-control-icon svg,.player-volume-control svg,.player-fullscreen-control svg { width: 20px; height: 20px; }
  .player-play-control svg { width:22px; height:22px; }
  .media-control-cc { width: 21px; min-width: 21px; height: 15px; font-size: 7.5px; }
  .media-menu-panel {
    bottom: calc(100% + 7px);
    width: min(190px,calc(100vw - 20px));
    max-height: min(42dvh,224px);
    padding: 5px;
    border-radius: 10px;
  }
  .media-menu-title { min-height: 28px; padding: 2px 6px 4px; }
  .media-menu-title span { font-size: 12px; }
  .media-menu-item {
    min-height: 36px;
    margin-top: 1px;
    padding: 3px 6px;
    grid-template-columns: 16px minmax(0,1fr);
    gap: 5px;
  }
  .quality-menu .media-menu-item .media-menu-copy {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
  }
  .media-menu-item .media-menu-copy strong { max-width: 126px; font-size: 12.5px; }
  .media-menu-item .media-menu-copy small { flex: none; font-size: 9.5px; }
}
@media (max-width: 390px) {
  .brand strong { font-size: 14px; } .brand-mark { width: 26px; height: 26px; }
  .media-menu-panel { width: min(184px,calc(100vw - 16px)); }
  .movie-grid,.skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 10px; }
  .hero { min-height: 78svh; } .hero h1 { font-size: 39px; }
  .hero-buttons { gap: 8px; } .hero-buttons .button { padding: 0 13px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 105svh; } .hero-content { margin-bottom: 50px; } .hero-content > p { display: none; }
  .video-shell { width: min(88vw,900px); max-height: 76dvh; } .player-heading { display: none; }
  .video-shell.player-shell-fullscreen video::cue,
  .video-shell:fullscreen video::cue,
  .video-shell:-webkit-full-screen video::cue { font-size: clamp(19px,2.6vw,22px); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.manage-series-button { border-color: rgba(85,183,255,.35); color: #8bceff; white-space: nowrap; }
.series-panel { width: min(920px,calc(100vw - 32px)); }
.series-scroll { min-height: min(60vh,560px); }
.series-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:4px 0 22px; }
.series-toolbar h3 { margin:0 0 4px; font:700 23px Manrope,sans-serif; }
.series-toolbar p { margin:0; color:var(--muted); font-size:13px; }
.nested-editor { margin:0 0 20px; padding:20px; border:1px solid var(--line); border-radius:14px; background:#111317; }
.nested-editor h3 { margin:0 0 16px; font:700 18px Manrope,sans-serif; }
.nested-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.subtitle-admin-section { margin-top:22px; padding:16px; border:1px solid var(--line); border-radius:12px; background:rgba(0,0,0,.16); }
.subtitle-admin-section h3 { margin:0 0 10px; font:700 16px var(--display); }
.subtitle-admin-track { margin-top:10px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:9px; }
.subtitle-admin-track span { display:flex; flex-direction:column; gap:3px; }
.subtitle-admin-track small { color:var(--muted); font-size:10px; }
.subtitle-admin-track button { border:0; color:#ff8c91; background:none; cursor:pointer; }
.subtitle-find-button { margin-top:12px; }
.subtitle-upload-row { margin-top:10px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.subtitle-upload-row input[type="file"] { flex:1 1 240px; min-width:0; color:var(--muted); font-size:11px; }
.subtitle-upload-row button { margin:0; }
.season-admin-row { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:78px; padding:15px 17px; margin-bottom:10px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.018); }
.season-admin-row > div:first-child { display:flex; flex-direction:column; gap:5px; min-width:0; }
.season-admin-row strong { font-size:15px; overflow-wrap:anywhere; }
.season-admin-row span { color:var(--muted); font-size:12px; }
.season-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.season-actions button { padding:8px 11px; border:1px solid var(--line); border-radius:8px; background:#16191e; color:var(--text); font:600 11px DM Sans,sans-serif; cursor:pointer; }
.season-actions .danger-link { color:#ff8c91; }
.series-back { display:inline-flex; margin:0 0 18px; border:0; background:none; color:var(--muted); cursor:pointer; }
@media (max-width:640px) {
  .series-panel { width:100%; }
  .series-toolbar,.season-admin-row { align-items:flex-start; flex-direction:column; }
  .series-toolbar .button,.season-actions { width:100%; }
  .season-actions button { flex:1; }
}

.user-management-section { margin-top:72px; }
.user-section-heading { align-items:flex-end; }
.user-section-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.admin-user-list { display:grid; gap:10px; }
.admin-user-row { min-height:84px; padding:14px 16px; display:flex; align-items:center; gap:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.user-avatar { width:46px; height:46px; flex:none; display:grid; place-items:center; border-radius:12px; color:#ff93a0; background:rgba(255,52,71,.1); font:800 13px Manrope,sans-serif; }
.user-account-copy { min-width:180px; flex:1; }
.user-account-copy > div { display:flex; align-items:center; gap:8px; }
.user-account-copy h3 { margin:0; font:700 15px Manrope,sans-serif; }
.user-account-copy p,.user-account-copy small { margin:4px 0 0; display:block; color:var(--muted); font-size:10px; }
.user-status { padding:3px 7px; border-radius:999px; color:#72dfac; background:rgba(86,212,155,.1); font-size:8px; font-weight:800; text-transform:uppercase; }
.user-status.disabled { color:#ff939c; background:rgba(255,52,71,.1); }
.user-actions { flex-wrap:wrap; justify-content:flex-end; }
.user-actions .edit-button,.user-actions .delete-button { min-width:auto; }
.user-delete-confirm { align-items:center; flex-wrap:wrap; }
.user-delete-confirm > span { width:100%; color:#ff9ba4; font-size:11px; }
.user-edit-panel { width:min(520px,100%); }
@media (max-width:760px) {
  .user-section-heading,.admin-user-row { align-items:flex-start; flex-direction:column; }
  .user-section-heading .button,.user-actions,.user-delete-confirm { width:100%; }
  .user-actions { padding-left:0; }
  .user-actions button { flex:1; }
}

/* Admin dashboard — sectioned workspace */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.admin-body { background:radial-gradient(circle at 92% -8%,rgba(255,52,71,.07),transparent 30%),#090a0d; }
.admin-header { position:sticky; z-index:80; top:0; height:68px; padding:0 24px; background:rgba(9,10,13,.88); box-shadow:0 1px rgba(255,255,255,.055); }
.admin-header-leading,.admin-header-actions { display:flex; align-items:center; gap:18px; }
.admin-header-actions { margin-left:auto; }
.admin-nav-toggle { width:38px; height:38px; padding:0; display:none; place-items:center; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.035); cursor:pointer; }
.admin-nav-toggle svg { width:19px; }
.admin-dashboard-shell { min-height:calc(100vh - 68px); display:grid; grid-template-columns:228px minmax(0,1fr); }
.admin-sidebar { position:sticky; z-index:50; top:68px; height:calc(100vh - 68px); padding:22px 14px 16px; display:flex; flex-direction:column; overflow-y:auto; border-right:1px solid rgba(255,255,255,.07); background:rgba(13,15,19,.84); backdrop-filter:blur(18px); }
.admin-sidebar-heading { padding:0 10px 15px; display:flex; justify-content:space-between; color:#686e79; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.admin-sidebar-heading button { display:none; border:0; color:#a9aeb8; background:none; font-size:25px; cursor:pointer; }
.admin-nav { display:grid; gap:5px; }
.admin-nav button { width:100%; min-height:43px; padding:0 11px; display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid transparent; border-radius:10px; color:#9da3ae; background:transparent; text-align:left; font-size:13px; font-weight:650; cursor:pointer; transition:color .16s,border-color .16s,background .16s,transform .16s; }
.admin-nav button svg { width:18px; height:18px; }
.admin-nav button small { min-width:21px; padding:2px 6px; border-radius:999px; color:#747b86; background:rgba(255,255,255,.045); text-align:center; font-size:9px; }
.admin-nav button:hover { color:#f4f5f7; background:rgba(255,255,255,.045); }
.admin-nav button.active { border-color:rgba(255,75,91,.2); color:#fff; background:linear-gradient(90deg,rgba(255,52,71,.15),rgba(255,255,255,.035)); box-shadow:inset 3px 0 #ff4153; }
.admin-nav button.active svg { color:#ff6b78; }
.admin-nav button.active small { color:#f3c3c7; background:rgba(255,52,71,.13); }
.admin-sidebar-footer { margin-top:auto; padding:16px 11px 3px; display:flex; align-items:center; color:#767d88; font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.admin-nav-scrim { display:none; }
.admin-main { width:100%; max-width:1380px; min-width:0; margin:0 auto; padding:42px clamp(24px,3.2vw,52px) 88px; }
.admin-page-header { min-height:78px; margin-bottom:28px; display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.admin-page-header h1 { margin:7px 0 6px; font:800 clamp(28px,3vw,40px)/1 var(--display); letter-spacing:-.045em; }
.admin-page-header p { max-width:610px; margin:0; color:#878e99; font-size:13px; line-height:1.55; }
.admin-page-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }
.admin-primary-action,.admin-secondary-action { min-height:40px; padding:0 15px; border-radius:9px; font-size:12px; white-space:nowrap; }
.admin-secondary-action { border:1px solid var(--line); color:#d7d9de; background:rgba(255,255,255,.045); }
.admin-view { animation:adminViewIn .18s ease both; }
@keyframes adminViewIn { from { opacity:0; transform:translateY(4px); } }
.admin-panel,.admin-data-list,.admin-user-row,.series-workspace { border:1px solid rgba(255,255,255,.085); background:rgba(17,19,24,.82); box-shadow:0 18px 48px rgba(0,0,0,.13); }
.dashboard-stat-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.dashboard-stat { min-width:0; min-height:137px; padding:18px; display:flex; flex-direction:column; align-items:flex-start; border:1px solid rgba(255,255,255,.08); border-radius:14px; color:#a8aeb8; background:linear-gradient(145deg,rgba(26,29,35,.88),rgba(15,17,21,.9)); text-align:left; cursor:pointer; transition:transform .18s,border-color .18s,background .18s; }
.dashboard-stat:hover { transform:translateY(-2px); border-color:rgba(255,255,255,.16); background:linear-gradient(145deg,rgba(31,34,41,.96),rgba(17,19,24,.96)); }
.dashboard-stat span { font-size:11px; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
.dashboard-stat strong { margin:12px 0 8px; color:#fff; font:800 31px/1 var(--display); letter-spacing:-.04em; }
.dashboard-stat small { color:#6f7681; font-size:10px; }
.dashboard-quick-panel,.genre-help-panel { margin-top:16px; padding:24px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-radius:14px; }
.dashboard-quick-panel h2,.genre-help-panel h2 { margin:6px 0; font:700 19px var(--display); }
.dashboard-quick-panel p,.genre-help-panel p { margin:0; color:var(--muted); font-size:12px; }
.dashboard-quick-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.dashboard-quick-actions button { min-height:38px; padding:0 13px; border:1px solid var(--line); border-radius:9px; color:#c9ccd2; background:rgba(255,255,255,.035); font-size:11px; font-weight:700; cursor:pointer; }
.dashboard-quick-actions button:hover { color:#fff; background:rgba(255,255,255,.075); }
.stream-health-panel { margin-top:16px; padding:20px; border-radius:14px; }
.stream-health-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.stream-health-header h2 { margin:6px 0; font:700 19px var(--display); }
.stream-health-header p { margin:0; color:var(--muted); font-size:12px; }
.stream-health-window { flex:0 0 auto; display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:9px; background:rgba(0,0,0,.22); }
.stream-health-window button { min-width:44px; height:31px; padding:0 10px; border:0; border-radius:6px; color:#858b95; background:transparent; font-size:11px; font-weight:700; cursor:pointer; }
.stream-health-window button.active { color:#fff; background:rgba(255,255,255,.1); box-shadow:0 4px 12px rgba(0,0,0,.2); }
.stream-health-cards { margin-top:16px; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:9px; }
.stream-health-card { min-width:0; padding:14px; display:flex; flex-direction:column; gap:6px; border:1px solid rgba(255,255,255,.075); border-left:3px solid #666d78; border-radius:11px; background:rgba(255,255,255,.025); }
.stream-health-card>div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.stream-health-card strong { color:#f5f6f8; font:700 13px var(--display); }
.stream-health-card b { color:#fff; font:700 21px var(--display); letter-spacing:-.025em; }
.stream-health-card small { color:#777e89; font-size:10px; line-height:1.35; }
.stream-health-card.status-excellent { border-left-color:#38c98b; }
.stream-health-card.status-good { border-left-color:#72bf6a; }
.stream-health-card.status-fair { border-left-color:#d5ad56; }
.stream-health-card.status-slow,.stream-health-card.status-degraded { border-left-color:#df775d; }
.stream-health-card.status-offline { border-left-color:#e54d5c; }
.stream-health-status { display:inline-flex; align-items:center; min-height:21px; padding:0 7px; border-radius:999px; color:#c4c8ce; background:rgba(255,255,255,.07); font-size:9px; font-weight:800; letter-spacing:.045em; white-space:nowrap; }
.stream-health-error,.stream-health-loading { margin:16px 0 0; padding:14px; border-radius:9px; color:#a8aeb8; background:rgba(255,255,255,.035); font-size:12px; }
.stream-health-error { color:#e6a08f; }
.stream-health-table-wrap { margin-top:14px; overflow-x:auto; border:1px solid rgba(255,255,255,.065); border-radius:10px; }
.stream-health-table { width:100%; min-width:760px; border-collapse:collapse; font-size:11px; }
.stream-health-table th,.stream-health-table td { padding:11px 12px; border-bottom:1px solid rgba(255,255,255,.055); text-align:left; white-space:nowrap; }
.stream-health-table th { color:#777e89; font-size:9px; letter-spacing:.045em; text-transform:uppercase; }
.stream-health-table td { color:#c5c9d0; }
.stream-health-table tbody tr:last-child td { border-bottom:0; }
.admin-toolbar { min-height:58px; margin-bottom:13px; padding:9px; display:flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.075); border-radius:12px; background:rgba(17,19,24,.72); }
.admin-search { min-width:220px; max-width:480px; min-height:39px; margin:0!important; padding:0 12px; display:flex!important; flex:1; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.085); border-radius:9px; background:#0c0e12; }
.admin-search svg { width:16px; flex:none; color:#676e79; }
.admin-search input { width:100%; min-height:37px; padding:0!important; border:0!important; outline:0; background:transparent!important; font-size:12px!important; }
.admin-filter { min-width:145px; margin:0!important; }
.admin-filter select { width:100%; min-height:39px!important; margin:0!important; padding:0 30px 0 11px!important; border:1px solid rgba(255,255,255,.085); border-radius:9px; color:#d8dbe1; background:#0c0e12; color-scheme:dark; font-size:11px!important; }
.admin-filter select:hover { border-color:rgba(255,255,255,.16); }
.admin-result-count { margin-left:auto; padding:0 8px; color:#757c87; font-size:10px; font-weight:700; white-space:nowrap; }
.admin-data-list { overflow:hidden; border-radius:14px; }
.admin-data-header,.admin-data-row { display:grid; align-items:center; column-gap:18px; }
.admin-data-header { min-height:42px; padding:0 16px; border-bottom:1px solid rgba(255,255,255,.075); color:#656c77; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.admin-data-row { min-height:78px; padding:11px 16px; border-bottom:1px solid rgba(255,255,255,.065); }
.admin-data-row:last-child { border-bottom:0; }
.movie-data-grid { grid-template-columns:minmax(250px,1.45fr) minmax(180px,.8fr) auto; }
.admin-content-cell { min-width:0; display:flex; align-items:center; gap:13px; }
.admin-content-cell .admin-thumb { width:42px; }
.admin-movie-copy h3 { margin-bottom:4px; }
.admin-metadata-cell { min-width:0; display:flex; flex-direction:column; gap:4px; overflow:hidden; color:#818894; font-size:10px; }
.admin-metadata-cell span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-row-actions { width:auto; padding:0; justify-content:flex-end; flex-wrap:nowrap; }
.delete-button,.edit-button { min-width:auto; height:33px; padding:0 10px; border-radius:8px; white-space:nowrap; }
.delete-confirm { width:auto; padding:0; justify-content:flex-end; }
.series-admin-list { display:grid; gap:9px; border:0; background:transparent; box-shadow:none; }
.series-list-row { min-height:78px; grid-template-columns:minmax(260px,1fr) auto auto; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(17,19,24,.82); }
.series-main-action { min-width:0; padding:0; display:flex; align-items:center; gap:13px; border:0; color:inherit; background:none; text-align:left; cursor:pointer; }
.series-main-action > span { min-width:0; display:flex; flex-direction:column; gap:4px; }
.series-main-action strong { overflow:hidden; font:700 14px var(--display); text-overflow:ellipsis; white-space:nowrap; }
.series-main-action small,.series-count { color:#747b86; font-size:10px; }
.series-count { white-space:nowrap; }
.series-workspace { padding:20px; border-radius:15px; }
.admin-breadcrumbs { margin:-3px 0 22px; display:flex; align-items:center; gap:8px; overflow-x:auto; color:#717884; font-size:11px; white-space:nowrap; }
.admin-breadcrumbs button { padding:5px 0; border:0; color:#aeb3bc; background:none; cursor:pointer; }
.admin-breadcrumbs button:hover { color:#fff; }
.admin-breadcrumbs strong { color:#e5e7eb; }
.series-toolbar { margin:0 0 18px; }
.series-toolbar h2 { margin:5px 0 4px; font:700 23px var(--display); }
.series-toolbar p { margin:0; color:#777e89; font-size:11px; }
.nested-editor { background:#0d0f13; }
.season-main-action { min-width:0; flex:1; padding:0; display:flex; flex-direction:column; align-items:flex-start; gap:5px; border:0; color:inherit; background:none; text-align:left; cursor:pointer; }
.episode-admin-row > div:first-child { flex:1; }
.genre-admin-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.genre-admin-card { min-height:106px; padding:16px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:4px 10px; border:1px solid rgba(255,255,255,.08); border-radius:13px; color:#e5e7eb; background:linear-gradient(145deg,rgba(25,28,34,.85),rgba(15,17,21,.88)); text-align:left; cursor:pointer; transition:transform .16s,border-color .16s; }
.genre-admin-card:hover { transform:translateY(-2px); border-color:rgba(255,255,255,.17); }
.genre-admin-card span { grid-column:1/-1; align-self:start; font:700 14px var(--display); }
.genre-admin-card strong { font:800 26px var(--display); }
.genre-admin-card small { color:#747b86; font-size:9px; text-transform:uppercase; }
.subtitle-data-grid { grid-template-columns:minmax(210px,1.4fr) minmax(90px,.5fr) minmax(110px,.65fr) 55px 80px 72px; }
.subtitle-content-cell { min-width:0; display:flex; flex-direction:column; gap:4px; }
.subtitle-content-cell strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.subtitle-content-cell small { overflow:hidden; color:#707782; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.subtitle-data-row > span,.subtitle-data-grid > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.subtitle-status-badge { width:max-content; padding:4px 7px; border-radius:999px; color:#73dda9; background:rgba(86,212,155,.1); font-size:8px; font-weight:800; letter-spacing:.06em; }
.subtitle-status-badge.warning { color:#f2c56f; background:rgba(242,197,111,.1); }
.subtitle-status-badge.bad,.subtitle-status-badge.missing { color:#ff8993; background:rgba(255,52,71,.1); }
.subtitle-manage-button { justify-self:end; }
.admin-loading { min-height:150px; display:flex; align-items:center; justify-content:center; gap:10px; color:#858c97; font-size:12px; }
.admin-summary-strip { margin-bottom:13px; display:flex; gap:8px; }
.admin-summary-strip span { padding:8px 11px; border:1px solid var(--line); border-radius:8px; color:#777e89; background:rgba(255,255,255,.025); font-size:10px; }
.admin-summary-strip strong { margin-right:3px; color:#eef0f3; }
.admin-user-row { min-height:78px; border-radius:12px; }
.user-account-copy { min-width:0; }
.page-feedback { margin:-12px 0 18px!important; }
.publish-panel.publish-card { width:min(760px,100%); max-height:calc(100dvh - 48px); padding:0; }
.publish-panel .publish-heading { margin:8px 0 20px; }
.publish-panel .publish-heading h3 { margin:0 0 4px; font:700 17px var(--display); }
.edit-tabs { padding:0 28px; display:flex; gap:20px; border-bottom:1px solid var(--line); }
.edit-tabs button { min-height:43px; padding:0 1px; border:0; border-bottom:2px solid transparent; color:#777e89; background:none; font-size:11px; font-weight:700; cursor:pointer; }
.edit-tabs button.active { border-bottom-color:var(--red); color:#fff; }
.subtitle-admin-section.standalone { margin-top:14px; }
.admin-empty { background:rgba(17,19,24,.45); }
.admin-body button:focus-visible,.admin-body a:focus-visible,.admin-body input:focus-visible,.admin-body select:focus-visible,.admin-body textarea:focus-visible { outline:2px solid rgba(255,105,117,.9); outline-offset:2px; }

@media (max-width:1100px) {
  .admin-dashboard-shell { grid-template-columns:210px minmax(0,1fr); }
  .admin-main { padding-inline:26px; }
  .dashboard-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .genre-admin-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:900px) {
  .admin-nav-toggle { display:grid; }
  .admin-dashboard-shell { display:block; }
  .admin-sidebar { position:fixed; z-index:95; top:0; bottom:0; left:0; width:min(300px,calc(100vw - 44px)); height:100dvh; padding-top:19px; border-right-color:rgba(255,255,255,.11); background:rgba(13,15,19,.98); box-shadow:24px 0 70px rgba(0,0,0,.52); transform:translateX(-104%); transition:transform .2s ease; }
  .admin-sidebar.is-open { transform:translateX(0); }
  .admin-sidebar-heading button { display:block; }
  .admin-nav-scrim { position:fixed; z-index:90; inset:0; display:block; border:0; background:rgba(0,0,0,.62); backdrop-filter:blur(3px); }
  .admin-main { max-width:100%; padding:34px 24px 72px; }
  .subtitle-data-grid { grid-template-columns:minmax(190px,1.25fr) 90px 110px 48px 72px 66px; column-gap:12px; }
}

@media (max-width:700px) {
  .admin-header { height:62px; padding:0 15px; }
  .admin-header-leading,.admin-header-actions { gap:11px; }
  .admin-header-actions .admin-user,.admin-header-actions .view-site { display:none; }
  .admin-main { padding:27px 15px 64px; }
  .admin-page-header { min-height:0; margin-bottom:21px; align-items:flex-start; }
  .admin-page-header h1 { font-size:29px; }
  .admin-page-header p { max-width:390px; font-size:11px; }
  .admin-page-actions { flex:none; }
  .admin-primary-action,.admin-secondary-action { min-height:37px; padding:0 12px; font-size:10px; }
  .dashboard-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .dashboard-stat { min-height:112px; padding:15px; }
  .dashboard-stat strong { margin:9px 0 6px; font-size:27px; }
  .dashboard-quick-panel,.genre-help-panel { padding:18px; align-items:flex-start; flex-direction:column; }
  .stream-health-header { align-items:flex-start; }
  .dashboard-quick-actions { width:100%; justify-content:flex-start; }
  .admin-toolbar { align-items:stretch; flex-wrap:wrap; }
  .admin-search { max-width:none; min-width:0; flex:1 1 calc(100% - 155px); }
  .admin-filter { min-width:135px; flex:0 0 135px; }
  .admin-result-count { width:100%; margin:0; padding:3px 4px 0; }
  .admin-data-header { display:none; }
  .admin-data-list { overflow:visible; border:0; background:transparent; box-shadow:none; }
  .admin-data-row { border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(17,19,24,.86); }
  .movie-data-grid { grid-template-columns:minmax(0,1fr) auto; gap:11px; }
  .movie-data-grid .admin-content-cell { grid-column:1/-1; }
  .admin-metadata-cell { min-height:28px; justify-content:center; }
  .admin-row-actions { align-self:center; }
  .series-list-row { grid-template-columns:minmax(0,1fr) auto; }
  .series-list-row .series-count { grid-column:1; padding-left:55px; }
  .series-list-row .admin-row-actions,.series-list-row .delete-confirm { grid-column:2; grid-row:1/3; align-self:center; flex-direction:column; }
  .series-workspace { padding:16px; }
  .series-toolbar { align-items:flex-start; flex-direction:row; }
  .genre-admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .subtitle-data-list { display:grid; gap:9px; }
  .subtitle-data-grid { min-height:0; padding:14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .subtitle-content-cell { grid-column:1/-1; padding-bottom:7px; border-bottom:1px solid rgba(255,255,255,.065); }
  .subtitle-data-grid > span:not(.subtitle-status-badge) { color:#a3a8b1; font-size:10px; }
  .subtitle-status-badge { align-self:center; }
  .subtitle-manage-button { grid-column:2; grid-row:4; }
  .admin-user-row { align-items:center; flex-direction:row; flex-wrap:wrap; }
  .user-account-copy { flex:1; }
  .user-actions { width:100%; padding:9px 0 0; justify-content:flex-start; border-top:1px solid rgba(255,255,255,.06); }
  .user-actions button { flex:1 1 auto; }
  .user-delete-confirm { width:100%; padding-left:0; }
  .admin-modal-backdrop { padding:12px; align-items:center; }
  .edit-panel { max-height:calc(100dvh - 24px); border-radius:15px; }
  .edit-panel > header,.edit-scroll,.edit-panel > footer,.edit-tabs { padding-inline:18px; }
}

@media (max-width:480px) {
  .admin-header .brand strong { display:none; }
  .admin-header-actions { gap:8px; }
  .admin-header .text-button { min-height:34px; padding:0 8px; }
  .admin-main { padding:23px 12px 56px; }
  .admin-page-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
  .admin-page-header h1 { font-size:26px; }
  .admin-page-header p { display:none; }
  .admin-page-actions { align-self:end; }
  .admin-primary-action,.admin-secondary-action { min-height:35px; padding:0 10px; }
  .dashboard-stat-grid { gap:7px; }
  .dashboard-stat { min-height:102px; padding:13px; border-radius:11px; }
  .dashboard-stat span { font-size:9px; }
  .dashboard-stat strong { font-size:24px; }
  .dashboard-quick-panel,.genre-help-panel { padding:15px; }
  .stream-health-panel { padding:15px; }
  .stream-health-header { flex-direction:column; }
  .stream-health-cards { grid-template-columns:1fr 1fr; }
  .stream-health-card { padding:12px; }
  .stream-health-card b { font-size:18px; }
  .dashboard-quick-actions { display:grid; grid-template-columns:1fr 1fr; }
  .admin-toolbar { padding:7px; }
  .admin-search { flex-basis:100%; }
  .admin-filter { flex:1; }
  .admin-result-count { width:auto; align-self:center; margin-left:auto; }
  .movie-data-grid { grid-template-columns:1fr; }
  .movie-data-grid .admin-metadata-cell { display:none; }
  .movie-data-grid .admin-row-actions,.movie-data-grid .delete-confirm { width:100%; justify-content:stretch; }
  .movie-data-grid .admin-row-actions button,.movie-data-grid .delete-confirm button { flex:1; }
  .series-list-row { display:flex; align-items:stretch; flex-direction:column; }
  .series-list-row .series-count { padding-left:55px; }
  .series-list-row .admin-row-actions,.series-list-row .delete-confirm { width:100%; flex-direction:row; }
  .series-list-row .admin-row-actions button,.series-list-row .delete-confirm button { flex:1; }
  .series-workspace { padding:13px; }
  .series-toolbar { gap:12px; }
  .series-toolbar h2 { font-size:19px; }
  .series-toolbar .button { min-height:36px; padding:0 10px; font-size:10px; }
  .season-admin-row { padding:13px; }
  .nested-editor { padding:14px; }
  .genre-admin-grid { gap:7px; }
  .genre-admin-card { min-height:92px; padding:13px; }
  .admin-summary-strip { overflow-x:auto; }
  .admin-user-row { padding:13px; }
  .user-avatar { width:40px; height:40px; border-radius:10px; }
  .user-account-copy { min-width:calc(100% - 58px); }
  .user-actions { display:grid; grid-template-columns:1fr 1fr; }
  .admin-modal-backdrop { padding:0; align-items:end; }
  .edit-panel,.publish-panel.publish-card { width:100%; max-height:94dvh; border-radius:16px 16px 0 0; }
  .edit-panel > header { padding-top:18px; }
  .edit-panel > footer { min-height:67px; padding-block:10px; flex-direction:row; }
  .edit-panel > footer .button { min-height:41px; }
  .edit-tabs { gap:18px; }
}

/* Private user library: Saved titles, Continue Watching, and History. */
.public-body .desktop-nav a.active { color:#fff; }
.public-body .desktop-nav a.active::after { inset-inline:0; }
.catalog-shell.catalog-user-view { margin-top:0; padding-top:110px; background:var(--cinema-bg); }
.public-body .button-save { border:1px solid rgba(255,255,255,.15); color:#f3f4f7; background:rgba(20,23,30,.72); backdrop-filter:blur(10px); }
.public-body .button-save:hover { border-color:rgba(255,255,255,.27); background:rgba(41,45,55,.88); }
.public-body .button-save svg { width:18px; height:18px; fill:transparent; transition:fill .18s,color .18s; }
.public-body .button-save.saved { border-color:rgba(255,59,80,.42); color:#fff; background:rgba(255,59,80,.14); }
.public-body .button-save.saved svg { fill:var(--cinema-accent); color:var(--cinema-accent); }
.detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.button-compact { min-height:38px !important; padding-inline:15px !important; font-size:11px !important; }
.continue-row { margin-top:4px; }
.card-progress { position:absolute; z-index:4; right:8px; bottom:5px; left:8px; height:3px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.24); }
.card-progress span { display:block; height:100%; border-radius:inherit; background:var(--cinema-accent); box-shadow:0 0 9px rgba(255,59,80,.34); }
.user-library-page { min-height:calc(100svh - 220px); padding:0 var(--page-gutter) 70px; }
.user-library-heading { min-height:76px; margin-bottom:24px; display:flex; align-items:end; justify-content:space-between; gap:18px; }
.user-library-heading h1 { margin:6px 0 0; font:700 clamp(30px,3.3vw,46px)/1.05 var(--cinema-display); letter-spacing:-.04em; }
.user-library-empty { margin-top:28px !important; }
.history-list { display:grid; gap:11px; }
.history-item { display:grid; grid-template-columns:92px minmax(0,1fr) auto; align-items:center; gap:18px; min-height:126px; padding:13px; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:rgba(16,19,26,.92); box-shadow:0 14px 36px rgba(0,0,0,.15); }
.history-poster { position:relative; width:92px; aspect-ratio:2/3; overflow:hidden; display:grid; place-items:center; border-radius:9px; color:rgba(255,255,255,.2); background:linear-gradient(145deg,#252b37,#11141a); font:800 25px var(--cinema-display); }
.history-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.history-copy { min-width:0; }
.history-kind { color:var(--cinema-accent); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.history-copy h2 { margin:6px 0 3px; overflow:hidden; color:#f2f3f6; font:700 clamp(16px,1.6vw,21px)/1.25 var(--cinema-display); text-overflow:ellipsis; white-space:nowrap; }
.history-copy > p { margin:0 0 12px; color:#8f96a2; font-size:11px; }
.history-progress { width:min(440px,100%); height:4px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.12); }
.history-progress span { display:block; height:100%; border-radius:inherit; background:var(--cinema-accent); }
.history-meta { margin-top:7px; display:flex; flex-wrap:wrap; gap:7px 15px; color:#777f8c; font-size:10px; }
.history-actions { min-width:112px; display:flex; flex-direction:column; gap:7px; }
.history-remove { min-height:34px; border:0; border-radius:8px; color:#8e96a2; background:transparent; font-size:10px; font-weight:700; cursor:pointer; }
.history-remove:hover { color:#fff; background:rgba(255,255,255,.06); }

@media (max-width:900px) {
  .history-item { grid-template-columns:78px minmax(0,1fr) auto; gap:13px; min-height:112px; }
  .history-poster { width:78px; }
}

@media (max-width:760px) {
  .catalog-shell.catalog-user-view { padding-top:84px; }
  .public-body .mobile-nav { grid-template-columns:repeat(5,1fr); padding-inline:8px; }
  .public-body .mobile-nav .active { color:#fff; }
  .user-library-page { padding-inline:18px; }
  .user-library-heading { min-height:66px; margin-bottom:16px; }
  .history-item { grid-template-columns:66px minmax(0,1fr); align-items:start; gap:12px; min-height:0; padding:11px; }
  .history-poster { width:66px; grid-row:span 2; }
  .history-copy h2 { font-size:15px; }
  .history-actions { grid-column:2; min-width:0; flex-direction:row; align-items:center; }
  .history-actions .button { min-height:34px !important; }
  .history-remove { padding-inline:12px; }
}

@media (max-width:390px) {
  .public-body .mobile-nav { padding-inline:3px; }
  .public-body .mobile-nav a,.public-body .mobile-nav button { font-size:8px; }
  .public-body .mobile-nav svg { width:18px; height:18px; }
  .user-library-heading { align-items:start; flex-direction:column; }
  .history-item { grid-template-columns:58px minmax(0,1fr); gap:10px; }
  .history-poster { width:58px; }
  .history-meta { gap:5px 9px; }
}

/* Private queued downloads. */
.public-body .button-download { border:1px solid rgba(255,255,255,.14); color:#f5f6f8; background:rgba(20,23,30,.75); backdrop-filter:blur(10px); }
.public-body .button-download:hover { border-color:rgba(255,255,255,.28); background:rgba(42,46,56,.9); }
.public-body .button-download svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.download-list { display:grid; gap:11px; }
.download-item { display:grid; grid-template-columns:78px minmax(0,1fr) auto; align-items:center; gap:16px; min-height:112px; padding:12px; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:rgba(16,19,26,.92); box-shadow:0 14px 36px rgba(0,0,0,.15); }
.download-poster { position:relative; width:78px; aspect-ratio:2/3; overflow:hidden; display:grid; place-items:center; border-radius:9px; color:rgba(255,255,255,.22); background:linear-gradient(145deg,#252b37,#11141a); font:800 20px var(--cinema-display); }
.download-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.download-copy { min-width:0; }
.download-kicker { display:flex; flex-wrap:wrap; gap:5px 12px; color:#9299a6; font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.download-kicker span:first-child { color:var(--cinema-accent); }
.download-copy h2 { margin:7px 0 10px; overflow:hidden; color:#f2f3f6; font:700 clamp(15px,1.5vw,20px)/1.25 var(--cinema-display); text-overflow:ellipsis; white-space:nowrap; }
.download-progress { width:min(480px,100%); height:4px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.12); }
.download-progress span { display:block; height:100%; border-radius:inherit; background:var(--cinema-accent); transition:width .25s ease; }
.download-meta { margin-top:7px; display:flex; flex-wrap:wrap; gap:6px 14px; color:#7e8693; font-size:10px; }
.download-status { font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.download-status.status-ready { color:#68d391; }
.download-status.status-failed { color:#ff7c89; }
.download-status.status-downloading,.download-status.status-processing,.download-status.status-resolving { color:#f4d06f; }
.download-error { margin:8px 0 0; color:#d99098; font-size:11px; }
.download-actions { min-width:118px; display:flex; flex-direction:column; gap:7px; }
.download-actions a { text-decoration:none; }
.download-dialog-backdrop { position:fixed; z-index:160; inset:0; display:grid; place-items:center; padding:20px; background:rgba(2,3,5,.82); backdrop-filter:blur(14px); }
.download-dialog { position:relative; width:min(440px,100%); max-height:min(720px,calc(100dvh - 32px)); overflow:auto; padding:28px; border:1px solid rgba(255,255,255,.12); border-radius:17px; color:#f4f5f7; background:#11141a; box-shadow:0 30px 90px rgba(0,0,0,.68); }
.download-dialog h2 { margin:7px 0 3px; font:800 29px/1.1 var(--cinema-display); }
.download-dialog-title { margin:0 34px 22px 0; color:#949ba7; font-size:13px; }
.download-dialog-loading,.download-dialog-error { min-height:180px; display:grid; place-items:center; align-content:center; gap:12px; text-align:center; color:#9aa1ad; }
.download-dialog-loading .player-spinner { position:static; }
.download-quality-fieldset { margin:0; padding:0; border:0; }
.download-quality-fieldset legend { margin-bottom:9px; color:#aeb4bd; font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.download-quality-fieldset label { min-height:46px; margin-bottom:5px; display:flex; align-items:center; gap:11px; padding:7px 11px; border:1px solid transparent; border-radius:10px; background:rgba(255,255,255,.035); cursor:pointer; }
.download-quality-fieldset label:hover,.download-quality-fieldset label.selected { border-color:rgba(255,59,80,.32); background:rgba(255,59,80,.1); }
.download-quality-fieldset input,.download-subtitle-option input { accent-color:var(--cinema-accent); }
.download-quality-fieldset label > span,.download-subtitle-option > span { min-width:0; display:flex; flex:1; align-items:center; justify-content:space-between; gap:10px; }
.download-quality-fieldset strong,.download-subtitle-option strong { color:#f1f2f5; font-size:13px; }
.download-quality-fieldset small,.download-subtitle-option small { color:#7f8794; font-size:10px; }
.download-subtitle-option { min-height:58px; margin-top:17px; display:flex; align-items:center; gap:11px; padding:10px 12px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.025); cursor:pointer; }
.download-subtitle-option > span { align-items:flex-start; flex-direction:column; gap:3px; }
.download-subtitle-option.disabled { opacity:.5; cursor:not-allowed; }
.download-dialog-actions { margin-top:22px; display:flex; justify-content:flex-end; gap:9px; }
.public-body .episode-row { grid-template-columns:112px minmax(0,1fr) auto; }
.episode-row-actions { display:flex; align-items:center; gap:7px; }
.public-body .episode-download { min-height:38px; display:flex; align-items:center; gap:6px; padding:0 11px; border:1px solid rgba(255,255,255,.13); border-radius:8px; color:#e9ebef; background:rgba(255,255,255,.05); font-weight:700; cursor:pointer; }
.public-body .episode-download:hover { background:rgba(255,255,255,.1); }
.public-body .episode-download svg { width:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.public-body .player-header > div { min-width:0; flex:1; }
.player-download-action { min-height:36px; margin-left:auto; display:flex; align-items:center; gap:7px; padding:0 13px; border:1px solid rgba(255,255,255,.14); border-radius:10px; color:#f2f3f6; background:rgba(18,21,27,.78); cursor:pointer; }
.player-download-action svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.player-download-action span { color:inherit !important; font-size:10px !important; letter-spacing:.04em !important; text-transform:none !important; }

@media (max-width:760px) {
  .public-body .mobile-nav { grid-template-columns:repeat(6,1fr); }
  .download-item { grid-template-columns:62px minmax(0,1fr); align-items:start; gap:11px; padding:10px; }
  .download-poster { width:62px; grid-row:span 2; }
  .download-actions { grid-column:2; min-width:0; flex-direction:row; }
  .download-dialog-backdrop { padding:0; align-items:end; }
  .download-dialog { width:100%; max-height:92dvh; padding:22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius:18px 18px 0 0; }
  .public-body .episode-row { grid-template-columns:84px minmax(0,1fr); }
  .episode-row-actions { grid-column:1/-1; width:100%; }
  .episode-row-actions button { flex:1; justify-content:center; }
  .player-download-action { min-width:36px; width:36px; padding:0; justify-content:center; }
  .player-download-action span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
}

@media (max-width:390px) {
  .public-body .mobile-nav a,.public-body .mobile-nav button { font-size:7px; }
  .public-body .mobile-nav svg { width:17px; height:17px; }
  .download-dialog-actions .button { flex:1; }
  .download-quality-fieldset label { min-height:44px; }
}

/* Phase 1: premium cinematic public experience. */
body.public-body {
  --cinema-bg:#07080b;
  --cinema-surface:#101218;
  --cinema-surface-raised:#171a22;
  --cinema-text:#f5f6f8;
  --cinema-muted:#9a9faa;
  --cinema-accent:#e83d5b;
  --cinema-border:rgba(255,255,255,.1);
  --cinema-radius-sm:8px;
  --cinema-radius:12px;
  --cinema-radius-lg:20px;
  --cinema-ease:200ms ease;
  --page-gutter:clamp(16px,4vw,64px);
  min-width:280px;
  color:var(--cinema-text);
  background:var(--cinema-bg);
}
body.public-body #app { min-height:100svh; overflow:clip; background:var(--cinema-bg); }
body.public-body button:focus-visible,
body.public-body a:focus-visible,
body.public-body [tabindex]:focus-visible,
body.public-body input:focus-visible,
body.public-body select:focus-visible { outline:2px solid var(--cinema-accent); outline-offset:3px; }
body.public-body .site-header {
  height:72px;
  padding:0 var(--page-gutter);
  gap:clamp(24px,4vw,52px);
  border-bottom:1px solid transparent;
  background:linear-gradient(180deg,rgba(4,5,8,.88),rgba(4,5,8,.42) 55%,transparent);
  transition:height var(--cinema-ease),background var(--cinema-ease),border-color var(--cinema-ease);
}
body.public-body .site-header.scrolled {
  height:64px;
  border-color:var(--cinema-border);
  background:rgba(7,8,11,.97);
  box-shadow:none;
  backdrop-filter:blur(12px);
}
body.public-body .brand-mark {
  border-radius:9px;
  background:var(--cinema-accent);
  box-shadow:none;
}
body.public-body .brand strong span { color:var(--cinema-accent); }
body.public-body .desktop-nav { gap:clamp(18px,2.2vw,32px); }
body.public-body .desktop-nav a {
  position:relative;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  color:#b7bbc4;
  font-size:13px;
  font-weight:600;
  transition:color var(--cinema-ease);
}
body.public-body .desktop-nav a::after {
  content:"";
  position:absolute;
  right:50%;
  bottom:4px;
  left:50%;
  height:2px;
  border-radius:2px;
  background:var(--cinema-accent);
  transition:inset var(--cinema-ease);
}
body.public-body .desktop-nav a:hover,
body.public-body .desktop-nav a.active { color:#fff; }
body.public-body .search-trigger,
body.public-body .user-logout {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:var(--cinema-radius-sm);
  color:#d9dbe1;
  background:transparent;
  cursor:pointer;
  transition:color var(--cinema-ease),background var(--cinema-ease),border-color var(--cinema-ease);
}
body.public-body .search-trigger:hover,
body.public-body .user-logout:hover { color:#fff; border-color:var(--cinema-border); background:rgba(255,255,255,.06); }
body.public-body .search-trigger svg,
body.public-body .user-logout svg { width:18px; }

body.public-body .hero {
  min-height:min(88svh,860px);
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(145deg,#171a22,#07080b 72%);
}
body.public-body .hero-art {
  position:absolute;
  z-index:-3;
  inset:0;
  overflow:hidden;
  background:linear-gradient(145deg,#222630,#0a0c11);
  filter:saturate(.88) contrast(1.04);
  transform:scale(1.01);
}
body.public-body .hero-art-image {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 25%;
}
body.public-body .hero-vignette {
  position:absolute;
  z-index:-2;
  inset:0;
  background:
    linear-gradient(90deg,rgba(7,8,11,.98) 2%,rgba(7,8,11,.82) 34%,rgba(7,8,11,.18) 70%),
    linear-gradient(0deg,var(--cinema-bg) 0%,rgba(7,8,11,.66) 18%,transparent 58%),
    linear-gradient(180deg,rgba(7,8,11,.22),transparent 24%);
}
body.public-body .hero-content {
  width:min(640px,calc(100% - (2 * var(--page-gutter))));
  margin:0 0 clamp(112px,14vh,156px) var(--page-gutter);
}
body.public-body .hero-label,
body.public-body .row-kicker {
  color:#c8cbd2;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body.public-body .hero-label { display:flex; align-items:center; gap:9px; }
body.public-body .hero-label span { width:22px; height:2px; border-radius:2px; background:var(--cinema-accent); }
body.public-body .hero h1 {
  margin:16px 0 14px;
  font-size:clamp(46px,6vw,82px);
  line-height:.98;
  letter-spacing:-.055em;
}
body.public-body .hero-meta { flex-wrap:wrap; gap:8px 14px; color:#d2d5db; }
body.public-body .hero-meta > span:not(:last-child)::after,
body.public-body .modal-meta > span:not(:last-child)::after { content:""; width:3px; height:3px; margin-left:14px; display:inline-block; vertical-align:middle; border-radius:50%; background:#717681; }
body.public-body .rating-badge,
body.public-body .quality-badge { color:#fff; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
body.public-body .quality-badge { padding:2px 6px; border:1px solid rgba(255,255,255,.45); border-radius:4px; }
body.public-body .hero-content > p {
  max-width:560px;
  margin:16px 0 24px;
  display:-webkit-box;
  overflow:hidden;
  color:#c4c7ce;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-height:1.55;
}
body.public-body .hero-actions,
body.public-body .detail-actions { display:flex; flex-wrap:wrap; gap:8px; }
body.public-body .button {
  min-height:44px;
  padding:0 18px;
  border-radius:var(--cinema-radius-sm);
  font-size:12px;
  transition:transform var(--cinema-ease),background var(--cinema-ease),border-color var(--cinema-ease),opacity var(--cinema-ease);
}
body.public-body .button:hover { transform:translateY(-1px); }
body.public-body .button-primary { color:#fff; background:var(--cinema-accent); }
body.public-body .button-primary:hover { background:#f04b68; }
body.public-body .button-secondary,
body.public-body .button-save,
body.public-body .button-download { border:1px solid var(--cinema-border); color:#f4f5f7; background:rgba(20,22,28,.8); backdrop-filter:none; }
body.public-body .button-secondary:hover,
body.public-body .button-save:hover,
body.public-body .button-download:hover { border-color:rgba(255,255,255,.22); background:#252932; }
body.public-body .button-save.saved { border-color:rgba(232,61,91,.55); background:rgba(232,61,91,.16); }
body.public-body .browse-cue { position:absolute; right:var(--page-gutter); bottom:42px; display:flex; align-items:center; gap:8px; color:#9ca1ab; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }

body.public-body .catalog-shell { position:relative; z-index:2; margin-top:-70px; padding:0 0 88px; background:transparent; }
body.public-body .content-row { margin:0 0 34px; padding:0 var(--page-gutter); }
body.public-body .row-heading { margin-bottom:14px; display:flex; align-items:end; justify-content:space-between; gap:16px; }
body.public-body .row-heading h2 { margin:4px 0 0; font-size:clamp(21px,2vw,29px); letter-spacing:-.035em; }
body.public-body .row-count { color:#707682; font-size:10px; }
body.public-body .movie-rail,
body.public-body .skeleton-rail {
  display:grid;
  grid-template-columns:none;
  grid-auto-flow:column;
  grid-auto-columns:clamp(146px,14.5vw,214px);
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 18px;
  scroll-padding-inline:var(--page-gutter);
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.16) transparent;
}
body.public-body .movie-card { scroll-snap-align:start; }
body.public-body .poster-frame {
  aspect-ratio:2/3;
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--cinema-radius);
  background:var(--cinema-surface-raised);
  box-shadow:none;
  transition:transform var(--cinema-ease),border-color var(--cinema-ease);
}
body.public-body .poster-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.public-body .poster-fallback { background:linear-gradient(145deg,#282d38,#11141a); }
body.public-body .card-shade { position:absolute; z-index:2; inset:0; opacity:0; background:linear-gradient(0deg,rgba(4,5,7,.94),transparent 58%); transition:opacity var(--cinema-ease); }
body.public-body .card-actions { position:absolute; z-index:3; right:10px; bottom:10px; left:10px; display:flex; align-items:center; gap:7px; opacity:0; transform:translateY(5px); transition:opacity var(--cinema-ease),transform var(--cinema-ease); }
body.public-body .card-play,
body.public-body .card-save,
body.public-body .card-info { width:36px; height:36px; min-height:36px; padding:0; display:grid; place-items:center; border:1px solid rgba(255,255,255,.2); border-radius:50%; color:#fff; background:rgba(13,15,20,.86); cursor:pointer; }
body.public-body .card-play { border-color:#fff; color:#0b0c0f; background:#fff; }
body.public-body .card-save { margin-left:auto; }
body.public-body .card-save.saved { color:var(--cinema-accent); border-color:var(--cinema-accent); }
body.public-body .card-play svg,
body.public-body .card-save svg,
body.public-body .card-info svg { width:16px; }
body.public-body .card-play svg { fill:currentColor; stroke:none; }
body.public-body .card-badges { position:absolute; z-index:3; top:9px; right:9px; left:9px; display:flex; justify-content:space-between; align-items:start; pointer-events:none; }
body.public-body .card-duration { padding:3px 6px; border-radius:4px; color:#fff; background:rgba(5,6,8,.76); font-size:9px; }
body.public-body .card-copy h3 { margin:10px 1px 4px; color:#f0f1f4; font-size:13px; }
body.public-body .card-copy p { margin:0 1px; display:flex; gap:8px; color:#858b96; font-size:10px; }
@media (hover:hover) and (pointer:fine) {
  body.public-body .movie-card:hover .poster-frame,
  body.public-body .movie-card:focus-within .poster-frame { z-index:3; transform:scale(1.025); border-color:rgba(255,255,255,.24); box-shadow:none; }
  body.public-body .movie-card:hover .card-shade,
  body.public-body .movie-card:focus-within .card-shade,
  body.public-body .movie-card:hover .card-actions,
  body.public-body .movie-card:focus-within .card-actions { opacity:1; transform:none; }
}
body.public-body .continue-card .card-play { position:absolute; z-index:3; right:10px; bottom:13px; opacity:0; }
body.public-body .continue-card:hover .card-play,
body.public-body .continue-card:focus-within .card-play { opacity:1; }
body.public-body .card-progress { right:8px; bottom:6px; left:8px; height:4px; background:rgba(255,255,255,.26); }
body.public-body .card-progress span { background:var(--cinema-accent); box-shadow:none; }

body.public-body .search-overlay { padding:72px var(--page-gutter) 24px; align-items:start; background:rgba(4,5,8,.9); backdrop-filter:blur(10px); }
body.public-body .search-surface { width:min(820px,100%); max-height:calc(100dvh - 104px); overflow:auto; padding:20px; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius-lg); background:#0e1015; box-shadow:0 24px 64px rgba(0,0,0,.45); }
body.public-body .search-bar { min-height:52px; padding:0 12px 0 16px; border:1px solid rgba(255,255,255,.14); border-radius:var(--cinema-radius); background:#171a21; }
body.public-body .search-bar:focus-within { border-color:var(--cinema-accent); }
body.public-body .search-bar input { min-width:0; font-size:16px; }
body.public-body .search-bar button { min-height:42px; padding:0 10px; border:0; border-radius:7px; color:#c4c8d0; background:transparent; cursor:pointer; }
body.public-body .search-bar > button { display:inline-flex !important; flex:none; align-items:center; justify-content:center; }
body.public-body .search-summary { min-height:44px; padding:13px 2px 8px; color:#858b96; font-size:11px; }
body.public-body .search-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body.public-body .search-result { min-height:96px; padding:8px; display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:12px; border:1px solid transparent; border-radius:10px; cursor:pointer; transition:background var(--cinema-ease),border-color var(--cinema-ease); }
body.public-body .search-result:hover,
body.public-body .search-result.active,
body.public-body .search-result:focus { border-color:var(--cinema-border); background:#1a1d25; }
body.public-body .search-result-poster { width:54px; aspect-ratio:2/3; border-radius:7px; }
body.public-body .search-result h3 { margin:0 0 5px; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
body.public-body .search-result p { margin:0; color:#858b96; font-size:10px; }
body.public-body .search-empty { min-height:300px; }

body.public-body .modal-backdrop { padding:24px; background:rgba(2,3,5,.88); backdrop-filter:blur(8px); }
body.public-body .details-modal { width:min(1080px,100%); max-height:calc(100dvh - 48px); overflow:auto; border-color:var(--cinema-border); border-radius:var(--cinema-radius-lg); background:var(--cinema-surface); box-shadow:0 28px 80px rgba(0,0,0,.58); }
body.public-body .modal-art { height:min(48vh,470px); background-position:center 24%; }
body.public-body .modal-art div { background:linear-gradient(0deg,var(--cinema-surface) 0%,rgba(16,18,24,.34) 58%,transparent); }
body.public-body .details-layout { position:relative; margin-top:-132px; padding:0 clamp(24px,4vw,48px) 44px; display:grid; grid-template-columns:190px minmax(0,1fr); align-items:start; gap:28px; }
body.public-body .detail-poster { position:relative; width:190px; aspect-ratio:2/3; overflow:hidden; display:grid; place-items:center; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius); color:rgba(255,255,255,.24); background:linear-gradient(145deg,#292e39,#11141a); font:800 42px var(--display); }
body.public-body .detail-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.public-body .modal-copy { min-width:0; margin:0; padding:30px 0 0; }
body.public-body .modal-copy h2 { margin:7px 0 12px; font-size:clamp(34px,5vw,58px); }
body.public-body .modal-meta { flex-wrap:wrap; gap:8px 12px; color:#c3c7cf; }
body.public-body .detail-genres { margin:14px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
body.public-body .detail-genres span { padding:5px 9px; border:1px solid var(--cinema-border); border-radius:99px; color:#b6bbc5; background:transparent; font-size:9px; }
body.public-body .detail-description { max-width:720px; margin:16px 0 18px; color:#b7bbc4; font-size:14px; line-height:1.65; }
body.public-body .detail-facts { margin:20px 0 0; display:grid; gap:8px; }
body.public-body .detail-facts div { display:grid; grid-template-columns:72px minmax(0,1fr); gap:12px; font-size:11px; }
body.public-body .detail-facts dt { color:#777e8a; }
body.public-body .detail-facts dd { margin:0; color:#c5c8cf; }
body.public-body .series-browser { margin-top:28px; padding-top:22px; border-top:1px solid var(--cinema-border); }
body.public-body .details-skeleton { min-height:150px; align-content:center; }
body.public-body .details-skeleton span { display:block; height:12px; margin:8px 0; border-radius:6px; background:#20242d; }
body.public-body .details-skeleton span:nth-child(1) { width:44%; }
body.public-body .details-skeleton span:nth-child(2) { width:88%; }
body.public-body .details-skeleton span:nth-child(3) { width:72%; }

body.public-body .catalog-loading { padding:0 var(--page-gutter) 80px; }
body.public-body .poster-skeleton,
body.public-body .hero-loading span,
body.public-body .skeleton-heading span,
body.public-body .skeleton-heading i,
body.public-body .details-skeleton span { background:#1a1d24; animation:phase1-pulse 1.5s ease-in-out infinite; }
body.public-body .poster-skeleton { aspect-ratio:2/3; border-radius:var(--cinema-radius); }
body.public-body .hero-loading { position:relative; z-index:2; width:min(520px,calc(100% - (2 * var(--page-gutter)))); margin:0 0 150px var(--page-gutter); display:grid; gap:12px; }
body.public-body .hero-loading span { display:block; height:14px; border-radius:7px; }
body.public-body .hero-loading span:first-child { width:35%; }
body.public-body .hero-loading span:nth-child(2) { width:88%; height:58px; }
body.public-body .hero-loading span:nth-child(3) { width:72%; }
body.public-body .hero-loading span:nth-child(4) { width:48%; height:44px; }
@keyframes phase1-pulse { 50% { opacity:.55; } }

body.public-body .empty-state { margin-inline:var(--page-gutter); border-color:var(--cinema-border); background:var(--cinema-surface); }
body.public-body .empty-state h2 { margin:14px 0 6px; color:#f4f5f7; }
body.public-body .empty-state p { color:var(--cinema-muted); }
body.public-body .toast { border:1px solid var(--cinema-border); color:#f4f5f7; background:#171a21; box-shadow:0 18px 48px rgba(0,0,0,.42); }

@media (max-width:900px) {
  body.public-body .desktop-nav { gap:14px; }
  body.public-body .desktop-nav a { font-size:11px; }
  body.public-body .search-trigger span,
  body.public-body .user-logout span { display:none; }
  body.public-body .search-trigger,
  body.public-body .user-logout { width:42px; padding:0; justify-content:center; }
  body.public-body .details-layout { grid-template-columns:150px minmax(0,1fr); gap:22px; }
  body.public-body .detail-poster { width:150px; }
}

@media (max-width:760px) {
  body.public-body { --page-gutter:18px; padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  body.public-body .site-header { height:60px; gap:10px; }
  body.public-body .site-header.scrolled { height:58px; }
  body.public-body .desktop-nav { display:none; }
  body.public-body .header-actions { gap:2px; }
  body.public-body .hero { min-height:660px; max-height:none; align-items:flex-end; }
  body.public-body .hero-art-image { object-position:center 18%; }
  body.public-body .hero-vignette { background:linear-gradient(0deg,var(--cinema-bg) 3%,rgba(7,8,11,.88) 33%,rgba(7,8,11,.18) 74%),linear-gradient(90deg,rgba(7,8,11,.28),transparent); }
  body.public-body .hero-content { width:calc(100% - 36px); margin:0 18px 92px; }
  body.public-body .hero h1 { max-width:96%; margin:10px 0; font-size:clamp(35px,11vw,52px); }
  body.public-body .hero-meta { gap:6px 10px; font-size:11px; }
  body.public-body .hero-meta > span:not(:last-child)::after { margin-left:10px; }
  body.public-body .hero-content > p { margin:12px 0 18px; -webkit-line-clamp:2; font-size:13px; line-height:1.5; }
  body.public-body .hero-actions { flex-wrap:nowrap; overflow-x:auto; padding:2px 0 5px; }
  body.public-body .hero-actions .button { flex:none; min-height:44px; padding:0 14px; }
  body.public-body .hero-actions .button-download { display:none; }
  body.public-body .browse-cue { display:none; }
  body.public-body .catalog-shell { margin-top:-44px; padding-bottom:38px; }
  body.public-body .content-row { margin-bottom:26px; padding-inline:18px; }
  body.public-body .row-count { display:none; }
  body.public-body .movie-rail,
  body.public-body .skeleton-rail { grid-auto-columns:clamp(118px,35vw,158px); gap:10px; margin-right:-18px; padding-right:18px; }
  body.public-body .poster-frame { border-radius:10px; }
  body.public-body .card-actions,
  body.public-body .movie-card:hover .card-actions,
  body.public-body .movie-card:focus-within .card-actions,
  body.public-body .card-shade { display:none; }
  body.public-body .continue-card .card-play { opacity:1; width:34px; height:34px; }
  body.public-body .card-copy h3 { margin-top:8px; font-size:12px; }
  body.public-body .search-overlay { padding:0; align-items:end; }
  body.public-body .search-surface { width:100%; max-height:94dvh; padding:16px 14px calc(18px + env(safe-area-inset-bottom)); border-radius:20px 20px 0 0; }
  body.public-body .search-results { grid-template-columns:1fr; }
  body.public-body .search-result { min-height:82px; grid-template-columns:46px minmax(0,1fr) auto; }
  body.public-body .search-result-poster { width:46px; }
  body.public-body .modal-backdrop { padding:0; align-items:end; }
  body.public-body .details-modal { width:100%; max-height:94dvh; border-radius:20px 20px 0 0; }
  body.public-body .modal-art { height:38dvh; min-height:220px; }
  body.public-body .details-layout { margin-top:-72px; padding:0 18px calc(28px + env(safe-area-inset-bottom)); display:block; }
  body.public-body .detail-poster { display:none; }
  body.public-body .modal-copy { padding-top:0; }
  body.public-body .modal-copy h2 { max-width:calc(100% - 42px); font-size:clamp(30px,9vw,44px); }
  body.public-body .detail-description { font-size:13px; }
  body.public-body .detail-actions .button { min-height:44px; }
  body.public-body .series-browser { margin-top:24px; }
  body.public-body .mobile-nav { min-height:64px; padding:4px 6px calc(4px + env(safe-area-inset-bottom)); display:flex; overflow:hidden; border-top:1px solid var(--cinema-border); background:rgba(8,9,12,.98); backdrop-filter:blur(10px); }
  body.public-body .mobile-nav a,
  body.public-body .mobile-nav button { min-width:0; min-height:52px; padding:4px 1px; flex:1 1 0; color:#858b96; font-size:8px; }
  body.public-body .mobile-nav a.active,
  body.public-body .mobile-nav button.active { color:var(--cinema-accent); }
  body.public-body .mobile-nav svg { width:19px; height:19px; }
  body.public-body .site-footer { display:none; }
}

@media (max-width:390px) {
  body.public-body { --page-gutter:14px; }
  body.public-body .site-header { padding-inline:14px; }
  body.public-body .brand { gap:7px; }
  body.public-body .brand-mark { width:27px; height:27px; }
  body.public-body .brand strong { font-size:13px; }
  body.public-body .hero { min-height:610px; }
  body.public-body .hero-content { width:calc(100% - 28px); margin-inline:14px; margin-bottom:82px; }
  body.public-body .hero h1 { font-size:clamp(32px,10.5vw,42px); }
  body.public-body .hero-actions .button { padding-inline:12px; font-size:10px; }
  body.public-body .hero-actions .button svg { width:16px; }
  body.public-body .content-row { padding-inline:14px; }
  body.public-body .movie-rail,
  body.public-body .skeleton-rail { grid-auto-columns:clamp(112px,37vw,144px); margin-right:-14px; padding-right:14px; }
  body.public-body .search-bar { padding-left:11px; }
  body.public-body .search-bar input { font-size:14px; }
  body.public-body .search-bar button { padding-inline:7px; }
}

@media (max-width:340px) {
  body.public-body .brand strong { display:none; }
  body.public-body .hero-actions .button-save { width:44px; padding:0; }
  body.public-body .hero-actions .button-save span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  body.public-body .mobile-nav a,
  body.public-body .mobile-nav button { font-size:7px; }
}

@media (prefers-reduced-motion:reduce) {
  body.public-body .poster-skeleton,
  body.public-body .hero-loading span,
  body.public-body .skeleton-heading span,
  body.public-body .skeleton-heading i,
  body.public-body .details-skeleton span { animation:none; }
}

/* Phase 2: browse, profile, library, and series experience. */
body.public-body .user-account.active { color:#fff; border-color:rgba(232,61,91,.46); background:rgba(232,61,91,.12); }
body.public-body .catalog-shell.catalog-user-view { min-height:100svh; padding-top:104px; }
body.public-body .user-library-page { width:100%; max-width:1600px; margin:0 auto; scroll-margin-top:78px; }
body.public-body .user-library-heading { min-height:88px; align-items:end; }
body.public-body .user-library-heading h1,
body.public-body .browse-heading h1,
body.public-body .profile-hero h1 { margin:6px 0 0; font:800 clamp(34px,4vw,56px)/1 var(--display); letter-spacing:-.045em; }
body.public-body .user-library-heading p,
body.public-body .browse-heading p,
body.public-body .profile-hero p { max-width:620px; margin:9px 0 0; color:var(--cinema-muted); font-size:13px; line-height:1.55; }
body.public-body .library-count { flex:none; padding-bottom:5px; color:#7e8591; font-size:11px; }
body.public-body .row-link { min-height:40px; padding:0 4px; border:0; color:#b8bdc7; background:transparent; font-size:11px; font-weight:700; cursor:pointer; }
body.public-body .row-link:hover { color:#fff; }

body.public-body .browse-page { padding-inline:var(--page-gutter); }
body.public-body .browse-heading { min-height:112px; display:flex; align-items:end; justify-content:space-between; gap:24px; }
body.public-body .filter-toggle { display:none; }
body.public-body .browse-filter-panel { min-height:72px; margin:24px 0 0; padding:10px; display:flex; align-items:end; gap:10px; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius); background:var(--cinema-surface); }
body.public-body .browse-filter-panel label { min-width:170px; display:grid; gap:6px; color:#8e95a1; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
body.public-body .browse-filter-panel select { width:100%; min-height:42px; padding:0 34px 0 11px; border:1px solid rgba(255,255,255,.1); border-radius:8px; outline:0; color:#f2f3f6; background:#191c24; cursor:pointer; }
body.public-body .browse-filter-panel select:hover { border-color:rgba(255,255,255,.2); }
body.public-body .clear-browse-filters { min-height:42px; padding:0 14px; border:1px solid transparent; border-radius:8px; color:#c2c6ce; background:transparent; font-size:11px; font-weight:700; cursor:pointer; }
body.public-body .clear-browse-filters:hover { background:rgba(255,255,255,.06); }
body.public-body .clear-browse-filters:disabled { opacity:.42; cursor:default; }
body.public-body .filter-sheet-heading,
body.public-body .filter-apply,
body.public-body .filter-sheet-backdrop { display:none; }
body.public-body .browse-result-summary { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#858c98; font-size:11px; }
body.public-body .browse-result-summary button { min-height:38px; border:0; color:#c7cbd3; background:transparent; font-size:10px; font-weight:700; cursor:pointer; }
body.public-body .browse-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:26px 14px; }
body.public-body .browse-grid .movie-card { min-width:0; }
body.public-body .browse-grid .poster-frame { width:100%; }
body.public-body .browse-empty { margin:8px 0 0; }
body.public-body .load-more-wrap { min-height:108px; display:flex; align-items:center; justify-content:center; gap:14px; }
body.public-body .load-more-wrap span { color:#747b87; font-size:10px; }

body.public-body .saved-page,
body.public-body .continue-page,
body.public-body .profile-page { padding-inline:var(--page-gutter); }
body.public-body .saved-remove { width:100%; min-height:38px; margin-top:7px; border:1px solid transparent; border-radius:8px; color:#8d94a0; background:transparent; font-size:10px; font-weight:700; cursor:pointer; transition:color var(--cinema-ease),background var(--cinema-ease),border-color var(--cinema-ease); }
body.public-body .saved-remove:hover { border-color:var(--cinema-border); color:#fff; background:rgba(255,255,255,.05); }
body.public-body .continue-list { padding-bottom:50px; }
body.public-body .continue-item .history-poster { width:112px; aspect-ratio:16/10; }
body.public-body .continue-item { grid-template-columns:112px minmax(0,1fr) auto; min-height:104px; }
body.public-body .continue-item .history-copy h2 { margin-top:4px; }

body.public-body .profile-hero { min-height:168px; padding:28px; display:flex; align-items:center; gap:22px; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius-lg); background:linear-gradient(125deg,#171a22,#0e1015); }
body.public-body .profile-avatar { width:82px; height:82px; flex:none; display:grid; place-items:center; border-radius:22px; color:#fff; background:var(--cinema-accent); font:800 34px var(--display); }
body.public-body .profile-stat-grid { margin-top:18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body.public-body .profile-stat-grid button { min-height:138px; padding:20px; display:flex; align-items:flex-start; flex-direction:column; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius); color:#b6bbc5; text-align:left; background:var(--cinema-surface); cursor:pointer; transition:border-color var(--cinema-ease),background var(--cinema-ease),transform var(--cinema-ease); }
body.public-body .profile-stat-grid button:hover { transform:translateY(-2px); border-color:rgba(255,255,255,.2); background:var(--cinema-surface-raised); }
body.public-body .profile-stat-grid button > span { color:#a8aeb8; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
body.public-body .profile-stat-grid strong { margin:12px 0 4px; color:#fff; font:800 34px/1 var(--display); }
body.public-body .profile-stat-grid small { color:#747b87; font-size:10px; }
body.public-body .profile-sections { margin-top:12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.public-body .profile-preview { min-height:260px; padding:22px; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius); background:var(--cinema-surface); }
body.public-body .profile-preview h2 { margin:4px 0 16px; font:700 22px var(--display); }
body.public-body .profile-preview ul { margin:0; padding:0; display:grid; list-style:none; }
body.public-body .profile-preview li + li { border-top:1px solid rgba(255,255,255,.07); }
body.public-body .profile-preview li button { width:100%; min-height:48px; padding:7px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; color:#d6d9df; text-align:left; background:transparent; cursor:pointer; }
body.public-body .profile-preview li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.public-body .profile-preview li small { flex:none; color:#747b87; }
body.public-body .profile-preview > p { min-height:116px; margin:0; display:grid; place-items:center; color:#7c838f; }
body.public-body .profile-link { min-height:40px; margin-top:10px; padding:0; border:0; color:#e0e2e7; background:transparent; font-size:11px; font-weight:700; cursor:pointer; }
body.public-body .account-actions { min-height:100px; margin:12px 0 56px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--cinema-border); border-radius:var(--cinema-radius); background:var(--cinema-surface); }
body.public-body .account-actions h2 { margin:0 0 5px; font:700 18px var(--display); }
body.public-body .account-actions p { margin:0; color:#808793; font-size:11px; }
body.public-body .profile-loading { min-height:240px; margin-top:18px; padding:28px; display:grid; align-content:center; gap:12px; border-radius:var(--cinema-radius); background:var(--cinema-surface); }
body.public-body .profile-loading span { width:100%; height:18px; border-radius:8px; background:#1b1e26; animation:phase1-pulse 1.5s ease-in-out infinite; }
body.public-body .profile-loading span:first-child { width:38%; }
body.public-body .profile-loading span:last-child { width:68%; }
body.public-body .profile-error { margin:18px 0 0; }

body.public-body .series-browser-heading { margin-bottom:16px; display:flex; align-items:end; justify-content:space-between; gap:14px; }
body.public-body .series-browser-heading h3 { margin:4px 0 0; font:700 21px var(--display); }
body.public-body .series-browser-heading > span { color:#777e8a; font-size:10px; }
body.public-body .season-selector { margin:0 0 16px; display:flex; gap:7px; overflow-x:auto; padding:2px 0 8px; scrollbar-width:thin; }
body.public-body .season-selector button { min-width:112px; min-height:48px; padding:7px 13px; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; gap:2px; border:1px solid var(--cinema-border); border-radius:9px; color:#abb1bc; text-align:left; background:#151820; cursor:pointer; transition:border-color var(--cinema-ease),color var(--cinema-ease),background var(--cinema-ease); }
body.public-body .season-selector button span { font-size:11px; font-weight:800; }
body.public-body .season-selector button small { max-width:120px; overflow:hidden; color:#747c88; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
body.public-body .season-selector button.active { border-color:rgba(232,61,91,.56); color:#fff; background:rgba(232,61,91,.13); }
body.public-body .episode-list { display:grid; gap:8px; }
body.public-body .episode-row { min-height:116px; padding:10px; display:grid; grid-template-columns:148px minmax(0,1fr) auto; align-items:center; gap:16px; border:1px solid rgba(255,255,255,.075); border-radius:var(--cinema-radius); background:#12151b; }
body.public-body .episode-row.completed { background:#101319; }
body.public-body .episode-art { position:relative; width:148px; aspect-ratio:16/9; overflow:hidden; display:grid; place-items:center; border-radius:8px; color:rgba(255,255,255,.24); background:linear-gradient(145deg,#2a2f39,#151820); font:800 22px var(--display); }
body.public-body .episode-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.public-body .episode-copy { min-width:0; }
body.public-body .episode-copy > span { color:var(--cinema-accent); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
body.public-body .episode-copy h3 { margin:5px 0 4px; overflow:hidden; font:700 15px var(--display); text-overflow:ellipsis; white-space:nowrap; }
body.public-body .episode-copy > p { margin:0; display:-webkit-box; overflow:hidden; color:#858c98; font-size:10px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
body.public-body .episode-meta { margin-top:7px; display:flex; gap:10px; color:#767d89; }
body.public-body .episode-meta small:nth-child(2) { color:#c2c6cd; }
body.public-body .episode-progress { width:min(360px,100%); height:3px; margin-top:7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.12); }
body.public-body .episode-progress span { display:block; height:100%; border-radius:inherit; background:var(--cinema-accent); }
body.public-body .episode-row-actions { min-width:96px; justify-content:flex-end; }
body.public-body .episode-play { min-height:42px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 14px; border:0; border-radius:8px; color:#fff; background:var(--cinema-accent); font-size:10px; font-weight:800; cursor:pointer; }
body.public-body .episode-play svg { width:15px; fill:currentColor; stroke:none; }

@media (min-width:1101px) {
  body.public-body .catalog-shell.catalog-user-view { padding-top:154px; }
}

@media (max-width:1100px) {
  body.public-body .browse-grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
  body.public-body .episode-row { grid-template-columns:124px minmax(0,1fr) auto; }
  body.public-body .episode-art { width:124px; }
}

@media (max-width:760px) {
  body.public-body .catalog-shell.catalog-user-view { padding-top:78px; }
  body.public-body .user-library-page,
  body.public-body .browse-page,
  body.public-body .saved-page,
  body.public-body .continue-page,
  body.public-body .profile-page { padding-inline:18px; }
  body.public-body .user-library-heading { min-height:92px; margin-bottom:16px; align-items:start; flex-direction:column; justify-content:end; gap:9px; }
  body.public-body .user-library-heading h1,
  body.public-body .browse-heading h1,
  body.public-body .profile-hero h1 { font-size:34px; }
  body.public-body .library-count { padding:0; }
  body.public-body .browse-heading { min-height:102px; align-items:end; }
  body.public-body .browse-heading p { display:none; }
  body.public-body .filter-toggle { min-height:44px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; border:1px solid var(--cinema-border); border-radius:8px; color:#e3e5e9; background:var(--cinema-surface); font-size:10px; font-weight:800; cursor:pointer; }
  body.public-body .filter-toggle svg { width:16px; }
  body.public-body .filter-toggle span { min-width:18px; height:18px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--cinema-accent); font-size:8px; }
  body.public-body .filter-sheet-backdrop { position:fixed; z-index:138; inset:0; display:block; background:rgba(2,3,5,.76); }
  body.public-body .browse-filter-panel { position:fixed; z-index:139; right:0; bottom:0; left:0; max-height:88dvh; margin:0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); display:grid; align-items:stretch; gap:13px; overflow:auto; border-radius:20px 20px 0 0; background:#11141a; visibility:hidden; transform:translateY(100%); transition:transform var(--cinema-ease); }
  body.public-body:has(.browse-filter-panel.open) .mobile-nav { z-index:1; pointer-events:none; }
  body.public-body .browse-filter-panel.open { visibility:visible; transform:none; }
  body.public-body .browse-filter-panel label { min-width:0; }
  body.public-body .browse-filter-panel select { min-height:48px; }
  body.public-body .filter-sheet-heading { min-height:42px; display:flex; align-items:center; justify-content:space-between; }
  body.public-body .filter-sheet-heading strong { font:700 20px var(--display); }
  body.public-body .filter-sheet-heading button { width:40px; height:40px; border:0; border-radius:50%; color:#fff; background:#1d212a; font-size:22px; cursor:pointer; }
  body.public-body .clear-browse-filters { min-height:46px; border-color:var(--cinema-border); }
  body.public-body .filter-apply { display:inline-flex; }
  body.public-body .browse-result-summary { min-height:48px; }
  body.public-body .browse-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 9px; }
  body.public-body .browse-grid .card-copy h3 { font-size:11px; }
  body.public-body .saved-remove { min-height:44px; font-size:9px; }
  body.public-body .continue-item { grid-template-columns:94px minmax(0,1fr); align-items:start; }
  body.public-body .continue-item .history-poster { width:94px; grid-row:span 2; }
  body.public-body .profile-hero { min-height:140px; padding:20px; gap:15px; }
  body.public-body .profile-avatar { width:64px; height:64px; border-radius:18px; font-size:28px; }
  body.public-body .profile-stat-grid { grid-template-columns:1fr; gap:8px; }
  body.public-body .profile-stat-grid button { min-height:96px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  body.public-body .profile-stat-grid strong { grid-row:1/3; grid-column:2; margin:0; }
  body.public-body .profile-sections { grid-template-columns:1fr; }
  body.public-body .account-actions { align-items:flex-start; flex-direction:column; }
  body.public-body .account-actions .button { width:100%; }
  body.public-body .season-selector { margin-right:-18px; padding-right:18px; }
  body.public-body .season-selector button { min-width:116px; min-height:50px; }
  body.public-body .episode-row { grid-template-columns:104px minmax(0,1fr); align-items:start; gap:11px; }
  body.public-body .episode-art { width:104px; }
  body.public-body .episode-row-actions { grid-column:1/-1; width:100%; min-width:0; }
  body.public-body .episode-row-actions button { min-height:44px; flex:1; }
}

@media (max-width:520px) {
  body.public-body .browse-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 10px; }
}

@media (max-width:390px) {
  body.public-body .user-library-page,
  body.public-body .browse-page,
  body.public-body .saved-page,
  body.public-body .continue-page,
  body.public-body .profile-page { padding-inline:14px; }
  body.public-body .browse-heading { min-height:94px; }
  body.public-body .browse-heading h1 { font-size:31px; }
  body.public-body .filter-toggle { padding-inline:10px; }
  body.public-body .continue-item { grid-template-columns:76px minmax(0,1fr); }
  body.public-body .continue-item .history-poster { width:76px; }
  body.public-body .profile-hero { padding:17px; }
  body.public-body .profile-avatar { width:54px; height:54px; border-radius:15px; font-size:23px; }
  body.public-body .profile-hero p { display:none; }
  body.public-body .profile-preview { padding:18px; }
  body.public-body .season-selector { margin-right:-14px; padding-right:14px; }
  body.public-body .episode-row { grid-template-columns:82px minmax(0,1fr); padding:9px; }
  body.public-body .episode-art { width:82px; }
  body.public-body .episode-copy > p { -webkit-line-clamp:1; }
}

@media (prefers-reduced-motion:reduce) {
  body.public-body .profile-loading span { animation:none; }
}

/* Phase 3: deterministic recommendations and premium player feedback. */
body.public-body .more-like-this { margin-top:30px; padding-top:24px; border-top:1px solid var(--cinema-border); }
body.public-body .more-like-heading { margin-bottom:15px; display:flex; align-items:end; justify-content:space-between; gap:16px; }
body.public-body .more-like-heading h3 { margin:4px 0 0; font:700 21px var(--display); }
body.public-body .more-like-heading > span { color:#777e8a; font-size:10px; }
body.public-body .more-like-grid { display:grid; grid-auto-columns:132px; grid-auto-flow:column; gap:11px; overflow-x:auto; padding:2px 2px 12px; scroll-snap-type:x proximity; scrollbar-width:thin; }
body.public-body .more-like-card { min-width:0; scroll-snap-align:start; }
body.public-body .more-like-card .poster-frame { width:132px; }
body.public-body .more-like-card .card-copy h3 { font-size:11px; }

body.public-body .player-control-context { min-width:0; margin:0 0 1px; display:grid; gap:2px; text-shadow:0 1px 5px #000; }
body.public-body .player-control-context span { color:var(--cinema-accent); font-size:7.5px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
body.public-body .player-control-context strong { overflow:hidden; color:#fff; font:650 12px var(--display); text-overflow:ellipsis; white-space:nowrap; }
body.public-body .seek-feedback { position:absolute; z-index:10; top:46%; min-width:74px; min-height:56px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.16); border-radius:50%; color:#fff; background:rgba(8,9,12,.72); pointer-events:none; transform:translate(-50%,-50%); }
body.public-body .seek-feedback-backward { left:28%; }
body.public-body .seek-feedback-forward { left:72%; }
body.public-body .seek-feedback-center { left:50%; border-radius:12px; }
body.public-body .seek-feedback span { font:800 14px var(--display); }
.seek-pop-enter-active,.seek-pop-leave-active { transition:opacity 180ms ease,transform 180ms ease; }
.seek-pop-enter-from,.seek-pop-leave-to { opacity:0; transform:scale(.9); }
body.public-body .skip-intro { position:absolute; z-index:11; right:16px; bottom:86px; min-height:42px; padding:0 16px; border:1px solid rgba(255,255,255,.24); border-radius:8px; color:#fff; background:rgba(12,14,18,.9); font-size:11px; font-weight:800; cursor:pointer; }
body.public-body .up-next-card { position:absolute; z-index:12; top:16px; right:16px; width:min(390px,calc(100% - 32px)); min-height:112px; padding:10px; display:grid; grid-template-columns:112px minmax(0,1fr); gap:11px; border:1px solid rgba(255,255,255,.16); border-radius:14px; color:#fff; background:rgba(13,15,20,.96); box-shadow:0 18px 48px rgba(0,0,0,.46); }
body.public-body .up-next-art { position:relative; width:112px; aspect-ratio:16/9; overflow:hidden; display:grid; place-items:center; border-radius:8px; color:rgba(255,255,255,.34); background:#272b34; font:800 20px var(--display); }
body.public-body .up-next-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.public-body .up-next-copy { min-width:0; display:grid; align-content:center; gap:3px; }
body.public-body .up-next-copy > span { color:var(--cinema-accent); font-size:8px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
body.public-body .up-next-copy strong { overflow:hidden; font:700 12px var(--display); text-overflow:ellipsis; white-space:nowrap; }
body.public-body .up-next-copy small { overflow:hidden; color:#8d949f; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
body.public-body .up-next-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:7px; }
body.public-body .up-next-actions button { min-height:38px; margin:0; }
body.public-body .up-next-actions > button:last-child { padding:0 12px; border:0; color:#bec3cc; background:transparent; font-size:10px; font-weight:700; cursor:pointer; }
.up-next-pop-enter-active,.up-next-pop-leave-active { transition:opacity var(--cinema-ease),transform var(--cinema-ease); }
.up-next-pop-enter-from,.up-next-pop-leave-to { opacity:0; transform:translateY(-6px); }
body.public-body .episode-navigation { width:min(1200px,100%); margin-top:10px; display:flex; justify-content:flex-end; gap:8px; }
body.public-body .episode-navigation > button { min-height:44px; padding:0 14px; border:1px solid var(--cinema-border); border-radius:9px; color:#d4d7dd; background:#11141a; cursor:pointer; }
body.public-body .episode-navigation .next-episode-action { min-width:min(360px,100%); padding:9px 13px; display:grid; grid-template-columns:minmax(0,1fr) auto; text-align:left; }
body.public-body .next-episode-action span { color:var(--cinema-accent); font-size:8px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
body.public-body .next-episode-action strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
body.public-body .next-episode-action small { grid-column:2; grid-row:1/3; align-self:center; color:#fff; }
body.public-body .episode-navigation button:disabled { opacity:.5; cursor:default; }
body.public-body .toast-info { border-color:rgba(232,61,91,.42); }
body.public-body .toast-error { border-color:rgba(232,61,91,.64); background:#281318; }

@media (max-width:760px) {
  body.public-body .more-like-grid { margin-right:-18px; padding-right:18px; grid-auto-columns:116px; }
  body.public-body .more-like-card .poster-frame { width:116px; }
  body.public-body .player-control-context strong { font-size:11px; }
  body.public-body .up-next-card { top:8px; right:8px; width:calc(100% - 16px); min-height:88px; grid-template-columns:82px minmax(0,1fr); padding:8px; }
  body.public-body .up-next-art { width:82px; }
  body.public-body .up-next-actions { position:absolute; right:7px; bottom:7px; }
  body.public-body .up-next-actions button { min-height:34px; padding-inline:10px; font-size:9px; }
  body.public-body .up-next-copy { padding-bottom:31px; }
  body.public-body .skip-intro { right:9px; bottom:76px; min-height:38px; padding-inline:12px; }
  body.public-body .episode-navigation { width:100%; }
  body.public-body .episode-navigation > button:not(.next-episode-action) { display:none; }
  body.public-body .episode-navigation .next-episode-action { width:100%; min-width:0; }
}

@media (max-width:390px) {
  body.public-body .more-like-grid { margin-right:-14px; padding-right:14px; }
  body.public-body .player-control-context span { font-size:7px; }
  body.public-body .player-control-context strong { font-size:10px; }
  body.public-body .seek-feedback { min-width:62px; min-height:48px; }
  body.public-body .up-next-card { grid-template-columns:72px minmax(0,1fr); }
  body.public-body .up-next-art { width:72px; }
}

@media (orientation:landscape) and (max-height:500px) {
  body.public-body .up-next-card { top:7px; right:7px; width:min(330px,46vw); min-height:80px; grid-template-columns:76px minmax(0,1fr); }
  body.public-body .up-next-art { width:76px; }
  body.public-body .episode-navigation { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  body.public-body .seek-feedback,
  body.public-body .up-next-card { transition:none; }
}
