:root {
  --bg: #141414;
  --bg2: #181818;
  --panel: #232323;
  --line: #333;
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #808080;
  --red: #e50914;
  --red-dark: #b20710;
  --green: #46d369;
  --gutter: clamp(16px, 4vw, 60px);
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Heebo', system-ui, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; max-width: 100%; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { display: block; }
.hidden { display: none !important; }

/* ---------- logo ---------- */
.logo { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; color: var(--red); letter-spacing: 1px; font-size: 32px; line-height: 1; direction: ltr; white-space: nowrap; text-shadow: 0 2px 6px rgba(0,0,0,.4); user-select: none; }
.logo small { font-size: .78em; opacity: .85; }
.logo.big { font-size: clamp(40px, 7vw, 72px); }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: 68px; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(0,0,0,.75) 10%, transparent); transition: background .3s; }
.topbar.solid { background: var(--bg); }
.topbar nav { display: flex; gap: 20px; font-size: 14px; }
.topbar nav a { color: #e5e5e5; transition: color .2s; }
.topbar nav a:hover { color: #b3b3b3; }
.topbar nav a.active { color: #fff; font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar .tools { display: flex; align-items: center; gap: 18px; }
.search-box { display: flex; align-items: center; gap: 6px; border: 1px solid transparent; padding: 4px 6px; transition: all .25s; }
.search-box.open { border-color: #fff; background: rgba(0,0,0,.75); }
.search-box input { width: 0; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; transition: width .25s; }
.search-box.open input { width: 200px; }
.icon-btn { background: none; border: 0; color: #fff; padding: 0; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.profile-menu { position: relative; }
.profile-menu .avatar { width: 32px; height: 32px; border-radius: 4px; font-size: 16px; }
.dropdown { position: absolute; top: 46px; left: 0; min-width: 210px; background: rgba(0,0,0,.92); border: 1px solid #444; padding: 10px 0; display: none; font-size: 13px; }
.profile-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; color: #fff; background: none; border: 0; text-align: right; font-size: 13px; }
.dropdown a:hover, .dropdown button:hover { text-decoration: underline; }
.dropdown hr { border: 0; border-top: 1px solid #444; margin: 8px 0; }
.dropdown .avatar { width: 28px; height: 28px; font-size: 14px; }
.nav-toggle { display: none; }

.avatar { border-radius: 4px; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c, var(--red)); flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: 56.25vw; max-height: 88vh; min-height: 460px; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img, .hero .bg .gen-art { width: 100%; height: 100%; object-fit: cover; }
.hero .bg .gen-art { font-size: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.35) 45%, transparent 70%), linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,0) 30%); }
.hero .info { position: absolute; z-index: 2; right: var(--gutter); bottom: 28%; width: min(42%, 620px); }
.hero h1 { font-size: clamp(36px, 5.6vw, 84px); font-weight: 900; line-height: .95; margin: 0 0 18px; text-shadow: 2px 2px 12px rgba(0,0,0,.5); letter-spacing: -1px; }
.hero .tagline { font-size: clamp(14px, 1.4vw, 20px); font-weight: 500; text-shadow: 1px 1px 6px rgba(0,0,0,.6); margin: 0 0 8px; }
.hero .desc { font-size: clamp(13px, 1.1vw, 16px); color: #ddd; line-height: 1.5; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 1px 1px 4px rgba(0,0,0,.6); }
.hero .badge-side { position: absolute; z-index: 2; left: 0; bottom: 32%; background: rgba(51,51,51,.6); border-right: 3px solid #dcdcdc; padding: 6px 12px 6px 40px; font-size: 15px; }
.top10-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; font-size: 18px; }
.top10-badge .sq { background: var(--red); font-size: 9px; line-height: 1; padding: 4px 3px; border-radius: 2px; text-align: center; font-weight: 900; font-family: 'Bebas Neue'; font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: var(--radius); padding: 10px 26px 10px 28px; font-size: 17px; font-weight: 700; transition: opacity .2s, background .2s; }
.btn svg { width: 24px; height: 24px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: rgba(255,255,255,.75); }
.btn-grey { background: rgba(109,109,110,.7); color: #fff; }
.btn-grey:hover { background: rgba(109,109,110,.45); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 1px solid #777; }
.btn-outline:hover { border-color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #5a1010; color: #ffb3b3; }
.btn-danger:hover { background: #7a1515; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.circle-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(42,42,42,.6); color: #fff; display: grid; place-items: center; transition: border-color .2s; padding: 0; }
.circle-btn:hover { border-color: #fff; }
.circle-btn svg { width: 20px; height: 20px; }
.circle-btn.white { background: #fff; border-color: #fff; color: #000; }
.circle-btn.on { border-color: #fff; }

/* ---------- rows ---------- */
.rows { position: relative; z-index: 3; margin-top: -8vw; padding-bottom: 60px; }
.rows.no-hero { margin-top: 0; padding-top: 100px; }
.row { margin-bottom: 3vw; }
.row h2 { font-size: clamp(15px, 1.4vw, 22px); font-weight: 700; margin: 0 var(--gutter) 10px; color: #e5e5e5; }
.row h2 a:hover { color: #fff; }
.row-wrap { position: relative; }
.row-track { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 0 var(--gutter); scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.row-track::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 0; bottom: 0; width: calc(var(--gutter) - 6px); z-index: 4; border: 0; background: rgba(20,20,20,.5); color: #fff; opacity: 0; transition: opacity .2s, background .2s; display: grid; place-items: center; }
.row-arrow svg { width: 32px; height: 32px; transition: transform .15s; }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(20,20,20,.75); }
.row-arrow:hover svg { transform: scale(1.25); }
.row-arrow.prev { right: 0; }
.row-arrow.next { left: 0; }

.card { flex: 0 0 calc((100vw - 2 * var(--gutter) - 5 * 6px) / 6); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; position: relative; background: #222; cursor: pointer; }
.card img, .card .gen-art { width: 100%; height: 100%; object-fit: cover; }
.card .card-title { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-weight: 800; font-size: 15px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); text-shadow: 0 1px 3px #000; }
.card .gen-art + .card-title { display: none; }
.card .new-tag { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: var(--red); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px 3px 0 0; white-space: nowrap; }
@media (max-width: 1400px) { .card { flex-basis: calc((100vw - 2 * var(--gutter) - 4 * 6px) / 5); } }
@media (max-width: 1100px) { .card { flex-basis: calc((100vw - 2 * var(--gutter) - 3 * 6px) / 4); } }
@media (max-width: 800px) { .card { flex-basis: calc((100vw - 2 * var(--gutter) - 2 * 6px) / 3); } }
@media (max-width: 500px) { .card { flex-basis: calc((100vw - 2 * var(--gutter) - 6px) / 2.2); } }

/* top 10 */
.top-card { flex: 0 0 calc((100vw - 2 * var(--gutter) - 4 * 6px) / 5); display: flex; align-items: stretch; height: calc((100vw - 2 * var(--gutter)) / 5 * .7); cursor: pointer; }
.top-card .num { flex: 1; font-family: 'Bebas Neue', 'Arial Black'; font-size: calc((100vw - 2 * var(--gutter)) / 5 * .78); line-height: .82; color: var(--bg); -webkit-text-stroke: 4px #595959; text-align: left; letter-spacing: -8px; direction: ltr; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end; padding-left: 4px; }
.top-card .poster { flex: 0 0 50%; border-radius: var(--radius); overflow: hidden; background: #222; }
.top-card .poster img, .top-card .poster .gen-art { width: 100%; height: 100%; object-fit: cover; }
.top-card .poster .gen-art { font-size: 15px; }
@media (max-width: 800px) { .top-card { flex-basis: calc((100vw - 2 * var(--gutter)) / 2.6); height: calc((100vw - 2 * var(--gutter)) / 2.6 * .7); } .top-card .num { font-size: calc((100vw - 2 * var(--gutter)) / 2.6 * .78); -webkit-text-stroke-width: 2px; } }

/* generated artwork when no image */
.gen-art { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8%; font-weight: 900; line-height: 1; font-size: clamp(14px, 1.6vw, 26px); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45);
  background: radial-gradient(120% 90% at 80% 10%, hsl(var(--h1) 75% 45%) 0%, transparent 60%), radial-gradient(100% 100% at 10% 100%, hsl(var(--h2) 70% 30%) 0%, transparent 65%), linear-gradient(135deg, hsl(var(--h1) 40% 14%), hsl(var(--h2) 45% 10%)); overflow: hidden; }
.gen-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.gen-art span { position: relative; }
.gen-art .ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); left: -18%; bottom: -40%; }

/* hover pop preview */
.pop { position: absolute; z-index: 60; background: var(--bg2); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.75); overflow: hidden; transform-origin: center; animation: popIn .2s ease-out; }
@keyframes popIn { from { transform: scale(.8); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.pop .pop-img { aspect-ratio: 16/9; cursor: pointer; }
.pop .pop-img img, .pop .pop-img .gen-art { width: 100%; height: 100%; object-fit: cover; }
.pop .pop-body { padding: 14px 16px 16px; }
.pop .pop-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pop .pop-actions .push { margin-right: auto; }
.pop .circle-btn { width: 34px; height: 34px; }
.pop .circle-btn svg { width: 16px; height: 16px; }
.pop .pop-title { font-weight: 800; margin-bottom: 6px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #bcbcbc; }
.meta .match { color: var(--green); font-weight: 700; }
.meta .mat { border: 1px solid rgba(255,255,255,.45); padding: 0 6px; font-size: 12px; color: #ddd; }
.meta .hd { border: 1px solid rgba(255,255,255,.45); border-radius: 3px; padding: 0 4px; font-size: 10px; font-weight: 700; }
.genres-line { margin-top: 8px; font-size: 13px; color: #fff; }
.genres-line span + span::before { content: '•'; color: #646464; margin: 0 6px; }

/* ---------- modal (title details) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.7); overflow-y: auto; padding: 32px 12px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; max-width: 880px; margin: 0 auto; background: var(--bg2); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px #000; animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(30px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .close { position: absolute; top: 14px; left: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: #181818; border: 0; color: #fff; display: grid; place-items: center; }
.modal .close svg { width: 20px; height: 20px; }
.modal-hero { position: relative; aspect-ratio: 16/9; max-height: 500px; width: 100%; }
.modal-hero img, .modal-hero .gen-art { width: 100%; height: 100%; object-fit: cover; }
.modal-hero .gen-art { font-size: 0; }
.modal-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg2) 0%, transparent 55%); }
.modal-hero .mh-info { position: absolute; z-index: 2; right: 48px; bottom: 40px; left: 48px; }
.modal-hero h1 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 900; margin: 0 0 18px; text-shadow: 2px 2px 10px rgba(0,0,0,.6); line-height: 1; }
.modal-hero .btn-row { align-items: center; }
.modal-body { padding: 0 48px 40px; }
.modal-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.modal-cols p { line-height: 1.6; margin: 14px 0; font-size: 15px; }
.modal .tagline-m { font-weight: 700; font-size: 17px; margin: 14px 0 0; }
.quote { border-right: 3px solid var(--red); padding-right: 12px; color: #ddd; font-style: italic; }
.kv { font-size: 14px; color: #777; margin: 8px 0; line-height: 1.6; }
.kv b { color: #777; font-weight: 400; }
.kv a, .kv span.v { color: #ddd; }
.kv a:hover { text-decoration: underline; }
.section-title { font-size: 22px; font-weight: 700; margin: 36px 0 14px; }
.stars { display: inline-flex; gap: 2px; direction: ltr; }
.stars button { background: none; border: 0; padding: 2px; color: #555; font-size: 26px; line-height: 1; transition: transform .1s, color .1s; }
.stars button.on { color: #f5c518; }
.stars button:hover { transform: scale(1.2); }
.rating-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #222; border-radius: 6px; padding: 14px 18px; }
.rating-box .avg { font-size: 30px; font-weight: 900; }
.rating-box .avg small { font-size: 14px; color: var(--muted); font-weight: 400; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px; }
.person-chip { text-align: center; }
.person-chip .ph { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #333; margin-bottom: 8px; border: 2px solid transparent; transition: border-color .2s; }
.person-chip:hover .ph { border-color: #fff; }
.person-chip .ph img { width: 100%; height: 100%; object-fit: cover; }
.person-chip .ph .initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.person-chip .nm { font-weight: 700; font-size: 14px; }
.person-chip .rl { font-size: 12px; color: var(--muted); }

.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 12px; background: #202020; padding: 12px 14px; border-radius: 6px; }
.comment .avatar { width: 38px; height: 38px; font-size: 17px; }
.comment .c-head { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.comment .c-head b { color: #fff; }
.comment .c-text { margin-top: 4px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.comment .c-del { margin-right: auto; background: none; border: 0; color: #888; font-size: 12px; }
.comment .c-del:hover { color: #fff; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.comment-form .avatar { width: 38px; height: 38px; font-size: 17px; }
.comment-form textarea { flex: 1; background: #2a2a2a; border: 1px solid #444; color: #fff; border-radius: 6px; padding: 10px 12px; min-height: 48px; resize: vertical; font-size: 14px; }
.comment-form textarea:focus { outline: none; border-color: #888; }

.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.more-card { background: #2f2f2f; border-radius: 6px; overflow: hidden; cursor: pointer; }
.more-card .mc-img { aspect-ratio: 16/9; position: relative; }
.more-card .mc-img img, .more-card .mc-img .gen-art { width: 100%; height: 100%; object-fit: cover; }
.more-card .mc-body { padding: 12px 14px 16px; }
.more-card .mc-body p { font-size: 13px; color: #d2d2d2; line-height: 1.5; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- pages ---------- */
.page { padding: 100px var(--gutter) 60px; min-height: 100vh; }
.page h1.page-title { font-size: clamp(24px, 3vw, 40px); margin: 0 0 24px; font-weight: 800; }
.grid-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 45vw), 1fr)); gap: 40px 8px; }
.grid-films .card { flex: none; width: 100%; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.select, .input, .textarea { background: #000; color: #fff; border: 1px solid #666; padding: 8px 12px; border-radius: 3px; font-size: 14px; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: #fff; }
.chip { background: transparent; color: #ddd; border: 1px solid #555; border-radius: 30px; padding: 6px 14px; font-size: 13px; }
.chip.on, .chip:hover { background: #fff; color: #000; border-color: #fff; }
.empty { color: var(--muted); padding: 60px 0; text-align: center; font-size: 17px; }

.person-page { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.person-page .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #333; }
.person-page .ph img { width: 100%; height: 100%; object-fit: cover; }
.person-page .ph .initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 80px; font-weight: 900; }
.person-page h1 { font-size: 44px; margin: 0 0 6px; font-weight: 900; }
.person-page .bio { line-height: 1.7; color: #ddd; white-space: pre-wrap; }
@media (max-width: 700px) { .person-page { grid-template-columns: 1fr; } .person-page .ph { max-width: 200px; margin: 0 auto; } }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; background: #000; z-index: 90; display: flex; align-items: center; justify-content: center; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; background: #000; }
.player .back { position: absolute; top: 20px; right: 24px; z-index: 3; background: none; border: 0; color: #fff; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; opacity: .85; transition: opacity .2s; text-shadow: 0 1px 4px #000; }
.player .back:hover { opacity: 1; }
.player .back svg { width: 36px; height: 36px; }
.player .no-video { text-align: center; color: var(--muted); padding: 20px; }
.player .no-video h2 { color: #fff; }

/* ---------- gates: lock / profiles ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(229,9,20,.18), transparent 60%), var(--bg); }
.gate h1 { font-size: clamp(28px, 4vw, 56px); font-weight: 500; margin: 20px 0 30px; }
.gate .gate-logo { position: absolute; top: 24px; right: var(--gutter); }
.lock-box { background: rgba(0,0,0,.75); padding: 48px 56px; border-radius: 6px; width: min(440px, 100%); text-align: right; }
.lock-box h2 { font-size: 30px; margin: 0 0 24px; }
.lock-box .input { width: 100%; padding: 14px 16px; font-size: 16px; background: #333; border: 0; border-radius: 4px; margin-bottom: 16px; }
.lock-box .btn { width: 100%; justify-content: center; }
.lock-box .err { color: #e87c03; font-size: 14px; margin: -6px 0 12px; min-height: 18px; }
.profiles { display: flex; gap: 2vw; flex-wrap: wrap; justify-content: center; max-width: 1000px; }
.profile-tile { width: clamp(90px, 10vw, 150px); background: none; border: 0; color: var(--dim); text-align: center; }
.profile-tile .avatar { width: 100%; aspect-ratio: 1; font-size: clamp(36px, 4.5vw, 64px); border: 3px solid transparent; transition: border-color .15s; }
.profile-tile:hover { color: #fff; }
.profile-tile:hover .avatar { border-color: #fff; }
.profile-tile .pn { margin-top: 10px; font-size: clamp(13px, 1.2vw, 18px); }
.profile-tile.add .avatar { background: transparent; color: var(--dim); font-size: clamp(50px, 6vw, 90px); font-weight: 300; }
.profile-tile.add:hover .avatar { background: #e5e5e5; color: #141414; }
.color-pick { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.color-pick button { width: 30px; height: 30px; border-radius: 4px; border: 2px solid transparent; }
.color-pick button.on { border-color: #fff; }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs a { padding: 10px 18px; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 500; }
.admin-tabs a.on { color: #fff; border-color: var(--red); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid #262626; vertical-align: middle; }
.tbl tr:hover td { background: #1c1c1c; }
.tbl .thumb { width: 120px; aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; }
.tbl .thumb img, .tbl .thumb .gen-art { width: 100%; height: 100%; object-fit: cover; font-size: 11px; }
.tbl .thumb.round { width: 48px; border-radius: 50%; aspect-ratio: 1; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 20px; background: #333; color: #ccc; margin-left: 4px; }
.pill.red { background: rgba(229,9,20,.25); color: #ff8a8f; }
.pill.green { background: rgba(70,211,105,.15); color: var(--green); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 1100px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; line-height: 1.5; }
.field .input, .field .textarea, .field .select { width: 100%; background: #1f1f1f; border-color: #3a3a3a; padding: 10px 12px; }
.field .textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field .input:focus, .field .textarea:focus, .field .select:focus { border-color: #888; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.form-section { grid-column: 1 / -1; font-size: 18px; font-weight: 700; margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.media-field { display: flex; gap: 14px; align-items: flex-start; }
.media-field .preview { width: 170px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #222; border: 1px dashed #444; display: grid; place-items: center; color: #666; font-size: 12px; }
.media-field .preview.poster { width: 110px; aspect-ratio: 2/3; }
.media-field .preview.round { width: 110px; aspect-ratio: 1; border-radius: 50%; }
.media-field .preview img { width: 100%; height: 100%; object-fit: cover; }
.media-field .mf-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.progress { height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.progress div { height: 100%; background: var(--red); width: 0; transition: width .2s; }
.links-editor { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.link-row .input, .link-row .select { width: 100%; background: #1f1f1f; border-color: #3a3a3a; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); padding: 18px 0; margin-top: 20px; display: flex; gap: 10px; z-index: 5; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-cards div { background: #1f1f1f; border-radius: 6px; padding: 14px 16px; }
.stat-cards b { display: block; font-size: 28px; }
.stat-cards span { color: var(--muted); font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); background: #fff; color: #000; font-weight: 700; padding: 12px 22px; border-radius: 4px; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }

footer.site-foot { padding: 40px var(--gutter) 50px; color: #757575; font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .topbar { gap: 14px; }
  .topbar nav { display: none; position: absolute; top: 60px; right: var(--gutter); flex-direction: column; background: rgba(0,0,0,.92); border: 1px solid #444; padding: 14px 20px; gap: 14px; }
  .topbar nav.open { display: flex; }
  .nav-toggle { display: flex; align-items: center; gap: 4px; font-size: 13px; background: none; border: 0; color: #fff; }
  .logo { font-size: 24px; }
  .search-box.open input { width: 130px; }
  .hero .info { width: auto; left: var(--gutter); bottom: 16%; }
  .hero .badge-side { display: none; }
  .modal-hero .mh-info { right: 20px; left: 20px; bottom: 20px; }
  .modal-body { padding: 0 20px 30px; }
  .modal-cols { grid-template-columns: 1fr; gap: 0; }
  .form { grid-template-columns: 1fr; }
  .media-field { flex-direction: column; }
  .lock-box { padding: 32px 24px; }
  .tbl .hide-sm { display: none; }
}
@media (max-width: 500px) {
  .logo { font-size: 20px; }
  .btn { padding: 8px 16px; font-size: 15px; }
  .hero { min-height: 520px; }
}

.card .new-tag.soon { background: #fff; color: #000; }
.subtitle { font-size: clamp(13px, 1.2vw, 17px); font-weight: 700; letter-spacing: 2px; color: #ddd; margin-bottom: 6px; text-shadow: 0 1px 4px #000; }
.soon-line { color: #fff; font-weight: 700; font-size: 14px; }
.credits-wanted { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: linear-gradient(90deg, rgba(229,9,20,.18), rgba(229,9,20,.05)); border: 1px solid rgba(229,9,20,.45); border-radius: 6px; padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.credits-wanted span { color: #ddd; flex: 1; min-width: 200px; }
.credits-wanted b { width: 100%; font-size: 15px; }

/* ---------- auth ---------- */
.auth-gate .lock-box { text-align: right; }
.or { display: flex; align-items: center; gap: 12px; color: #888; font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #444; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.auth-switch { color: #999; font-size: 15px; margin: 22px 0 6px; }
.auth-switch a { color: #fff; }
.auth-switch a:hover { text-decoration: underline; }
.auth-note { color: #8c8c8c; font-size: 12px; line-height: 1.5; margin: 0; }
.avatar { position: relative; overflow: hidden; }
.avatar .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn:disabled { opacity: .6; cursor: default; }
.guest-btn { width: 100%; justify-content: center; margin-top: 12px; }
.guest-note { background: #222; border-radius: 6px; padding: 14px 18px; color: #bbb; margin-bottom: 18px; }
.guest-note a { color: #fff; text-decoration: underline; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero.titled .info { bottom: 24%; }

/* rotating banner */
.hero .bg { opacity: 0; transition: opacity 1.2s ease; }
.hero .bg.on { opacity: 1; }
.hero .info { transition: none; }
.hero .info.in { animation: heroIn .9s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero .subtitle:empty { display: none; }
.hero-dots { position: absolute; z-index: 3; left: var(--gutter); bottom: 22%; display: flex; gap: 6px; }
.hero-dots button { width: 22px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); border-radius: 2px; transition: background .3s, width .3s; }
.hero-dots button.on { background: #fff; width: 34px; }
/* couple names on cards */
.card .card-title small { display: block; font-size: 12px; font-weight: 500; color: #ddd; margin-top: 2px; }
.card .card-couple { position: absolute; inset: auto 0 0 0; padding: 16px 10px 6px; font-size: 12.5px; font-weight: 700; text-align: right; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); text-shadow: 0 1px 3px #000; }
.card .new-tag { bottom: auto; top: 0; left: 0; transform: none; border-radius: 0 0 3px 0; }
@media (max-width: 900px) { .hero-dots { bottom: 8%; } }
