:root {
    --bg: #040812;
    --bg-2: #07111f;
    --bg-3: #0b1727;
    --surface: rgba(10, 21, 35, .78);
    --surface-2: rgba(15, 30, 50, .72);
    --card: rgba(12, 24, 40, .82);
    --card-2: rgba(18, 34, 55, .78);
    --text: #f8fafc;
    --text-soft: #d7deea;
    --muted: #91a0b7;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.16);
    --accent: #f7be4b;
    --accent-2: #ffd889;
    --accent-dark: #8a5c12;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 22px 70px rgba(0, 0, 0, .38);
    --radius: 22px;
    --radius-sm: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at 18% -8%, rgba(247,190,75,.13), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(68,116,180,.18), transparent 32%),
        linear-gradient(180deg, #030711 0%, #081321 42%, #030711 100%);
}
body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.70), transparent 72%);
    z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1440px, calc(100% - 56px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 8, 18, .79);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(0,0,0,.20);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 12px;
    display: inline-grid; place-items: center;
    color: #111827;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 30px rgba(247,190,75,.22);
    transform: rotate(-2deg);
    font-size: 0;
    position: relative;
}
.brand-mark:before { content: "🎬"; font-size: 22px; line-height: 1; filter: saturate(.9); }
.brand-text { font-size: clamp(20px, 2vw, 29px); letter-spacing: -.045em; font-weight: 800; color: #f3f4f6; }
.brand-text strong { color: var(--accent); }
.brand-text span { color: #cbd5e1; font-size: .78em; font-weight: 600; letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
.main-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;
    transition: .18s ease;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(247,190,75,.10); box-shadow: inset 0 0 0 1px rgba(247,190,75,.16); }
.main-nav a.active { color: var(--accent-2); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.header-search { width: min(420px, 30vw); height: 44px; display: flex; align-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,.045); border-radius: 14px; overflow: hidden; transition: .18s ease; }
.header-search:focus-within { border-color: rgba(247,190,75,.55); box-shadow: 0 0 0 4px rgba(247,190,75,.08); }
.header-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 4px 0 16px; }
.header-search input::placeholder { color: #77869c; }
.header-search button { width: 46px; height: 100%; border: 0; background: transparent; color: #f8fafc; cursor: pointer; font-size: 24px; line-height: 1; }
.user-pill { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.055); color: #e2e8f0; font-weight: 900; font-size: 13px; }
.btn {
    border: 1px solid rgba(247,190,75,.55);
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #17110b;
    padding: 13px 18px;
    border-radius: 13px;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 16px 34px rgba(247,190,75,.20);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(247,190,75,.28); }
.btn-ghost, .btn.secondary, .btn.secondary:hover {
    color: #eef2ff;
    background: rgba(255,255,255,.055);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn-ghost:hover, .btn.secondary:hover { border-color: rgba(247,190,75,.48); color: var(--accent-2); background: rgba(247,190,75,.07); }
.btn-sm { padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.section { padding: 30px 0; }
.section-lg { padding: 48px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title h1, .section-title h2 { margin: 0; letter-spacing: -.04em; line-height: 1.05; }
.section-title h1 { font-size: clamp(34px, 4.5vw, 58px); }
.section-title h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-title p, .muted, .text-muted { margin: 6px 0 0; color: var(--muted); }
.section-link { color: var(--accent-2); font-weight: 900; font-size: 14px; white-space: nowrap; }
.panel, .notice, .list-card, .movie-card, .account-title-card, .stat-card, .movie-hero-box {
    background: linear-gradient(180deg, rgba(13, 28, 47, .82), rgba(7, 17, 30, .76));
    border: 1px solid var(--line);
    box-shadow: 0 15px 44px rgba(0,0,0,.24);
}
.panel { border-radius: var(--radius); padding: 22px; }
.panel h2, .panel h3 { margin-top: 0; letter-spacing: -.035em; }
.notice { padding: 15px 16px; border-radius: 16px; color: #dbeafe; }
.notice.error { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); color: #fecaca; }
.hero { padding: 28px 0 18px; }
.hero-card {
    min-height: 365px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr .95fr;
    gap: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.14);
    background:
        linear-gradient(90deg, rgba(3,7,17,.98) 0%, rgba(5,10,19,.90) 40%, rgba(5,10,19,.35) 100%),
        radial-gradient(circle at 78% 50%, rgba(247,190,75,.22), transparent 28%),
        linear-gradient(135deg, #0a1525, #030711);
    box-shadow: var(--shadow);
    padding: clamp(28px, 4vw, 56px);
}
.hero-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,8,18,.96), rgba(4,8,18,.18)),
        radial-gradient(ellipse at 78% 22%, rgba(247,190,75,.20), transparent 28%);
    z-index: 0;
}
.hero-card:after {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 58%;
    background:
        linear-gradient(90deg, rgba(4,8,18,.45), rgba(4,8,18,.10)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.55' cy='.45' r='.7'%3E%3Cstop offset='0' stop-color='%23f7be4b' stop-opacity='.42'/%3E%3Cstop offset='.55' stop-color='%230b1727' stop-opacity='.48'/%3E%3Cstop offset='1' stop-color='%23030711' stop-opacity='.96'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='900' height='520' fill='url(%23g)'/%3E%3Crect x='370' y='70' width='270' height='155' rx='18' fill='%23070b13' stroke='%23f7be4b' stroke-opacity='.18'/%3E%3Ctext x='454' y='175' font-size='78' fill='%23f7be4b' fill-opacity='.75'%3E🎬%3C/text%3E%3Cellipse cx='430' cy='392' rx='260' ry='42' fill='%2302050c' fill-opacity='.75'/%3E%3Cellipse cx='560' cy='370' rx='72' ry='28' fill='%23b2781d' fill-opacity='.34'/%3E%3Crect x='645' y='330' width='95' height='54' rx='12' fill='%23070b13' stroke='%23f7be4b' stroke-opacity='.22'/%3E%3Ccircle cx='760' cy='260' r='40' fill='%23f7be4b' fill-opacity='.18'/%3E%3C/svg%3E") center/cover no-repeat;
    opacity: .85;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-eyebrow { color: var(--accent-2); font-weight: 950; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6.4vw, 84px); line-height: .92; letter-spacing: -.055em; margin: 0 0 16px; }
.hero h1 span { display: block; color: var(--accent-2); }
.hero p { color: #dbe4f2; font-size: 17px; max-width: 520px; margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.hero-feature { border: 1px solid var(--line); background: rgba(4,8,18,.55); border-radius: 16px; padding: 12px 14px; min-height: 70px; }
.hero-feature strong { display: block; color: var(--accent-2); font-size: 13px; }
.hero-feature span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-box { display: flex; gap: 10px; max-width: 720px; }
.search-box input, .form-control {
    width: 100%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.055); color: var(--text); border-radius: 14px; padding: 14px 16px; outline: none;
}
textarea.form-control { min-height: 115px; resize: vertical; }
.search-box input:focus, .form-control:focus { border-color: rgba(247,190,75,.55); box-shadow: 0 0 0 4px rgba(247,190,75,.08); }
.genre-row, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.genre-row a, .chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 15px;
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
    color: #dbeafe;
    font-weight: 850;
    font-size: 14px;
    transition: .18s ease;
}
.genre-row a:hover, .chip:hover { transform: translateY(-1px); border-color: rgba(247,190,75,.48); color: var(--accent-2); background: rgba(247,190,75,.07); }
.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.movie-card { border-radius: 18px; overflow: hidden; transition: .18s ease; min-width: 0; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(247,190,75,.45); box-shadow: 0 20px 55px rgba(0,0,0,.34); }
.poster { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; background: #0b1220; }
.movie-card-body { padding: 12px; }
.movie-card h3 { font-size: 15px; line-height: 1.22; margin: 0 0 7px; letter-spacing: -.015em; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: #dbeafe; font-size: 12px; line-height: 1; background: rgba(255,255,255,.055); }
.badge.accent, .rating-badge { color: #1a1306; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: rgba(247,190,75,.55); font-weight: 950; }
.rating-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 9px; padding: 5px 8px; font-size: 12px; line-height: 1; white-space: nowrap; }
.compact-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.compact-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 128px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 30, 50, .74), rgba(8, 17, 31, .74));
    transition: .18s ease;
    overflow: hidden;
}
.compact-card:hover { transform: translateY(-3px); border-color: rgba(247,190,75,.42); background: rgba(247,190,75,.06); }
.compact-card img { width: 82px; height: 112px; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.26); }
.compact-card h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.22; }
.compact-card p { margin: 7px 0 0; color: #aeb9ca; font-size: 12px; line-height: 1.35; }
.compact-card .meta { font-size: 12px; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.list-card { border-radius: 20px; padding: 22px; position: relative; overflow: hidden; transition: .18s ease; }
.list-card:after { content: ""; position: absolute; right: -40px; top: -45px; width: 140px; height: 140px; background: var(--accent); opacity: .12; border-radius: 50%; filter: blur(20px); }
.list-card:hover { transform: translateY(-3px); border-color: rgba(247,190,75,.42); }
.list-card h3 { margin: 0 0 8px; letter-spacing: -.025em; }
.movie-hero { padding: 28px 0 16px; min-height: auto; background: none !important; }
.movie-hero-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 350px;
    padding: 26px;
    background-size: cover;
    background-position: center;
}
.movie-hero-box:before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(3,7,17,.98) 0%, rgba(5,10,19,.88) 45%, rgba(5,10,19,.40) 100%),
        linear-gradient(180deg, rgba(3,7,17,.12), rgba(3,7,17,.94));
    z-index: 0;
}
.movie-hero .container { padding-bottom: 0; }
.movie-detail-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 205px 1fr; gap: 28px; align-items: center; }
.detail-poster { border-radius: 17px; overflow: hidden; box-shadow: 0 24px 65px rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.16); }
.detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.movie-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.2vw, 70px); line-height: .94; margin: 0 0 12px; letter-spacing: -.045em; }
.movie-overview { color: #dbe4f2; max-width: 760px; font-size: 16px; margin: 8px 0 18px; }
.movie-meta-line { display: flex; align-items: center; gap: 12px; color: #dbeafe; flex-wrap: wrap; margin-bottom: 10px; }
.movie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.movie-credit-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.credit-mini { border-left: 1px solid rgba(247,190,75,.28); padding-left: 12px; color: var(--muted); font-size: 13px; }
.credit-mini strong { display: block; color: var(--accent-2); font-size: 13px; }
.library-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.library-form { margin: 0; }
.library-btn {
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.055);
    color: #e2e8f0;
    border-radius: 13px;
    padding: 12px 14px;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .18s ease;
}
.library-btn:hover { border-color: rgba(247,190,75,.55); color: var(--accent-2); transform: translateY(-1px); }
.library-btn.active { color: #1a1306; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: rgba(247,190,75,.55); box-shadow: 0 14px 30px rgba(247,190,75,.16); }
.library-login-hint { display: inline-flex; border: 1px solid rgba(247,190,75,.25); background: rgba(247,190,75,.08); color: #fde68a; border-radius: 14px; padding: 12px 14px; }
.library-login-hint a { color: #fff; font-weight: 900; text-decoration: underline; }
.mini-notice { display: inline-flex; margin: 0 0 10px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #cbd5e1; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 850; }
.mini-notice.success { border-color: rgba(34,197,94,.30); background: rgba(34,197,94,.12); color: #bbf7d0; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 18px 0 58px; }
.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.rec-card { min-height: 185px; }
.rec-card h2 { display: flex; align-items: center; gap: 10px; color: var(--accent-2); font-size: 19px; }
.rec-card p { color: #dce6f5; margin-bottom: 0; }
.trailer { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 18px; }
.info-list { display: grid; gap: 12px; }
.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list strong { color: #cbd5e1; }
.info-list span { color: var(--muted); }
.comments-block { margin-top: 18px; }
.comment-form { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.035); }
.form-row-public { display: grid; gap: 8px; margin-bottom: 13px; }
.form-row-public label { color: #dbeafe; font-weight: 900; }
.reply-target { display: none; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(247,190,75,.28); background: rgba(247,190,75,.08); border-radius: 12px; color: #fde68a; }
.reply-target button { border: 0; background: transparent; color: #fff; font-weight: 950; cursor: pointer; margin-left: 8px; }
.spoiler-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #cbd5e1; font-weight: 850; cursor: pointer; }
.spoiler-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.comment-login-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.comment-list { display: grid; gap: 14px; margin-top: 18px; }
.comment-item { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px; }
.comment-item.reply { margin-left: 34px; border-color: rgba(255,255,255,.075); background: rgba(255,255,255,.028); }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.comment-author { display: inline-flex; align-items: center; gap: 9px; font-weight: 950; color: #f8fafc; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, rgba(247,190,75,.95), rgba(136,92,24,.95)); color: #111827; font-size: 13px; font-weight: 950; }
.comment-date { color: var(--muted); font-size: 12px; }
.comment-body { color: #dbeafe; white-space: pre-line; }
.comment-actions { margin-top: 10px; display: flex; gap: 8px; }
.comment-actions button { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #e2e8f0; border-radius: 999px; padding: 7px 11px; font-weight: 900; cursor: pointer; }
.comment-actions button:hover { border-color: rgba(247,190,75,.55); color: var(--accent-2); }
.comment-empty { color: var(--muted); }
.spoiler-box { border: 1px solid rgba(247,190,75,.22); background: rgba(247,190,75,.055); border-radius: 14px; padding: 12px; }
.spoiler-warning { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.spoiler-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: rgba(247,190,75,.18); border: 1px solid rgba(247,190,75,.35); color: #fde68a; font-size: 12px; font-weight: 950; }
.show-spoiler-btn { border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #e2e8f0; border-radius: 999px; padding: 7px 10px; font-weight: 950; cursor: pointer; }
.show-spoiler-btn:hover { border-color: rgba(247,190,75,.55); color: var(--accent-2); }
.spoiler-content { display: none; margin-top: 10px; }
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; padding: 28px 0 56px; }
.account-sidebar { position: sticky; top: 96px; border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(10, 21, 35, .84), rgba(5, 12, 22, .82)); border: 1px solid var(--line); min-height: 520px; }
.account-sidebar h3 { margin: 10px 8px 18px; color: var(--accent-2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.account-menu { display: grid; gap: 7px; }
.account-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 13px; color: #cbd5e1; font-weight: 850; }
.account-menu a.active, .account-menu a:hover { background: rgba(247,190,75,.09); color: var(--accent-2); box-shadow: inset 3px 0 0 var(--accent); }
.premium-box { margin-top: 220px; border: 1px solid rgba(247,190,75,.20); background: rgba(247,190,75,.07); border-radius: 18px; padding: 18px; text-align: center; }
.premium-box strong { display: block; color: var(--accent-2); font-size: 18px; }
.account-title-card {
    position: relative; overflow: hidden; border-radius: 22px; padding: 30px;
    background:
        linear-gradient(90deg, rgba(6,14,25,.96), rgba(6,14,25,.75), rgba(6,14,25,.32)),
        radial-gradient(circle at 86% 25%, rgba(247,190,75,.16), transparent 28%),
        linear-gradient(135deg, rgba(14, 29, 48, .95), rgba(4, 8, 18, .88));
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.account-profile { display: flex; gap: 18px; align-items: center; }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent-dark)); color: #111827; font-size: 38px; font-weight: 950; border: 4px solid rgba(255,255,255,.10); box-shadow: 0 16px 44px rgba(0,0,0,.38); }
.account-title-card h1 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.eyebrow { margin: 0 0 8px; color: var(--accent-2); font-weight: 950; text-transform: uppercase; letter-spacing: .09em; font-size: 12px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.stat-card { border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 13px; }
.stat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(247,190,75,.25); color: var(--accent-2); background: rgba(247,190,75,.07); }
.stat-card strong { display: block; font-size: 28px; line-height: 1; color: #fff; }
.stat-card span { color: var(--muted); font-weight: 850; font-size: 13px; }
.account-tabs { display: grid; gap: 18px; }
.account-list-panel { overflow: hidden; padding: 18px; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.account-section-head h2 { margin: 0; font-size: 22px; display: flex; gap: 8px; align-items: center; }
.account-section-head .count-pill { color: #1a1306; background: var(--accent); border-radius: 999px; font-size: 12px; padding: 3px 8px; }
.account-movie-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-movie-card { min-width: 0; display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 16px; padding: 10px; transition: .18s ease; }
.account-movie-card:hover { border-color: rgba(247,190,75,.38); transform: translateY(-2px); background: rgba(247,190,75,.055); }
.account-movie-card .mini-poster { width: 70px; height: 96px; border-radius: 10px; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.account-card-body { min-width: 0; }
.account-card-body h3 { font-size: 14px; line-height: 1.22; margin: 0 0 7px; }
.remove-library-form { margin-top: 10px; }
.remove-library-form button { border: 1px solid var(--line); background: rgba(255,255,255,.055); color: #cbd5e1; border-radius: 10px; padding: 7px 9px; cursor: pointer; font-weight: 850; font-size: 12px; }
.remove-library-form button:hover { border-color: rgba(239,68,68,.38); color: #fecaca; }
.empty-library { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: rgba(2,5,12,.86); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr 1.2fr; gap: 24px; color: var(--muted); }
.footer-grid h4 { color: #f8fafc; margin: 0 0 10px; }
.footer-grid a { display: block; margin: 6px 0; color: #aab5c8; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand p, .tmdb-box p { margin: 8px 0 0; }
.tmdb-box strong { display: inline-flex; margin: 3px 0 6px; color: #45d9e6; font-size: 24px; letter-spacing: .08em; }
@media (max-width: 1180px) {
    .container { width: min(100% - 34px, 1180px); }
    .header-inner { flex-wrap: wrap; padding: 14px 0; }
    .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .header-search { width: min(420px, 42vw); }
    .compact-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .movie-grid { grid-template-columns: repeat(4, 1fr); }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; min-height: auto; }
    .premium-box { margin-top: 16px; }
}
@media (max-width: 920px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-card:after { width: 100%; opacity: .38; }
    .hero-features { grid-template-columns: 1fr; }
    .movie-detail-grid, .detail-content { grid-template-columns: 1fr; }
    .detail-poster { width: 205px; }
    .movie-credit-row { grid-template-columns: repeat(2, 1fr); }
    .recommendation-grid { grid-template-columns: 1fr; }
    .compact-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { width: min(100% - 22px, 520px); }
    .header-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
    .header-search { width: 100%; order: 1; }
    .btn-sm, .user-pill { order: 2; }
    .main-nav { gap: 4px; }
    .main-nav a { padding: 8px 10px; font-size: 13px; }
    .hero-card, .movie-hero-box, .account-title-card { border-radius: 18px; padding: 22px; }
    .hero h1 { font-size: 46px; }
    .search-box, .movie-actions, .library-actions { flex-direction: column; align-items: stretch; }
    .library-form, .library-btn, .movie-actions .btn { width: 100%; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .compact-rail { grid-template-columns: 1fr; }
    .compact-card { grid-template-columns: 74px 1fr; }
    .compact-card img { width: 74px; height: 104px; }
    .list-grid { grid-template-columns: 1fr; }
    .movie-credit-row, .account-stats, .account-movie-grid { grid-template-columns: 1fr; }
    .account-title-card, .account-profile { align-items: flex-start; flex-direction: column; }
    .profile-avatar { width: 86px; height: 86px; font-size: 30px; }
    .comment-item.reply { margin-left: 12px; }
    .comment-head { align-items: start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}
.auth-section { min-height: 68vh; display: grid; align-items: center; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: min(520px, 100%); }
.auth-card h1 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.auth-alt a { color: var(--accent-2); font-weight: 950; }
.nav-user { color: #e2e8f0; font-weight: 900; }
.nav-cta { color: #111827 !important; background: var(--accent); padding: 7px 11px; border-radius: 999px; }
