@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────────────────── */
:root {
    --bg:        #0a0a0a;
    --bg-card:   #111111;
    --bg-raised: #1a1a1a;
    --bg-glass:  rgba(10,10,10,.92);

    --gold:      #d4a843;
    --gold-dim:  #9a7828;
    --gold-soft: rgba(212,168,67,.08);
    --glow-v:    rgba(212,168,67,.22);

    --text:      #e8e0d0;
    --muted:     #6a6058;
    --border:    rgba(212,168,67,.13);
    --border-hi: rgba(212,168,67,.42);

    --danger:    #b85450;
    --radius:    4px;
    --radius-lg: 6px;

    --bg-header:      rgba(10,10,10,.95);
    --bg-overlay-100: rgba(10,10,10,1);
    --bg-overlay-85:  rgba(10,10,10,.86);
    --bg-wish-idle:   rgba(10,10,10,.7);
}

/* ── LIGHT THEME ─────────────────────────────────────── */
[data-theme="light"] {
    --bg:        #f5f0e8;
    --bg-card:   #faf7f2;
    --bg-raised: #ede8df;
    --bg-glass:  rgba(245,240,232,.95);

    --gold:      #a07020;
    --gold-dim:  #7a5418;
    --gold-soft: rgba(160,112,32,.08);
    --glow-v:    rgba(160,112,32,.18);

    --text:      #1c1510;
    --muted:     #7a6e62;
    --border:    rgba(160,112,32,.18);
    --border-hi: rgba(160,112,32,.5);

    --bg-header:      rgba(245,240,232,.96);
    --bg-overlay-100: rgba(245,240,232,1);
    --bg-overlay-85:  rgba(245,240,232,.88);
    --bg-wish-idle:   rgba(245,240,232,.72);
}

[data-theme="light"] .register-btn {
    color: #faf7f2 !important;
    background: var(--gold) !important;
}

[data-theme="light"] .wish-btn {
    border-color: rgba(0,0,0,.12);
    color: var(--gold);
}

[data-theme="light"] .movie-meta span:last-child {
    color: var(--gold);
}

[data-theme="light"] .hero::before {
    background: repeating-linear-gradient(
        0deg, transparent, transparent 3px,
        rgba(0,0,0,.018) 3px, rgba(0,0,0,.018) 4px
    );
}

[data-theme="light"] .review-edit-btn {
    background: transparent; color: var(--muted); border-color: rgba(0,0,0,.1);
}
[data-theme="light"] .review-edit-btn:hover {
    background: var(--gold-soft); color: var(--gold); border-color: var(--border);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── PAGE SHELL ──────────────────────────────────────── */
.page { display: flex; flex-direction: column; min-height: 100vh; }
main  { flex: 1; }

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 200;
    height: 64px;
    padding: 0 52px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 22px; letter-spacing: 2px;
    color: var(--gold); text-transform: uppercase;
    line-height: 1;
}

.nav, .auth-links { display: flex; align-items: center; gap: 28px; }

.nav a {
    font-size: 12px; font-weight: 500; color: var(--muted);
    letter-spacing: .5px; text-transform: uppercase;
    transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width .25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.auth-links a { font-size: 12px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.auth-links a:hover { color: var(--text); }

.register-btn {
    background: var(--gold) !important;
    color: #0a0a0a !important; padding: 8px 20px; border-radius: 2px;
    font-weight: 600 !important; letter-spacing: .5px;
    transition: opacity .2s !important;
}
.register-btn:hover { opacity: .85; }
.hello-user { font-size: 12px; color: var(--muted); letter-spacing: .3px; }

.lang-btn {
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--border);
    padding: 5px 11px; border-radius: 2px;
    transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--gold); border-color: var(--border-hi); }

/* ── THEME TOGGLE ────────────────────────────────────── */
.theme-toggle {
    width: 34px; height: 34px; border-radius: 2px;
    border: 1px solid var(--border); background: var(--bg-raised);
    color: var(--muted); font-size: 16px; cursor: pointer;
    display: grid; place-items: center;
    transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--border-hi); color: var(--gold); }

.theme-icon-light { display: none; }
.theme-icon-dark  { display: block; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding: 8px 52px 0;
    display: grid;
    grid-template-columns: 1fr 760px;
    align-items: center;
    gap: 40px;
    background: var(--bg);
}

.hero::before {
    content: ''; pointer-events: none;
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 3px,
        rgba(255,255,255,.012) 3px, rgba(255,255,255,.012) 4px
    );
}

.hero-content { position: relative; z-index: 1; }

.hero-content p {
    font-size: 10px; font-weight: 600; letter-spacing: 4px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 18px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px; font-weight: 700;
    line-height: 1.05; letter-spacing: -1px;
    color: var(--text);
}
.hero-content h1 span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero-content > span {
    display: block; margin: 22px 0 34px;
    color: var(--muted); font-size: 15px; line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.review-btn {
    display: inline-block;
    background: transparent; color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 13px 32px; border-radius: 2px;
    border: 1px solid var(--gold);
    transition: background .2s, color .2s;
}
.review-btn:hover {
    background: var(--gold); color: #0a0a0a;
}

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: 0 52px 48px; }

.section-title { margin-bottom: 28px; }
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 600; letter-spacing: .2px;
    color: var(--text);
}
.section-title div {
    width: 32px; height: 1px; background: var(--gold);
    margin-top: 10px;
}

/* ── SEARCH ──────────────────────────────────────────── */
.search-form {
    display: grid; grid-template-columns: 1fr 180px 160px 110px;
    gap: 12px; margin-bottom: 36px;
}
.search-form input, .search-form select {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); padding: 11px 16px;
    border-radius: var(--radius); font-family: 'Inter', sans-serif;
    font-size: 14px; transition: border-color .2s;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus, .search-form select:focus {
    outline: none; border-color: var(--border-hi);
}
.search-form select option { background: var(--bg-card); }
.search-form button {
    background: var(--gold); color: #0a0a0a; border: none;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    cursor: pointer; transition: opacity .2s;
}
.search-form button:hover { opacity: .85; }

/* ── SEARCH AUTOCOMPLETE ─────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap input { width: 100%; box-sizing: border-box; }
.suggest-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 200;
    overflow: hidden;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.suggest-list.open { display: block; }
.suggest-item {
    display: flex; align-items: center;
    gap: 12px; padding: 10px 14px;
    cursor: pointer; transition: background .15s;
    border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--gold-soft); }
.suggest-poster {
    width: 36px; height: 54px; object-fit: cover;
    border-radius: 2px; flex-shrink: 0;
}
.suggest-no-poster {
    width: 36px; height: 54px;
    background: var(--bg-card);
    border-radius: 2px; flex-shrink: 0;
}
.suggest-title { font-size: 14px; font-weight: 500; }
.suggest-year  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── MOVIE GRID ──────────────────────────────────────── */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.movie-card {
    position: relative;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .3s, border-color .3s, box-shadow .3s;
    background: var(--bg-card);
}
.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hi);
    box-shadow: 0 16px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(212,168,67,.12);
}

.movie-card a { display: block; position: relative; }

.movie-card img,
.poster-placeholder {
    width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block;
    transition: transform .4s;
}
.movie-card:hover img { transform: scale(1.04); }

.poster-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-raised); color: var(--muted); font-size: 13px;
}
.poster-placeholder.large { aspect-ratio: unset; height: 480px; }

.movie-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 48px 14px 14px;
    background: linear-gradient(to top,
        var(--bg-overlay-100) 0%,
        var(--bg-overlay-85)  55%,
        transparent 100%
    );
}
.movie-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600;
    margin-bottom: 5px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-meta {
    display: flex; justify-content: space-between;
    align-items: center; font-size: 11px; color: var(--muted);
}
.movie-meta span:last-child {
    font-weight: 700; font-size: 13px; color: var(--gold);
}

/* ── WISHLIST STAR ───────────────────────────────────── */
.wish-btn {
    position: absolute; top: 8px; right: 8px; z-index: 10;
    width: 32px; height: 32px; border-radius: 2px;
    background: var(--bg-wish-idle); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted); font-size: 16px; line-height: 1;
    cursor: pointer; display: grid; place-items: center;
    transition: background .2s, border-color .2s, color .2s;
}
.wish-btn:hover { background: rgba(212,168,67,.2); border-color: var(--gold); color: var(--gold); }
.wish-btn.active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }

/* ── MOVIE DETAIL ────────────────────────────────────── */
.movie-detail { padding: 36px 52px 10px; }

.breadcrumbs { font-size: 12px; color: var(--muted); margin-bottom: 28px; letter-spacing: .3px; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs a:hover { text-decoration: underline; }

.detail-wrapper {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 48px; align-items: start;
}

.detail-poster img {
    width: 100%; border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px; font-weight: 700;
    letter-spacing: -.5px; line-height: 1.08; margin-bottom: 18px;
}

.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.meta-tag {
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 13px; padding: 5px 14px; border-radius: 2px;
    letter-spacing: .3px;
}
.meta-rating {
    background: var(--gold); border: none; color: #0a0a0a;
    font-weight: 700;
}

.review-btn { margin-bottom: 28px; }

/* ── TRAILER ─────────────────────────────────────────── */
.detail-wrapper.has-trailer {
    grid-template-columns: 280px 1fr 760px;
    align-items: stretch;
}
.detail-trailer {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    border: 1px solid var(--border);
    min-height: 320px;
}
.detail-trailer iframe {
    display: block; width: 100%; height: 100%;
    border: none; min-height: 320px;
}

.detail-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.description {
    color: var(--text); line-height: 1.9;
    max-width: 580px; font-size: 16px;
}

/* ── REVIEW LIST ─────────────────────────────────────── */
.review-list {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-card);
}
.review-item {
    display: grid; grid-template-columns: 52px 1fr 80px;
    gap: 20px; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.review-item:hover { background: var(--bg-raised); }
.review-item:last-child { border-bottom: none; }

.avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--border-hi);
    font-family: 'Playfair Display', serif;
    font-size: 14px; font-weight: 700;
    color: var(--gold);
    background: var(--bg-raised);
}
.review-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; margin-bottom: 5px;
    display: flex; align-items: center; gap: 8px;
}
.review-actions { display: flex; gap: 6px; margin-top: 10px; }
.review-edit-btn, .review-delete-btn {
    font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center;
    background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,.08);
    transition: background .18s, color .18s, border-color .18s;
}
.review-edit-btn:hover {
    background: var(--gold-soft); color: var(--gold); border-color: var(--border);
}
.review-delete-btn:hover {
    background: rgba(184,84,80,.1); color: #b85450; border-color: rgba(184,84,80,.3);
}
.rewatch-badge {
    font-size: 9px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    background: transparent; color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 2px; padding: 1px 6px;
}
.review-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.review-item small { display: block; margin-top: 6px; font-size: 11px; color: #3a3530; }
.review-item strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700; color: var(--gold); white-space: nowrap;
}

/* ── WRITE REVIEW ────────────────────────────────────── */
.write-review {
    margin: 0 52px 44px; padding: 30px 34px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); position: relative;
}
.write-review::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--gold); opacity: .4;
    pointer-events: none;
}
.write-review h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 600; margin-bottom: 22px;
}

.write-review form {
    position: relative;
    display: grid; grid-template-columns: 140px 1fr;
    gap: 16px; align-items: start;
}
.write-review label {
    font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--muted); padding-top: 8px;
}
.write-review textarea {
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px;
    border-radius: var(--radius); font-family: 'Inter', sans-serif;
    font-size: 14px; min-height: 90px; resize: vertical;
    transition: border-color .2s;
}
.write-review textarea:focus { outline: none; border-color: var(--border-hi); }
.write-review button[type="submit"] {
    grid-column: 2; width: max-content;
    background: var(--gold); color: #0a0a0a; border: none;
    padding: 11px 28px; border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    cursor: pointer; transition: opacity .2s;
}
.write-review button[type="submit"]:hover { opacity: .85; }

/* ── RATING PICKER ───────────────────────────────────── */
.rating-picker { display: flex; flex-direction: column; gap: 10px; }
.rating-numbers { display: flex; gap: 6px; flex-wrap: wrap; }

.r-btn {
    width: 40px; height: 40px;
    background: var(--bg-raised);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 2px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s, transform .1s;
    line-height: 1;
}
.r-btn:hover { transform: scale(1.1); }

.r-btn.low  { color: #c0504a; border-color: rgba(192,80,74,.4);  background: rgba(192,80,74,.08);  }
.r-btn.mid  { color: #c8963a; border-color: rgba(200,150,58,.4);  background: rgba(200,150,58,.08);  }
.r-btn.high { color: #7ab060; border-color: rgba(122,176,96,.4);  background: rgba(122,176,96,.08);  }

.r-btn.selected.low  { background: rgba(192,80,74,.18);  }
.r-btn.selected.mid  { background: rgba(200,150,58,.18);  }
.r-btn.selected.high { background: rgba(122,176,96,.18);  }

.rating-label {
    font-size: 12px; color: var(--muted);
    font-family: 'Inter', sans-serif; letter-spacing: .3px;
    min-height: 18px; transition: color .2s;
}

/* ── ALL REVIEWS PAGE ────────────────────────────────── */
.all-reviews {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px;
}
.global-review-card.compact {
    display: flex; gap: 14px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .22s, border-color .22s;
}
.global-review-card.compact:hover {
    transform: translateY(-4px); border-color: var(--border-hi);
}
.review-poster-link { flex-shrink: 0; }
.review-poster-link img, .compact-poster {
    width: 86px; height: 126px; object-fit: cover; border-radius: 2px;
}
.compact-review-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.compact-review-top {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 10px; margin-bottom: 5px;
}
.compact-review-top h3 {
    font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; line-height: 1.3;
}
.compact-review-top h3 a:hover { color: var(--gold); }
.compact-score {
    font-size: 12px; font-weight: 700; padding: 3px 10px;
    border-radius: 2px; white-space: nowrap; color: var(--gold);
    border: 1px solid var(--border);
}
.review-author { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.compact-review-text {
    font-size: 13px; color: var(--muted); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; overflow: hidden;
}
.review-date { margin-top: auto; padding-top: 10px; font-size: 11px; color: #3a3530; }

/* ── AUTH ────────────────────────────────────────────── */
.auth-section {
    min-height: 600px; display: grid; place-items: center; padding: 40px 20px;
}
.auth-card {
    width: min(400px,100%); padding: 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); position: relative;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--gold); opacity: .5;
}
.auth-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 26px;
}
.auth-card form { display: grid; gap: 14px; }
.auth-card input {
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: var(--radius);
    font-family: 'Inter', sans-serif; font-size: 14px;
    transition: border-color .2s;
}
.auth-card input::placeholder { color: var(--muted); }
.auth-card input:focus { outline: none; border-color: var(--border-hi); }
.auth-card button {
    background: var(--gold); color: #0a0a0a; border: none; padding: 13px;
    border-radius: 2px; font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    cursor: pointer; margin-top: 4px; transition: opacity .2s;
}
.auth-card button:hover { opacity: .85; }

.message {
    padding: 12px 14px; background: rgba(212,168,67,.06);
    border: 1px solid rgba(212,168,67,.2); border-radius: var(--radius); font-size: 13px;
}
.message.success {
    background: rgba(122,176,96,.08);
    border-color: rgba(122,176,96,.3);
    color: #7ab060;
}

/* ── PROFILE ─────────────────────────────────────────── */
.profile-card {
    padding: 24px; margin-bottom: 32px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.profile-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.profile-card p { color: var(--muted); font-size: 14px; }

.profile-reviews { display: grid; gap: 16px; }
.profile-review-card {
    display: grid; grid-template-columns: 106px 1fr; gap: 18px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color .2s;
}
.profile-review-card:hover { border-color: var(--border-hi); }
.profile-review-card img, .small-poster {
    width: 106px; height: 155px; object-fit: cover; border-radius: 2px;
}
.profile-review-card h3 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.profile-review-card a:hover { color: var(--gold); }
.profile-review-card p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.profile-review-card strong { color: var(--text); }
.profile-review-card small { font-size: 11px; color: #3a3530; }

/* ── ADMIN ───────────────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 30px; }
.admin-stats > div {
    padding: 28px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); text-align: center; position: relative; overflow: hidden;
}
.admin-stats > div::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--gold); opacity: .4;
}
.admin-stats h3 {
    font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700;
    color: var(--gold); margin-bottom: 4px; line-height: 1;
}
.admin-stats p { color: var(--muted); font-size: 13px; letter-spacing: .3px; }

.admin-actions { display: flex; gap: 10px; margin-bottom: 8px; }
.admin-actions a, .admin-form button {
    background: var(--gold); color: #0a0a0a;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .8px;
    text-transform: uppercase; border: none; padding: 10px 22px;
    border-radius: 2px; cursor: pointer; transition: opacity .2s;
}
.admin-actions a:hover, .admin-form button:hover { opacity: .85; }
.admin-actions.single { margin-top: 18px; }

.admin-form { display: grid; gap: 14px; max-width: 660px; }
.admin-form input, .admin-form textarea {
    background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: var(--radius); font-family: 'Inter', sans-serif;
    font-size: 14px; transition: border-color .2s;
}
.admin-form input::placeholder, .admin-form textarea::placeholder { color: var(--muted); }
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--border-hi); }
.admin-form textarea { min-height: 130px; resize: vertical; }

.admin-list-title { margin-top: 40px; }
.admin-table-wrapper {
    width: 100%; overflow-x: auto; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-card);
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 740px; }
.admin-table th, .admin-table td {
    padding: 14px 16px; text-align: left;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.admin-table th {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
    background: var(--bg-raised);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--gold-soft); }
.admin-poster { width: 42px; height: 62px; object-fit: cover; border-radius: 2px; }
.admin-buttons { display: flex; gap: 8px; }
.admin-buttons a, .admin-buttons button {
    font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; transition: opacity .2s; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.admin-buttons a:hover, .admin-buttons button:hover { opacity: .8; }
.edit-btn   { background: rgba(212,168,67,.12); color: var(--gold); border: 1px solid rgba(212,168,67,.25); }
.delete-btn { background: rgba(184,84,80,.1); color: #b85450; border: 1px solid rgba(184,84,80,.25); }
.edit-preview { width: 140px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ── UTILS ───────────────────────────────────────────── */
.muted-text { color: var(--muted); font-style: italic; }

/* ── ABOUT MODAL ─────────────────────────────────────── */
.about-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: .25s; z-index: 9999; padding: 20px;
}
.about-modal.active { opacity: 1; visibility: visible; }
.about-box {
    position: relative; width: min(620px,100%); padding: 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: modalIn .22s ease;
}
.about-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--gold); opacity: .5;
}
@keyframes modalIn {
    from { transform: translateY(16px) scale(.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.close-about {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 2px;
    background: var(--bg-raised); color: var(--muted); font-size: 18px;
    cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.close-about:hover { border-color: var(--border-hi); color: var(--gold); }
.about-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 14px;
}
.about-box p { color: var(--muted); line-height: 1.8; margin-bottom: 10px; font-size: 14px; }
.about-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-features span {
    padding: 6px 14px; background: var(--gold-soft);
    border: 1px solid var(--border); border-radius: 2px; font-size: 12px;
    letter-spacing: .3px;
}

/* ── ADMIN REVIEWS ───────────────────────────────────── */
.review-text-cell {
    max-width: 260px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    color: var(--muted); font-size: 13px;
}

/* ── PAGINATION ──────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; margin: 44px 0 12px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--muted);
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: border-color .2s, color .2s;
}
.page-btn:hover { border-color: var(--border-hi); color: var(--text); }
.page-btn.active {
    background: var(--gold); border-color: var(--gold);
    color: #0a0a0a;
}
.page-btn.page-arrow { font-size: 16px; }
.page-ellipsis { color: var(--muted); font-size: 14px; padding: 0 4px; line-height: 38px; }

/* ── HERO CAROUSEL ───────────────────────────────────── */
.hero-carousel {
    position: relative; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; perspective: 1600px;
    margin-left: -60px;
}
.hc-stage {
    position: relative; width: 100%; height: 700px;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
}
.hc-card {
    position: absolute; width: 320px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    background: var(--bg-card); cursor: pointer;
    text-decoration: none; color: inherit;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out,
                filter 0.6s ease-in-out, border-color 0.3s;
    will-change: transform, opacity;
    transform-origin: center center;
    backface-visibility: hidden;
}
.hc-card:hover { border-color: var(--border-hi); }
.hc-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.hc-info { padding: 10px 12px; background: var(--bg-card); }
.hc-title {
    display: block; font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.hc-rating {
    display: block; font-size: 12px; font-weight: 700; color: var(--gold);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) { .movie-grid { grid-template-columns: repeat(4,1fr); } }

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 52px; }
    .hero-carousel {
        overflow-x: auto; overflow-y: visible; perspective: none;
        min-height: unset; justify-content: flex-start; padding: 12px 16px;
    }
    .hc-stage {
        position: static; display: flex; flex-direction: row;
        flex-wrap: nowrap; gap: 12px; height: auto;
        width: max-content; transform-style: flat;
    }
    .hc-card {
        position: static !important; transform: none !important;
        opacity: 1 !important; filter: none !important;
        pointer-events: auto !important; width: 180px; transition: none;
    }
}

@media (max-width: 860px) {
    .site-header, .footer { height: auto; padding: 16px 24px; flex-direction: column; gap: 14px; }
    .nav, .auth-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .hero { padding: 60px 24px; }
    .section, .movie-detail { padding: 28px 24px; }
    .write-review { margin: 0 24px 32px; }
    .movie-grid { grid-template-columns: repeat(3,1fr); }
    .detail-wrapper { grid-template-columns: 1fr; }
    .detail-wrapper.has-trailer { grid-template-columns: 1fr; }
    .detail-wrapper .detail-poster { max-width: 240px; }
    .search-form, .write-review form { grid-template-columns: 1fr; }
    .write-review button[type="submit"] { grid-column: 1; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-actions { flex-direction: column; }
}

@media (max-width: 580px) {
    .movie-grid { grid-template-columns: repeat(2,1fr); }
    .hero-content h1 { font-size: 40px; }
    .profile-review-card { grid-template-columns: 1fr; }
    .profile-review-card img, .small-poster { width: 100%; height: 280px; }
    .review-item { grid-template-columns: 1fr; gap: 8px; }
    .all-reviews { grid-template-columns: 1fr; }
    .global-review-card.compact { flex-direction: column; }
    .review-poster-link img, .compact-poster { width: 100%; height: 240px; }
}

@media (max-width: 380px) {
    .movie-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 34px; }
}
