﻿@import url("https://fonts.googleapis.com/css2?family=Archivo+Condensed:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --black: #000;
  --near: #080808;
  --surface: #111;
  --raised: #181818;
  --border: #2a2a2a;
  --border-strong: rgba(255,255,255,.42);
  --muted: #8a8a8a;
  --soft: #b8b8b8;
  --white: #f5f5f5;
  --pure: #fff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .72);
  --button-glow: 0 16px 34px rgba(255,255,255,.08);
  --button-glow-strong: 0 22px 58px rgba(255,255,255,.12);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --ui: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--ui);
  text-rendering: geometricPrecision;
}

body[data-theme="crimson"] {
  --black: #050303;
  --near: #0b0506;
  --surface: #15090b;
  --raised: #211014;
  --border: #3c2228;
  --muted: #967982;
  --soft: #e7cbd2;
  --white: #fff4f6;
  --pure: #fff;
}

body[data-theme="ocean"] {
  --black: #020506;
  --near: #061013;
  --surface: #0b1a1f;
  --raised: #10262c;
  --border: #27424a;
  --muted: #88a2a9;
  --soft: #cce7ec;
  --white: #f2fdff;
  --pure: #fff;
}

body[data-theme="ember"] {
  --black: #040302;
  --near: #0d0906;
  --surface: #18110b;
  --raised: #261a10;
  --border: #443221;
  --muted: #aa9279;
  --soft: #ecd8bf;
  --white: #fff8ef;
  --pure: #fff;
}

body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}

body.watching {
  overflow: hidden;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

.rail,
.search-results,
.side-panel,
#player .player-hud.bottom,
#player .player-episode-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .12;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.16), transparent 24%);
  mix-blend-mode: screen;
}

button, input, select { font: inherit; }

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--pure);
  outline-offset: 3px;
}

.hidden { display: none !important; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--black);
  animation: splashOut .4s ease 1.7s forwards;
}

.splash-line {
  position: absolute;
  width: 4px;
  height: 1px;
  background: var(--pure);
  animation: lineOpen 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.splash-logo {
  opacity: 0;
  font-weight: 300;
  letter-spacing: 0;
  font-family: var(--display);
  font-size: 2rem;
  animation: logoIn .8s ease .55s forwards, logoPulse 1.25s steps(2, end) .55s both;
}

.splash-logo span { font-weight: 900; }

@keyframes lineOpen {
  45% { width: 180px; height: 1px; }
  100% { width: 250px; height: 54px; background: transparent; border: 1px solid var(--pure); }
}

@keyframes logoIn { to { opacity: 1; } }
@keyframes logoPulse {
  0%, 100% { filter: none; transform: scale(1); }
  44% { filter: blur(.4px) contrast(1.4); transform: scale(1.04); }
  48% { opacity: .55; }
  52% { opacity: 1; }
}
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, .13), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(255, 255, 255, .08), transparent 24%),
    linear-gradient(180deg, #050505, #000);
}

.auth-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: .92fr 1fr;
  align-items: center;
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
    rgba(9,9,9,.86);
  box-shadow: 0 34px 100px rgba(0,0,0,.72);
}

.auth-card .brand {
  grid-column: 1 / -1;
}

.auth-copy {
  min-width: 0;
}

.auth-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 6.2rem;
  letter-spacing: 0;
  line-height: .92;
}

.auth-copy p:last-child {
  max-width: 46ch;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

.profile-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.profile-picks button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font-weight: 850;
}

.profile-picks button:hover {
  background: #fff;
  color: #050506;
  transform: translateY(-1px);
}

.profile-picks span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  font-weight: 950;
}

.profile-picks img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.42);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--pure);
  color: var(--black);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: var(--pure);
  padding: 0 13px;
  font-size: 1rem;
  text-transform: none;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,.35);
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.auth-message.error {
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.brand.large { justify-self: center; }

.mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 0;
  background: url("assets/mono-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 10px 24px rgba(255,255,255,.06));
}

.mark::after {
  content: none;
}

.word {
  font-size: .94rem;
  letter-spacing: 0;
  font-weight: 800;
}

.app {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    var(--black);
  background-size: 100% 5px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 42px;
  background: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  transition: height .25s ease, background .25s ease, border-color .25s ease;
}

.topbar.scrolled {
  height: 58px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(16px);
}

.nav-links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.nav-links button, .mobile-bar button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--soft);
  white-space: nowrap;
}

.nav-links .active, .mobile-bar .active { color: var(--pure); }
.nav-links .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--pure);
}

.nav-actions, .hero-actions, .filter-row { display: flex; align-items: center; gap: 10px; }

.tmdb-pill {
  min-width: 58px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: var(--pure);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tmdb-pill.connected {
  background: var(--pure);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255,255,255,.44);
  animation: connectedPulse 2.4s ease-in-out infinite;
}

@keyframes connectedPulse {
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--pure);
  transition: transform .18s var(--ease-out), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.icon-button svg, .primary svg, .secondary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary svg polygon { fill: currentColor; stroke: currentColor; }

.icon-button:hover, .glass {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.07);
  box-shadow: var(--button-glow);
}

.icon-button:hover {
  transform: translateY(-1px);
}

.avatar-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.02)),
    var(--raised);
  color: var(--pure);
  font-weight: 900;
  overflow: hidden;
  padding: 0;
}

.avatar-button.has-photo {
  border-color: rgba(255,255,255,.38);
  background: #000;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 150px 7vw 11vh;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 18px;
  pointer-events: none;
  opacity: .32;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.5) 18px 26px, transparent 26px 44px),
    linear-gradient(0deg, rgba(255,255,255,.18), transparent);
  animation: filmAdvance 1.2s linear infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255,255,255,.08) 50%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: projectorSweep 7s ease-in-out infinite;
}

@keyframes projectorSweep {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes filmAdvance {
  to { background-position: 44px 0, 0 0; }
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.16) 75%),
    linear-gradient(0deg, #000 0%, transparent 34%),
    url("assets/mono-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift { to { transform: scale(1.09) translateX(-1.5%); } }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
  opacity: 0;
  transform: translateY(22px);
  animation: copyIn .75s ease .18s forwards;
}

.hero.hero-switch .hero-copy {
  animation: heroSwap .52s var(--ease-out) both;
}

@keyframes copyIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSwap {
  0% { opacity: 0; transform: translateY(18px); filter: blur(9px); }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.original, .eyebrow {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: .77rem;
  letter-spacing: 0;
  font-weight: 800;
}

.hero h2, .detail-body h2 {
  margin: 0;
  max-width: 820px;
  font-family: var(--display);
  font-size: 7rem;
  line-height: .85;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0,0,0,.55);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  color: var(--soft);
}

.meta span {
  border: 1px solid rgba(255,255,255,.22);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .82rem;
}

.hero-copy p:not(.original), .detail-body p {
  color: var(--soft);
  font-size: 1.04rem;
  line-height: 1.6;
}

.primary, .secondary {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  transition: transform .18s var(--ease-out), background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.primary { border: 1px solid var(--pure); background: var(--pure); color: var(--black); }
.secondary { border: 1px solid rgba(255,255,255,.38); background: rgba(0,0,0,.38); color: var(--pure); }
.small { min-height: 40px; padding-inline: 16px; }
.primary::after,
.secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.32), transparent 80%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--button-glow);
}

.primary:hover::after,
.secondary:hover::after {
  transform: translateX(120%);
}

.secondary:hover {
  border-color: var(--pure);
  background: rgba(255,255,255,.1);
}

.primary:active, .secondary:active, .icon-button:active { transform: scale(.96); }

.primary:disabled, .secondary:disabled, .icon-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
  box-shadow: none;
}

.mood-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 7vw;
  border-block: 1px solid var(--border);
  background: var(--near);
}

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

.command-deck {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(360px, 1.35fr) minmax(260px, .9fr);
  gap: 16px;
  align-items: stretch;
  padding: 24px 7vw;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)),
    #070707;
  animation: deckIn .55s var(--ease-out) both;
}

@keyframes deckIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.deck-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.deck-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: .95;
  text-transform: uppercase;
}

.deck-copy p:last-child {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

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

.deck-tile,
.network-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.02)),
    #0b0b0b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.deck-tile::before,
.network-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-120%);
  transition: transform .58s ease;
}

.deck-tile:hover::before,
.network-tile:hover::before {
  transform: translateX(120%);
}

.deck-tile {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  text-align: left;
  transition: transform .2s var(--ease-out), border-color .2s ease, background .2s ease;
}

.deck-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.58);
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.035)),
    #0c0c0c;
}

.deck-tile span,
.network-tile span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deck-tile b {
  font-family: var(--display);
  font-size: 3rem;
  line-height: .9;
}

.deck-tile small {
  color: var(--soft);
  line-height: 1.25;
}

.network-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.network-tile label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.network-tile input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(0,0,0,.45);
  color: var(--pure);
  padding: 10px 12px;
  font-size: .84rem;
}

.mood-panel h2 { margin: 0; font-size: 1.25rem; }

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips button, .filter-row button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--soft);
}

.chips button.active, .filter-row button.active {
  border-color: var(--pure);
  background: var(--pure);
  color: var(--black);
}

#clear-search {
  margin-left: auto;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
  color: var(--muted);
}

#clear-search:hover {
  border-color: rgba(255,255,255,.34);
  color: var(--pure);
}

.rows { padding: 34px 0 60px; }

.row {
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(16px);
  animation: rowIn .55s ease forwards;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 0 7vw 14px;
}

.row h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(160px, 17vw, 230px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 7vw 20px;
  scrollbar-color: #555 transparent;
  mask-image: linear-gradient(90deg, transparent, #000 7vw, #000 calc(100% - 7vw), transparent);
}

.movie-card {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 320px;
  contain: layout paint;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, filter .25s ease;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: cardIn .55s ease forwards;
}

.movie-card:nth-child(2) { animation-delay: .04s; }
.movie-card:nth-child(3) { animation-delay: .08s; }
.movie-card:nth-child(4) { animation-delay: .12s; }
.movie-card:nth-child(5) { animation-delay: .16s; }
.movie-card:nth-child(6) { animation-delay: .2s; }
.movie-card:nth-child(7) { animation-delay: .24s; }
.movie-card:nth-child(8) { animation-delay: .28s; }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.movie-card:hover {
  z-index: 5;
  transform: translateY(-10px) scale(1.045);
  border-color: rgba(255,255,255,.85);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.12);
}

.poster {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: grid;
  align-content: end;
  border: 0;
  padding: 16px 16px 68px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(180deg, transparent 12%, rgba(0,0,0,.15) 48%, #000 100%),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.38), transparent 28%),
    linear-gradient(135deg, var(--tone-a), var(--tone-b));
  isolation: isolate;
}

.poster.has-art {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.1) 48%, #000 100%),
    var(--backdrop, linear-gradient(135deg, var(--tone-a), var(--tone-b))) center / cover;
}

.poster-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .45s ease, filter .3s ease;
  animation: posterReveal .7s ease both;
}

@keyframes posterReveal {
  from { opacity: 0; filter: blur(12px) saturate(.9); }
  to { opacity: 1; filter: blur(0) saturate(1); }
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.94) 100%);
}

.movie-card:hover .poster-img {
  transform: scale(1.07);
}

.shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.2) 48%, transparent 62%);
  transform: translateX(-80%);
  transition: transform .6s ease;
}

.movie-card:hover .shine {
  transform: translateX(80%);
}

.vivid-art .poster-img,
.vivid-art .hero-media {
  filter: saturate(1.14) contrast(1.04);
}

body[data-artwork="grayscale"] .poster-img,
body[data-artwork="grayscale"] .hero-media,
body[data-artwork="grayscale"] .detail-backdrop,
body[data-artwork="grayscale"] .history-item img,
body[data-artwork="grayscale"] .search-main img {
  filter: grayscale(1) contrast(1.05);
}

body[data-artwork="color"] .poster-img,
body[data-artwork="color"] .hero-media,
body[data-artwork="color"] .detail-backdrop,
body[data-artwork="color"] .history-item img,
body[data-artwork="color"] .search-main img {
  filter: none;
}

body[data-card-size="small"] .rail {
  grid-auto-columns: clamp(142px, 14vw, 188px);
}

body[data-card-size="small"] .movie-card,
body[data-card-size="small"] .poster {
  min-height: 270px;
}

body[data-card-size="large"] .rail {
  grid-auto-columns: clamp(210px, 21vw, 290px);
}

body[data-card-size="large"] .movie-card,
body[data-card-size="large"] .poster {
  min-height: 370px;
}

body[data-density="compact"] .mood-panel,
body[data-density="compact"] .command-deck {
  padding-block: 18px;
}

body[data-density="compact"] .rows {
  padding-block: 24px 42px;
}

body[data-density="compact"] .row {
  margin-bottom: 26px;
}

body[data-density="compact"] .row-header {
  padding-bottom: 8px;
}

body[data-density="roomy"] .mood-panel,
body[data-density="roomy"] .command-deck {
  padding-block: 36px;
}

body[data-density="roomy"] .rows {
  padding-block: 44px 76px;
}

body[data-density="roomy"] .row {
  margin-bottom: 58px;
}

.poster h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .22s var(--ease-out);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--soft);
  font-size: .76rem;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress);
  background: var(--pure);
}

.quick-actions {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.movie-card:hover .quick-actions { opacity: 1; transform: translateY(0); }

.quick-actions button {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.72);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.quick-actions button:hover {
  background: var(--pure);
  color: var(--black);
  transform: translateY(-2px);
}

.source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  padding: 4px 7px;
  background: rgba(0,0,0,.58);
  color: var(--pure);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: 0;
}

.anime-badge,
.collection-badge {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 4px;
  padding: 4px 7px;
  background: rgba(0,0,0,.62);
  color: var(--pure);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-badge {
  top: 42px;
  left: 12px;
}

.collection-badge {
  top: 42px;
  right: 12px;
}

.history-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-width: calc(100% - 96px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  padding: 4px 7px;
  background: rgba(0,0,0,.62);
  color: var(--pure);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-badge {
  position: absolute;
  right: 12px;
  bottom: 52px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  background: rgba(0,0,0,.64);
  color: var(--pure);
  font-size: .7rem;
  font-weight: 900;
}

.poster h3,
.poster .card-meta {
  position: relative;
  z-index: 1;
}

footer {
  padding: 44px 7vw 92px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

footer a { color: var(--soft); text-decoration: none; }
.film-line { display: block; width: 110px; height: 2px; background: repeating-linear-gradient(90deg, var(--soft) 0 10px, transparent 10px 16px); }

.search-overlay, .player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.08), transparent 36%),
    rgba(0,0,0,.94);
  backdrop-filter: blur(18px);
  animation: overlayIn .22s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; filter: blur(12px); }
  to { opacity: 1; filter: blur(0); }
}

.search-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 7vh auto;
}

.close { font-size: 1.7rem; }

#search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--pure);
  background: transparent;
  color: var(--pure);
  padding: 16px 0;
  font-family: var(--display);
  font-size: 4rem;
  text-transform: uppercase;
}

.filter-row { margin: 24px 0; flex-wrap: wrap; }

select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--pure);
  padding: 0 12px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.search-history {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  scrollbar-width: none;
  text-transform: uppercase;
}

.search-history::-webkit-scrollbar {
  display: none;
}

.search-history button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--soft);
  padding: 0 12px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: none;
}

.search-history button:hover {
  border-color: rgba(255,255,255,.42);
  color: var(--pure);
}

.search-results .movie-card {
  min-height: 270px;
  opacity: 1;
  transform: none;
  animation: none;
}

.search-results .poster {
  min-height: 270px;
}

.empty-state {
  grid-column: 1 / -1;
  min-width: min(520px, 82vw);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.015)),
    rgba(255,255,255,.02);
  color: var(--soft);
  animation: emptyGlow 2.6s ease-in-out infinite alternate;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--pure);
}

.empty-state p {
  margin: 0;
  line-height: 1.45;
}

@keyframes emptyGlow {
  to { border-color: rgba(255,255,255,.32); }
}

.drawer, .side-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  width: min(760px, 100%);
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: #050505;
  box-shadow: var(--shadow);
  animation: panelIn .28s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(38px); filter: blur(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.drawer .close, .side-panel .close {
  position: sticky;
  top: 14px;
  left: calc(100% - 60px);
  z-index: 2;
  background: rgba(0,0,0,.65);
}

.detail-backdrop {
  height: 310px;
  background:
    linear-gradient(0deg, #050505, transparent),
    linear-gradient(135deg, var(--tone-a, #222), var(--tone-b, #050505));
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.05);
}

.detail-body {
  padding: 0 42px 60px;
  animation: copyIn .38s ease both;
}

.detail-body h2 {
  font-family: var(--display);
  font-size: 5.3rem;
}

.collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.collection-actions button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--soft);
  padding: 0 12px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.collection-actions button.active,
.collection-actions button:hover {
  border-color: var(--pure);
  background: var(--pure);
  color: var(--black);
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 34px 0 16px;
  border-bottom: 1px solid var(--border);
}

.tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 12px 4px;
  color: var(--soft);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease;
}

.tabs .active { color: var(--pure); border-color: var(--pure); }

.tab-body {
  display: grid;
  gap: 12px;
  color: var(--soft);
}

.episode-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.episode-toolbar label,
.episode-toolbar div {
  display: grid;
  gap: 6px;
}

.episode-toolbar span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.episode-toolbar strong {
  color: var(--pure);
  letter-spacing: 0;
}

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

.episode-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn .35s ease forwards;
}

.episode-card.selected {
  border-color: var(--pure);
  background: rgba(255,255,255,.07);
}

.episode-card.watched,
.player-episode-row.watched {
  border-color: rgba(255,255,255,.34);
}

.episode-card.in-progress,
.player-episode-row.in-progress {
  background: rgba(255,255,255,.065);
}

.episode-main {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.episode-main img,
.episode-still-fallback {
  width: 132px;
  height: 82px;
  object-fit: cover;
  background: #151515;
}

.episode-still-fallback {
  display: grid;
  place-items: center;
  color: var(--pure);
  font-size: 1.4rem;
  font-weight: 900;
}

.episode-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 0;
}

.episode-copy b {
  color: var(--pure);
  text-transform: uppercase;
}

.episode-copy small {
  color: var(--muted);
}

.episode-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.episode-progress-mini {
  display: block;
  width: min(220px, 100%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.episode-progress-mini em {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--pure);
}

.episode-card > .secondary {
  align-self: center;
  margin-right: 10px;
}

.episode-loading {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02), rgba(255,255,255,.06)),
    #080808;
  background-size: 200% 100%;
  color: var(--soft);
  animation: consoleSweep 1.2s linear infinite;
}

.person, .notification, .party-row, .setting-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.person {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

button.person:hover {
  color: var(--pure);
  background: rgba(255,255,255,.035);
}

.setting-row {
  align-items: center;
  color: var(--soft);
  line-height: 1.35;
}

.setting-row b,
.setting-row span:last-child {
  color: var(--pure);
  text-align: right;
}

.settings-section {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.settings-section .eyebrow {
  margin: 0 0 2px;
}

.profile-settings-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
}

.profile-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02)),
    var(--raised);
  color: var(--pure);
  font-size: 1.45rem;
  font-weight: 900;
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-settings-card div:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-settings-card b {
  overflow: hidden;
  color: var(--pure);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-card span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-stats span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}

.profile-stats b {
  overflow: hidden;
  color: var(--pure);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats small {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-field select,
.setting-field input,
.setting-field textarea {
  width: 100%;
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(0,0,0,.34);
  color: var(--pure);
  padding: 0 12px;
  text-transform: none;
}

.setting-field textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}

.settings-actions,
.settings-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.settings-server-grid {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.settings-server-grid .secondary.small {
  display: grid;
  place-items: center;
  gap: 3px;
  line-height: 1.05;
}

.settings-server-grid .secondary.small small,
.player-server-switch .secondary.small small {
  color: currentColor;
  opacity: .62;
  font-size: .58rem;
  text-transform: uppercase;
}

.setting-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}

.setting-toggle span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.setting-toggle b {
  color: var(--pure);
  font-size: .9rem;
}

.setting-toggle small {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.setting-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--pure);
}

.server-health-list {
  display: grid;
  gap: 8px;
}

.server-health-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}

.server-health-item span,
.server-health-item b {
  color: var(--pure);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-health-item small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-ready {
  border-color: rgba(255,255,255,.34) !important;
}

.health-slow:not(.active) {
  border-color: rgba(255,255,255,.18) !important;
  opacity: .86;
}

.health-new:not(.active) {
  opacity: .78;
}

.settings-note {
  margin: 0;
  color: var(--soft);
  font-size: .86rem;
  line-height: 1.45;
}

.settings-note.error {
  color: #fff;
}

.secondary.small.active,
.settings-server-grid .secondary.active {
  border-color: var(--pure);
  background: var(--pure);
  color: var(--black);
}

.player {
  display: grid;
  place-items: stretch;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 40%),
    rgba(0,0,0,.98);
}

.player-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: var(--shadow);
  animation: playerIn .28s ease both;
}

@keyframes playerIn {
  from { opacity: 0; transform: scale(.97); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); }
}

.player-ambient {
  position: absolute;
  inset: -18%;
  z-index: 0;
  opacity: .34;
  background: #000 center / cover no-repeat;
  filter: blur(38px) grayscale(.2) saturate(.85);
  transform: scale(1.08);
  animation: ambientDrift 16s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  to { transform: scale(1.14) translateX(-1.2%); }
}

.player-shell.cinema {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 0;
  background: #000;
}

.player-shell.cinema .player-title,
.player-shell.cinema .player-hud {
  display: none;
}

.player-hud {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.player-hud > * {
  pointer-events: auto;
}

.player-hud.top {
  top: 16px;
  left: 16px;
  right: 16px;
  padding: 0;
  align-items: flex-start;
  background: none;
}

.player-hud.bottom {
  top: 74px;
  right: 16px;
  bottom: auto;
  left: auto;
  max-width: 132px;
  justify-content: flex-end;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 0;
  background: none;
}

.player .secondary.small {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.56);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  font-size: .68rem;
}

.player #player-save {
  display: none;
}

.player-shell:hover .player-hud {
  opacity: 1;
  transform: translateY(0);
}

.player-shell .close {
  flex: 0 0 auto;
  background: rgba(0,0,0,.72);
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(16px);
}

#vidking-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #000;
}

#mono-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

#vidking-frame.hidden,
#mono-video.hidden,
#local-video-file.hidden {
  display: none;
}

.player-loading-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  min-width: min(280px, calc(100vw - 48px));
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  box-shadow: 0 18px 60px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: sourceNoteIn .18s ease both;
}

.player-loading-card span,
.player-loading-card small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-loading-card b {
  overflow: hidden;
  color: var(--pure);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.player-source-note {
  position: absolute;
  right: 164px;
  bottom: 90px;
  z-index: 5;
  width: min(520px, calc(100vw - 220px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(8,8,8,.82);
  box-shadow: 0 18px 48px rgba(0,0,0,.48);
  transform: none;
  animation: sourceNoteIn .24s ease both;
}

.player-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-source-note.hidden {
  display: none;
}

.player-source-note div {
  display: grid;
  gap: 4px;
}

.player-source-note .player-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-source-note strong {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.player-source-note span {
  color: var(--soft);
  font-size: .82rem;
}

.player-dock {
  position: absolute;
  top: 104px;
  right: 24px;
  z-index: 5;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(7,7,7,.82);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  backdrop-filter: blur(22px);
  animation: playerDockIn .22s ease both;
}

.player-dock.hidden {
  display: none;
}

.player-dock-head,
.player-dock-title,
.player-source-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-dock-head span,
.player-source-tags span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-dock-head .icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(255,255,255,.06);
}

.player-dock-title {
  align-items: flex-start;
  flex-direction: column;
}

.player-dock-title b {
  color: var(--pure);
  font-size: 1.08rem;
  line-height: 1.15;
}

.player-dock-title span {
  color: var(--soft);
  font-size: .82rem;
}

.player-route-box {
  overflow-wrap: anywhere;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--soft);
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: .74rem;
  line-height: 1.45;
}

.player-dock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-server-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.player-server-switch .secondary.small {
  width: 100% !important;
  min-height: 46px;
  display: grid;
  place-items: center;
  gap: 2px;
  line-height: 1;
}

.player-server-switch .secondary.small small {
  color: currentColor;
  opacity: .62;
  font-size: .58rem;
}

.player-server-switch .secondary.small.active {
  border-color: var(--pure);
  background: var(--pure);
  color: var(--black);
  box-shadow: 0 12px 34px rgba(255,255,255,.18);
}

.player-source-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.player-source-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

@keyframes playerDockIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sourceNoteIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-shell.cinema #vidking-frame {
  border-radius: 0;
}

.player-session {
  margin-left: auto;
  margin-right: 178px;
  display: none;
  justify-items: end;
  gap: 4px;
  color: var(--soft);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.player-session b {
  color: var(--pure);
  font-size: 1rem;
}

.player-now {
  display: none;
  margin-right: 0;
  gap: 7px;
  min-width: min(360px, 38vw);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
}

.player-now span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-now strong {
  color: var(--pure);
  text-transform: uppercase;
}

.player-episode-controls {
  display: none;
  gap: 8px;
  align-items: center;
}

.player-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.player-progress span {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: var(--pure);
  transition: width .4s ease;
}

.player-upnext {
  display: none;
  gap: 3px;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(16px);
}

.player-upnext span,
.player-upnext small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-upnext b {
  color: var(--pure);
  text-transform: uppercase;
}

.player-autonext {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  width: min(360px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  box-shadow: 0 18px 54px rgba(0,0,0,.44);
  backdrop-filter: blur(18px);
  animation: sourceNoteIn .2s ease both;
}

.player-autonext span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-autonext b {
  color: var(--pure);
  font-size: 1rem;
  text-transform: uppercase;
}

.player-autonext div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.player-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.75), transparent, rgba(0,0,0,.75)),
    url("assets/mono-hero.png") center / cover;
}

.player-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.player-screen.cinema .player-title,
.player-screen.cinema .subtitle-preview,
.player-screen.cinema .player-controls {
  opacity: 0;
  pointer-events: none;
}

.player-screen.cinema {
  cursor: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 38%),
    #000;
}

.player .close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
}

.player-title {
  position: static;
  min-width: 0;
  max-width: min(440px, calc(100vw - 180px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.58);
  box-shadow: 0 16px 44px rgba(0,0,0,.36);
  backdrop-filter: blur(16px);
}

.player-title p {
  margin: 0 0 4px;
  color: var(--soft);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-title h2 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--body);
  font-size: .98rem;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.big-play {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.44);
}

.big-play svg { width: 42px; fill: var(--pure); }

.subtitle-preview {
  position: absolute;
  bottom: 118px;
  z-index: 2;
  max-width: min(680px, 90vw);
  padding: 8px 14px;
  background: rgba(0,0,0,.62);
  font-size: 1.18rem;
}

.player-controls {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto auto auto 1fr auto auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(16px);
}

input[type="range"] { accent-color: var(--pure); }

.side-panel {
  z-index: 38;
  width: min(440px, 100%);
  padding: 72px 28px 34px;
}

.side-panel h2 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 2.8rem;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.history-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.history-item img,
.history-fallback {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: #161616;
}

.history-fallback {
  display: grid;
  place-items: center;
  color: var(--pure);
  font-weight: 900;
}

.history-item div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.history-item b {
  overflow: hidden;
  color: var(--pure);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.history-item span {
  color: var(--muted);
  font-size: .78rem;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.history-actions .secondary.small {
  min-height: 34px;
  padding-inline: 10px;
  font-size: .66rem;
}

.empty-state.compact {
  padding: 24px 0;
}

.mobile-bar {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  height: 64px;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding: 0 8px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.95);
  scrollbar-width: none;
}

.mobile-bar::-webkit-scrollbar {
  display: none;
}

.mobile-bar button {
  flex: 1 0 auto;
  min-width: 58px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: .72rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .splash { display: none; }
}

@media (max-width: 880px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .nav-links { display: none; }
  .mobile-bar { display: flex; }
  .auth-card { grid-template-columns: 1fr; gap: 22px; }
  .auth-copy h1 { font-size: 4.5rem; }
  .hero { min-height: 82vh; padding: 120px 22px 80px; }
  .hero h2 { font-size: 5rem; }
  .hero-actions { flex-wrap: wrap; }
  .command-deck {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood-panel { grid-template-columns: 1fr; padding: 22px; }
  .row-header { padding-inline: 22px; }
  .rail { grid-auto-columns: minmax(158px, 44vw); padding-inline: 22px; }
  .detail-body { padding-inline: 24px; }
  .detail-body h2 { font-size: 4rem; }
  #search-input { font-size: 3rem; }
  .player-controls {
    grid-template-columns: auto auto auto 1fr auto;
    overflow-x: auto;
  }
  .player-title h2 { max-width: 58vw; }
}

@media (max-width: 560px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 18px; }
  .auth-copy h1 { font-size: 3.2rem; }
  .auth-form { padding: 16px; }
  .topbar .word { display: none; }
  .hero h2 { font-size: 3.15rem; }
  .deck-copy h2 { font-size: 2.1rem; }
  .deck-tile b { font-size: 2.4rem; }
  .detail-body h2 { font-size: 3rem; }
  #search-input { font-size: 2.25rem; }
  .primary, .secondary { width: 100%; }
  .hero-actions .icon-button { width: 46px; }
  .network-tile { grid-template-columns: 1fr; }
  .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-card, .poster { min-height: 260px; }
  .quick-actions {
    opacity: 1;
    transform: none;
  }
  .quick-actions button {
    min-width: 30px;
    padding-inline: 7px;
    font-size: .62rem;
  }
}

.player-shell .player-title {
  position: static;
  z-index: 2;
  padding-right: 12px;
}

.player-shell .player-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .player-shell {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  #vidking-frame {
    min-height: 100vh;
  }

  .player-source-note {
    left: 12px;
    right: 12px;
    bottom: 96px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .player-dock {
    top: auto;
    right: 14px;
    left: 14px;
    bottom: 176px;
    width: auto;
    max-height: 42vh;
    overflow: auto;
  }

  .player-dock-grid {
    grid-template-columns: 1fr;
  }

  .player-hud {
    gap: 10px;
  }

  .player-hud.bottom {
    top: auto;
    right: 12px;
    bottom: 18px;
    left: 12px;
    max-width: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding-bottom: 0;
  }

  .player-episode-controls {
    display: none;
  }

  .player-session {
    display: none;
  }

  .player-now {
    grid-column: 1 / -1;
    margin-right: 0;
    min-width: 0;
  }

  .player-upnext {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .player .secondary.small {
    width: auto;
    min-height: 36px;
    padding-inline: 10px;
    font-size: .72rem;
  }

  .player-title h2 {
    max-width: 100%;
    font-size: .9rem;
  }

  .player-title {
    max-width: calc(100vw - 82px);
    padding: 9px 10px;
  }

  .episode-toolbar {
    grid-template-columns: 1fr;
  }

  .episode-card {
    grid-template-columns: 1fr;
  }

  .episode-main {
    grid-template-columns: 104px 1fr;
  }

  .episode-main img,
  .episode-still-fallback {
    width: 104px;
    height: 74px;
  }

  .episode-card > .secondary {
    margin: 0 10px 10px;
  }
}


#player .player-title,
#player .player-session,
#player .player-now,
#player .player-upnext,
#player .player-episode-controls,
#player #player-save,
#player #cinema-mode,
#player .player-source-note {
  display: none !important;
}

#player .player-hud.top {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 52px !important;
  padding: 0 !important;
  background: none !important;
}

#player .player-hud.bottom {
  position: absolute !important;
  top: 78px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 6 !important;
  width: 126px !important;
  max-width: 126px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 0 !important;
  background: none !important;
  pointer-events: none;
}

#player .player-hud.bottom > button {
  pointer-events: auto;
}

#player .secondary.small,
#player .icon-button.close {
  min-height: 38px;
  border-color: rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(0,0,0,.7);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

#player .secondary.small {
  width: 126px !important;
  padding: 0 10px;
  font-size: .68rem;
}

#player .icon-button.close {
  position: static !important;
  width: 52px;
  height: 52px;
  min-width: 52px;
  font-size: 1.35rem;
}

#player .player-dock {
  top: 18px;
  right: 156px;
  z-index: 8;
}

@media (max-width: 720px) {
  #player .player-hud.top {
    top: 12px !important;
    right: 12px !important;
  }

  #player .player-hud.bottom {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center;
  }

  #player .secondary.small {
    width: auto !important;
    min-width: 88px;
  }

  #player .player-dock {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 76px;
  }
}

#player #player-episodes.hidden,
#player #player-episodes-2.hidden,
#player .player-episode-drawer.hidden {
  display: none !important;
}

#player .player-episode-drawer {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 9;
  width: min(430px, calc(100vw - 190px));
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%),
    rgba(3,3,3,.86);
  box-shadow: 0 28px 90px rgba(0,0,0,.64);
  backdrop-filter: blur(24px) saturate(1.2);
  animation: episodeDrawerIn .24s var(--ease-out) both;
}

#player .player-episode-current {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--pure);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

#player .player-season-row {
  display: grid;
  gap: 7px;
}

#player .player-season-row label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

#player .player-season-row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  color: var(--pure);
  padding: 0 12px;
  font-weight: 800;
}

#player .player-episode-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#player .player-episode-jump .secondary.small {
  width: 100% !important;
}

#player .player-episode-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

#player .player-episode-list::-webkit-scrollbar {
  width: 8px;
}

#player .player-episode-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.26);
}

#player .episode-loading.compact {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

#player .player-episode-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: var(--pure);
  text-align: left;
  transition: transform .18s var(--ease-out), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#player .player-episode-row:hover {
  transform: translateX(3px);
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.09);
  box-shadow: 0 14px 38px rgba(0,0,0,.34);
}

#player .player-episode-row.active {
  border-color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.14);
}

#player .player-episode-row img,
#player .player-episode-number {
  width: 76px;
  height: 48px;
  border-radius: 6px;
}

#player .player-episode-row img {
  object-fit: cover;
  background: #000;
}

#player .player-episode-number {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.5);
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
}

#player .player-episode-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

#player .player-episode-copy b,
#player .player-episode-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#player .player-episode-copy b {
  font-size: .86rem;
  line-height: 1.2;
}

#player .player-episode-copy small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

#player .player-episode-play {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  color: var(--soft);
  font-size: .64rem;
  font-weight: 900;
}

#player .player-episode-row.active .player-episode-play {
  background: var(--pure);
  color: var(--black);
}

@keyframes episodeDrawerIn {
  from { opacity: 0; transform: translateX(-14px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 900px) {
  #player .player-episode-drawer {
    width: min(390px, calc(100vw - 170px));
  }

  #player .player-episode-row {
    grid-template-columns: 58px 1fr auto;
  }

  #player .player-episode-row img,
  #player .player-episode-number {
    width: 58px;
    height: 42px;
  }
}

@media (max-width: 720px) {
  #player .player-episode-drawer {
    top: 72px;
    right: 12px;
    bottom: 76px;
    left: 12px;
    width: auto;
    padding: 13px;
  }

  #player .player-episode-current {
    font-size: 1rem;
  }

  #player .player-episode-row {
    grid-template-columns: 42px 1fr auto;
    min-height: 58px;
    gap: 9px;
  }

  #player .player-episode-row img,
  #player .player-episode-number {
    width: 42px;
    height: 36px;
  }

  #player .player-episode-copy b {
    font-size: .78rem;
  }

  #player .player-episode-copy small {
    max-width: 42vw;
  }
}


body.performance-mode::before,
body.performance-mode .hero::before,
body.performance-mode .hero::after,
body.performance-mode .shine,
body.performance-mode .deck-tile::before,
body.performance-mode .network-tile::before {
  display: none !important;
}

body.performance-mode .hero-media {
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

body.performance-mode .row,
body.performance-mode .command-deck,
body.performance-mode .auth-card,
body.performance-mode .hero-copy,
body.performance-mode .hero.hero-switch .hero-copy {
  animation-duration: .18s !important;
  filter: none !important;
}

body.performance-mode .movie-card,
body.performance-mode .poster,
body.performance-mode .deck-tile,
body.performance-mode .primary,
body.performance-mode .secondary,
body.performance-mode .icon-button,
body.performance-mode .player-episode-row {
  transition-duration: .12s !important;
}

body.performance-mode .movie-card:hover,
body.performance-mode .deck-tile:hover,
body.performance-mode .primary:hover,
body.performance-mode .secondary:hover,
body.performance-mode .icon-button:hover {
  transform: translateY(-1px);
}

body.performance-mode .topbar.scrolled,
body.performance-mode .player-dock,
body.performance-mode .player-title,
body.performance-mode .player-controls,
body.performance-mode #player .secondary.small,
body.performance-mode #player .icon-button.close,
body.performance-mode #player .player-episode-drawer {
  backdrop-filter: none !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.34) !important;
}

body.performance-mode .poster-img {
  content-visibility: auto;
}

body.performance-mode .tmdb-pill.connected {
  animation: none !important;
}

@media (max-width: 720px) {
  body.performance-mode .row {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  body.performance-mode .hero-media {
    background-position: center top;
  }
}


body.performance-mode {
  text-rendering: optimizeSpeed;
}

body.performance-mode .search-overlay {
  background: rgba(0,0,0,.97);
  backdrop-filter: none;
  animation: none;
}

body.performance-mode .search-shell {
  width: min(900px, calc(100% - 28px));
  margin: 5vh auto;
}

body.performance-mode #search-input {
  padding: 12px 0;
  font-family: var(--ui);
  font-size: 2rem;
  font-weight: 800;
  text-transform: none;
}

body.performance-mode .filter-row {
  margin: 14px 0 16px;
  gap: 8px;
}

body.performance-mode .filter-row button,
body.performance-mode #sort-select {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 11px;
  font-size: .72rem;
}

body.performance-mode .search-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 4px;
}

.search-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.search-main {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 0 6px 7px;
  border: 0;
  background: transparent;
  text-align: left;
}

.search-main img,
.search-thumb-fallback {
  width: 42px;
  height: 46px;
  border-radius: 6px;
}

.search-main img {
  object-fit: cover;
  background: #050505;
}

.search-thumb-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
  font-weight: 900;
}

.search-main span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-main b,
.search-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-main b {
  color: var(--pure);
  font-size: .92rem;
  line-height: 1.2;
}

.search-main small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}

.search-play {
  min-height: 38px;
  margin-right: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: var(--pure);
  color: var(--black);
  font-size: .72rem;
  font-weight: 900;
}

body.performance-mode .player,
body.performance-mode .player-shell {
  background: #000;
  animation: none;
}

body.performance-mode .player-ambient {
  display: none;
}

#player .player-dock {
  display: none !important;
}

#player .player-hud.top {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  width: auto !important;
  z-index: 12 !important;
}

#player .player-hud.bottom {
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: 70px !important;
  z-index: 11 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 46px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 5px !important;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32), rgba(0,0,0,.72)) !important;
  scrollbar-width: none;
}

#player .player-hud.bottom::-webkit-scrollbar {
  display: none;
}

#player .player-hud.bottom > *,
#player .player-hud.top > * {
  pointer-events: auto;
}

#player .secondary.small,
#player .icon-button.close {
  min-height: 40px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 7px !important;
  background: rgba(0,0,0,.62) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#player .secondary.small {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  padding: 0 12px !important;
  font-family: var(--ui);
  font-size: .72rem !important;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

#player .secondary.small:hover,
#player .icon-button.close:hover {
  border-color: rgba(255,255,255,.48) !important;
  background: rgba(255,255,255,.14) !important;
  transform: none !important;
}

#player .icon-button.close {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  font-size: 1.2rem !important;
}

#player .player-server-switch {
  width: auto;
  flex: 0 0 auto;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px;
}

#player .player-server-switch .secondary.small {
  min-height: 40px !important;
  min-width: 58px !important;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 0 9px !important;
  line-height: 1;
}

#player .player-server-switch .secondary.small small {
  opacity: .58;
  font-size: .58rem;
}

#player .player-server-switch .secondary.small.active {
  border-color: var(--pure) !important;
  background: var(--pure) !important;
  color: var(--black) !important;
}

#player #player-server-toggle {
  display: none !important;
}

#player #player-save,
#player #cinema-mode,
#player .player-episode-controls:not(.hidden) {
  display: flex !important;
}

#player .player-episode-controls {
  flex: 0 0 auto;
  gap: 6px;
}

#player .player-episode-controls.hidden,
#player #player-episodes.hidden {
  display: none !important;
}

#player .player-episode-drawer {
  top: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
  width: auto !important;
  max-height: min(64vh, 520px);
  z-index: 13 !important;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(4,4,4,.94) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: none !important;
}

#player .player-episode-list {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 7px;
}

#player .player-episode-row {
  min-height: 56px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  box-shadow: none !important;
  transition: none !important;
}

#player .player-episode-row:hover {
  transform: none;
  box-shadow: none;
}

#player .player-episode-row img,
#player .player-episode-number {
  width: 38px;
  height: 34px;
}

#player .player-episode-copy b {
  font-size: .78rem;
}

#player .player-episode-copy small {
  font-size: .64rem;
}

@media (max-width: 720px) {
  body.performance-mode .search-shell {
    width: min(100% - 20px, 620px);
    margin-top: 3vh;
  }

  body.performance-mode .search-results {
    max-height: calc(100vh - 190px);
  }

  #player .player-hud.top {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
  }

  #player .player-hud.bottom {
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    left: 62px !important;
    justify-content: flex-start !important;
  }

  #player .secondary.small {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: .68rem !important;
  }

  #player .icon-button.close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  #player .player-episode-drawer {
    top: 62px !important;
    max-height: none;
  }

  #player .player-episode-list {
    grid-template-columns: 1fr;
  }
}


body.performance-mode *,
body.performance-mode *::before,
body.performance-mode *::after {
  animation-duration: .14s !important;
  animation-timing-function: ease-out !important;
  animation-iteration-count: 1 !important;
  transition-duration: .12s !important;
  transition-timing-function: ease-out !important;
}

body.performance-mode .splash {
  animation: splashOut .18s ease .18s forwards !important;
}

body.performance-mode .splash-line {
  display: none;
}

body.performance-mode .splash-logo {
  opacity: 1;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

body.performance-mode .projector,
body.performance-mode .projector::after,
body.performance-mode .film-strip,
body.performance-mode .film-strip::before,
body.performance-mode .shine,
body.performance-mode .primary::after,
body.performance-mode .secondary::after {
  display: none !important;
}

body.performance-mode .auth-card,
body.performance-mode .hero-copy,
body.performance-mode .row,
body.performance-mode .movie-card,
body.performance-mode .episode-card,
body.performance-mode .side-panel {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

body.performance-mode .hero.hero-switch .hero-copy {
  animation: cleanFade .12s ease-out both !important;
}

@keyframes cleanFade {
  from { opacity: .72; }
  to { opacity: 1; }
}

body.performance-mode .hero-media,
body.performance-mode .poster-img,
body.performance-mode .player-ambient {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

body.performance-mode .movie-card:hover,
body.performance-mode .deck-tile:hover,
body.performance-mode .network-tile:hover,
body.performance-mode .auth-card:hover,
body.performance-mode .quick-actions button:hover,
body.performance-mode .primary:hover,
body.performance-mode .secondary:hover,
body.performance-mode .icon-button:hover,
body.performance-mode .poster:hover,
body.performance-mode #player .secondary.small:hover,
body.performance-mode #player .icon-button.close:hover {
  transform: none !important;
  box-shadow: none !important;
}

body.performance-mode .movie-card:hover .poster-img {
  transform: none !important;
}

body.performance-mode .primary,
body.performance-mode .secondary,
body.performance-mode .icon-button,
body.performance-mode .quick-actions button,
body.performance-mode .chips button,
body.performance-mode .filter-row button,
body.performance-mode .search-play,
body.performance-mode .search-main,
body.performance-mode #player .secondary.small,
body.performance-mode #player .icon-button.close,
body.performance-mode #player .player-episode-row {
  transition-property: background-color, border-color, color, opacity !important;
}

body.performance-mode .primary:hover,
body.performance-mode .secondary:hover,
body.performance-mode .icon-button:hover,
body.performance-mode .quick-actions button:hover,
body.performance-mode .search-item:hover,
body.performance-mode #player .secondary.small:hover,
body.performance-mode #player .icon-button.close:hover {
  border-color: rgba(255,255,255,.48) !important;
  background-color: rgba(255,255,255,.12) !important;
}

body.performance-mode .primary:hover,
body.performance-mode .search-play:hover {
  background: var(--pure) !important;
  color: var(--black) !important;
}

body.performance-mode .topbar,
body.performance-mode .topbar.scrolled,
body.performance-mode .command-deck,
body.performance-mode .search-item,
body.performance-mode .empty-state,
body.performance-mode .side-panel,
body.performance-mode #player .player-episode-drawer {
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.performance-mode .poster {
  box-shadow: none !important;
}

body.performance-mode .poster::after {
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.82));
}

body.performance-mode .quick-actions {
  opacity: 1;
  transform: none;
}

body.performance-mode .progress span,
body.performance-mode .player-progress span {
  transition-duration: .18s !important;
}

body.performance-mode .search-overlay,
body.performance-mode .details,
body.performance-mode .player {
  animation: cleanFade .12s ease-out both !important;
}

body.performance-mode #player .player-hud.bottom {
  background: rgba(0,0,0,.58) !important;
}

body.performance-mode #player .secondary.small,
body.performance-mode #player .icon-button.close {
  background: rgba(0,0,0,.62) !important;
  border-color: rgba(255,255,255,.2) !important;
}

body.performance-mode #player .player-server-switch .secondary.small.active {
  background: var(--pure) !important;
  color: var(--black) !important;
  border-color: var(--pure) !important;
}

body.performance-mode #player .player-episode-drawer {
  background: rgba(5,5,5,.96) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.performance-mode *,
  body.performance-mode *::before,
  body.performance-mode *::after {
    animation: none !important;
    transition: none !important;
  }
}


body.performance-mode .auth-card,
body.performance-mode .settings-section,
body.performance-mode .search-history {
  animation: none !important;
  filter: none !important;
}

body.performance-mode[data-artwork="vivid"] .poster-img,
body.performance-mode[data-artwork="vivid"] .hero-media,
body.performance-mode[data-artwork="vivid"] .detail-backdrop,
body.performance-mode[data-artwork="vivid"] .history-item img,
body.performance-mode[data-artwork="vivid"] .search-main img {
  filter: saturate(1.16) contrast(1.04) !important;
}

body.performance-mode[data-artwork="grayscale"] .poster-img,
body.performance-mode[data-artwork="grayscale"] .hero-media,
body.performance-mode[data-artwork="grayscale"] .detail-backdrop,
body.performance-mode[data-artwork="grayscale"] .history-item img,
body.performance-mode[data-artwork="grayscale"] .search-main img {
  filter: grayscale(1) contrast(1.05) !important;
}

body.performance-mode[data-artwork="color"] .poster-img,
body.performance-mode[data-artwork="color"] .hero-media,
body.performance-mode[data-artwork="color"] .detail-backdrop,
body.performance-mode[data-artwork="color"] .history-item img,
body.performance-mode[data-artwork="color"] .search-main img {
  filter: none !important;
}

#player iframe,
#player video {
  background: #000;
}

#player .player-hud.top {
  top: 12px !important;
  left: 12px !important;
}

#player .player-hud.bottom {
  top: 12px !important;
  right: 12px !important;
  left: 68px !important;
  min-height: 44px;
  padding: 4px 6px 6px !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(0,0,0,.42) !important;
}

#player .secondary.small,
#player .icon-button.close {
  min-height: 36px !important;
  border-radius: 7px !important;
  background: rgba(0,0,0,.5) !important;
  color: #fff !important;
}

#player .secondary.small {
  padding: 0 10px !important;
  font-size: .68rem !important;
}

#player .icon-button.close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

#player .player-server-switch .secondary.small {
  min-width: 48px !important;
  min-height: 36px !important;
}

#player .player-server-switch .secondary.small small {
  display: none;
}

#player #cinema-mode {
  display: none !important;
}

body.android-app #open-external-player,
body.android-app #player-open-full-2,
body.android-app #player-open-full-3,
body.android-app #cinema-mode {
  display: none !important;
}

body.android-app #player .player-hud.bottom {
  left: 62px !important;
}

body.android-app #player .player-server-switch .secondary.small {
  min-width: 52px !important;
}

#player .player-episode-drawer {
  border-color: rgba(255,255,255,.13);
}

@media (max-width: 720px) {
  #player .player-hud.bottom {
    left: 62px !important;
    max-width: calc(100vw - 74px) !important;
  }

  .settings-actions {
    grid-template-columns: 1fr;
  }
}


#player .player-controls-peek {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 16;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 7px;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-family: var(--ui);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: 0;
}

#player .player-controls-peek.hidden {
  display: none;
}

#player .player-shell.controls-hidden .player-hud.bottom,
#player .player-shell.controls-hidden .player-source-note,
#player .player-shell.controls-hidden .player-episode-drawer,
#player .player-shell.controls-hidden .player-autonext {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  pointer-events: none !important;
}

#player .player-shell.controls-hidden .player-hud.bottom,
#player .player-shell.controls-hidden .player-source-note,
#player .player-shell.controls-hidden .player-autonext {
  display: none !important;
}

#player .player-shell.controls-hidden .player-hud.top .player-title,
#player .player-shell.controls-hidden .player-hud.top .player-session {
  display: none !important;
}

#player #player-hide-controls {
  order: -40;
  flex: 0 0 auto;
}

#player .player-hud.top {
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  left: calc(env(safe-area-inset-left, 0px) + 12px) !important;
}

#player .player-hud.bottom {
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
  left: calc(env(safe-area-inset-left, 0px) + 68px) !important;
  max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 80px) !important;
}

@supports (height: 100dvh) {
  #player,
  #player .player-shell {
    height: 100dvh !important;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  #player .player-shell {
    box-sizing: border-box;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      calc(env(safe-area-inset-right, 0px) + 18px)
      calc(env(safe-area-inset-bottom, 0px) + 12px)
      calc(env(safe-area-inset-left, 0px) + 18px) !important;
    background: #000 !important;
  }

  #player .player-shell.cinema {
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      calc(env(safe-area-inset-right, 0px) + 18px)
      calc(env(safe-area-inset-bottom, 0px) + 12px)
      calc(env(safe-area-inset-left, 0px) + 18px) !important;
  }

  #player #vidking-frame,
  #player #mono-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #player .player-hud.top {
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 10px) !important;
  }

  #player .player-hud.bottom {
    top: auto !important;
    right: calc(env(safe-area-inset-right, 0px) + 26px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 72px) !important;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 106px) !important;
    min-height: 40px;
    padding: 3px 6px 5px !important;
  }

  #player .secondary.small {
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: .65rem !important;
  }

  #player .icon-button.close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  #player .player-controls-peek {
    top: auto;
    right: calc(env(safe-area-inset-right, 0px) + 26px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  #player .player-autonext {
    left: calc(env(safe-area-inset-left, 0px) + 18px);
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: min(320px, calc(100vw - 120px));
  }
}

@media (orientation: portrait) and (max-width: 720px) {
  #player {
    --portrait-control-lift: calc(env(safe-area-inset-bottom, 0px) + 72px);
    --portrait-frame-bottom: calc(env(safe-area-inset-bottom, 0px) + 126px);
  }

  #player .player-shell {
    box-sizing: border-box;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 6px)
      calc(env(safe-area-inset-right, 0px) + 6px)
      var(--portrait-frame-bottom)
      calc(env(safe-area-inset-left, 0px) + 6px) !important;
    background: #000 !important;
  }

  #player .player-shell.cinema {
    padding:
      calc(env(safe-area-inset-top, 0px) + 6px)
      calc(env(safe-area-inset-right, 0px) + 6px)
      var(--portrait-frame-bottom)
      calc(env(safe-area-inset-left, 0px) + 6px) !important;
  }

  #player .player-shell.controls-hidden {
    padding:
      calc(env(safe-area-inset-top, 0px) + 6px)
      calc(env(safe-area-inset-right, 0px) + 6px)
      calc(env(safe-area-inset-bottom, 0px) + 10px)
      calc(env(safe-area-inset-left, 0px) + 6px) !important;
  }

  #player #vidking-frame,
  #player #mono-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #player .player-hud.top {
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 8px) !important;
  }

  #player .player-hud.bottom {
    top: auto !important;
    right: calc(env(safe-area-inset-right, 0px) + 10px) !important;
    bottom: var(--portrait-control-lift) !important;
    left: calc(env(safe-area-inset-left, 0px) + 10px) !important;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 20px) !important;
    min-height: 44px;
    padding: 4px 6px 6px !important;
    border-radius: 8px;
    background: rgba(0,0,0,.58) !important;
  }

  #player .player-now {
    min-width: 122px;
    max-width: 146px;
  }

  #player .secondary.small {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: .67rem !important;
  }

  #player .player-server-switch .secondary.small {
    min-width: 52px !important;
  }

  #player .player-controls-peek {
    top: auto;
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    bottom: var(--portrait-control-lift);
  }

  #player .player-episode-drawer {
    top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
    bottom: var(--portrait-control-lift) !important;
    max-height: none;
  }

  #player .player-autonext {
    left: calc(env(safe-area-inset-left, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    bottom: calc(var(--portrait-control-lift) + 58px);
    width: auto;
  }

  #player .player-loading-card {
    top: 46%;
  }
}


#player.player {
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding: 0;
  background: #151515;
  backdrop-filter: none;
}

#player .player-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto !important;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0;
  padding: 0 48px 56px !important;
  background: #151515;
  box-shadow: none;
  overflow: visible;
  animation: none;
}

#player .player-ambient {
  inset: 0 0 auto;
  height: 300px;
  opacity: .34;
  filter: blur(10px) saturate(.8);
  transform: none;
  animation: none;
  mask-image: linear-gradient(#000 0 54%, transparent 100%);
}

#player .player-page-head {
  position: relative;
  z-index: 2;
  min-height: 245px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 44px 0 22px;
}

#player .player-page-copy {
  max-width: 820px;
  min-width: 0;
}

#player .player-page-copy p {
  margin: 0;
}

#player #player-page-kicker {
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #176cc4;
  color: #fff;
  font-size: .64rem;
  font-weight: 950;
  text-transform: uppercase;
}

#player #player-page-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 4rem;
  line-height: .88;
  color: #fff;
  text-transform: uppercase;
}

#player .player-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: .86rem;
}

#player .player-page-meta span:first-child {
  color: #18d26b;
  font-weight: 950;
}

#player .player-page-meta span:not(:first-child) {
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
}

#player #player-page-copy {
  max-width: 76ch;
  color: #f4f4f5;
  font-size: .95rem;
  line-height: 1.55;
}

#player .player-page-actions {
  min-width: min(420px, 42vw);
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#player .player-page-server {
  display: grid;
  gap: 7px;
  color: #d4d4d8;
  font-size: .78rem;
  font-weight: 850;
}

#player .player-page-server select {
  min-width: 132px;
  min-height: 38px;
  border-color: rgba(255,255,255,.22);
  background: #262626;
  color: #fff;
  font-weight: 850;
}

#player .player-page-actions .secondary.small {
  min-height: 38px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
}

#player .player-page-actions .cast-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.12) !important;
}

#player .player-page-actions .cast-button::before {
  content: "";
  width: 13px;
  height: 10px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 2px;
}

#player .player-media-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  aspect-ratio: 21 / 9;
  min-height: 360px;
  max-height: 62vh;
  box-shadow: 0 28px 90px rgba(0,0,0,.44);
}

#player #vidking-frame,
#player #mono-video {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

#player .player-hud.bottom,
#player .player-dock,
#player .player-controls-peek,
#player .player-session,
#player .player-hud.top .player-title {
  display: none !important;
}

#player .player-hud.top {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  z-index: 12 !important;
  width: auto !important;
  display: block !important;
  pointer-events: none;
}

#player .player-hud.top .close {
  position: static !important;
  pointer-events: auto;
}

#player .player-source-note {
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
}

#player .player-episode-drawer {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  width: min(1720px, 100%);
  max-height: none;
  display: grid;
  gap: 16px;
  margin: 42px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: none !important;
}

#player .player-episode-drawer.hidden {
  display: none !important;
}

#player .player-episode-drawer .player-dock-head {
  justify-content: flex-start;
  padding: 0;
}

#player .player-episode-drawer .player-dock-head span {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
}

#player #player-episode-close,
#player .player-episode-current,
#player .player-season-row,
#player .player-episode-jump {
  display: none !important;
}

#player .player-season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#player .player-season-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: #242424;
  color: #d4d4d8;
  padding: 0 18px;
  font-size: .78rem;
  font-weight: 850;
}

#player .player-season-tabs button.active {
  background: #e50914;
  color: #fff;
}

#player .player-episode-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

#player .player-episode-row {
  min-height: 72px;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1d1d1d;
  padding: 8px;
  transition: border-color .12s ease, background-color .12s ease !important;
}

#player .player-episode-row:hover,
#player .player-episode-row.active {
  border-color: #e50914;
  background: #242424;
}

#player .player-episode-row img,
#player .player-episode-number {
  width: 94px;
  height: 54px;
  border-radius: 4px;
}

#player .player-episode-copy b {
  font-size: .82rem;
  color: #fff;
}

#player .player-episode-copy small {
  color: #b8b8b8;
  font-size: .68rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#player .player-episode-play {
  display: none;
}

#player .player-autonext {
  left: 48px;
  bottom: 34px;
}

body.android-app #player-page-full {
  display: none !important;
}

@media (max-width: 1200px) {
  #player .player-episode-list {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
}

@media (max-width: 820px) {
  body.watching {
    overflow: hidden;
  }

  #player .player-shell {
    padding: 0 14px 96px !important;
  }

  #player .player-page-head {
    min-height: 232px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 52px;
  }

  #player .player-page-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  #player .player-media-frame {
    aspect-ratio: 16 / 10;
    min-height: 240px;
    max-height: 50vh;
  }

  #player .player-episode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #player .player-episode-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  #player .player-episode-row img,
  #player .player-episode-number {
    width: 72px;
    height: 44px;
  }
}


.brand {
  min-width: 0;
}

.brand .mark,
.mark,
.topbar .brand .mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 0 !important;
  background: url("assets/mono-mark.svg") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.48)) !important;
}

.brand.large .mark {
  width: 64px !important;
  height: 64px !important;
}

.brand .word,
.word {
  font-family: var(--display);
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #f7f7f7;
  text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 12px 28px rgba(0,0,0,.52);
}

.brand .word b {
  font-weight: 800;
}

.brand.large .word {
  font-size: 2.7rem !important;
}

.splash-logo {
  width: min(420px, 74vw);
  height: 104px;
  color: transparent;
  font-size: 0 !important;
  background: url("assets/mono-logo.svg") center / contain no-repeat;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.7));
}

.splash-logo span {
  display: none;
}

.splash-line {
  background: #fff !important;
}

.auth-card {
  position: relative;
  overflow: hidden;
}

@media (max-width: 820px) {
  .brand .mark,
  .mark,
  .topbar .brand .mark {
    width: 36px !important;
    height: 36px !important;
  }

  .brand .word {
    font-size: 1.45rem !important;
  }

  .brand.large .mark {
    width: 56px !important;
    height: 56px !important;
  }

  .brand.large .word {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 520px) {
  #player .player-page-actions .secondary.small,
  #player .player-page-server,
  #player .player-page-server select {
    width: 100%;
  }

  #player .player-episode-list {
    grid-template-columns: 1fr;
  }
}


body::before,
.projector,
.film-strip,
.shine {
  display: none !important;
}

.topbar {
  backdrop-filter: blur(18px);
}

.command-deck,
.mood-panel,
.network-tile,
.search-shell,
.side-panel,
.drawer {
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: none !important;
}

.movie-card {
  border-color: rgba(255,255,255,.08);
  box-shadow: none !important;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease !important;
  animation-duration: .18s !important;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,255,255,.38);
}

.poster {
  padding: 14px 14px 54px;
}

.poster-img {
  transform: none !important;
  animation: none !important;
  transition: filter .16s ease !important;
}

.source-badge,
.anime-badge,
.collection-badge {
  display: none !important;
}

.history-badge,
.match-badge {
  border: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.history-badge {
  max-width: calc(100% - 24px);
}

.match-badge {
  right: 10px;
  bottom: 42px;
  min-width: 38px;
  height: 24px;
  font-size: .66rem;
}

.quick-actions {
  inset: auto 10px 10px;
  opacity: 1;
  transform: none;
}

.quick-actions button {
  height: 31px;
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
}

.quick-actions button:hover {
  transform: none;
}

.progress {
  height: 2px;
  background: rgba(255,255,255,.1);
}

.progress span {
  background: #fff;
  transition: width .16s ease;
}

.search-results {
  gap: 8px;
}

.search-item {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: none !important;
}

.search-item:hover {
  background: rgba(255,255,255,.07) !important;
}

.search-note {
  color: var(--muted);
  font-size: .82rem;
  padding: 10px 2px;
}

#player .player-shell {
  background: #111 !important;
}

#player .player-ambient {
  opacity: .34 !important;
}

#player .player-page-head {
  min-height: 210px;
  padding-bottom: 18px;
}

#player #player-page-title {
  font-size: 3.4rem;
}

#player #player-page-kicker {
  background: rgba(255,255,255,.12);
}

#player .player-page-meta span:first-child {
  color: #39d98a;
}

#player .player-page-actions .secondary.small,
#player .player-page-server select,
#player .player-season-tabs button,
#player .player-episode-row {
  box-shadow: none !important;
}

#player .player-page-actions .secondary.small {
  border-radius: 6px !important;
}

#player .player-page-time {
  display: grid;
  gap: 7px;
  color: #d4d4d8;
  font-size: .78rem;
  font-weight: 850;
}

#player .player-page-time input {
  width: 92px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 10px;
  font-weight: 850;
}

#player .player-page-time input::placeholder {
  color: rgba(255,255,255,.46);
}

#player .player-media-frame {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}

#player .player-loading-card {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}

#player .player-source-note {
  display: none !important;
}

.detail-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.detail-resume div {
  display: grid;
  gap: 4px;
}

.detail-resume span,
.detail-resume small {
  color: var(--soft);
  font-size: .82rem;
}

.detail-resume b {
  color: var(--pure);
  font-size: 1rem;
}

.detail-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.source-note-list {
  display: grid;
  gap: 8px;
}

.source-note-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.source-note-row b {
  color: var(--pure);
  font-size: .84rem;
}

.source-note-row span {
  color: var(--soft);
  font-size: .82rem;
}

#player .player-episode-list {
  gap: 10px;
}

#player .player-episode-row {
  background: rgba(255,255,255,.045);
}

#player .player-episode-row:hover,
#player .player-episode-row.active {
  background: rgba(255,255,255,.08);
}

@media (max-width: 820px) {
  .movie-card:hover {
    transform: none;
  }

  #player .player-page-head {
    min-height: 190px;
  }
}

@media (max-width: 520px) {
  #player .player-page-time,
  #player .player-page-time input,
  #player #player-page-time-save {
    width: 100%;
  }
}


:root {
  --black: #090a0c;
  --near: #0d0f13;
  --surface: #12151a;
  --raised: #181c22;
  --border: rgba(255,255,255,.11);
  --border-strong: rgba(255,255,255,.22);
  --muted: #88909b;
  --soft: #c4cad3;
  --white: #f4f6f8;
  --pure: #fff;
  --accent: #e50914;
  --accent-soft: rgba(229,9,20,.18);
  --green: #25e08a;
  --shadow: 0 22px 70px rgba(0,0,0,.42);
  --display: "Archivo Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --ui: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: #090a0c;
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 320px),
    radial-gradient(circle at 70% -10%, rgba(229,9,20,.12), transparent 26rem),
    #090a0c !important;
  color: var(--white);
  letter-spacing: 0;
}

body::before {
  opacity: .045;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: normal;
}

.splash {
  background: #090a0c;
}

.splash-line {
  background: var(--accent);
}

.splash-logo,
.brand .word,
.hero h2,
.detail-body h2,
#player #player-page-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand {
  gap: 10px;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 18% 32%, #fff 32% 50%, transparent 50% 64%, var(--accent) 64% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 30px rgba(229,9,20,.18);
}

.brand .word {
  font-size: 1.6rem;
}

.topbar {
  top: 14px;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  width: auto;
  height: 66px;
  padding: 0 14px 0 18px !important;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(12,14,18,.72) !important;
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 18px 60px rgba(0,0,0,.34) !important;
}

.topbar.scrolled {
  background: rgba(12,14,18,.9) !important;
  border-color: rgba(255,255,255,.13);
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.nav-links button,
.mobile-bar button,
.filter-row button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  color: #aeb5bf;
  font-size: .78rem;
  font-weight: 800;
  text-transform: none;
}

.nav-links .active,
.mobile-bar .active,
.filter-row .active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-links .active::after {
  display: none;
}

.nav-actions {
  gap: 8px;
}

.icon-button,
.avatar-button {
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
}

.icon-button:hover,
.avatar-button:hover,
.secondary:hover,
.primary:hover {
  transform: translateY(-1px);
}

.avatar-button {
  background: linear-gradient(135deg, var(--accent), #ff6a3d);
  color: #fff;
  font-weight: 900;
}

.primary,
.secondary,
.deck-tile,
.settings-actions button,
.player-page-actions button {
  border-radius: 12px !important;
  box-shadow: none !important;
  letter-spacing: 0;
}

.primary {
  border-color: transparent;
  background: #fff !important;
  color: #090a0c !important;
}

.primary svg {
  color: currentColor;
}

.secondary {
  background: rgba(255,255,255,.065) !important;
  border-color: rgba(255,255,255,.13) !important;
  color: #f7f8fb !important;
}

.secondary.small {
  min-height: 38px;
  padding-inline: 13px;
  font-size: .76rem;
}

.hero {
  min-height: 78vh;
  padding: 150px max(32px, 5vw) 86px;
  isolation: isolate;
  background: #090a0c;
}

.hero::before {
  background: linear-gradient(90deg, rgba(9,10,12,.96) 0%, rgba(9,10,12,.74) 35%, rgba(9,10,12,.18) 70%, rgba(9,10,12,.86) 100%) !important;
}

.hero::after {
  height: 38%;
  background: linear-gradient(0deg, #090a0c 0%, rgba(9,10,12,.66) 46%, transparent 100%) !important;
}

.hero-media {
  filter: none !important;
  opacity: .72;
  transform: scale(1.01);
}

.hero-copy {
  max-width: 720px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.original,
.eyebrow {
  color: var(--accent) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.hero h2,
.detail-body h2 {
  max-width: 11ch;
  font-size: 7.6rem;
  line-height: .82;
  text-wrap: balance;
}

.hero-copy p:not(.original),
.detail-body p {
  color: #d7dbe2;
  font-size: 1.08rem;
  line-height: 1.65;
}

.meta {
  gap: 8px;
}

.meta span {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  color: #dfe3ea;
  font-weight: 800;
}

.hero-actions {
  gap: 10px;
}

.command-deck,
.mood-panel {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto 28px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.2fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.deck-copy {
  padding: 10px;
}

.deck-copy h2,
.mood-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: .95;
}

.deck-copy p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.deck-grid {
  gap: 10px;
}

.deck-tile {
  min-height: 112px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}

.deck-tile:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.075);
}

.deck-tile b {
  color: #fff;
  font-family: var(--display);
  font-size: 2.1rem;
}

.network-tile {
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.09);
}

.network-tile input,
.auth-form input,
select,
#search-input,
#settings-tmdb-key,
#player .player-page-time input {
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.mood-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.chips {
  flex: 1;
  gap: 8px;
}

.chips button,
.tabs button,
.player-season-tabs button {
  border-radius: 999px !important;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.1);
}

.chips button.active,
.tabs button.active,
.player-season-tabs button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.rows {
  width: min(1500px, calc(100% - 48px));
  margin: 28px auto 80px;
}

.row-head {
  padding-inline: 0 !important;
}

.row-head h2,
.settings-section h2 {
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: .95;
}

.rail {
  grid-auto-columns: minmax(190px, 12.5vw);
  gap: 14px;
  padding: 4px 2px 18px !important;
  scroll-padding-inline: 0;
}

.movie-card {
  min-height: 314px;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  overflow: visible;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.018);
}

.poster {
  min-height: 314px;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px !important;
  overflow: hidden;
  background: #171a20;
}

.poster.has-art {
  background: #171a20;
}

.poster-img {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none !important;
  opacity: 1;
  transition: transform .24s var(--ease-out), filter .24s ease !important;
}

.movie-card:hover .poster-img {
  transform: scale(1.045) !important;
}

.poster::after {
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.52) 34%, transparent 68%) !important;
}

.poster h3 {
  left: 12px;
  right: 12px;
  bottom: 42px;
  font-family: var(--ui);
  font-size: .98rem;
  line-height: 1.15;
  text-transform: none;
}

.poster .card-meta {
  left: 12px;
  right: 12px;
  bottom: 22px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}

.quick-actions {
  inset: auto 10px 10px;
  display: grid;
  grid-template-columns: 1fr 36px;
}

.quick-actions button {
  min-height: 34px;
  border-radius: 10px;
  background: rgba(10,10,12,.72) !important;
}

.match-badge {
  right: 10px;
  top: 10px;
  bottom: auto;
  color: var(--green);
}

.history-badge {
  top: 10px;
  left: 10px;
  border-radius: 999px;
}

.progress {
  left: 12px;
  right: 12px;
  bottom: 8px;
  border-radius: 999px;
}

.progress span,
#player .player-progress span {
  background: var(--accent) !important;
}

.search-overlay,
.drawer,
.side-panel {
  background: rgba(9,10,12,.76);
  backdrop-filter: blur(18px);
}

.search-shell,
.detail-body,
#panel-content {
  border-color: rgba(255,255,255,.1) !important;
  border-radius: 20px !important;
  background: rgba(18,21,26,.92) !important;
  box-shadow: var(--shadow) !important;
}

.search-results {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.drawer {
  width: min(880px, 100%);
}

.detail-backdrop {
  filter: none !important;
  opacity: .45;
}

.tabs {
  gap: 8px;
  border-bottom: 0;
}

.settings-section {
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.035) !important;
}

.setting-row,
.source-note-row,
.server-health-item {
  border-color: rgba(255,255,255,.075) !important;
}

#player {
  background: #090a0c !important;
}

#player .player-shell {
  min-height: 100dvh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 34vh),
    #090a0c !important;
}

#player .player-ambient {
  opacity: .45 !important;
  filter: none !important;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

#player .player-page-head {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
  gap: 28px;
  align-items: end;
  padding: 82px max(28px, 5vw) 24px;
}

#player .player-page-copy {
  max-width: 780px;
}

#player #player-page-title {
  font-size: 5.6rem;
  line-height: .82;
}

#player #player-page-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent) !important;
  color: #fff !important;
}

#player .player-page-meta span {
  border: 0;
  background: rgba(255,255,255,.08);
}

#player .player-page-actions {
  justify-content: flex-end;
  align-content: end;
  gap: 10px;
}

#player .player-page-server,
#player .player-page-time {
  min-width: 150px;
}

#player .player-page-server select,
#player .player-page-time input {
  min-height: 44px;
}

#player .player-media-frame {
  width: min(1500px, calc(100% - 56px));
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
}

#player .player-hud.top {
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  pointer-events: none;
}

#player .player-hud.top .close {
  pointer-events: auto;
  background: rgba(0,0,0,.5);
}

#player .player-title,
#player .player-session {
  display: none;
}

#player .player-hud.bottom {
  position: relative;
  inset: auto;
  width: min(1500px, calc(100% - 56px));
  margin: 14px auto 34px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(16px);
}

#player .player-server-switch {
  gap: 8px;
}

#player .player-server-switch button,
#player .player-hud.bottom .secondary.small {
  min-height: 38px;
  border-radius: 11px !important;
}

#player .player-server-switch button.active,
#player .player-hud.bottom .secondary.small:focus-visible {
  background: #fff !important;
  color: #090a0c !important;
}

#player .player-episode-drawer,
#player .player-dock {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  top: auto;
  border-radius: 18px;
  background: rgba(18,21,26,.94);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

#player .player-episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#player .player-episode-row {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

#player .player-controls-peek {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  border-radius: 999px;
  background: #fff;
  color: #090a0c;
}

.auth-screen {
  background:
    radial-gradient(circle at 76% 12%, rgba(229,9,20,.18), transparent 28rem),
    linear-gradient(180deg, #101217, #090a0c);
}

.auth-card {
  border-radius: 22px;
  border-color: rgba(255,255,255,.09);
  background: rgba(18,21,26,.86);
  box-shadow: var(--shadow);
}

.auth-form {
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.auth-copy h1 {
  font-family: var(--display);
  line-height: .88;
}

@media (max-width: 1080px) {
  .command-deck {
    grid-template-columns: 1fr;
  }

  #player .player-page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #player .player-page-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: 60px;
    top: 10px;
    left: 10px;
    right: 10px;
    border-radius: 16px;
  }

  .nav-actions {
    gap: 6px;
  }

  .hero {
    min-height: 74vh;
    padding: 118px 20px 64px;
  }

  .hero h2 {
    font-size: 4.4rem;
  }

  .command-deck,
  .mood-panel,
  .rows,
  #player .player-media-frame,
  #player .player-hud.bottom {
    width: calc(100% - 28px);
  }

  .mood-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .rail {
    grid-auto-columns: minmax(158px, 45vw);
  }

  .movie-card,
  .poster {
    min-height: 260px;
  }

  #player .player-page-head {
    padding: 78px 14px 18px;
  }

  #player #player-page-title {
    font-size: 4rem;
  }

  #player .player-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #player .player-page-server,
  #player .player-page-time,
  #player .player-page-server select,
  #player .player-page-time input {
    width: 100%;
  }

  #player .player-episode-drawer,
  #player .player-dock {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar .brand .mark {
    width: 30px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .primary {
    grid-column: 1 / -1;
  }

  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-tile {
    grid-template-columns: 1fr;
  }

  .search-shell,
  .detail-body,
  #panel-content {
    border-radius: 16px !important;
  }

  #player .player-page-actions {
    grid-template-columns: 1fr;
  }

  #player .player-hud.bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  #player .player-now,
  #player .player-upnext,
  #player .player-server-switch {
    grid-column: 1 / -1;
  }
}


:root {
  --accent: #ffffff;
  --accent-soft: rgba(255,255,255,.14);
  --green: #ffffff;
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 300px),
    #050505 !important;
}

.brand .mark {
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 18% 32%, #fff 32% 50%, transparent 50% 64%, #fff 64% 100%) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) !important;
}

.avatar-button {
  background: #fff !important;
  color: #050505 !important;
}

.original,
.eyebrow,
.match-badge,
#player .player-page-meta span:first-child {
  color: #fff !important;
}

.primary,
.chips button.active,
.tabs button.active,
.player-season-tabs button.active,
#player #player-page-kicker,
#player .player-server-switch button.active,
#player .player-hud.bottom .secondary.small:focus-visible {
  background: #fff !important;
  border-color: #fff !important;
  color: #050505 !important;
}

.secondary,
.chips button,
.tabs button,
.player-season-tabs button,
.nav-links .active,
.mobile-bar .active,
.filter-row .active {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.auth-screen {
  background:
    radial-gradient(circle at 72% 8%, rgba(255,255,255,.08), transparent 24rem),
    linear-gradient(180deg, #101010, #050505) !important;
}

.hero-media,
.poster-img,
.detail-backdrop,
.history-item img,
.search-main img,
body[data-artwork="grayscale"] .hero-media,
body[data-artwork="grayscale"] .poster-img,
body[data-artwork="grayscale"] .detail-backdrop,
body[data-artwork="grayscale"] .history-item img,
body[data-artwork="grayscale"] .search-main img,
body.performance-mode[data-artwork="grayscale"] .hero-media,
body.performance-mode[data-artwork="grayscale"] .poster-img,
body.performance-mode[data-artwork="grayscale"] .detail-backdrop,
body.performance-mode[data-artwork="grayscale"] .history-item img,
body.performance-mode[data-artwork="grayscale"] .search-main img {
  filter: none !important;
}

.poster {
  border-color: rgba(255,255,255,.12) !important;
  background: #0b0b0b !important;
}

.poster::after {
  background:
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.58) 31%, rgba(0,0,0,.1) 62%, transparent 100%) !important;
}

.poster h3 {
  bottom: 58px !important;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.86);
}

.poster .card-meta {
  bottom: 40px !important;
  color: rgba(255,255,255,.72) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-actions {
  inset: auto 8px 10px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  opacity: 1 !important;
  transform: none !important;
}

.quick-actions button {
  min-width: 0 !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 9px !important;
  background: rgba(0,0,0,.72) !important;
  color: #fff !important;
  font-size: .66rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
}

.quick-actions button:hover {
  background: #fff !important;
  color: #050505 !important;
}

.history-badge,
.match-badge {
  background: rgba(0,0,0,.68) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.progress span,
#player .player-progress span {
  background: #fff !important;
}

.movie-card:hover {
  border-color: transparent !important;
}

.topbar,
.command-deck,
.mood-panel,
.search-shell,
.detail-body,
#panel-content,
.settings-section,
#player .player-hud.bottom,
#player .player-media-frame {
  border-color: rgba(255,255,255,.11) !important;
}

@media (max-width: 820px) {
  .poster h3 {
    bottom: 56px !important;
  }

  .poster .card-meta {
    bottom: 38px !important;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .quick-actions button {
    height: 29px !important;
    min-height: 29px !important;
    font-size: .62rem !important;
  }
}


.brand .mark,
.mark,
.topbar .brand .mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 0 !important;
  background: url("assets/mono-mark.svg") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.48)) !important;
}

.brand.large .mark {
  width: 64px !important;
  height: 64px !important;
}

@media (max-width: 820px) {
  .brand .mark,
  .mark,
  .topbar .brand .mark {
    width: 36px !important;
    height: 36px !important;
  }

  .brand.large .mark {
    width: 56px !important;
    height: 56px !important;
  }

}


body[data-theme="mono"] {
  --theme-bg: #050505;
  --theme-surface: rgba(255,255,255,.055);
  --theme-surface-strong: rgba(255,255,255,.1);
  --theme-border: rgba(255,255,255,.14);
  --theme-text: #ffffff;
  --theme-muted: #a8a8a8;
  --theme-accent: #ffffff;
}

body[data-theme="graphite"] {
  --theme-bg: #0b0d10;
  --theme-surface: rgba(150,160,172,.11);
  --theme-surface-strong: rgba(188,198,210,.18);
  --theme-border: rgba(210,218,228,.2);
  --theme-text: #f4f7fb;
  --theme-muted: #aeb7c2;
  --theme-accent: #d8dee8;
}

body[data-theme="snow"] {
  --black: #eef1f5;
  --near: #f7f8fa;
  --surface: rgba(255,255,255,.72);
  --raised: rgba(255,255,255,.88);
  --border: rgba(12,18,28,.16);
  --border-strong: rgba(12,18,28,.34);
  --muted: #5d6877;
  --soft: #2d3542;
  --white: #090b10;
  --pure: #050608;
  --shadow: 0 24px 80px rgba(40,50,65,.18);
  --button-glow: 0 16px 38px rgba(25,35,50,.12);
  --button-glow-strong: 0 22px 58px rgba(25,35,50,.18);
  --theme-bg: #f3f4f6;
  --theme-surface: rgba(255,255,255,.74);
  --theme-surface-strong: rgba(255,255,255,.9);
  --theme-border: rgba(10,18,32,.16);
  --theme-text: #08090b;
  --theme-muted: #596475;
  --theme-accent: #111111;
  color-scheme: light;
}

body[data-theme="crimson"] {
  --theme-bg: #080304;
  --theme-surface: rgba(229,9,20,.11);
  --theme-surface-strong: rgba(229,9,20,.2);
  --theme-border: rgba(255,95,105,.28);
  --theme-text: #fff5f6;
  --theme-muted: #e5b9bd;
  --theme-accent: #ff2633;
}

body[data-theme="ocean"] {
  --theme-bg: #031014;
  --theme-surface: rgba(0,184,212,.1);
  --theme-surface-strong: rgba(0,184,212,.18);
  --theme-border: rgba(102,232,255,.26);
  --theme-text: #effdff;
  --theme-muted: #a3c8d2;
  --theme-accent: #66e8ff;
}

body[data-theme="ember"] {
  --theme-bg: #0d0703;
  --theme-surface: rgba(255,122,24,.1);
  --theme-surface-strong: rgba(255,122,24,.19);
  --theme-border: rgba(255,184,107,.27);
  --theme-text: #fff7ed;
  --theme-muted: #dcc1a3;
  --theme-accent: #ffb86b;
}

body[data-theme="violet"] {
  --theme-bg: #090712;
  --theme-surface: rgba(161,120,255,.11);
  --theme-surface-strong: rgba(161,120,255,.2);
  --theme-border: rgba(197,172,255,.27);
  --theme-text: #faf7ff;
  --theme-muted: #c6b9e6;
  --theme-accent: #c5acff;
}

body[data-theme="matrix"] {
  --theme-bg: #030806;
  --theme-surface: rgba(0,255,136,.1);
  --theme-surface-strong: rgba(0,255,136,.18);
  --theme-border: rgba(90,255,170,.24);
  --theme-text: #effff7;
  --theme-muted: #9bdab9;
  --theme-accent: #4dff9a;
}

body[data-theme="gold"] {
  --theme-bg: #0c0903;
  --theme-surface: rgba(255,204,92,.11);
  --theme-surface-strong: rgba(255,204,92,.2);
  --theme-border: rgba(255,225,142,.27);
  --theme-text: #fff9eb;
  --theme-muted: #d9c79d;
  --theme-accent: #ffe18e;
}

body[data-theme="rose"] {
  --theme-bg: #12060a;
  --theme-surface: rgba(255,137,177,.1);
  --theme-surface-strong: rgba(255,137,177,.19);
  --theme-border: rgba(255,185,209,.26);
  --theme-text: #fff6fa;
  --theme-muted: #e6b7c8;
  --theme-accent: #ffb9d1;
}

body:not([data-theme="mono"]) {
  background:
    radial-gradient(circle at 72% 0%, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 7%, transparent), transparent 320px),
    var(--theme-bg) !important;
  color: var(--theme-text);
}

body:not([data-theme="mono"]) .topbar,
body:not([data-theme="mono"]) .command-deck,
body:not([data-theme="mono"]) .mood-panel,
body:not([data-theme="mono"]) .search-shell,
body:not([data-theme="mono"]) .detail-body,
body:not([data-theme="mono"]) #panel-content,
body:not([data-theme="mono"]) .settings-section,
body:not([data-theme="mono"]) #player .player-hud.bottom,
body:not([data-theme="mono"]) #player .player-media-frame,
body:not([data-theme="mono"]) .poster {
  border-color: var(--theme-border) !important;
}

body:not([data-theme="mono"]) .topbar,
body:not([data-theme="mono"]) .settings-section,
body:not([data-theme="mono"]) .command-deck,
body:not([data-theme="mono"]) .mood-panel,
body:not([data-theme="mono"]) .deck-tile,
body:not([data-theme="mono"]) .search-shell,
body:not([data-theme="mono"]) .detail-body,
body:not([data-theme="mono"]) #panel-content,
body:not([data-theme="mono"]) #player .player-hud.bottom {
  background: color-mix(in srgb, var(--theme-surface) 86%, rgba(0,0,0,.18)) !important;
}

body:not([data-theme="mono"]) .primary,
body:not([data-theme="mono"]) .chips button.active,
body:not([data-theme="mono"]) .tabs button.active,
body:not([data-theme="mono"]) .player-season-tabs button.active,
body:not([data-theme="mono"]) #player #player-page-kicker,
body:not([data-theme="mono"]) #player .player-server-switch button.active {
  background: var(--theme-accent) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-bg) !important;
}

body:not([data-theme="mono"]) .secondary,
body:not([data-theme="mono"]) .chips button,
body:not([data-theme="mono"]) .tabs button,
body:not([data-theme="mono"]) .player-season-tabs button,
body:not([data-theme="mono"]) .nav-links .active,
body:not([data-theme="mono"]) .mobile-bar .active,
body:not([data-theme="mono"]) .filter-row .active,
body:not([data-theme="mono"]) .quick-actions button {
  background: var(--theme-surface-strong) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

body:not([data-theme="mono"]) .progress span,
body:not([data-theme="mono"]) #player .player-progress span,
body:not([data-theme="mono"]) .episode-progress-mini em {
  background: var(--theme-accent) !important;
}

body:not([data-theme="mono"]) .original,
body:not([data-theme="mono"]) .eyebrow,
body:not([data-theme="mono"]) .match-badge,
body:not([data-theme="mono"]) #player .player-page-meta span:first-child {
  color: var(--theme-accent) !important;
}

body:not([data-theme="mono"]) .brand .word,
body:not([data-theme="mono"]) .word,
body:not([data-theme="mono"]) .hero-copy p:not(.original),
body:not([data-theme="mono"]) .detail-body p,
body:not([data-theme="mono"]) .setting-row,
body:not([data-theme="mono"]) .settings-note {
  color: var(--theme-text) !important;
}

body[data-theme="snow"] .hero::before {
  background:
    linear-gradient(90deg, rgba(244,246,249,.98) 0%, rgba(244,246,249,.74) 34%, rgba(244,246,249,.1) 72%, rgba(244,246,249,.76) 100%) !important;
}

body[data-theme="snow"] .hero::after {
  background: linear-gradient(0deg, #eef1f5 0%, rgba(238,241,245,.72) 44%, transparent 100%) !important;
}

body[data-theme="snow"] .topbar,
body[data-theme="snow"] .command-deck,
body[data-theme="snow"] .mood-panel,
body[data-theme="snow"] .deck-tile,
body[data-theme="snow"] .settings-section,
body[data-theme="snow"] .search-shell,
body[data-theme="snow"] .detail-body,
body[data-theme="snow"] #panel-content {
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(11,18,30,.14) !important;
  box-shadow: 0 18px 55px rgba(40,50,65,.14) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
}

body[data-theme="snow"] .meta span,
body[data-theme="snow"] .network-tile input,
body[data-theme="snow"] .auth-form input,
body[data-theme="snow"] select,
body[data-theme="snow"] #search-input,
body[data-theme="snow"] #settings-tmdb-key {
  background: rgba(255,255,255,.86) !important;
  border-color: rgba(11,18,30,.18) !important;
  color: #08090b !important;
}

body[data-theme="snow"] select option,
body[data-theme="snow"] select optgroup {
  background: #f8fafc !important;
  color: #08090b !important;
}

body[data-theme="snow"] .brand .word,
body[data-theme="snow"] .word,
body[data-theme="snow"] .hero h2,
body[data-theme="snow"] .row-header h2,
body[data-theme="snow"] .row-head h2,
body[data-theme="snow"] .deck-copy h2,
body[data-theme="snow"] .mood-panel h2,
body[data-theme="snow"] .detail-body h2,
body[data-theme="snow"] .settings-section h3 {
  color: #07090d !important;
  text-shadow: none !important;
}

body[data-theme="snow"] .hero-copy p,
body[data-theme="snow"] .row-header span,
body[data-theme="snow"] .settings-note,
body[data-theme="snow"] .detail-body p,
body[data-theme="snow"] .setting-row,
body[data-theme="snow"] .deck-tile,
body[data-theme="snow"] .meta span {
  color: #263141 !important;
}

body[data-theme="snow"] .nav-links,
body[data-theme="snow"] .mobile-bar {
  background: rgba(255,255,255,.5) !important;
  border-color: rgba(11,18,30,.12) !important;
}

body[data-theme="snow"] .nav-links button,
body[data-theme="snow"] .mobile-bar button,
body[data-theme="snow"] .icon-button {
  color: #1f2937 !important;
}

body[data-theme="snow"] .nav-links .active,
body[data-theme="snow"] .mobile-bar .active,
body[data-theme="snow"] .primary,
body[data-theme="snow"] .chips button.active,
body[data-theme="snow"] .tabs button.active,
body[data-theme="snow"] .player-season-tabs button.active,
body[data-theme="snow"] #player .player-server-switch button.active {
  background: #08090b !important;
  border-color: #08090b !important;
  color: #fff !important;
}

body[data-theme="snow"] .secondary,
body[data-theme="snow"] .chips button,
body[data-theme="snow"] .tabs button,
body[data-theme="snow"] .player-season-tabs button,
body[data-theme="snow"] #player .player-page-actions .secondary.small {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(11,18,30,.16) !important;
  color: #111827 !important;
}

body[data-theme="snow"] .poster {
  border-color: rgba(11,18,30,.12) !important;
  box-shadow: 0 14px 38px rgba(34,45,62,.18) !important;
}

body[data-theme="snow"] .poster h3,
body[data-theme="snow"] .poster .card-meta,
body[data-theme="snow"] .quick-actions button {
  color: #fff !important;
}

body[data-theme="snow"] .quick-actions button {
  background: rgba(0,0,0,.58) !important;
  border-color: rgba(255,255,255,.2) !important;
}

body[data-theme="snow"] .quick-actions button:hover {
  background: #fff !important;
  color: #050505 !important;
}

body[data-theme="snow"] .source-badge,
body[data-theme="snow"] .anime-badge,
body[data-theme="snow"] .collection-badge,
body[data-theme="snow"] .history-badge,
body[data-theme="snow"] .match-badge {
  background: rgba(255,255,255,.76) !important;
  border-color: rgba(11,18,30,.14) !important;
  color: #10151f !important;
}

body[data-theme="snow"] #player .player-page,
body[data-theme="snow"] #player .player-page-shell {
  background: #eef1f5 !important;
  color: #08090b !important;
}

body[data-theme="snow"] #player .player-media-frame {
  background: #050505 !important;
  border-color: rgba(11,18,30,.14) !important;
}

body[data-theme="snow"] .search-item {
  background: rgba(255,255,255,.68) !important;
  border-color: rgba(11,18,30,.12) !important;
  color: #111827 !important;
}


.splash-logo {
  width: auto !important;
  height: auto !important;
  color: var(--pure) !important;
  font-size: 2rem !important;
  background: none !important;
  filter: none !important;
}

.splash-logo span {
  display: inline !important;
  font-weight: 900;
}

.brand .mark,
.mark,
.topbar .brand .mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 0 !important;
  background: url("assets/mono-mark.svg") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 24px rgba(255,255,255,.06)) !important;
}

.brand.large .mark {
  width: 54px !important;
  height: 54px !important;
}


.poster h3 {
  bottom: 48px !important;
}

.poster .card-meta {
  bottom: 31px !important;
}

.quick-actions {
  inset: auto 8px 7px !important;
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  opacity: .92 !important;
  transform: none !important;
}

.quick-actions button,
body:not([data-theme="mono"]) .quick-actions button {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 58px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.48) !important;
  color: #fff !important;
  font-size: .58rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) !important;
}

.quick-actions button:hover,
body:not([data-theme="mono"]) .quick-actions button:hover {
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.92) !important;
  color: #050505 !important;
  transform: none !important;
}

@media (max-width: 820px) {
  .poster h3 {
    bottom: 47px !important;
  }

  .poster .card-meta {
    bottom: 30px !important;
  }

  .quick-actions {
    inset: auto 7px 7px !important;
    gap: 4px !important;
  }

  .quick-actions button,
  body:not([data-theme="mono"]) .quick-actions button {
    max-width: 52px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 7px !important;
    font-size: .54rem !important;
  }
}


select option,
select optgroup {
  background: #101114 !important;
  color: #f7f7f7 !important;
}

body::after,
footer::after,
.auth-card::after,
.player-shell::after {
  content: none !important;
  display: none !important;
}

.search-shell {
  width: min(1280px, calc(100% - 32px)) !important;
}

.search-results {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
}

.search-item {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr auto !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.105) !important;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.search-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.26) !important;
  background: rgba(255,255,255,.07) !important;
}

.search-main {
  min-height: 248px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  overflow: hidden;
}

.search-main img,
.search-thumb-fallback {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 10px !important;
}

.search-main img {
  object-fit: cover !important;
  object-position: center !important;
  background: #080808 !important;
}

.search-thumb-fallback {
  display: grid !important;
  place-items: center !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  font-family: var(--display);
  font-size: 3rem;
}

.search-main span {
  min-width: 0;
  display: grid !important;
  gap: 4px !important;
  padding: 0 2px !important;
}

.search-main b {
  color: var(--pure);
  font-size: .94rem !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-main small {
  color: rgba(255,255,255,.58) !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.search-play {
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

.auth-show-password {
  width: 100%;
}

.legal-page {
  min-height: 100vh;
  background: #050506;
  color: var(--white);
}

.legal-doc {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal-doc h1,
.legal-doc h2 {
  font-family: var(--display);
  line-height: .92;
}

.legal-doc h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  margin: 0 0 24px;
}

.legal-doc h2 {
  margin-top: 34px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.legal-doc p {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-doc a {
  color: var(--pure);
  font-weight: 900;
}

@media (max-width: 720px) {
  .search-shell {
    width: min(100% - 18px, 560px) !important;
    margin-top: 18px !important;
  }

  #search-input {
    font-size: 2.7rem !important;
  }

  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .search-item {
    padding: 6px !important;
    border-radius: 12px !important;
  }

  .search-main {
    min-height: 220px !important;
  }
}

select option:checked {
  background: #2d2f35 !important;
  color: #fff !important;
}

#player .player-page-server select option,
#player .player-season-row select option,
#sort-select option,
.setting-field select option {
  background: #101114 !important;
  color: #f7f7f7 !important;
}


#player .cast-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
}

#player .cast-overlay.hidden {
  display: none !important;
}

#player .cast-card {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #111;
  box-shadow: 0 26px 90px rgba(0,0,0,.64);
}

#player .cast-card .close {
  position: absolute;
  top: 12px;
  right: 12px;
}

#player .cast-card h2 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: .9;
}

#player .cast-card p:not(.eyebrow),
#player .cast-card ol {
  color: #d7d7d7;
  line-height: 1.55;
}

#player .cast-card ol {
  margin: 16px 0 20px;
  padding-left: 20px;
}

#player .cast-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#player .cast-actions button:first-child {
  grid-column: 1 / -1;
}


body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), transparent 360px),
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.08), transparent 30rem),
    #050506 !important;
}

body::before {
  opacity: .03 !important;
}

.topbar {
  height: 62px;
  border-radius: 14px !important;
  background: rgba(8,8,9,.78) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 55px rgba(0,0,0,.42) !important;
}

.brand .mark,
.topbar .brand .mark {
  border-radius: 5px;
  background:
    linear-gradient(90deg, #f8f8f8 0 17%, transparent 17% 29%, #f8f8f8 29% 45%, transparent 45% 58%, #f8f8f8 58% 100%) !important;
  box-shadow: none !important;
}

.brand .word {
  color: #fff;
  text-shadow: 0 1px 16px rgba(255,255,255,.14);
}

.nav-links {
  background: transparent !important;
  border-color: rgba(255,255,255,.075) !important;
}

.nav-links button {
  border-radius: 9px !important;
}

.nav-links .active {
  background: #fff !important;
  color: #050506 !important;
}

.icon-button,
.avatar-button {
  border-radius: 11px !important;
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.avatar-button {
  color: #050506 !important;
  background: #fff !important;
}

.hero {
  min-height: 76vh;
  padding-top: 140px;
}

.hero::before {
  background:
    linear-gradient(90deg, #050506 0%, rgba(5,5,6,.86) 28%, rgba(5,5,6,.18) 70%, rgba(5,5,6,.72) 100%) !important;
}

.hero::after {
  background: linear-gradient(0deg, #050506 0%, rgba(5,5,6,.78) 38%, transparent 100%) !important;
}

.hero-media {
  opacity: .82 !important;
  transform: scale(1.015);
}

.original,
.eyebrow {
  color: #fff !important;
  opacity: .76;
}

.hero h2 {
  font-size: clamp(4.25rem, 9vw, 8.4rem) !important;
  line-height: .8 !important;
  text-shadow: 0 18px 60px rgba(0,0,0,.72);
}

.hero.long-title h2 {
  font-size: 5rem !important;
}

.meta span {
  background: rgba(0,0,0,.28) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.82);
}

.hero-copy p:not(.original) {
  max-width: 58ch;
}

.primary,
.secondary,
.quick-actions button,
.search-play,
#player .player-page-actions .secondary.small,
#player .cast-actions button {
  border-radius: 10px !important;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
}

.primary:hover,
.secondary:hover,
.quick-actions button:hover,
.search-play:hover {
  transform: translateY(-2px);
}

.command-deck,
.mood-panel {
  width: min(1500px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px !important;
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.085) !important;
}

.deck-tile {
  border-radius: 12px !important;
  background: rgba(255,255,255,.045) !important;
}

.deck-tile:hover {
  background: rgba(255,255,255,.075) !important;
  transform: translateY(-2px);
}

.rows {
  width: min(1540px, calc(100% - 44px)) !important;
  margin-top: 18px !important;
}

.row {
  margin-bottom: 24px !important;
}

.row-header,
.row-head {
  margin-bottom: 12px;
}

.row-header h2,
.row-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem) !important;
  letter-spacing: 0 !important;
}

.row-header span {
  color: rgba(255,255,255,.45) !important;
  font-size: .78rem;
}

.rail {
  grid-auto-columns: clamp(176px, 13vw, 220px) !important;
  gap: 16px !important;
  padding-bottom: 22px !important;
}

.movie-card {
  min-height: 300px !important;
  transition: transform .2s var(--ease-out), filter .2s ease !important;
}

.movie-card:hover {
  transform: translateY(-4px) !important;
  z-index: 4;
}

.poster {
  min-height: 300px !important;
  border-radius: 12px !important;
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: 0 12px 38px rgba(0,0,0,.34);
}

.poster::after {
  background:
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.66) 30%, rgba(0,0,0,.08) 68%, transparent 100%) !important;
}

.poster h3 {
  left: 12px !important;
  right: 12px !important;
  bottom: 76px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 8px 24px rgba(0,0,0,.85);
}

.poster .card-meta {
  left: 12px !important;
  right: 12px !important;
  bottom: 56px !important;
  gap: 6px !important;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255,255,255,.62) !important;
}

.source-badge,
.anime-badge,
.collection-badge,
.history-badge,
.match-badge {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(0,0,0,.46) !important;
  color: #fff !important;
  backdrop-filter: blur(12px);
}

.match-badge {
  color: #21e68a !important;
}

.quick-actions {
  left: 8px !important;
  right: 8px !important;
  bottom: 16px !important;
  display: grid !important;
  grid-template-columns: 1fr 44px 44px !important;
  gap: 6px !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

.quick-actions button,
.quick-actions span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(0,0,0,.58) !important;
  color: #fff !important;
  backdrop-filter: blur(16px);
}

.quick-actions button:first-child {
  background: #fff !important;
  color: #050506 !important;
}

.quick-actions button:nth-child(2),
.quick-actions button:nth-child(3) {
  font-size: 0 !important;
}

.quick-actions button:nth-child(2)::before {
  content: "+";
  font-size: 1.1rem;
}

.quick-actions button:nth-child(3)::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: .78rem;
  font-style: italic;
}

.quick-actions span {
  display: none !important;
}

.progress {
  left: 10px !important;
  right: 10px !important;
  bottom: 7px !important;
  height: 2px !important;
  background: rgba(255,255,255,.18) !important;
}

.progress span {
  background: #fff !important;
}

.search-shell {
  width: min(1120px, calc(100% - 28px)) !important;
  border-radius: 18px !important;
  background: rgba(10,10,11,.94) !important;
}

.search-input-wrap {
  border-radius: 14px !important;
  background: rgba(255,255,255,.055) !important;
}

.search-results {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) !important;
  gap: 14px !important;
}

.search-item {
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
}

.search-play {
  background: #fff !important;
  color: #050506 !important;
}

.side-panel,
.drawer,
.search-overlay {
  backdrop-filter: blur(22px) saturate(1.1) !important;
}

.settings-section,
.source-note-row,
.server-health-item {
  border-radius: 14px !important;
}

#player .player-page-head {
  gap: 22px !important;
}

#player .player-page-actions {
  align-items: end;
  gap: 10px !important;
}

#player .player-page-server select,
#player .player-page-time input {
  min-height: 44px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.08) !important;
}

#player .player-page-actions .secondary.small {
  min-height: 44px !important;
  background: rgba(255,255,255,.055) !important;
}

#player .player-page-actions .cast-button {
  background: #fff !important;
  color: #050506 !important;
  border-color: #fff !important;
}

#player .player-media-frame {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.5) !important;
}

#player .cast-card {
  border-radius: 16px !important;
  background: rgba(12,12,13,.96) !important;
}

@media (max-width: 760px) {
  .topbar {
    left: 12px;
    right: 12px;
    top: 10px;
  }

  .hero {
    min-height: 72vh;
    padding: 112px 20px 64px;
  }

  .hero h2 {
    font-size: 4.2rem !important;
  }

  .command-deck,
  .mood-panel,
  .rows {
    width: calc(100% - 24px) !important;
  }

  .rail {
    grid-auto-columns: minmax(158px, 44vw) !important;
    gap: 12px !important;
  }

  .movie-card,
  .poster {
    min-height: 270px !important;
  }

  .quick-actions {
    grid-template-columns: 1fr 38px 38px !important;
  }
}


.deck-copy h2,
.mood-panel h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  line-height: .9 !important;
  max-width: 16ch;
}

.mood-panel {
  grid-template-columns: minmax(150px, .5fr) minmax(0, 1.5fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

.chips {
  flex-wrap: wrap;
  gap: 8px !important;
  overflow: visible !important;
}

.chips button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.055) !important;
}

.chips button.active {
  background: #fff !important;
  color: #050506 !important;
}

.movie-card .history-badge,
.movie-card .source-badge,
.movie-card .anime-badge,
.movie-card .collection-badge,
.movie-card .match-badge {
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .58rem !important;
}

.movie-card .history-badge {
  color: rgba(255,255,255,.82) !important;
}

@media (max-width: 760px) {
  .mood-panel {
    grid-template-columns: 1fr !important;
  }
}

body[data-tv-mode="on"],
body[data-tv-mode="on"] * {
  cursor: none !important;
}

body[data-tv-mode="on"] {
  scroll-behavior: smooth;
}

body[data-tv-mode="on"] button,
body[data-tv-mode="on"] a,
body[data-tv-mode="on"] input,
body[data-tv-mode="on"] select,
body[data-tv-mode="on"] textarea,
body[data-tv-mode="on"] [tabindex] {
  outline-offset: 6px;
}

body[data-tv-mode="on"] button:focus-visible,
body[data-tv-mode="on"] a:focus-visible,
body[data-tv-mode="on"] input:focus-visible,
body[data-tv-mode="on"] select:focus-visible,
body[data-tv-mode="on"] textarea:focus-visible,
body[data-tv-mode="on"] [tabindex]:focus-visible {
  outline: 4px solid #fff !important;
  box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 18px 60px rgba(0,0,0,.58) !important;
}

body[data-tv-mode="on"] .topbar {
  height: 78px;
  border-radius: 18px !important;
}

body[data-tv-mode="on"] .nav-links button,
body[data-tv-mode="on"] .icon-button,
body[data-tv-mode="on"] .avatar-button {
  min-height: 52px;
}

body[data-tv-mode="on"] .hero {
  min-height: 82vh;
  padding-top: 160px;
}

body[data-tv-mode="on"] .hero h2 {
  font-size: clamp(5.5rem, 10vw, 10rem) !important;
}

body[data-tv-mode="on"] .hero-copy p:not(.original) {
  font-size: 1.28rem;
  max-width: 62ch;
}

body[data-tv-mode="on"] .primary,
body[data-tv-mode="on"] .secondary,
body[data-tv-mode="on"] .quick-actions button,
body[data-tv-mode="on"] .search-play {
  min-height: 52px !important;
  padding-inline: 20px !important;
  font-size: .9rem !important;
}

body[data-tv-mode="on"] .rows {
  width: min(1760px, calc(100% - 76px)) !important;
}

body[data-tv-mode="on"] .row {
  margin-bottom: 42px !important;
}

body[data-tv-mode="on"] .rail {
  grid-auto-columns: clamp(250px, 18vw, 330px) !important;
  gap: 24px !important;
  padding: 10px 8px 32px !important;
}

body[data-tv-mode="on"] .movie-card,
body[data-tv-mode="on"] .poster {
  min-height: 430px !important;
}

body[data-tv-mode="on"] .poster h3 {
  bottom: 96px !important;
  font-size: 1.28rem !important;
}

body[data-tv-mode="on"] .poster .card-meta {
  bottom: 72px !important;
  font-size: .82rem !important;
}

body[data-tv-mode="on"] .quick-actions {
  grid-template-columns: 1fr 58px 58px !important;
  bottom: 18px !important;
}

body[data-tv-mode="on"] .quick-actions button {
  min-height: 48px !important;
}

body[data-tv-mode="on"] .command-deck,
body[data-tv-mode="on"] .mood-panel {
  width: min(1760px, calc(100% - 76px)) !important;
}

body[data-tv-mode="on"] #player .player-page-actions .secondary.small,
body[data-tv-mode="on"] #player .player-page-server select,
body[data-tv-mode="on"] #player .player-page-time input {
  min-height: 56px !important;
}

body[data-tv-mode="on"] #player .player-media-frame {
  min-height: 56vh;
}

body[data-tv-mode="on"] .side-panel,
body[data-tv-mode="on"] .search-shell,
body[data-tv-mode="on"] .drawer {
  font-size: 1.12rem;
}

:root {
  --mono-bg: #050505;
  --mono-surface: #0d0d0e;
  --mono-surface-raised: #151516;
  --mono-line: rgba(255, 255, 255, .12);
  --mono-line-strong: rgba(255, 255, 255, .24);
  --mono-text: #f7f7f5;
  --mono-muted: #a7a7a2;
  --mono-dim: #70706c;
  --mono-radius-sm: 6px;
  --mono-radius-md: 10px;
  --mono-radius-lg: 14px;
  --mono-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --mono-fast: 160ms;
  --mono-base: 240ms;
  --mono-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-padding-top: 96px;
  background: var(--mono-bg);
}

body {
  overflow-x: hidden;
  background: var(--mono-bg) !important;
  color: var(--mono-text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
}

body::before,
body::after,
.player-shell::after {
  display: none !important;
}

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

button,
a[href] {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .16) !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 200;
  padding: 11px 15px;
  border-radius: var(--mono-radius-sm);
  background: #fff;
  color: #050505;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--mono-fast) ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  background: var(--mono-bg) !important;
}

.topbar {
  inset: 14px 24px auto !important;
  width: auto;
  height: 64px !important;
  padding: 0 14px 0 18px !important;
  border: 1px solid rgba(255, 255, 255, .11) !important;
  border-radius: var(--mono-radius-lg) !important;
  background: rgba(7, 7, 8, .86) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .34) !important;
  backdrop-filter: blur(18px) saturate(1.12);
  transition: height var(--mono-base) var(--mono-ease), background var(--mono-base) ease, border-color var(--mono-base) ease !important;
}

.topbar.scrolled {
  height: 58px !important;
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(5, 5, 5, .95) !important;
}

.brand {
  color: #fff;
  gap: 10px;
}

.brand .mark,
.topbar .brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 0 !important;
  background: url("assets/mono-mark.svg") center / contain no-repeat !important;
  filter: none;
}

.brand .word {
  color: #fff;
  font-family: "Archivo Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: none;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 2px !important;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: var(--mono-radius-md);
  background: rgba(255, 255, 255, .025) !important;
}

.nav-links button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 7px !important;
  color: #99999b;
  font-size: .82rem;
  font-weight: 750;
  transition: color var(--mono-fast) ease, background var(--mono-fast) ease;
}

.nav-links button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07) !important;
}

.nav-links .active {
  color: #050505 !important;
  background: #fff !important;
}

.nav-links .active::after {
  display: none;
}

.nav-actions {
  gap: 8px;
}

.icon-button,
.avatar-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid var(--mono-line) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .045) !important;
  color: #fff;
  transition: background var(--mono-fast) ease, border-color var(--mono-fast) ease, transform var(--mono-fast) var(--mono-ease);
}

.icon-button:hover,
.avatar-button:hover {
  border-color: var(--mono-line-strong) !important;
  background: rgba(255, 255, 255, .11) !important;
  transform: translateY(-1px);
}

.avatar-button {
  background: #f7f7f5 !important;
  color: #050505 !important;
  font-weight: 900;
}

.hero {
  min-height: 760px !important;
  height: min(88vh, 900px);
  padding: 154px 5vw 94px !important;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  display: block !important;
  opacity: 1 !important;
  z-index: -1;
  background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .93) 25%, rgba(5, 5, 5, .5) 52%, rgba(5, 5, 5, .08) 82%) !important;
}

.hero::after {
  display: block !important;
  opacity: 1 !important;
  z-index: -1;
  background: linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, .82) 13%, transparent 45%) !important;
}

body.performance-mode .hero::before,
body.performance-mode .hero::after {
  display: block !important;
  opacity: 1 !important;
}

.hero-media {
  z-index: -2;
  opacity: .94 !important;
  transform: scale(1.01);
  filter: saturate(.94) contrast(1.03);
  transition: opacity 500ms ease, transform 1200ms var(--mono-ease);
}

.hero.hero-switch .hero-media {
  transform: scale(1.035);
}

.hero-copy {
  width: min(680px, 55vw);
  max-width: none;
  padding: 0;
}

.original,
.eyebrow {
  margin-bottom: 12px;
  color: #b6b6b1 !important;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 0;
  opacity: 1;
}

.hero h2 {
  max-width: 11ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: 6rem !important;
  line-height: .86 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, .58);
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  border-radius: 5px !important;
  background: rgba(0, 0, 0, .32) !important;
  color: #d6d6d3 !important;
  font-size: .74rem;
  font-weight: 700;
}

.hero-copy p:not(.original) {
  max-width: 58ch;
  margin: 0 0 24px;
  color: #d1d1ce;
  font-size: 1rem;
  line-height: 1.66;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 9px;
}

.primary,
.secondary {
  min-height: 44px;
  border-radius: 8px !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0;
  transition: transform var(--mono-fast) var(--mono-ease), background var(--mono-fast) ease, border-color var(--mono-fast) ease !important;
}

.primary {
  background: #fff !important;
  color: #050505 !important;
}

.secondary {
  border-color: var(--mono-line-strong) !important;
  background: rgba(10, 10, 10, .62) !important;
  color: #fff !important;
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

.secondary:hover {
  background: rgba(255, 255, 255, .12) !important;
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #aaa;
  font-size: .7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-arrow,
.row-tools button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mono-line);
  border-radius: 7px;
  background: rgba(8, 8, 8, .48);
  color: #fff;
  transition: background var(--mono-fast) ease, border-color var(--mono-fast) ease;
}

.hero-arrow:hover,
.row-tools button:hover {
  border-color: var(--mono-line-strong);
  background: #fff;
  color: #050505;
}

.hero-arrow svg,
.row-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.command-deck {
  width: min(1500px, calc(100% - 64px)) !important;
  margin: 0 auto 42px !important;
  padding: 24px 0 28px !important;
  border: 0 !important;
  border-top: 1px solid var(--mono-line) !important;
  border-bottom: 1px solid var(--mono-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.deck-copy h2,
.mood-panel h2 {
  max-width: 18ch;
  margin: 0;
  font-family: "Archivo Condensed", sans-serif;
  font-size: 2.2rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.deck-copy > p:last-child {
  color: var(--mono-muted);
  font-size: .9rem;
}

.deck-grid {
  gap: 8px !important;
}

.deck-tile {
  min-height: 102px;
  padding: 16px !important;
  border: 1px solid var(--mono-line) !important;
  border-radius: var(--mono-radius-md) !important;
  background: #0b0b0c !important;
  color: #fff;
  text-align: left;
  transition: transform var(--mono-fast) var(--mono-ease), border-color var(--mono-fast) ease, background var(--mono-fast) ease !important;
}

.deck-tile:hover {
  border-color: var(--mono-line-strong) !important;
  background: #111112 !important;
  transform: translateY(-2px);
}

.deck-tile b {
  font-size: 1.8rem;
  line-height: 1;
}

.deck-tile small,
.deck-tile span {
  color: var(--mono-muted);
}

.mood-panel {
  width: min(1500px, calc(100% - 64px)) !important;
  margin: 0 auto 48px !important;
  padding: 18px 0 !important;
  grid-template-columns: 220px minmax(0, 1fr) auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px !important;
}

.chips button,
.filter-row button {
  min-height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid var(--mono-line) !important;
  border-radius: 7px !important;
  background: #0b0b0c !important;
  color: var(--mono-muted) !important;
  font-size: .76rem;
  font-weight: 750;
  transition: color var(--mono-fast) ease, background var(--mono-fast) ease, border-color var(--mono-fast) ease;
}

.chips button:hover,
.filter-row button:hover {
  color: #fff !important;
  border-color: var(--mono-line-strong) !important;
}

.chips button.active,
.filter-row button.active {
  background: #fff !important;
  border-color: #fff !important;
  color: #050505 !important;
}

.catalog {
  min-width: 0;
}

.rows {
  width: min(1540px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

.row {
  margin: 0 0 50px !important;
  animation: none !important;
}

.row-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 4px 15px !important;
}

.row-header > div:first-child {
  min-width: 0;
}

.row-header p {
  margin: 0 0 4px;
  color: var(--mono-dim);
  font-size: .62rem;
  font-weight: 800;
}

.row-header h2,
.row-head h2 {
  margin: 0;
  color: #f7f7f5;
  font-family: "Archivo Condensed", sans-serif;
  font-size: 2rem !important;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.row-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.row-tools > span {
  margin-right: 4px;
  color: var(--mono-dim) !important;
  font-size: .7rem !important;
  white-space: nowrap;
}

.rail {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 210px !important;
  gap: 14px !important;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  padding: 3px 4px 15px !important;
}

.rail::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-height: 315px !important;
  scroll-snap-align: start;
  border-radius: var(--mono-radius-md);
  background: #0b0b0c;
  transition: transform var(--mono-base) var(--mono-ease), filter var(--mono-base) ease !important;
}

.movie-card:hover,
.movie-card:focus-within {
  z-index: 3;
  transform: translateY(-4px) !important;
}

.poster {
  min-height: 315px !important;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--mono-line) !important;
  border-radius: var(--mono-radius-md) !important;
  background: #111 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
  overflow: hidden;
}

.poster-img {
  transition: transform 420ms var(--mono-ease), filter 300ms ease !important;
}

.movie-card:hover .poster-img,
.movie-card:focus-within .poster-img {
  transform: scale(1.035) !important;
}

.poster::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .74) 25%, rgba(0, 0, 0, .05) 61%, transparent 100%) !important;
}

.poster h3 {
  left: 13px !important;
  right: 13px !important;
  bottom: 49px !important;
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster .card-meta {
  left: 13px !important;
  right: 13px !important;
  bottom: 29px !important;
  display: flex;
  gap: 6px !important;
  overflow: hidden;
  color: #b4b4b0 !important;
  font-size: .64rem !important;
  white-space: nowrap;
}

.poster .card-meta span:nth-child(n+4) {
  display: none;
}

.source-badge,
.anime-badge,
.collection-badge,
.history-badge,
.match-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 20px);
  padding: 0 7px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 5px !important;
  background: rgba(0, 0, 0, .7) !important;
  color: #fff !important;
  font-size: .58rem !important;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: none !important;
}

.source-badge,
.anime-badge,
.collection-badge {
  display: none !important;
}

.history-badge {
  top: 10px !important;
  left: 10px !important;
}

.match-badge {
  top: 10px !important;
  right: 10px !important;
  color: #fff !important;
}

.shine {
  display: none;
}

.quick-actions {
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  display: grid !important;
  grid-template-columns: 1fr 40px 40px !important;
  gap: 6px !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none;
  transition: opacity var(--mono-fast) ease, transform var(--mono-fast) var(--mono-ease) !important;
}

.movie-card:hover .quick-actions,
.movie-card:focus-within .quick-actions {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

.quick-actions button {
  min-height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 7px !important;
  background: rgba(9, 9, 9, .92) !important;
  color: #fff !important;
  font-size: .68rem !important;
  font-weight: 850 !important;
  backdrop-filter: none !important;
}

.quick-actions button:first-child {
  background: #fff !important;
  color: #050505 !important;
}

.quick-actions button:nth-child(2),
.quick-actions button:nth-child(3) {
  font-size: 0 !important;
}

.quick-actions button:nth-child(2)::before {
  content: "+";
  font-size: 1.15rem;
}

.quick-actions button:nth-child(3)::before {
  content: "i";
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .7rem;
  font-style: normal;
}

.quick-actions span {
  display: none !important;
}

.progress {
  left: 9px !important;
  right: 9px !important;
  bottom: 3px !important;
  height: 3px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2) !important;
}

.progress span {
  border-radius: inherit;
  background: #fff !important;
}

.empty-state {
  width: min(520px, calc(100vw - 56px));
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: var(--mono-radius-md);
  background: #09090a;
  text-align: left;
}

.empty-state h3 {
  margin: 0;
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  color: var(--mono-muted);
}

.search-overlay {
  z-index: 90;
  align-items: flex-start !important;
  padding: 34px 20px !important;
  overflow-y: auto;
  background: rgba(0, 0, 0, .86) !important;
  backdrop-filter: blur(18px) !important;
}

.search-shell {
  width: min(1160px, 100%) !important;
  min-height: calc(100vh - 68px);
  margin: 0 auto !important;
  padding: 58px 34px 38px !important;
  border: 1px solid var(--mono-line) !important;
  border-radius: var(--mono-radius-lg) !important;
  background: #0a0a0b !important;
  box-shadow: var(--mono-shadow) !important;
}

.search-shell > .close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
}

.search-heading {
  margin: 0 0 22px;
}

.search-heading h2 {
  margin: 0;
  font-family: "Archivo Condensed", sans-serif;
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
}

.search-input-wrap {
  min-height: 62px;
  display: grid !important;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--mono-line-strong);
  border-radius: var(--mono-radius-md) !important;
  background: #121213 !important;
}

.search-input-wrap:focus-within {
  border-color: #fff;
}

.search-input-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--mono-muted);
  stroke-width: 1.8;
}

#search-input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #fff;
  font-size: 1.15rem !important;
  box-shadow: none !important;
}

#search-input::placeholder {
  color: #6f6f71;
}

.search-shortcut {
  padding: 4px 7px;
  border: 1px solid var(--mono-line);
  border-radius: 5px;
  color: var(--mono-dim);
  font-size: .62rem;
  font-weight: 800;
}

.filter-row {
  flex-wrap: wrap;
  margin: 14px 0 4px;
  gap: 7px;
}

#sort-select {
  min-height: 38px;
  margin-left: auto;
  padding: 0 34px 0 12px;
  border: 1px solid var(--mono-line);
  border-radius: 7px;
  background: #111 !important;
  color: #fff;
}

.search-status {
  min-height: 20px;
  margin: 14px 2px 10px;
  color: var(--mono-dim);
  font-size: .72rem;
}

.search-history {
  grid-column: 1 / -1;
}

.search-results {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
}

.search-item {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0;
  padding: 6px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: var(--mono-radius-md) !important;
  background: #111112 !important;
  transition: border-color var(--mono-fast) ease, background var(--mono-fast) ease, transform var(--mono-fast) var(--mono-ease);
}

.search-item:hover,
.search-item:focus-within {
  border-color: var(--mono-line-strong) !important;
  background: #171718 !important;
  transform: translateY(-1px);
}

.search-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0;
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.search-main img,
.search-thumb-fallback {
  width: 58px !important;
  height: 78px !important;
  border-radius: 6px !important;
  object-fit: cover;
}

.search-main b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.3;
}

.search-main small {
  display: block;
  margin-top: 5px;
  color: var(--mono-muted);
  font-size: .65rem;
}

.search-play {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center;
  width: 48px !important;
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #050505 !important;
  font-size: .66rem !important;
  font-weight: 850;
}

.drawer {
  width: min(1080px, 88vw) !important;
  padding: 0 !important;
  border-left: 1px solid var(--mono-line) !important;
  background: #080809 !important;
  box-shadow: -30px 0 90px rgba(0, 0, 0, .68) !important;
  backdrop-filter: none !important;
}

.drawer .close {
  top: 18px !important;
  right: 18px !important;
  z-index: 5;
}

.detail-backdrop {
  min-height: 430px !important;
  border-radius: 0 !important;
  background-position: center 24% !important;
}

.detail-body {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  padding: 34px 48px 54px !important;
  background: linear-gradient(0deg, #080809 0%, #080809 78%, transparent 100%) !important;
}

.detail-body h2 {
  max-width: 14ch;
  margin: 0 0 16px;
  font-size: 4.6rem !important;
  line-height: .9;
  text-wrap: balance;
}

.detail-body > p:not(.eyebrow) {
  max-width: 68ch;
  color: #c8c8c4;
  line-height: 1.7;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 34px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--mono-line);
  overflow-x: auto;
}

.tabs button {
  min-height: 44px;
  padding: 0 14px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mono-muted) !important;
  white-space: nowrap;
}

.tabs button.active {
  border-bottom-color: #fff !important;
  background: transparent !important;
  color: #fff !important;
}

.tab-body {
  padding-top: 22px;
}

.side-panel {
  width: min(460px, 94vw) !important;
  padding: 28px !important;
  border-left: 1px solid var(--mono-line) !important;
  background: #0a0a0b !important;
  box-shadow: -24px 0 70px rgba(0, 0, 0, .62) !important;
  backdrop-filter: none !important;
}

.settings-section,
.source-note-row,
.server-health-item {
  border-radius: var(--mono-radius-md) !important;
  background: #111112 !important;
}

#player.player {
  overflow-y: auto !important;
  background: #050505 !important;
}

#player .player-shell {
  width: min(1540px, 100%) !important;
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 42px 64px !important;
  background: #050505 !important;
}

#player .player-ambient {
  opacity: .22 !important;
  filter: blur(70px) saturate(.8) !important;
}

#player .player-page-head {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, auto) !important;
  align-items: end !important;
  gap: 32px !important;
  margin-bottom: 22px;
  padding-right: 58px;
}

#player .player-page-copy {
  max-width: 700px;
}

#player .player-page-copy h2 {
  margin: 4px 0 9px;
  font-family: "Archivo Condensed", sans-serif;
  font-size: 3.8rem !important;
  line-height: .9;
}

#player .player-page-copy > p:last-child {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--mono-muted);
  font-size: .86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#player .player-page-actions {
  display: grid !important;
  grid-template-columns: minmax(170px, 1fr) 96px repeat(4, auto) !important;
  align-items: end !important;
  gap: 8px !important;
}

#player .player-page-server,
#player .player-page-time {
  display: grid;
  gap: 6px;
  color: var(--mono-muted);
  font-size: .68rem;
  font-weight: 800;
}

#player .player-page-server select,
#player .player-page-time input,
#player .player-page-actions .secondary.small {
  min-height: 44px !important;
  border: 1px solid var(--mono-line) !important;
  border-radius: 7px !important;
  background: #111112 !important;
  color: #fff !important;
}

#player .player-page-actions .secondary.small {
  padding: 0 12px !important;
}

#player .player-page-actions .cast-button {
  background: #fff !important;
  color: #050505 !important;
}

#player .player-page-actions #player-page-time-save,
#player .player-page-actions #player-page-full {
  display: none;
}

#player .player-hud.top {
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

#player .player-hud.top > *:not(#exit-player) {
  display: none !important;
}

#player #exit-player {
  pointer-events: auto;
}

#player .player-media-frame {
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--mono-line) !important;
  border-radius: var(--mono-radius-md) !important;
  background: #000 !important;
  box-shadow: 0 28px 84px rgba(0, 0, 0, .55) !important;
  overflow: hidden;
}

#player .player-media-frame iframe,
#player .player-media-frame video {
  width: 100%;
  height: 100%;
}

#player .player-hud.bottom {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px !important;
  margin-top: 12px;
  padding: 12px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

#player .player-now {
  min-width: 200px;
  margin-right: auto;
}

#player .player-hud.bottom .secondary.small,
#player .player-server-switch .secondary.small {
  min-height: 40px !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  font-size: .66rem !important;
}

#player .player-server-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#player .player-server-switch button:not(.active),
#player #player-server-toggle,
#player #player-try-next,
#player #player-info,
#player #player-save,
#player #open-external-player,
#player #cinema-mode,
#player #player-hide-controls {
  display: none !important;
}

#player .player-episode-controls,
#player #player-episodes {
  display: flex !important;
}

#player .player-episode-drawer {
  position: relative !important;
  inset: auto !important;
  width: min(1120px, 100%) !important;
  max-height: none !important;
  margin: 34px auto 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#player .player-episode-drawer.hidden {
  display: none !important;
}

#player .player-dock-head {
  min-height: 52px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--mono-line);
}

#player .player-season-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 0;
}

#player .player-season-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--mono-line);
  border-radius: 7px;
  background: #111112;
  color: var(--mono-muted);
}

#player .player-season-tabs button.active {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

#player .player-episode-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

#player .player-episode-row {
  min-width: 0;
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: var(--mono-radius-md) !important;
  background: #111112 !important;
  transition: border-color var(--mono-fast) ease, background var(--mono-fast) ease;
}

#player .player-episode-row:hover,
#player .player-episode-row.active {
  border-color: var(--mono-line-strong) !important;
  background: #181819 !important;
}

.toast {
  display: none !important;
}

footer {
  width: min(1500px, calc(100% - 64px));
  margin: 40px auto 0;
  padding: 30px 0 94px !important;
  border-top: 1px solid var(--mono-line);
}

.mobile-bar {
  border: 1px solid var(--mono-line) !important;
  background: rgba(8, 8, 9, .94) !important;
  backdrop-filter: blur(16px);
}

@media (hover: none) {
  .quick-actions {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .nav-links button {
    padding-inline: 10px;
  }

  .hero h2 {
    font-size: 4.8rem !important;
  }

  .command-deck {
    grid-template-columns: 1fr !important;
  }

  #player .player-page-head {
    grid-template-columns: 1fr !important;
  }

  #player .player-page-actions {
    grid-template-columns: minmax(170px, 1fr) 96px repeat(4, auto) !important;
  }
}

@media (max-width: 820px) {
  .topbar {
    inset: 10px 12px auto !important;
    height: 58px !important;
  }

  .topbar .nav-links {
    display: none !important;
  }

  .topbar .brand {
    justify-self: start;
  }

  .hero {
    min-height: 680px !important;
    height: 82vh;
    padding: 112px 24px 62px !important;
  }

  .hero::before {
    background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .84) 40%, rgba(5, 5, 5, .15) 100%) !important;
  }

  .hero-copy {
    width: min(620px, 88vw);
  }

  .hero h2 {
    font-size: 4.1rem !important;
  }

  .command-deck,
  .mood-panel,
  .rows,
  footer {
    width: calc(100% - 32px) !important;
  }

  .mood-panel {
    grid-template-columns: 1fr !important;
  }

  .rail {
    grid-auto-columns: 190px !important;
  }

  .movie-card,
  .poster {
    min-height: 285px !important;
  }

  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .drawer {
    width: 100vw !important;
  }

  .detail-body {
    padding-inline: 26px !important;
  }

  .detail-body h2 {
    font-size: 3.8rem !important;
  }

  #player .player-shell {
    padding: 24px 18px 54px !important;
  }

  #player .player-page-head {
    padding-right: 48px;
  }

  #player .player-page-copy h2 {
    font-size: 3rem !important;
  }

  #player .player-page-actions {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  #player .player-page-server,
  #player .player-page-time {
    grid-column: span 1;
  }

  #player .player-page-actions .secondary.small {
    width: 100%;
  }

  #player .player-episode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 78px;
  }

  .topbar {
    grid-template-columns: 1fr auto !important;
    padding: 0 9px 0 13px !important;
  }

  .brand .word {
    font-size: 1rem;
  }

  .brand .mark,
  .topbar .brand .mark {
    width: 30px;
    height: 30px;
  }

  .nav-actions {
    gap: 5px;
  }

  .nav-actions .icon-button,
  .nav-actions .avatar-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  #open-notifications {
    display: none;
  }

  .hero {
    min-height: 650px !important;
    height: 84svh;
    max-height: 760px;
    padding: 104px 18px 76px !important;
    align-items: flex-end;
  }

  .hero::before {
    background: linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, .88) 34%, rgba(5, 5, 5, .2) 72%, rgba(5, 5, 5, .25) 100%) !important;
  }

  .hero::after {
    background: linear-gradient(0deg, #050505 0%, transparent 46%) !important;
  }

  .hero-media {
    background-position: 62% center !important;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h2 {
    max-width: 9ch;
    margin-bottom: 13px;
    font-size: 3.2rem !important;
    line-height: .9 !important;
  }

  .hero.long-title h2 {
    max-width: 11ch;
    font-size: 2.65rem !important;
  }

  .hero-copy p:not(.original) {
    margin-bottom: 18px;
    font-size: .88rem;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }

  .hero .meta span:nth-child(3),
  .hero .meta span:nth-child(4) {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 44px;
  }

  .hero-actions #hero-save {
    display: none;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    width: 100%;
    min-width: 0;
    padding-inline: 10px !important;
  }

  .hero-pagination {
    margin-top: 16px;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .command-deck {
    margin-bottom: 30px !important;
    padding-top: 18px !important;
  }

  .deck-copy h2,
  .mood-panel h2 {
    font-size: 1.8rem !important;
  }

  .deck-copy > p:last-child {
    display: none;
  }

  .deck-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .deck-tile {
    min-height: 88px;
    padding: 13px !important;
  }

  .mood-panel {
    margin-bottom: 34px !important;
    overflow: hidden;
  }

  .chips {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .chips button {
    flex: 0 0 auto;
    min-height: 44px !important;
  }

  #mood-pick {
    width: 100%;
  }

  .row {
    margin-bottom: 38px !important;
  }

  .row-header {
    align-items: center;
  }

  .row-header h2 {
    font-size: 1.55rem !important;
  }

  .row-header p,
  .row-tools > span,
  .row-tools button {
    display: none;
  }

  .rail {
    grid-auto-columns: 43vw !important;
    gap: 11px !important;
    margin-inline: -16px;
    padding-inline: 16px !important;
  }

  .movie-card,
  .poster {
    min-height: 64vw !important;
    max-height: 310px;
  }

  .poster h3 {
    bottom: 52px !important;
    font-size: .86rem !important;
  }

  .poster .card-meta {
    bottom: 33px !important;
  }

  .quick-actions {
    grid-template-columns: 1fr 38px !important;
  }

  .quick-actions button:nth-child(2) {
    display: none;
  }

  .search-overlay {
    padding: 0 !important;
    background: #080809 !important;
  }

  .search-shell {
    min-height: 100svh;
    padding: 72px 14px 92px !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .search-heading h2 {
    font-size: 2.25rem;
  }

  .search-input-wrap {
    min-height: 56px;
  }

  #search-input {
    min-height: 52px;
    font-size: 1rem !important;
  }

  .search-shortcut {
    display: none;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #sort-select {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .search-results {
    grid-template-columns: 1fr !important;
  }

  .search-item {
    min-height: 90px;
  }

  .detail-backdrop {
    min-height: 48svh !important;
  }

  .detail-body {
    margin-top: -72px;
    padding: 28px 18px 88px !important;
  }

  .detail-body h2 {
    font-size: 3rem !important;
  }

  #player .player-shell {
    padding: 72px 0 46px !important;
  }

  #player .player-page-head {
    padding: 0 14px;
  }

  #player .player-page-copy h2 {
    font-size: 2.4rem !important;
  }

  #player .player-page-copy > p:last-child {
    -webkit-line-clamp: 3;
  }

  #player .player-page-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  #player .player-page-server {
    grid-column: 1 / -1;
  }

  #player .player-page-time {
    display: none;
  }

  #player .player-page-actions #player-page-save,
  #player .player-page-actions #player-page-info {
    display: none;
  }

  #player .player-media-frame {
    width: 100%;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  #player .player-hud.bottom {
    padding-inline: 14px !important;
  }

  #player .player-now {
    width: 100%;
    min-width: 0;
  }

  #player .player-server-switch {
    max-width: calc(100vw - 28px);
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  #player .player-episode-drawer {
    padding: 0 14px !important;
  }

  #player .player-episode-list {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    min-height: 58px;
    padding: 5px !important;
    border-radius: 12px !important;
  }

  .mobile-bar button {
    min-width: 0;
    min-height: 46px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: .64rem;
    font-weight: 750;
  }

  .mobile-bar button[data-view="popular"],
  #mobile-search {
    display: none !important;
  }

  .mobile-bar .active {
    background: #fff !important;
    color: #050505 !important;
  }
}

@media (max-width: 360px) {
  .hero h2 {
    font-size: 2.75rem !important;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions #toggle-gray {
    display: none;
  }

  .rail {
    grid-auto-columns: 47vw !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
