/* UNYX — 2026 Netflix TV design language */
:root {
  --red: #e50914;
  --red-hover: #f6121d;
  --bg: #0a0a0a;
  --bg-raise: #161616;
  --bg-raise-2: #2a2a2a;
  --txt: #ffffff;
  --txt-dim: #b3b3b3;
  --txt-faint: #7d7d7d;
  --pad-x: 4vw;
  --nav-h: 72px;
  --r: 12px;       /* card radius */
  --r-lg: 18px;    /* billboard/modal radius */
  --rowH: clamp(165px, 18vw, 250px);
  --tile-gap: 10px;
}
@media (max-width: 800px) { :root { --nav-h: 58px; --rowH: clamp(150px, 24vw, 200px); --tile-gap: 8px; } }
@media (max-width: 500px) { :root { --rowH: 42vw; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open, body.player-open { overflow: hidden; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select { font: inherit; }
::selection { background: var(--red); color: #fff; }
.hidden { display: none !important; }

.icon { display: inline-flex; width: 1.35em; height: 1.35em; flex: none; }
.icon svg { width: 100%; height: 100%; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- logo ---------- */
.nav-logo {
  font-weight: 900; letter-spacing: 0.06em; color: var(--red);
  font-size: 1.6rem; line-height: 1; user-select: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* ---------- nav: avatar left · centered pills · logo right ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--nav-h); padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(10,10,10,.85) 20%, transparent);
  transition: background-color .35s;
}
.nav.solid { background-color: rgba(10,10,10,.96); }
.nav-left { display: flex; justify-content: flex-start; }
.nav-center { display: flex; align-items: center; gap: 6px; justify-content: center; min-width: 0; }
.nav-right { display: flex; justify-content: flex-end; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: #d9d9d9; font-size: .9rem; font-weight: 500; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-link.active { background: #fff; color: #0a0a0a; font-weight: 700; }

.nav-search { display: flex; align-items: center; }
.nav-icon-btn { display: flex; padding: 8px; border-radius: 999px; transition: background-color .2s; }
.nav-icon-btn:hover { background: rgba(255,255,255,.14); }
.nav-icon-btn .icon { width: 20px; height: 20px; }
.nav-search-input {
  width: 0; opacity: 0; transition: width .3s, opacity .2s;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; color: #fff; padding: 7px 14px; font-size: .875rem; outline: none;
}
.nav-search.open .nav-search-input { width: min(240px, 40vw); opacity: 1; margin-left: 4px; }
.nav-search-input::placeholder { color: var(--txt-faint); }

.nav-profile { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 0; }
.nav-avatar { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.nav-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--red); font-weight: 700; }
.nav-caret { width: 1em; transition: transform .2s; color: var(--txt-dim); }
.nav-profile:hover .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: rgba(12,12,12,.96); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: 8px 0; display: none; flex-direction: column; overflow: hidden;
}
.nav-profile:hover .nav-menu, .nav-profile:focus-within .nav-menu { display: flex; }
.nav-menu-name { padding: 8px 16px; font-weight: 700; font-size: .85rem; color: var(--txt-dim); }
.nav-menu-item { padding: 10px 16px; font-size: .875rem; color: #e5e5e5; }
.nav-menu-item:hover { background: rgba(255,255,255,.1); }
.nav-menu-sep { border-top: 1px solid rgba(255,255,255,.14); margin: 6px 0; }

@media (max-width: 800px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-center { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav-center::-webkit-scrollbar { display: none; }
  .nav-link { font-size: .8rem; padding: 6px 12px; }
  .nav-logo { font-size: 1.25rem; }
  .nav-avatar { width: 30px; height: 30px; }
}

/* ---------- buttons (pills) ---------- */
.btn-white, .btn-grey, .btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; border-radius: 999px; padding: 12px 26px; font-size: 1rem;
  transition: background-color .2s, transform .12s;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: rgba(255,255,255,.82); }
.btn-grey { background: rgba(60,60,60,.65); color: #fff; backdrop-filter: blur(8px); }
.btn-grey:hover { background: rgba(80,80,80,.65); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-red:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) { .btn-white, .btn-grey, .btn-red { padding: 9px 18px; font-size: .92rem; } }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); color: #fff; background: rgba(30,30,30,.6);
  transition: border-color .2s, background-color .2s;
}
.round-btn:hover { border-color: #fff; background: rgba(50,50,50,.9); }
.round-btn.primary { background: #fff; color: #000; border-color: #fff; }
.round-btn.primary:hover { background: rgba(255,255,255,.8); }
.round-btn .icon { width: 19px; height: 19px; }

/* ---------- brandmark + callout pills ---------- */
.brandmark { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.brandmark-u { color: var(--red); font-weight: 900; font-size: 1.05em; line-height: 1; }
.brandmark-kind { font-size: .62em; letter-spacing: .42em; color: #d9d9d9; font-weight: 600; }
.callout {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,12,12,.82); border-radius: 8px; padding: 6px 12px;
  font-size: .78rem; font-weight: 600; color: #f2f2f2;
  backdrop-filter: blur(6px);
}
.callout-ic { width: 1.15em; height: 1.15em; color: var(--red); }

/* ---------- billboard: inset rounded card ---------- */
.billboard { padding: calc(var(--nav-h) + 14px) var(--pad-x) 0; }
.bb-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 8; min-height: 400px; max-height: 84vh; background: var(--bg-raise);
}
.billboard-sub .bb-card { aspect-ratio: 16 / 7; min-height: 340px; }
.bb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-fade-l { position: absolute; inset: 0; background: linear-gradient(77deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.32) 40%, transparent 65%); }
.bb-fade-b { position: absolute; inset: auto 0 0 0; height: 9rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.bb-content { position: absolute; left: clamp(18px, 3.2vw, 52px); bottom: clamp(18px, 3.2vw, 46px); width: min(520px, 78%); z-index: 2; }
.bb-content .brandmark { font-size: 1.05rem; }
.bb-logo { max-width: min(400px, 58%); max-height: 160px; object-fit: contain; object-position: left bottom; margin-bottom: 1rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.bb-title { font-size: clamp(1.7rem, 4.2vw, 3.3rem); font-weight: 900; line-height: 1.05; margin-bottom: .8rem; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.bb-meta { font-size: .92rem; color: #e8e8e8; margin-bottom: .7rem; display: flex; align-items: center; flex-wrap: wrap; font-weight: 500; }
.bb-overview {
  font-size: clamp(.85rem, 1.1vw, 1rem); color: #ececec; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1.1rem; line-height: 1.5;
}
.bb-actions { display: flex; gap: 12px; }
.bb-callout { position: absolute; right: clamp(14px, 2.4vw, 34px); bottom: clamp(14px, 2.4vw, 30px); z-index: 2; }
@media (max-width: 600px) {
  .bb-card { min-height: 66vw; }
  .bb-overview { display: none; }
  .bb-callout { display: none; }
}

.match { color: #46d369; font-weight: 700; }
.dot { padding: 0 .5em; color: var(--txt-faint); }

/* ---------- rows ---------- */
.rows { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 44px); padding: clamp(26px, 3vw, 44px) 0 60px; }
.row-title { font-size: clamp(1rem, 1.3vw, 1.3rem); font-weight: 700; color: #ececec; padding: 0 var(--pad-x); margin-bottom: 12px; }
.row-viewport { position: relative; }
.fx-track {
  display: flex; gap: var(--tile-gap); align-items: stretch;
  overflow-x: auto; scrollbar-width: none; padding: 6px var(--pad-x);
}
.fx-track::-webkit-scrollbar { display: none; }
.row-chev {
  position: absolute; top: 0; bottom: 0; width: calc(var(--pad-x) - 4px); min-width: 34px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .2s;
}
.row-prev { left: 0; background: linear-gradient(90deg, rgba(10,10,10,.85), transparent); }
.row-next { right: 0; background: linear-gradient(270deg, rgba(10,10,10,.85), transparent); }
.row-chev .icon { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.row-viewport:hover .row-chev { opacity: 1; }
.row-chev.hide { display: none; }
@media (pointer: coarse) { .row-chev { display: none; } }

/* ---------- expandable tiles ---------- */
.fx-tile {
  position: relative; flex: 0 0 auto;
  height: var(--rowH); width: calc(var(--rowH) * 2 / 3);
  border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--bg-raise);
  transition: width .38s cubic-bezier(.2,.7,.2,1);
  outline: 0 solid transparent;
}
.fx-tile.exp {
  width: calc(var(--rowH) * 16 / 9);
  outline: 2.5px solid #fff; outline-offset: 3px;
}
.fx-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s .05s; }
.fx-tile.exp .fx-poster { opacity: 0; }
.fx-wide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s .08s; }
.fx-tile.exp .fx-wide { opacity: 1; }
.fx-wide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-wide-grad { position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.fx-wide .brandmark { position: absolute; left: 14px; bottom: 52px; font-size: .82rem; margin: 0; }
.fx-logo { position: absolute; left: 14px; bottom: 12px; max-width: 46%; max-height: 34%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.fx-wide-title { position: absolute; left: 14px; bottom: 12px; max-width: 55%; font-weight: 900; font-size: clamp(.95rem, 1.5vw, 1.35rem); line-height: 1.1; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.fx-badges { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.fx-wide .callout { font-size: .7rem; padding: 5px 10px; }
.tile-noart { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; width: 100%; height: 100%; background: linear-gradient(135deg, #242424, #141414); color: var(--txt-dim); font-weight: 700; font-size: .85rem; }
.tile-progress { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.3); z-index: 3; }
.tile-progress-fill { height: 100%; background: var(--red); }
.fx-progress { left: 14px; right: 14px; bottom: 6px; }
.fx-tile.exp > .tile-progress { display: none; } /* collapsed progress hides; fx-progress inside wide shows */

/* info line under the row for the expanded item */
.fx-info { padding: 14px var(--pad-x) 0; min-height: 86px; }
.fx-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: .92rem; font-weight: 600; color: #f0f0f0; margin-bottom: 7px; }
.fx-overview {
  color: var(--txt-dim); font-size: .9rem; line-height: 1.5; max-width: 640px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) { .fx-info { min-height: 96px; } }

/* ---------- ranked (Top 10) ---------- */
.ranked-track { align-items: flex-end; }
.tile-ranked { position: relative; flex: 0 0 auto; height: var(--rowH); display: flex; align-items: flex-end; cursor: pointer; }
.rank-num {
  font-size: calc(var(--rowH) * .82); font-weight: 900; line-height: .78;
  color: var(--bg); -webkit-text-stroke: 4px #4d4d4d;
  letter-spacing: -0.12em; margin-right: -0.2em; user-select: none;
}
.rank-img { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); position: relative; z-index: 1; transition: transform .2s; }
.tile-ranked:hover .rank-img { transform: scale(1.04); }

/* ---------- poster tiles (seerr / simple rows) ---------- */
.simple-track .tile-poster { height: var(--rowH); }
.tile-poster {
  position: relative; flex: 0 0 auto; aspect-ratio: 2 / 3;
  border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--bg-raise);
  transition: transform .18s;
}
.tile-poster:hover { transform: scale(1.045); }
.poster-img { width: 100%; height: 100%; object-fit: cover; }
.poster-label { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 3; }
.tile-poster::after { content: ''; position: absolute; inset: 62% 0 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.tile-name { font-size: .85rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.8); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile-sub { font-size: .72rem; color: var(--txt-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.poster-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(12,12,12,.82); color: #fff; backdrop-filter: blur(6px);
}
.poster-badge.available { background: #46d369; color: #052e12; }
.poster-badge.partial { background: rgba(70,211,105,.85); color: #052e12; }
.poster-badge.processing { background: #6d28d9; }
.poster-badge.pending { background: #b45309; }
.inline-badge { position: static; display: inline-block; margin-bottom: 10px; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: rgba(0,0,0,.72); opacity: 0; transition: opacity .25s;
  display: flex; justify-content: center; padding: 2em 0;
}
.modal-overlay.open { opacity: 1; }
.modal-box {
  position: relative; width: min(880px, 96vw); height: fit-content;
  background: var(--bg-raise); border-radius: var(--r-lg); overflow: hidden;
  transform: scale(.97); transition: transform .25s;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(10,10,10,.85);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 600px) { .modal-overlay { padding: 0; } .modal-box { width: 100vw; min-height: 100vh; border-radius: 0; } }

.detail-loading { display: flex; justify-content: center; padding: 80px; color: var(--txt-dim); }
.detail-loading .icon { width: 42px; height: 42px; }
.detail-hero { position: relative; aspect-ratio: 16 / 8.5; background: #000; }
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-raise)); }
.detail-hero-content { position: absolute; left: 40px; right: 40px; bottom: 26px; }
.detail-logo { max-width: min(380px, 56%); max-height: 140px; object-fit: contain; object-position: left bottom; margin-bottom: 18px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.detail-title { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.detail-actions { display: flex; align-items: center; gap: 10px; }
.detail-resume-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.detail-progress { position: static; width: 200px; }
.detail-resume-label { font-size: .8rem; color: var(--txt-dim); }
.detail-body { padding: 26px 40px 40px; }
.detail-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; color: #e8e8e8; font-weight: 500; margin-bottom: 12px; }
.detail-tagline { font-style: italic; color: var(--txt-dim); margin-bottom: 10px; }
.detail-overview { line-height: 1.55; font-size: .95rem; }
.detail-side-line { font-size: .82rem; margin-bottom: 10px; line-height: 1.5; }
.detail-side-label { color: var(--txt-faint); }
@media (max-width: 700px) {
  .detail-hero-content { left: 18px; right: 18px; }
  .detail-body { padding: 20px 18px 30px; }
  .detail-cols { grid-template-columns: 1fr; gap: 14px; }
}

/* episodes */
.detail-episodes { margin-top: 34px; }
.ep-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ep-header h2 { font-size: 1.3rem; }
.season-select {
  background: var(--bg-raise-2); color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.ep-season-single { color: var(--txt-dim); font-size: .9rem; }
.ep-list { display: flex; flex-direction: column; }
.ep-row {
  display: grid; grid-template-columns: 34px 150px 1fr; gap: 16px; align-items: center;
  padding: 14px 10px; border-bottom: 1px solid #262626; border-radius: var(--r); cursor: pointer;
}
.ep-row:hover { background: var(--bg-raise-2); }
.ep-num { font-size: 1.35rem; color: var(--txt-dim); text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .tile-progress { left: 6px; right: 6px; bottom: 4px; }
.ep-thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.35);
}
.ep-thumb-play .icon { width: 34px; height: 34px; padding: 8px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.5); }
.ep-row:hover .ep-thumb-play { opacity: 1; }
.ep-title-line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ep-title { font-weight: 700; font-size: .95rem; }
.ep-dur { color: var(--txt-dim); font-size: .82rem; flex: none; }
.ep-overview {
  font-size: .85rem; color: var(--txt-dim); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-error { color: var(--txt-dim); padding: 20px 0; }
@media (max-width: 700px) {
  .ep-row { grid-template-columns: 24px 110px 1fr; gap: 10px; }
  .ep-overview { -webkit-line-clamp: 3; font-size: .78rem; }
}

/* similar */
.detail-similar { margin-top: 34px; }
.detail-similar h2 { font-size: 1.3rem; margin-bottom: 14px; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.similar-card { background: var(--bg-raise-2); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .15s; }
.similar-card:hover { transform: scale(1.02); }
.similar-media { aspect-ratio: 16 / 9; }
.similar-media img { width: 100%; height: 100%; object-fit: cover; }
.similar-body { padding: 10px 12px 14px; }
.similar-meta { font-size: .78rem; color: var(--txt-dim); display: flex; align-items: center; margin-bottom: 4px; }
.similar-name { font-size: .88rem; font-weight: 700; }
@media (max-width: 700px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pages ---------- */
main { min-height: 100vh; }
.page-pad { padding: calc(var(--nav-h) + 30px) var(--pad-x) 60px; }
.page-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 900; margin-bottom: 26px; }
.grid-title { font-size: clamp(1rem, 1.3vw, 1.3rem); font-weight: 700; color: #ececec; padding: 0 var(--pad-x); margin: 30px 0 14px; }
.page-pad .grid-title { padding: 0; }
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  padding: 0 var(--pad-x);
}
.page-pad .grid { padding: 0; }
.grid-posters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid .tile-poster { width: 100%; height: auto; }
.grid-cell { aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--bg-raise); transition: transform .15s; }
.grid-cell:hover { transform: scale(1.045); }
.grid-cell img { width: 100%; height: 100%; object-fit: cover; }
.grid-noart { font-size: .8rem; }
.grid-sentinel { height: 10px; }
.empty-note { color: var(--txt-dim); padding: 30px 0; line-height: 1.6; max-width: 560px; }
.newhot .row-title, .newhot .fx-track { padding-left: 0; padding-right: 0; }
.newhot .row-chev { width: 44px; }
.newhot .rows, .newhot .row { margin-top: 10px; }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .grid-posters { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }

.req-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 11px 20px; border-radius: 999px; background: rgba(12,12,12,.72); backdrop-filter: blur(6px); }
.req-status.available { color: #46d369; }
.req-status.processing { color: #c4b5fd; }
.req-status.pending { color: #fcd34d; }

.season-pick-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; }
.season-pick { background: var(--bg-raise); border-radius: var(--r-lg); padding: 24px; width: min(420px, 92vw); max-height: 80vh; display: flex; flex-direction: column; gap: 16px; }
.season-pick-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.season-pick-row { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.season-pick-row:hover { background: var(--bg-raise-2); }
.season-pick-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- login ---------- */
.login-screen, .profiles-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; position: relative; }
.login-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(229,9,20,.14), transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(229,9,20,.10), transparent 55%),
    #050505;
}
.login-logo { position: absolute; top: 22px; left: var(--pad-x); font-size: 2.2rem; }
.login-card {
  margin: auto; width: min(420px, 92vw);
  background: rgba(8,8,8,.78); border-radius: var(--r-lg); padding: 48px 56px 56px;
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 500px) { .login-card { padding: 40px 22px; } }
.login-card h1 { font-size: 1.9rem; }
.login-hint { color: var(--txt-dim); font-size: .9rem; margin-top: -8px; }
.login-input {
  background: #262626; border: 0; border-radius: 10px; color: #fff;
  padding: 14px 16px; font-size: 1rem; outline: none;
}
.login-input:focus { background: #333; }
.login-error { color: #e87c03; font-size: .85rem; min-height: 1em; }
.login-divider {
  display: flex; align-items: center; gap: 12px; color: var(--txt-faint); font-size: .8rem;
  margin: 4px 0;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-top: 1px solid rgba(255,255,255,.14); }
.seerr-unlock { display: flex; gap: 10px; margin: 14px 0 8px; max-width: 420px; }
.seerr-unlock .login-input { flex: 1; }
.login-submit { justify-content: center; margin-top: 8px; }
.login-qc { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.login-qc-btn { color: var(--txt-dim); font-size: .9rem; text-decoration: underline; }
.qc-code-label { color: var(--txt-dim); font-size: .85rem; }
.qc-code { font-size: 2rem; font-weight: 900; letter-spacing: .35em; padding-left: .35em; }
.qc-hint { color: var(--txt-faint); font-size: .8rem; }

/* profiles */
.profiles-title { font-size: clamp(1.6rem, 3.5vw, 3rem); font-weight: 500; margin: auto 0 40px; }
.profiles-screen { justify-content: center; }
.profiles-grid { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin-bottom: auto; }
.profile-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.profile-avatar {
  width: clamp(84px, 10vw, 140px); height: clamp(84px, 10vw, 140px);
  border-radius: 16px; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: #fff;
  border: 3px solid transparent; transition: border-color .15s;
}
.profile-avatar-fallback { background: var(--red); }
.profile-avatar-add { background: var(--bg-raise-2); }
.profile-avatar-add .icon { width: 44px; height: 44px; color: var(--txt-dim); }
.profile-tile:hover .profile-avatar, .profile-tile:focus .profile-avatar { border-color: #fff; }
.profile-name { color: var(--txt-dim); font-size: .95rem; }
.profile-tile:hover .profile-name { color: #fff; }
.profile-remove {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.4);
  display: none; align-items: center; justify-content: center;
}
.profile-remove .icon { width: 13px; height: 13px; }
.profile-tile:hover .profile-remove { display: flex; }

/* ---------- toasts ---------- */
#toast-root { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #ececec; color: #0a0a0a; font-weight: 600; font-size: .9rem;
  padding: 12px 24px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; }
.pl-video { width: 100%; height: 100%; object-fit: contain; }
.pl-video::cue { background: rgba(0,0,0,.55); font-size: clamp(18px, 2.6vw, 30px); line-height: 1.35; }
.pl-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; opacity: 1; transition: opacity .3s; pointer-events: none; }
.player.idle .pl-overlay { opacity: 0; }
.player.idle { cursor: none; }
.pl-overlay > * { pointer-events: auto; }
.pl-top { padding: 22px; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); display: flex; }
.pl-back { display: flex; padding: 6px; }
.pl-back .icon { width: 30px; height: 30px; }
.pl-title { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: baseline; max-width: 70vw; white-space: nowrap; overflow: hidden; }
.pl-title-main { font-weight: 800; font-size: 1.05rem; }
.pl-title-sub { color: var(--txt-dim); font-size: .9rem; }
.pl-bottom { padding: 0 22px 18px; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
.pl-scrub-wrap { display: flex; align-items: center; gap: 14px; position: relative; margin-bottom: 8px; }
.pl-scrub { flex: 1; appearance: none; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; cursor: pointer; position: relative; z-index: 2; }
.pl-scrub::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.pl-scrub::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--red); }
.pl-scrub-fill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 4px; background: var(--red); border-radius: 2px; z-index: 1; pointer-events: none; max-width: calc(100% - 60px); }
.pl-time { color: #e5e5e5; font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.pl-controls { display: flex; justify-content: space-between; align-items: center; }
.pl-ctl-left, .pl-ctl-right { display: flex; align-items: center; gap: 6px; }
.pl-btn { display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 6px; transition: transform .12s; }
.pl-btn:hover { transform: scale(1.15); }
.pl-btn .icon { width: 26px; height: 26px; }
.pl-speed { font-weight: 700; font-size: .95rem; padding: 10px 12px; }
.pl-vol { appearance: none; width: 90px; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; cursor: pointer; }
.pl-vol::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.pl-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.pl-spinner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.pl-spinner.show { display: flex; }
.pl-spinner .icon { width: 64px; height: 64px; color: rgba(255,255,255,.85); }
.pl-menu {
  position: absolute; bottom: 90px; right: 22px;
  background: rgba(10,10,10,.94); border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
  padding: 10px 0; max-height: 55vh; overflow-y: auto; min-width: 220px;
}
.pl-menu-cols { display: flex; gap: 0; }
.pl-menu-col { min-width: 220px; padding: 0 6px; }
.pl-menu-col + .pl-menu-col { border-left: 1px solid rgba(255,255,255,.12); }
.pl-menu-head { font-weight: 800; padding: 8px 16px 10px; font-size: .95rem; }
.pl-menu-item { display: block; width: 100%; text-align: left; padding: 9px 16px; font-size: .88rem; color: #d9d9d9; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.pl-menu-item:hover { background: rgba(255,255,255,.12); }
.pl-menu-item.active { color: #fff; font-weight: 700; }
.pl-menu-item.active::before { content: '✓ '; color: var(--red); }
.pl-nextcard { position: absolute; right: 22px; bottom: 110px; z-index: 5; }
.pl-nextcard-inner {
  display: flex; gap: 12px; align-items: center; cursor: pointer;
  background: rgba(10,10,10,.88); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 10px 14px;
}
.pl-nextcard img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.pl-nextcard-label { color: var(--txt-dim); font-size: .75rem; margin-bottom: 4px; }
.pl-nextcard-name { font-weight: 700; font-size: .9rem; max-width: 240px; }
@media (max-width: 700px) {
  .pl-title { display: none; }
  .pl-vol { display: none; }
  .pl-menu { right: 8px; left: 8px; bottom: 84px; }
  .pl-menu-cols { flex-direction: column; }
  .pl-menu-col + .pl-menu-col { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .pl-nextcard { right: 8px; bottom: 96px; }
}
