:root {
  --bg: #141414;
  --panel: #181818;
  --panel2: #2f2f2f;
  --text: #fff;
  --muted: #a3a3a3;
  --red: #e50914;
  --green: #46d369;
  --gutter: 4%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 36px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.7) 10%, transparent); transition: background .4s;
}
.nav.solid { background: var(--bg); }
.logo { color: var(--red); font-weight: 900; font-size: 30px; letter-spacing: -1px; cursor: pointer; transform: scaleY(1.15); }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: #e5e5e5; transition: color .3s; }
.nav-links a:hover { color: #b3b3b3; }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.icon-btn.big { font-size: 34px; }
.search { display: flex; align-items: center; border: 1px solid transparent; transition: all .3s; }
.search input { width: 0; padding: 0; border: 0; background: transparent; outline: none; transition: width .3s; font-size: 14px; }
.search.open { border-color: #fff; background: rgba(0,0,0,.75); }
.search.open input { width: 230px; padding: 6px 6px 6px 0; }
.nav-add { background: none; border: 1px solid #ffffff55; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.nav-add:hover { border-color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 4px; background: linear-gradient(135deg, #e50914, #7c3aed); }

/* ---------- Billboard ---------- */
.billboard { position: relative; height: 56.25vw; max-height: 88vh; min-height: 480px; overflow: hidden; }
.bb-media { position: absolute; inset: 0; }
.bb-media img, .bb-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.bb-media iframe { width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.15); pointer-events: none; opacity: 0; transition: opacity 1s; }
.bb-media iframe.on { opacity: 1; }
.bb-media.vertical img.blur { filter: blur(40px) brightness(.55); transform: scale(1.2); }
.bb-media.vertical img.fg { left: auto; right: 12%; width: auto; height: 100%; aspect-ratio: 9/16; object-fit: cover; box-shadow: 0 0 80px #000; }
.billboard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(77deg, rgba(0,0,0,.75) 0%, transparent 70%), linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.bb-info { position: absolute; z-index: 2; left: var(--gutter); bottom: 32%; width: 40%; min-width: 320px; }
.bb-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .25em; color: #ddd; margin-bottom: 10px; }
.bb-kicker b { color: var(--red); font-size: 22px; letter-spacing: 0; font-weight: 900; }
.bb-title { font-size: clamp(34px, 5vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -2px; margin: 0 0 18px; text-shadow: 2px 2px 8px rgba(0,0,0,.5); }
.bb-synopsis { font-size: clamp(14px, 1.3vw, 19px); line-height: 1.35; text-shadow: 1px 1px 4px rgba(0,0,0,.6); margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-buttons { display: flex; gap: 10px; }
.btn-play, .btn-info {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 4px; cursor: pointer;
  padding: 10px 26px 10px 20px; font-size: clamp(14px, 1.2vw, 19px); font-weight: 700;
}
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.4); }
.btn-play svg, .btn-info svg { font-size: 1.5em; }
.bb-side { position: absolute; z-index: 2; right: 0; bottom: 32%; display: flex; align-items: center; gap: 12px; }
.bb-mute { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffffb3; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.bb-mute:hover { background: #ffffff1a; }
.bb-rating { background: rgba(51,51,51,.6); border-left: 3px solid #dcdcdc; padding: 6px 40px 6px 12px; font-size: 15px; }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 3; margin-top: -11vw; padding-bottom: 80px; }
.billboard[hidden] + .rows { margin-top: 0; padding-top: 100px; }
.row { margin: 0 0 3vw; position: relative; }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); margin-bottom: 8px; }
.row-head h2 { font-size: clamp(14px, 1.4vw, 21px); font-weight: 700; margin: 0; color: #e5e5e5; }
.row-head .row-sub { font-size: 12px; color: var(--muted); }
.row-pages { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.row:hover .row-pages { opacity: 1; }
.row-pages i { width: 12px; height: 2px; background: #4d4d4d; }
.row-pages i.on { background: #aaa; }
.slider { position: relative; }
.track { display: flex; gap: .4vw; overflow-x: auto; scroll-behavior: smooth; padding: 0 var(--gutter); scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: calc(var(--gutter) - .4vw); border: 0; cursor: pointer;
  background: rgba(20,20,20,.5); color: #fff; font-size: 2.6vw; opacity: 0; transition: opacity .2s, background .2s; display: grid; place-items: center;
}
.arrow.l { left: 0; border-radius: 0 4px 4px 0; }
.arrow.r { right: 0; border-radius: 4px 0 0 4px; }
.slider:hover .arrow { opacity: 1; }
.arrow:hover { background: rgba(20,20,20,.7); }
.arrow:hover svg { transform: scale(1.25); }
.arrow[disabled] { visibility: hidden; }

.card { flex: none; position: relative; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--panel); }
.card.h { width: calc((100vw - 2 * var(--gutter)) / 6 - .4vw); aspect-ratio: 16/9; }
.card.v { width: calc((100vw - 2 * var(--gutter)) / 7.5 - .4vw); aspect-ratio: 2/3; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ct {
  position: absolute; inset: auto 0 0 0; padding: 24px 8px 7px; font-weight: 800; font-size: clamp(11px, .95vw, 15px); line-height: 1.1;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); text-shadow: 0 1px 3px #000;
}
.card .tag { position: absolute; top: 0; left: 6px; background: var(--red); font-size: 9px; font-weight: 800; padding: 3px 5px 2px; border-radius: 0 0 2px 2px; letter-spacing: .05em; }
.card .n-badge { position: absolute; top: 6px; left: 6px; color: var(--red); font-weight: 900; font-size: 18px; text-shadow: 0 0 4px #000; }
.card .bar { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; background: #ffffff55; }
.card .bar i { display: block; height: 100%; background: var(--red); }
.card.continue .ct { bottom: 10px; }

/* Top 10 */
.card.top { width: calc((100vw - 2 * var(--gutter)) / 5.5 - .4vw); aspect-ratio: 1.4/1; background: none; display: flex; overflow: visible; }
.card.top .num { flex: 1; font-size: clamp(90px, 11vw, 190px); font-weight: 900; line-height: .8; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 4px #595959; display: flex; align-items: flex-end; justify-content: flex-end; margin-right: -4%; z-index: 0; }
.card.top .poster { width: 50%; height: 100%; border-radius: 4px; overflow: hidden; position: relative; z-index: 1; }
.card.top .poster img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hover popup ---------- */
.popup {
  position: absolute; z-index: 40; background: var(--panel); border-radius: 6px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.75); transform: scale(.66); opacity: 0; transition: transform .25s ease, opacity .2s;
}
.popup.show { transform: scale(1); opacity: 1; }
.pop-media { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.pop-media img, .pop-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pop-media iframe { pointer-events: none; opacity: 0; transition: opacity .6s; transform: scale(1.35); }
.pop-media iframe.on { opacity: 1; }
.pop-media .pop-title { position: absolute; left: 12px; bottom: 8px; font-weight: 900; font-size: 18px; text-shadow: 0 1px 6px #000; }
.pop-body { padding: 14px 14px 18px; }
.pop-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.circle {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(42,42,42,.6);
  cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: border-color .2s; position: relative;
}
.circle:hover { border-color: #fff; }
.circle.white { background: #fff; color: #000; border-color: #fff; }
.circle.white:hover { background: #e6e6e6; }
.circle.on { border-color: #fff; }
.circle[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #e6e6e6; color: #000; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 6px 10px; border-radius: 4px; pointer-events: none;
}
.spacer { flex: 1; }
.pop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #bcbcbc; margin-bottom: 10px; }
.match { color: var(--green); font-weight: 700; }
.new { color: var(--green); font-weight: 700; }
.pill { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; font-size: 12px; }
.hd { border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 4px; font-size: 10px; font-weight: 700; }
.pop-genres { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pop-genres span + span::before { content: "•"; color: #646464; margin-right: 6px; }

/* ---------- Detail modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; display: flex; justify-content: center; padding: 32px 0; }
.overlay[hidden] { display: none; }
.overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); }
.detail { position: relative; width: min(850px, 96vw); background: var(--panel); border-radius: 8px; overflow: hidden; height: max-content; box-shadow: 0 3px 10px #000; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #181818; cursor: pointer; font-size: 24px; line-height: 1; }
.d-hero { position: relative; aspect-ratio: 16/9; background: #000; }
.d-hero .d-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .8s; transform: scale(1.2); }
.d-hero iframe.on { opacity: 1; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, transparent 50%); pointer-events: none; }
.d-hero-info { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 40px; }
.d-hero-info h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -1px; margin: 0 0 18px; line-height: 1; text-shadow: 0 2px 8px #000; }
.d-actions { display: flex; gap: 10px; align-items: center; }
.d-actions .circle { width: 42px; height: 42px; }
.d-body { padding: 0 48px 40px; }
.d-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.d-grid p { line-height: 1.5; margin: 12px 0; }
.d-side { font-size: 14px; color: #ddd; }
.d-side div { margin: 6px 0 12px; line-height: 1.4; }
.d-side span { color: #777; }
.note { font-size: 13px; color: #c9a227; }
.d-section { margin-top: 36px; }
.d-section-head { display: flex; justify-content: space-between; align-items: baseline; }
.d-section h3 { font-size: 24px; margin: 0 0 16px; }
.ep { display: grid; grid-template-columns: 40px 130px 1fr; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid #404040; border-radius: 4px; cursor: pointer; }
.ep:first-child { border-top: 1px solid #404040; }
.ep:hover, .ep.current { background: #333; }
.ep-n { font-size: 24px; color: #d2d2d2; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .play-ov { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; opacity: 0; transition: opacity .2s; background: #0006; }
.ep:hover .play-ov { opacity: 1; }
.ep-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.ep-title { font-weight: 700; font-size: 15px; }
.ep-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sim { background: var(--panel2); border-radius: 4px; overflow: hidden; cursor: pointer; }
.sim-img { position: relative; aspect-ratio: 16/9; background: #000; }
.sim-img img { width: 100%; height: 100%; object-fit: cover; }
.sim-img b { position: absolute; left: 8px; bottom: 6px; font-size: 14px; text-shadow: 0 1px 4px #000; }
.sim-body { padding: 12px; font-size: 13px; color: #d2d2d2; }
.sim-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sim-body p { margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.danger { background: none; border: 1px solid #ff5a5f88; color: #ff8a8e; border-radius: 4px; padding: 6px 12px; cursor: pointer; margin-top: 12px; }

/* ---------- Search / grid / explore ---------- */
.see-all { font-size: 13px; color: #54b9c5; font-weight: 600; opacity: 0; transition: opacity .2s; }
.row:hover .see-all { opacity: 1; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.back-link:hover { color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; }
.filters select { background: #000; border: 1px solid #ffffff55; padding: 6px 10px; font-size: 14px; border-radius: 2px; cursor: pointer; }
.filters select:hover { border-color: #fff; }
.filters .reset { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.filters .reset:hover { color: #fff; }
.grid-page { padding: 0 var(--gutter); min-height: 70vh; }
.grid-page h2 { color: var(--muted); font-weight: 400; font-size: 16px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3vw .4vw; }
.grid .card { width: auto; }
.grid.v { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: #000; }
.player[hidden] { display: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; }
.screen iframe { border: 0; width: 100%; height: 100%; }
/* Vertical player: phone-sized 9:16 frame centered, blurred backdrop, episode list docked at its right */
.player { --vh: calc(100vh - 150px); --vw: calc(var(--vh) * 9 / 16); }
.player-bg { position: absolute; inset: 0; overflow: hidden; }
.player-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) brightness(.35); transform: scale(1.2); }
.screen.vertical { inset: 70px auto 80px 50%; width: var(--vw); transform: translateX(-50%); }
.screen.vertical iframe { width: var(--vw); height: var(--vh); border-radius: 14px; background: #000; box-shadow: 0 10px 60px #000c; }
.player.vertical .drawer { left: calc(50% + var(--vw) / 2 + 28px); right: auto; top: 70px; bottom: auto; width: min(360px, calc(50vw - var(--vw) / 2 - 56px)); max-height: var(--vh); background: rgba(24,24,24,.85); backdrop-filter: blur(8px); }
.player.vertical #episodesToggle { display: none; }
.drawer-meta { margin: -6px 16px 8px; color: var(--muted); font-size: 13px; }
.drawer-syn { margin: 0 16px 12px; font-size: 13px; line-height: 1.45; color: #ccc; }
.screen .fallback { text-align: center; }
.player-top, .player-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 18px 24px; transition: opacity .4s; z-index: 2; }
.player-top { top: 0; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.player-bottom { bottom: 0; justify-content: flex-end; pointer-events: none; }
.player-bottom > * { pointer-events: auto; }
.player.idle .player-top, .player.idle .player-bottom { opacity: 0; }
.player-title { font-size: 18px; }
.player-title b { font-weight: 800; }
.player-chip { background: rgba(42,42,42,.85); border: 1px solid #ffffff44; border-radius: 4px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.player-chip:hover { background: #fff; color: #000; }
.player-chip.next { background: #fff; color: #000; font-weight: 700; }
.drawer { position: absolute; right: 24px; bottom: 76px; width: 380px; max-height: 60vh; overflow-y: auto; background: #262626; border-radius: 4px; z-index: 3; padding: 8px 0; box-shadow: 0 4px 20px #000; }
.drawer h4 { margin: 8px 16px 12px; font-size: 20px; }
.drawer .ep { grid-template-columns: 28px 100px 1fr; padding: 10px 16px; border-radius: 0; gap: 12px; }
.drawer .ep-n { font-size: 16px; }

/* ---------- Form / toast ---------- */
.form-box { position: relative; width: min(520px, 94vw); height: max-content; background: var(--panel); border-radius: 8px; padding: 32px; display: grid; gap: 14px; margin: auto; }
.form-box h2 { margin: 0; }
.form-box p { margin: 0; font-size: 13px; }
.form-box label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form-box input, .form-box select, .form-box textarea { padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 32px; transform: translateX(-50%); background: #fff; color: #000; font-weight: 700; padding: 10px 18px; border-radius: 4px; box-shadow: 0 4px 16px #0008; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .search.open input { width: 140px; }
  .nav-add { display: none; }
  .billboard { min-height: 70vh; }
  .bb-info { width: auto; right: var(--gutter); min-width: 0; bottom: 22%; }
  .bb-side { bottom: 22%; }
  .rows { margin-top: 0; }
  .card.h { width: 42vw; }
  .card.v { width: 30vw; }
  .card.top { width: 48vw; }
  .arrow { display: none; }
  .d-hero-info { left: 20px; right: 20px; bottom: 20px; }
  .d-body { padding: 0 20px 28px; }
  .d-grid { grid-template-columns: 1fr; gap: 0; }
  .similar { grid-template-columns: repeat(2, 1fr); }
  .ep { grid-template-columns: 28px 100px 1fr; padding: 10px; gap: 10px; }
  .drawer { left: 12px; right: 12px; width: auto; }
  .player { --vh: calc(100vh - 140px); }
  .screen.vertical { inset: 60px auto 80px 50%; }
  .player.vertical .drawer { display: none; }
}

/* ---------- +18 ---------- */
.card .age { position: absolute; top: 6px; right: 6px; z-index: 1; background: rgba(0,0,0,.75); border: 1px solid #e50914; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 3px; }
.age-pill { border-color: var(--red); color: #ff6b72; }
.age-box { text-align: center; justify-items: center; }
.age-big { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--red); display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--red); }
.age-actions { display: flex; gap: 10px; justify-content: center; }
.age-box .small { font-size: 12px; }
.age-box a { text-decoration: underline; }

/* ---------- Profiles ---------- */
.pf-gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; overflow-y: auto; }
.pf-logo { position: absolute; top: 20px; left: 4%; }
.pf-gate h1 { font-size: clamp(28px, 3.5vw, 52px); font-weight: 500; margin: 0; text-align: center; }
.pf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2vw; }
.pf { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 12px; position: relative; color: var(--muted); }
.pf:hover { color: #fff; }
.pf-avatar { width: clamp(84px, 10vw, 150px); aspect-ratio: 1; border-radius: 6px; border: 3px solid transparent; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 32% 38%, #fff 0 5.5%, transparent 6%), radial-gradient(circle at 68% 38%, #fff 0 5.5%, transparent 6%) !important; }
.pf-avatar:not(.pf-add)::after { content: ""; position: absolute; left: 26%; right: 26%; top: 50%; height: 16%; border: solid #fff; border-width: 0 0 max(3px, .35vw) 0; border-radius: 0 0 50% 50%; }
.pf-avatar { background-blend-mode: normal; }
.pf:hover .pf-avatar { border-color: #fff; }
.pf-avatar span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 14px; color: #fff; text-shadow: 0 1px 3px #000; }
.pf-add { display: grid; place-items: center; font-size: 64px; color: #777; border: 3px solid #333 !important; background: none !important; }
.pf-edit-ov { position: absolute; top: 0; width: clamp(84px, 10vw, 150px); aspect-ratio: 1; display: grid; place-items: center; background: #0008; font-size: 36px; color: #fff; border-radius: 6px; }
.pf-name { font-size: clamp(13px, 1.3vw, 20px); }
.pf-manage { background: none; border: 1px solid #808080; color: #808080; padding: 8px 24px; font-size: 16px; letter-spacing: 2px; cursor: pointer; text-transform: uppercase; }
.pf-manage:hover { color: #fff; border-color: #fff; }
.pf-editor { width: min(640px, 100%); display: grid; gap: 24px; }
.pf-editor h1 { text-align: left; }
.pf-editor-row { display: flex; gap: 24px; align-items: flex-start; border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 20px 0; }
.pf-avatar.big { width: 120px; flex: none; }
.pf-fields { display: grid; gap: 14px; flex: 1; }
.pf-fields input[name=name], .pf-pin input, .pf-pin-input { background: #666; border: 0; padding: 10px 12px; font-size: 16px; color: #fff; }
.pf-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-colors input { display: none; }
.pf-colors i { display: block; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.pf-colors input:checked + i { border-color: #fff; }
.pf-check, .pf-pin { display: grid; gap: 6px; color: #ccc; font-size: 14px; }
.pf-check { display: flex; gap: 8px; align-items: center; }
.pf-check small, .pf-pin small { color: var(--muted); }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pf-pinform { justify-items: center; text-align: center; }
.pf-pinform h1 { text-align: center; font-size: 28px; }
.pf-pin-input { width: 160px; text-align: center; font-size: 32px !important; letter-spacing: 16px; }
.avatar { cursor: pointer; }
.nav-right { position: relative; }
.profile-menu { position: absolute; top: 46px; right: 0; background: rgba(0,0,0,.92); border: 1px solid #333; min-width: 220px; padding: 10px 0; font-size: 14px; z-index: 40; }
.profile-menu .pm-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: #ccc; }
.profile-menu .pm-row.on { color: #fff; font-weight: 700; }
.profile-menu .pm-row i { width: 26px; height: 26px; border-radius: 4px; }
.profile-menu hr { border: 0; border-top: 1px solid #333; margin: 8px 0; }
.profile-menu a { display: block; padding: 6px 14px; }
.profile-menu a:hover { text-decoration: underline; }

/* ---------- Smart / AI search ---------- */
.search.open input { width: 300px; }
.search-understood { margin: -12px 0 18px; color: var(--muted); font-size: 13px; }
.ai-box { background: linear-gradient(135deg, #1f1033, #141414 60%); border: 1px solid #7c3aed55; border-radius: 8px; padding: 16px; margin-bottom: 28px; }
.ai-head { font-weight: 700; margin-bottom: 12px; }
.ai-head .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.ai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.ai-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: #ffffff0a; border-radius: 6px; padding: 8px; cursor: pointer; }
.ai-item:hover { background: #ffffff18; }
.ai-item img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.ai-item p { margin: 4px 0 0; font-size: 13px; color: #ccc; line-height: 1.35; }

/* ---------- Player fallback (no embed) ---------- */
.screen .fallback { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: inherit; }
.screen .fallback-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45); transform: scale(1.1); }
.screen .fallback-card { position: relative; max-width: 360px; margin: 16px; text-align: center; background: rgba(20,20,20,.75); border: 1px solid #ffffff22; border-radius: 10px; padding: 24px 20px; backdrop-filter: blur(6px); }
.screen .fallback-card h3 { margin: 0 0 8px; font-size: 20px; }
.screen .fallback-card p { margin: 0 0 18px; color: #ccc; font-size: 14px; line-height: 1.45; }
.screen.vertical .fallback { width: var(--vw); height: var(--vh); border-radius: 14px; }
.profile-menu .pm-toggle { display: flex; gap: 8px; align-items: center; padding: 6px 14px; cursor: pointer; color: #ccc; }

/* ---------- Login ---------- */
.login-gate { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(ellipse at top, #3a0a12 0%, var(--bg) 60%); }
.login-logo { position: absolute; top: 22px; left: 4%; }
.login-box { width: min(420px, 100%); background: rgba(0,0,0,.75); border-radius: 8px; padding: 44px 40px; display: grid; gap: 14px; }
.login-box h1 { margin: 0 0 8px; font-size: 30px; }
.login-box input { background: #333; border: 1px solid #555; border-radius: 4px; padding: 14px; font-size: 15px; color: #fff; }
.login-box input:focus { outline: none; border-color: #fff; }
.login-submit { justify-content: center; background: var(--red); color: #fff; padding: 12px; margin-top: 8px; }
.login-submit:hover { background: #c40812; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid #444; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #222; border: 0; border-radius: 4px; padding: 12px; font-weight: 600; cursor: pointer; }
.login-google:hover { background: #eee; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.login-links a { color: #fff; }
.login-links a:hover { text-decoration: underline; }
.login-error { margin: 0; background: #e87c03; color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.login-info { margin: 0; background: #1d6b3a; color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.pf-account { color: var(--muted); font-size: 13px; margin: 0; }
.pf-account a { color: #fff; text-decoration: underline; }
.profile-menu .pm-email { padding: 4px 14px; color: var(--muted); font-size: 12px; }

/* ---------- Landing (before login) ---------- */
.landing { position: fixed; inset: 0; z-index: 110; overflow-y: auto; background: #000; }
.ld-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ld-bg { position: absolute; inset: 0; overflow: hidden; }
.ld-bg img, .ld-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.ld-bg img { width: 100%; height: 100%; object-fit: cover; }
.ld-bg iframe { width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); opacity: 0; transition: opacity 1.5s; transform: translate(-50%, -50%) scale(1.2); }
.ld-bg iframe.on { opacity: 1; }
.ld-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #000 2%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.75) 100%), radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.6)); }
.ld-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 6%; }
.ld-signin { background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.ld-signin:hover { background: #c40812; }
.ld-hero-content { position: relative; z-index: 2; margin: auto; text-align: center; padding: 40px 6% 80px; max-width: 900px; }
.ld-hero-content h1 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 16px; text-shadow: 0 2px 12px #000; }
.ld-sub { font-size: clamp(16px, 1.8vw, 22px); margin: 0 0 28px; }
.ld-stats { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); margin-bottom: 30px; flex-wrap: wrap; }
.ld-stats div { display: grid; }
.ld-stats b { font-size: clamp(24px, 3vw, 38px); font-weight: 900; color: #fff; }
.ld-stats span { color: #ccc; font-size: 14px; }
.ld-cta-text { font-size: 18px; margin: 0 0 14px; }
.ld-cta { display: flex; gap: 8px; justify-content: center; max-width: 620px; margin: 0 auto; flex-wrap: wrap; }
.ld-cta input { flex: 1; min-width: 220px; background: rgba(22,22,22,.7); border: 1px solid #ffffff66; border-radius: 4px; padding: 16px; font-size: 16px; color: #fff; }
.ld-cta-btn { background: var(--red); color: #fff; font-size: 20px; padding: 12px 24px; }
.ld-cta-btn:hover { background: #c40812; }
.ld-now { margin-top: 26px; font-size: 13px; color: #bbb; }
.ld-band { border-top: 8px solid #232323; padding: 64px 6%; background: #000; }
.ld-band h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 900; margin: 0 0 28px; text-align: center; }
.ld-posters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ld-posters::-webkit-scrollbar { display: none; }
.ld-poster { flex: none; width: 240px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; position: relative; background: #111; }
.ld-poster img { width: 100%; height: 100%; object-fit: cover; }
.ld-poster span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-weight: 800; font-size: 14px; background: linear-gradient(transparent, #000d); }
.ld-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ld-feature { background: linear-gradient(149deg, #192247 0%, #210e17 99%); border-radius: 14px; padding: 26px 22px; }
.ld-ico { font-size: 34px; margin-bottom: 10px; }
.ld-feature h3 { margin: 0 0 8px; font-size: 22px; }
.ld-feature p { margin: 0; color: #ccc; line-height: 1.5; }
.ld-faq { max-width: 900px; margin: 0 auto; }
.ld-faq details { background: #2d2d2d; margin-bottom: 8px; }
.ld-faq summary { padding: 22px 24px; font-size: clamp(16px, 1.8vw, 22px); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.ld-faq summary::after { content: "+"; font-size: 30px; line-height: .8; }
.ld-faq details[open] summary::after { content: "×"; }
.ld-faq details p { margin: 0; padding: 0 24px 24px; border-top: 1px solid #000; padding-top: 20px; font-size: 17px; line-height: 1.5; }
.ld-faq .ld-cta-text { text-align: center; margin-top: 40px; }
.ld-footer { border-top: 8px solid #232323; padding: 40px 6% 60px; color: #777; background: #000; }
.ld-footer p { font-size: 13px; }
.login-logo { cursor: pointer; }
@media (max-width: 700px) { .ld-poster { width: 180px; } .ld-cta-btn { width: 100%; justify-content: center; } }

/* ---------- Language picker ---------- */
.lang-picker { background: rgba(0,0,0,.6); color: #fff; border: 1px solid #ffffff66; border-radius: 4px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.lang-picker:hover { border-color: #fff; }
.ld-nav-right { display: flex; gap: 10px; align-items: center; }
.login-lang { position: absolute; top: 22px; right: 4%; }
.profile-menu .pm-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 14px; color: #ccc; }
.pf-account .lang-picker { margin-left: 4px; }
