:root {
  color-scheme: dark;
  --bg: #090a12;
  --panel: #11121e;
  --panel-2: #171827;
  --line: rgba(255,255,255,.09);
  --text: #f7f6ff;
  --muted: #a3a5bd;
  --purple: #9a7cff;
  --purple-2: #7058ee;
  --pink: #ff8a9c;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 78% 0%, rgba(106,78,184,.13), transparent 38rem), var(--bg); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #b8a1ff; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
::selection { background: rgba(154,124,255,.38); }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #c3b8fa; font-weight: 800; letter-spacing: .23em; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg,#bd8cff,#605aff); color: #11111c; font-size: 24px; font-weight: 950; letter-spacing: -2px; box-shadow: 0 10px 50px #7159ee55; }
.boot-loader { width: 68px; height: 3px; border-radius: 999px; background: #23243a; overflow: hidden; margin-top: 12px; }
.boot-loader::after { content: ''; display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--purple); animation: load 1s ease-in-out infinite alternate; }
@keyframes load { to { transform: translateX(120%); } }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 34px; min-height: 76px; padding: 0 clamp(18px,4.8vw,74px); background: rgba(9,10,18,.82); border-bottom: 1px solid rgba(255,255,255,.035); backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; background: transparent; border: 0; padding: 0; text-decoration: none; cursor: pointer; flex-shrink: 0; }
.brand .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 19px; }
.brand-word { font-size: 18px; font-weight: 900; letter-spacing: .19em; }
.brand-word span { color: #bba6ff; }
.nav-links { display: flex; align-items: center; gap: 26px; height: 76px; }
.nav-item { position: relative; height: 100%; display: inline-flex; align-items: center; padding: 0 1px; border: 0; background: transparent; color: #a4a5b7; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .18s; }
.nav-item:hover, .nav-item.active { color: white; }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg,#b69bff,#7775ff); }
.topbar-spacer { flex: 1; }
.search-wrap { position: relative; width: min(230px,22vw); }
.search-wrap .search-icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #85869b; pointer-events: none; }
.search-wrap input { width: 100%; height: 39px; padding: 0 14px 0 38px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); color: white; outline: 0; transition: border .2s, background .2s; }
.search-wrap input::placeholder { color: #77798f; }
.search-wrap input:focus { border-color: #8170cb; background: #171728; }
.icon-btn, .profile-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(255,255,255,.045); cursor: pointer; transition: transform .18s, background .18s; }
.icon-btn { width: 39px; height: 39px; border-radius: 13px; font-size: 17px; }
.icon-btn:hover, .profile-btn:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
.profile-btn { gap: 9px; padding: 4px 10px 4px 5px; border-radius: 13px; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg,#d3b3ff,#7667ff); color: #14101f; font-size: 11px; font-weight: 900; }
.profile-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.profile-caret { color: #9d9cb5; font-size: 10px; margin-left: 2px; }
.admin-quick { color: #d8ccff; border-color: #a28bff30; background: #8570ff12; }
.mobile-nav-toggle { display: none; }
main { padding-bottom: 80px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(390px,47vw,570px); margin: 0 clamp(12px,2.5vw,38px); padding: clamp(34px,6vw,84px) clamp(22px,6vw,88px); border: 1px solid rgba(255,255,255,.075); border-top: 0; border-radius: 0 0 28px 28px; background: linear-gradient(90deg,#111322 0%,rgba(17,19,37,.94) 31%,rgba(17,19,37,.48) 60%,rgba(17,19,37,.1) 100%), url('/assets/hero-art.svg') right center / cover no-repeat, #15142b; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,var(--bg) 0%,transparent 29%), radial-gradient(ellipse at 84% 46%,rgba(153,115,255,.18),transparent 35%); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#10111d 0%,transparent 76%); opacity: .55; }
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #cdbdff; font-size: 10px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 99px; background: #bd9bff; box-shadow: 0 0 14px #bd9bff; }
.hero h1 { max-width: 620px; margin: 21px 0 17px; font-size: clamp(40px,5.3vw,72px); line-height: .99; letter-spacing: -.058em; font-weight: 850; }
.hero h1 .gradient-text { color: #c2acff; background: linear-gradient(100deg,#d2b8ff 0%,#9881ff 44%,#ffb0c6 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { color: #b5b6c9; font-size: clamp(13px,1.15vw,15px); line-height: 1.8; max-width: 440px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 19px; color: #b5b3ca; font-size: 11px; }
.meta-chip { padding: 6px 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.04); }
.meta-sep { color: #77778e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; font-weight: 760; font-size: 12px; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg,#c1a4ff,#8672ff); color: #171124; box-shadow: 0 8px 24px #8066ff26; }
.btn-primary:hover { box-shadow: 0 10px 28px #8066ff4a; }
.btn-secondary { border-color: rgba(255,255,255,.13); color: #f5f1ff; background: rgba(255,255,255,.06); }
.btn-secondary:hover { background: rgba(255,255,255,.11); }
.btn-danger { color: #ffb8c2; border-color: #ff819020; background: #ff647c13; }
.btn-small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 11px; }
.hero-side-note { position: absolute; right: clamp(22px,4vw,60px); bottom: 30px; display: flex; gap: 12px; align-items: center; color: #cbc1f0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.hero-side-note::before { content: ''; display: block; width: 28px; height: 1px; background: #bba5ff; }
.content-wrap { max-width: 1800px; margin: 0 auto; padding: 0 clamp(18px,4.8vw,74px); }
.section { margin-top: 39px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-title-group { display: flex; align-items: baseline; gap: 11px; }
.section h2 { margin: 0; font-size: clamp(17px,1.55vw,21px); font-weight: 800; letter-spacing: -.035em; }
.section-subtitle { color: #8c8da5; font-size: 11px; }
.section-link { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; background: transparent; color: #b8a4ff; font-size: 11px; font-weight: 750; cursor: pointer; }
.section-link:hover { color: #e1d5ff; }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); grid-auto-columns: clamp(150px,16vw,220px); gap: 15px; overflow-x: auto; padding: 1px 1px 12px; scrollbar-width: thin; scrollbar-color: #34334f transparent; }
.movie-card { min-width: 0; position: relative; border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); background: #131521; cursor: pointer; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(187,163,255,.45); box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.poster { position: relative; aspect-ratio: 2 / 2.74; overflow: hidden; background: linear-gradient(150deg,#493a78,#171b30 65%,#242239); }
.poster-art { width: 100%; height: 100%; display: flex; align-items: end; justify-content: flex-start; padding: 15px; position: relative; overflow: hidden; isolation: isolate; }
.poster-art::before { content: ''; position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; top: -4%; right: -12%; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(1px); }
.poster-art::after { content: ''; position: absolute; z-index: -1; inset: 48% 0 0; background: linear-gradient(0deg,rgba(5,6,14,.94),transparent); }
.poster-art .poster-symbol { position: absolute; top: 17%; left: 50%; transform: translateX(-50%); font-size: clamp(34px,4vw,64px); color: rgba(255,255,255,.74); text-shadow: 0 0 35px rgba(255,255,255,.22); }
.poster-art .poster-title { color: #fff; font-size: clamp(11px,1vw,15px); font-weight: 900; line-height: 1.04; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 3px 15px #000; }
.poster-v1 { background: radial-gradient(circle at 62% 27%,#e2a7b9 0%,#6b3a75 18%,transparent 42%), linear-gradient(145deg,#211c42,#171326 55%,#381f3d); }
.poster-v2 { background: radial-gradient(circle at 35% 27%,#aadbdc 0%,#397c8b 18%,transparent 45%), linear-gradient(145deg,#152d40,#111728 55%,#253b4c); }
.poster-v3 { background: radial-gradient(circle at 63% 30%,#ffc38b 0%,#a44e51 15%,transparent 44%), linear-gradient(150deg,#3e212f,#171523 58%,#653746); }
.poster-v4 { background: radial-gradient(circle at 45% 30%,#bba6ff 0%,#5c4bbb 17%,transparent 45%), linear-gradient(145deg,#171c46,#1a1832 56%,#423a75); }
.poster-v5 { background: radial-gradient(circle at 58% 30%,#c1e6ac 0%,#438a70 16%,transparent 44%), linear-gradient(145deg,#15372f,#111923 60%,#294a3e); }
.poster-v6 { background: radial-gradient(circle at 60% 25%,#f7d89b 0%,#b77c46 18%,transparent 45%), linear-gradient(145deg,#382b2f,#171a26 58%,#6a4c42); }
.poster-v7 { background: radial-gradient(circle at 42% 24%,#9db9ff 0%,#5354a4 18%,transparent 45%), linear-gradient(145deg,#131e43,#141627 58%,#3b3164); }
.poster-v8 { background: radial-gradient(circle at 57% 26%,#ffabb3 0%,#ac4f88 16%,transparent 45%), linear-gradient(145deg,#3c1e46,#181526 58%,#693b66); }
.poster-v9 { background: radial-gradient(circle at 55% 28%,#eee3b0 0%,#bd9f54 16%,transparent 45%), linear-gradient(145deg,#383624,#171a22 58%,#514b2c); }
.poster-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-type { position: absolute; left: 10px; top: 10px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: white; background: rgba(6,7,15,.55); backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; font-weight: 850; }
.card-hover-actions { position: absolute; inset: auto 9px 9px; display: flex; justify-content: end; gap: 7px; opacity: 0; transform: translateY(5px); transition: opacity .18s, transform .18s; }
.movie-card:hover .card-hover-actions, .movie-card:focus-within .card-hover-actions { opacity: 1; transform: translateY(0); }
.card-action { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; color: white; background: rgba(13,13,24,.76); backdrop-filter: blur(8px); cursor: pointer; font-size: 14px; }
.card-action:hover, .card-action.is-favorite { color: #f5d1ff; background: #7257dc; }
.card-info { padding: 12px 12px 13px; }
.card-title-line { display: flex; align-items: center; gap: 6px; }
.card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 12px; font-weight: 780; }
.card-year { margin-left: auto; color: #8889a2; font-size: 10px; flex-shrink: 0; }
.card-meta { display: flex; gap: 7px; align-items: center; margin-top: 7px; color: #9293aa; font-size: 10px; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #73738a; }
.card-progress { height: 3px; margin: 10px 0 0; overflow: hidden; border-radius: 99px; background: #363348; }
.card-progress span { display: block; height: 100%; background: linear-gradient(90deg,#bf9dff,#7774ff); }
.library-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 23px; }
.pill-filter { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); color: #aaaac0; background: #ffffff05; font-size: 11px; font-weight: 720; cursor: pointer; }
.pill-filter.active { color: #e8dcff; border-color: #b3a0ff40; background: #8e76ff1b; }
.filter-count { margin-left: auto; color: #85869b; font-size: 11px; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 18px; }
.movie-grid .poster-art .poster-title { font-size: 14px; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 56px 24px; border: 1px dashed rgba(178,158,255,.19); border-radius: 22px; background: radial-gradient(ellipse at 50% 0%,#8570ff0d,transparent 60%),#ffffff03; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; color: #c2afff; background: #a28bff14; border: 1px solid #a28bff24; font-size: 25px; }
.empty-state h3 { margin: 18px 0 7px; font-size: 18px; }
.empty-state p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 12px; }
.empty-state .btn { margin-top: 20px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); color: #66687f; font-size: 10px; }
.footer-brand { color: #9a91c0; font-weight: 900; letter-spacing: .15em; }
/* Authentication */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(350px, .85fr); }
.auth-showcase { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 100vh; padding: clamp(24px,5vw,70px); background: linear-gradient(90deg,rgba(9,10,18,.1),#090a12aa),url('/assets/hero-art.svg') center / cover no-repeat,#15152b; }
.auth-showcase::before { position: absolute; content: ''; inset: 0; background: radial-gradient(circle at 52% 38%,#9680ff28,transparent 35%),linear-gradient(0deg,#090a12,transparent 50%); }
.auth-showcase > * { position: relative; }
.auth-showcase-copy { max-width: 590px; margin: auto 0; padding: 45px 0; }
.auth-showcase-copy h1 { font-size: clamp(40px,5vw,70px); letter-spacing: -.06em; line-height: 1.02; margin: 24px 0 18px; }
.auth-showcase-copy p { max-width: 430px; color: #b2b0c5; line-height: 1.8; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.auth-feature { padding: 10px 12px; border: 1px solid #ffffff15; border-radius: 11px; color: #d7d0ee; background: #ffffff08; font-size: 10px; }
.auth-quote { color: #85839e; font-size: 11px; }
.auth-form-side { display: grid; place-items: center; padding: 35px clamp(24px,5vw,74px); background: #0b0c15; border-left: 1px solid #ffffff08; }
.auth-card { width: min(100%,380px); }
.auth-kicker { color: #b2a0ff; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; }
.auth-card h2 { margin: 13px 0 7px; font-size: 30px; letter-spacing: -.05em; }
.auth-subtitle { margin: 0 0 26px; color: #9495ac; font-size: 12px; line-height: 1.7; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 15px; }
.form-field label { color: #c6c4d7; font-size: 11px; font-weight: 720; }
.form-control { width: 100%; min-height: 45px; padding: 11px 13px; outline: 0; border: 1px solid #ffffff12; border-radius: 11px; color: #f7f4ff; background: #ffffff06; transition: border .2s,background .2s; }
.form-control::placeholder { color: #686a82; }
.form-control:focus { border-color: #927cff; background: #ffffff09; }
textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.6; }
select.form-control { appearance: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { width: 100%; margin-top: 7px; min-height: 47px; }
.auth-switch { margin-top: 22px; color: #8d8ea6; text-align: center; font-size: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: #c0adff; font-weight: 800; cursor: pointer; }
.form-hint { margin-top: 14px; color: #73748d; font-size: 10px; line-height: 1.7; }
.form-error { display: none; padding: 10px 12px; margin: 0 0 15px; border: 1px solid #ff8a9c35; border-radius: 10px; color: #ffb9c4; background: #ff637b10; font-size: 11px; line-height: 1.6; }
.form-error.visible { display: block; }
/* Modals, details, player */
.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(4,5,12,.79); backdrop-filter: blur(12px); animation: fade-in .16s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(100%,700px); max-height: min(90vh,900px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #ffffff15; border-radius: 22px; background: #11121e; box-shadow: 0 24px 100px #0009; }
.modal.modal-wide { width: min(100%,990px); }
.modal-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.modal-header p { margin: 5px 0 0; color: #9293aa; font-size: 11px; }
.modal-body { overflow-y: auto; padding: 23px 24px 26px; }
.modal-close { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: #ffffff07; cursor: pointer; font-size: 16px; }
.modal-close:hover { background: #ffffff15; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 13px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8e8fa6; font-size: 11px; font-weight: 750; cursor: pointer; }
.admin-tab.active { color: #d8ccff; border-bottom-color: #aa93ff; }
.admin-layout { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 22px; }
.admin-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #ffffff03; }
.admin-panel h3 { margin: 0 0 15px; font-size: 13px; }
.admin-panel .form-field { margin-bottom: 12px; }
.admin-panel .form-control { min-height: 39px; font-size: 11px; }
.admin-panel textarea.form-control { min-height: 82px; }
.check-row { display: flex; align-items: center; gap: 10px; color: #b8b7cb; font-size: 11px; cursor: pointer; }
.check-row input { accent-color: #9d84ff; width: 15px; height: 15px; }
.upload-progress { display: none; margin-top: 12px; }
.upload-progress.visible { display: block; }
.upload-progress-line { height: 4px; border-radius: 99px; background: #343349; overflow: hidden; }
.upload-progress-line span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg,#bd9cff,#7474ff); transition: width .15s; }
.upload-progress-label { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: #9495ac; font-size: 10px; }
.admin-library { display: flex; flex-direction: column; gap: 9px; }
.admin-item { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid #ffffff0c; border-radius: 12px; background: #ffffff03; }
.admin-thumb { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 56px; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg,#7562b7,#24283f); color: #eee8ff; font-size: 17px; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-main { min-width: 0; flex: 1; }
.admin-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 780; }
.admin-item-meta { margin-top: 5px; color: #86879c; font-size: 10px; }
.admin-item-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-mini-btn { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff05; color: #c1b4ee; cursor: pointer; font-size: 10px; }
.admin-mini-btn:hover { background: #ffffff12; }
.admin-mini-btn.delete { color: #ff9ba9; }
.admin-mini-btn:disabled { opacity: .45; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-text strong { display: block; font-size: 12px; }
.setting-text p { margin: 5px 0 0; color: #8f90a7; font-size: 11px; line-height: 1.7; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #39394e; cursor: pointer; transition: background .2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c6c4d7; transition: transform .2s; }
.switch input:checked + .switch-track { background: #8d75f2; }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: white; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.user-table th { color: #85869d; font-weight: 700; font-size: 10px; }
.user-table td { color: #d7d6e6; }
.user-table tr:last-child td { border-bottom: 0; }
.user-email { color: #8e8fa7; font-size: 10px; margin-top: 4px; overflow-wrap: anywhere; }
.status-pill { display: inline-block; padding: 4px 6px; border-radius: 6px; color: #9fe7bf; background: #4bda8a12; font-size: 9px; font-weight: 800; }
.status-pill.off { color: #ffabb4; background: #ff718312; }
.details-layout { display: grid; grid-template-columns: minmax(170px,.52fr) minmax(0,1fr); gap: 25px; padding: 25px; }
.details-poster { overflow: hidden; border: 1px solid #ffffff15; border-radius: 15px; aspect-ratio: 2 / 2.8; background: linear-gradient(140deg,#5e4e94,#171a31); }
.details-poster img, .details-poster .poster-art { width: 100%; height: 100%; object-fit: cover; }
.details-copy { align-self: center; }
.details-copy h2 { margin: 10px 0 14px; font-size: clamp(23px,3vw,34px); line-height: 1.08; letter-spacing: -.05em; }
.details-copy p { color: #adaec2; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.details-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.details-meta span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: #b7b5cd; font-size: 10px; }
.player-modal { width: min(100%,1200px); max-height: 95vh; background: #05060b; border-color: #ffffff20; }
.player-frame { display: block; width: 100%; max-height: calc(95vh - 85px); aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; }
.player-header h2 { margin: 0; font-size: 13px; }
.player-status { margin-top: 5px; color: #85869b; font-size: 10px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; width: min(350px,calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: start; gap: 10px; padding: 13px 15px; border: 1px solid #ffffff15; border-radius: 13px; background: #191a2a; box-shadow: 0 14px 38px #0006; color: #e7e4f5; font-size: 11px; line-height: 1.6; animation: toast-in .2s ease-out; }
.toast.success::before { content: '✓'; color: #a9edc8; font-weight: 900; }
.toast.error::before { content: '!'; color: #ffb5bf; font-weight: 900; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.help-note { padding: 12px 14px; border-radius: 11px; color: #a6a4bc; background: #ffffff05; border: 1px solid #ffffff09; font-size: 10px; line-height: 1.75; }
.help-note strong { color: #ddd5ff; }
.text-muted { color: #8c8da5; }
.hidden { display: none !important; }
@media (max-width: 1050px) {
  .topbar { gap: 21px; padding: 0 24px; }
  .nav-links { gap: 17px; }
  .nav-item { font-size: 12px; }
  .hero { min-height: 440px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-layout .admin-panel:first-child { order: 0; }
  .admin-library { max-height: 330px; overflow-y: auto; }
}
@media (max-width: 760px) {
  .topbar { min-height: 66px; flex-wrap: wrap; gap: 12px; padding: 0 16px; }
  .brand-word { font-size: 16px; }
  .nav-links { order: 4; width: 100%; height: 43px; gap: 20px; overflow-x: auto; }
  .nav-item { height: 43px; }
  .topbar-spacer { flex: 1; }
  .search-wrap { width: min(180px,35vw); }
  .profile-name, .profile-caret { display: none; }
  .profile-btn { padding: 4px; }
  .admin-quick { width: 36px; height: 36px; }
  .hero { min-height: 475px; margin: 0 8px; padding: 45px 25px 60px; background-position: 63% center; }
  .hero h1 { font-size: clamp(39px,9vw,60px); }
  .hero-content { max-width: 500px; }
  .hero-side-note { left: 25px; right: auto; font-size: 8px; bottom: 20px; }
  .content-wrap { padding: 0 17px; }
  .section { margin-top: 30px; }
  .media-row { grid-auto-columns: 155px; gap: 11px; }
  .movie-grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-form-side { min-height: 100vh; border-left: 0; padding: 35px 25px; }
  .modal-backdrop { padding: 10px; align-items: center; }
  .modal { max-height: 94vh; border-radius: 17px; }
  .modal-header { padding: 18px; }
  .modal-body { padding: 17px; }
  .admin-tabs { padding: 0 18px; }
  .details-layout { grid-template-columns: 110px minmax(0,1fr); gap: 16px; padding: 18px; }
  .details-copy h2 { font-size: 23px; }
  .details-copy p { font-size: 11px; }
  .details-poster { align-self: start; }
  .user-table th, .user-table td { padding: 10px 5px; }
}
@media (max-width: 430px) {
  .search-wrap { width: 38px; }
  .search-wrap input { padding-left: 36px; color: transparent; }
  .search-wrap input::placeholder { color: transparent; }
  .search-wrap:focus-within { width: min(185px,50vw); }
  .search-wrap:focus-within input { color: white; }
  .search-wrap:focus-within input::placeholder { color: #77798f; }
  .hero { min-height: 460px; }
  .hero-description { max-width: 310px; }
  .hero-actions { gap: 8px; }
  .btn { min-height: 41px; padding: 0 13px; }
  .section-subtitle { display: none; }
  .movie-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-item { flex-wrap: wrap; }
  .admin-item-actions { margin-left: 54px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .details-layout { display: block; }
  .details-poster { float: left; width: 94px; margin: 0 15px 10px 0; }
  .details-copy h2 { padding-top: 8px; }
  .details-actions { clear: both; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* NOVA 1.1 — account security and episode navigation */
.series-details-modal { overflow-y: auto; }
.episode-current-title { margin: -5px 0 11px !important; color: #d7d3ed !important; }
.episode-list { margin: 0 24px 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.episode-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.episode-list-heading h3 { margin: 0; font-size: 14px; }
.episode-list-heading span { color: #85869d; font-size: 10px; }
.episode-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 40px; align-items: center; gap: 11px; padding: 10px; margin-top: 7px; border: 1px solid #ffffff0c; border-radius: 12px; background: #ffffff03; }
.episode-row.current { border-color: #a18aff55; background: #8f76ff0c; }
.episode-number { color: #c5b5ff; font-size: 10px; font-weight: 850; line-height: 1.7; text-align: center; }
.episode-copy { min-width: 0; display: grid; gap: 5px; }
.episode-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e7e5f5; font-size: 11px; }
.episode-copy span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #85869e; font-size: 10px; line-height: 1.55; }
.account-modal { width: min(100%,650px); }
.account-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #ffffff03; }
.account-avatar { width: 45px; height: 45px; font-size: 16px; }
.account-identity strong { font-size: 13px; }
.account-identity .text-muted { margin-top: 4px; font-size: 10px; overflow-wrap: anywhere; }
.account-divider { height: 1px; margin: 21px 0; background: var(--line); }
#account-form h3 { margin: 0 0 8px; font-size: 13px; }
.account-modal .form-field { margin-bottom: 14px; }
.account-modal .form-control { min-height: 42px; }
@media (max-width: 760px) {
  .episode-list { margin: 0 16px 18px; }
  .episode-row { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 7px; padding: 8px; }
}
