* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --surface: #12131a;
    --surface2: #1a1c25;
    --border: #222430;
    --accent: #7c8aff;
    --green: #2ea043;
    --red: #d73a49;
    --text: #e8e8e8;
    --text-dim: #8a8d9b;
    --text-muted: #555;
    --gold: #f5c518;
    --navbar-h: 48px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    height: var(--navbar-h);
}
.page-verify .navbar { background: rgba(0,0,0,0.6); border-bottom: none; }
.nav-left { display: flex; align-items: center; gap: 1.5rem; }
.nav-brand { font-weight: 800; font-size: 1.15rem; color: var(--accent); text-decoration: none; letter-spacing: 1px; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu-link {
    color: var(--text-dim); text-decoration: none; font-size: 0.82rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem; border-radius: 6px;
    transition: all 0.2s;
}
.nav-menu-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-menu-link.active { color: var(--accent); background: rgba(124,138,255,0.12); }
.nav-tutorial { color: var(--gold); font-style: italic; }
.nav-tutorial:hover { color: #fff; background: rgba(245,197,24,0.1); }
.nav-tutorial.active { color: var(--gold); background: rgba(245,197,24,0.15); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-user { color: var(--text-dim); font-size: 0.85rem; }
.nav-progress {
    background: rgba(124,138,255,0.12); border: 1px solid rgba(124,138,255,0.25);
    padding: 0.2rem 0.65rem; border-radius: 20px;
    font-size: 0.78rem; color: var(--accent); font-weight: 600;
}
.nav-link { color: var(--accent); text-decoration: none; font-size: 0.85rem; }
.nav-form { display: inline; }
.btn-link { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.85rem; }
.btn-link:hover { color: #fff; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem 2rem; }
.container.container-wide { max-width: none; width: 100%; padding-left: 3rem; padding-right: 3rem; }

/* ===== BACKDROP ===== */
.backdrop {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-size: cover; background-position: center top;
    z-index: 0;
}
.backdrop-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.6) 30%, rgba(10,10,15,0.35) 100%),
        linear-gradient(to bottom, rgba(10,10,15,0.15) 0%, rgba(10,10,15,0.6) 50%, var(--bg) 100%);
}

/* ===== PLAYER BLOCKED OVERLAY ===== */
.player-blocked-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.player-blocked-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
}
.player-blocked-box h3 {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
}
.player-blocked-box p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== ALREADY VERIFIED BANNER ===== */
.already-verified-banner {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    z-index: 99;
    background: rgba(245,197,24,0.15);
    border-bottom: 1px solid rgba(245,197,24,0.4);
    color: var(--gold);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: banner-fade 8s ease-in-out forwards;
}
@keyframes banner-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* ===== VERIFY PAGE ===== */
.verify-main { position: relative; z-index: 1; padding: 0; }

.verify-page {
    padding-top: var(--navbar-h);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TITLE BAR — inside meta col */
.title-bar {
    text-align: left;
    padding: 0 0 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.title-bar h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    line-height: 1.3;
}
.nav-stats {
    display: flex; gap: 0.75rem; align-items: center; margin-right: 0.75rem;
    padding-right: 0.75rem; border-right: 1px solid var(--border);
}
.nav-stat {
    font-size: 0.72rem; color: var(--text-dim); white-space: nowrap;
}

/* TWO COLUMNS — 50/50 */
.verify-columns {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 1.5rem 1.5rem;
    gap: 1.5rem;
}

/* LEFT: Metadata — 30% scrollable */
.meta-col {
    width: 30%;
    flex-shrink: 0;
    overflow-y: auto;
    height: calc(100vh - var(--navbar-h) - 3rem);
    position: sticky;
    top: calc(var(--navbar-h) + 1.5rem);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* TOP ROW: Poster left + fields right */
.meta-top-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.meta-poster-wrap {
    width: 130px;
    min-width: 130px;
    flex-shrink: 0;
}
.meta-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.meta-poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-na {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.meta-side-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* BOTTOM: Sinopse, Elenco, Trailer */
.meta-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Inline field rows (two fields side by side) */
.meta-field-row {
    display: flex;
    gap: 1rem;
}
.meta-field-row .meta-field { flex: 1; min-width: 0; }

/* Meta fields */
.meta-field {}
.meta-field-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00e5ff;
    margin-bottom: 0.25rem;
}
.meta-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.meta-refresh:hover { opacity: 1; transform: scale(1.2); }
.meta-refresh.spinning { animation: spin 0.7s linear infinite; opacity: 1; pointer-events: none; }
.meta-refresh svg { width: 14px; height: 14px; fill: #ff9800; }
.meta-field-value {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.45;
}
.meta-field-synopsis {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text);
}

/* Rating value */
.rating-value { color: var(--gold); font-weight: 600; }
.rating-value .star { font-size: 1rem; }
.votes-small { color: var(--text-dim); font-weight: 400; font-size: 0.78rem; }

/* Genres */
.meta-genres { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.1rem; }
.genre-pill {
    padding: 0.12rem 0.5rem;
    background: rgba(124,138,255,0.1);
    border: 1px solid rgba(124,138,255,0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
}

/* Trailer embed */
.trailer-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-top: 0.4rem;
    border-radius: 6px;
    overflow: hidden;
}
.trailer-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* Trailer link */
.trailer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    background: rgba(215,58,73,0.1);
    border: 1px solid rgba(215,58,73,0.25);
    border-radius: 6px;
    transition: all 0.2s;
    margin-top: 0.1rem;
}
.trailer-link:hover {
    background: rgba(215,58,73,0.2);
    border-color: rgba(215,58,73,0.5);
    color: #fff;
}

/* Loading */
.meta-loading {
    display: flex; align-items: center; gap: 0.7rem;
    color: var(--text-dim); font-size: 0.85rem; margin-top: 0.5rem;
}
.meta-unavail { color: var(--text-muted); font-size: 0.85rem; }
.spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RIGHT: Player — 70% */
.player-col {
    width: 70%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    position: sticky;
    top: calc(var(--navbar-h) + 1.5rem);
}
.video-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    flex-shrink: 0;
    position: relative;
}
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    background: rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.play-overlay:hover { background: rgba(0,0,0,0.15); }
.play-overlay.hidden { display: none; }
.play-overlay-btn {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.2s;
}
.play-overlay:hover .play-overlay-btn {
    transform: scale(1.1);
    background: rgba(255,255,255,0.25);
}
.play-overlay-btn svg {
    width: 28px; height: 28px;
    fill: #fff;
    margin-left: 3px;
}
.video-wrapper video {
    width: 100%;
    max-height: 65vh;
    display: block;
}

/* ===== VERIFY ACTIONS ===== */
.verify-actions {
    display: flex; gap: 1.25rem; margin-bottom: 0.75rem;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 2rem; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-correct {
    flex: 1; background: var(--green); color: #fff;
    font-size: 1.1rem; padding: 0.8rem 0;
    box-shadow: 0 0 20px rgba(46,160,67,0.2);
}
.btn-correct:hover { box-shadow: 0 0 30px rgba(46,160,67,0.35); }
.btn-incorrect {
    flex: 1; background: var(--red); color: #fff;
    font-size: 1.1rem; padding: 0.8rem 0;
    box-shadow: 0 0 20px rgba(215,58,73,0.2);
}
.btn-incorrect:hover { box-shadow: 0 0 30px rgba(215,58,73,0.35); }
.btn-full { width: 100%; }
.btn-small { padding: 0.3rem 0.8rem; font-size: 0.85rem; background: var(--surface2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }

/* Reasons */
.reason-panel { text-align: center; }
.reason-title { color: var(--red); font-weight: 600; font-size: 1rem; margin-bottom: 0.6rem; }
.reason-actions { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 0.6rem; }
.reason-actions-modal { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.btn-reason {
    background: rgba(215,58,73,0.12); border: 1px solid rgba(215,58,73,0.35);
    color: #fff; font-size: 0.9rem; padding: 0.65rem 1.2rem; border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-reason:hover { background: var(--red); border-color: var(--red); }
.reason-key {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 4px;
    background: rgba(255,255,255,0.08); border-radius: 3px;
    font-size: 0.7rem; font-weight: 700; font-family: monospace;
}
.btn-cancel {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); padding: 0.4rem 1.2rem; border-radius: 8px;
    cursor: pointer; font-size: 0.8rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-cancel:hover { color: #fff; border-color: var(--text-dim); }

/* ===== CONFIRMATION MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 2rem; max-width: 460px; width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.modal-center { text-align: center; }
.modal-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin-bottom: 0.75rem;
}
.modal-text {
    font-size: 0.9rem; color: var(--text-dim); line-height: 1.5;
    margin-bottom: 1.25rem;
}
.modal-checkbox {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--text-dim); cursor: pointer;
    margin-bottom: 1.25rem;
}
.modal-checkbox input[type="checkbox"] {
    accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer;
}
.modal-actions {
    display: flex; gap: 0.75rem;
}
.btn-modal-confirm {
    flex: 1; background: var(--green); color: #fff; border: none;
    padding: 0.7rem; border-radius: 8px; font-size: 0.95rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-modal-confirm:hover { box-shadow: 0 0 20px rgba(46,160,67,0.3); }
.btn-modal-confirm:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-modal-cancel {
    flex: 1; background: transparent; color: var(--text-dim);
    border: 1px solid var(--border); padding: 0.7rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-modal-cancel:hover { color: #fff; border-color: var(--text-dim); }
.btn-modal-cancel-red {
    flex: 1; background: rgba(215,58,73,0.15); color: var(--red);
    border: 1px solid rgba(215,58,73,0.4); padding: 0.7rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-modal-cancel-red:hover { background: var(--red); color: #fff; }

/* Reason checkboxes */
.reason-checks {
    display: flex; flex-direction: column; gap: 0.6rem;
    margin-bottom: 1.25rem; text-align: left;
}
.reason-check-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.9rem; border-radius: 8px; cursor: pointer;
    background: rgba(215,58,73,0.08); border: 1px solid rgba(215,58,73,0.2);
    font-size: 0.9rem; color: var(--text); transition: all 0.2s;
}
.reason-check-item:hover { background: rgba(215,58,73,0.15); border-color: rgba(215,58,73,0.4); }
.reason-check-item input[type="checkbox"] {
    accent-color: var(--red); width: 16px; height: 16px; cursor: pointer;
}

.verify-hint { text-align: center; color: var(--text-muted); font-size: 0.75rem; }
.verify-hint kbd {
    display: inline-block; background: var(--surface2); border: 1px solid var(--border);
    padding: 0.05rem 0.4rem; border-radius: 3px;
    font-family: monospace; font-size: 0.75rem; color: var(--text-dim);
}

/* ===== LOGIN ===== */
.login-container { max-width: 380px; margin: 4rem auto; text-align: center; }
.login-container h1 { color: var(--accent); margin-bottom: 0.25rem; font-weight: 800; letter-spacing: 1px; }
.login-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.login-form { text-align: left; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; color: var(--text-dim); font-size: 0.85rem; font-weight: 500; }
.form-group input {
    width: 100%; padding: 0.6rem 0.8rem;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--surface); color: var(--text); font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

/* ===== ALERTS ===== */
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: rgba(215,58,73,0.1); color: #f88; border: 1px solid rgba(215,58,73,0.3); }
.alert-info { background: rgba(124,138,255,0.1); color: #8bf; border: 1px solid rgba(124,138,255,0.2); margin-top: 0.5rem; }

/* ===== DONE ===== */
.done-container { text-align: center; margin-top: 3rem; }
.done-container h1 { color: var(--green); margin-bottom: 0.5rem; font-size: 2rem; }
.done-stats { display: flex; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
.done-hint { color: var(--text-muted); margin-top: 1rem; }

/* ===== STAT CARDS ===== */
.stat-card { background: var(--surface); padding: 1rem 1.5rem; border-radius: 8px; text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; }
.stat-correct .stat-number { color: var(--green); }
.stat-incorrect .stat-number { color: var(--red); }

/* ===== ADMIN ===== */
.admin-container h1 { margin-bottom: 1.5rem; }
.admin-section { background: var(--surface); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.admin-section h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent); }
.stats-row { display: flex; gap: 1rem; margin-top: 1rem; }
.stats-row .stat-card { flex: 1; }
.progress-bar-container { position: relative; background: var(--surface2); border-radius: 8px; height: 2rem; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 8px; transition: width 0.3s; }
.progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.85rem; font-weight: 600; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.inline-form input {
    padding: 0.5rem 0.75rem; border: 1px solid var(--border);
    border-radius: 6px; background: var(--bg); color: var(--text); font-size: 0.9rem;
}
.inline-form input:focus { outline: none; border-color: var(--accent); }
.checkbox-label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: var(--text-dim); }

/* Settings grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--surface2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}
.settings-input {
    width: 70px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}
.settings-input:focus { outline: none; border-color: var(--accent); }

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: background 0.25s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text);
    border-radius: 50%;
    transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ===== TUTORIAL ===== */
.tutorial-page {
    max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem;
}
.tutorial-header { text-align: center; margin-bottom: 2rem; }
.tutorial-header h1 { font-size: 1.8rem; color: var(--gold); margin-bottom: 0.3rem; }
.tutorial-subtitle { color: var(--text-dim); font-size: 0.95rem; }

.tutorial-nav {
    display: flex; gap: 0.5rem; justify-content: center;
    margin-bottom: 2.5rem; flex-wrap: wrap;
}
.tutorial-nav-link {
    padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.85rem;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
    color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
}
.tutorial-nav-link.active { color: var(--accent); border-color: var(--accent); background: rgba(124,138,255,0.1); }
.tutorial-nav-link.disabled { opacity: 0.4; pointer-events: none; }

.tutorial-section h2 {
    font-size: 1.3rem; color: var(--accent); margin-bottom: 1.5rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

.tutorial-step {
    display: flex; gap: 1.2rem; margin-bottom: 1.75rem;
}
.step-number {
    flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border-radius: 50%;
    font-weight: 700; font-size: 1rem;
}
.step-content { flex: 1; }
.step-content h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.4rem; }
.step-content p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 0.5rem; }
.step-content ul { margin: 0.4rem 0 0.6rem 1.2rem; font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.step-content li { margin-bottom: 0.25rem; }
.step-content strong { color: var(--text); }
.step-content code { background: var(--surface2); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.82rem; color: var(--accent); }

.tutorial-tip {
    background: rgba(124,138,255,0.08); border: 1px solid rgba(124,138,255,0.2);
    border-radius: 8px; padding: 0.7rem 1rem; margin-top: 0.5rem;
    font-size: 0.85rem; color: var(--text-dim); line-height: 1.5;
}
.tutorial-tip strong { color: var(--accent); }

.tutorial-icon-ref { color: #ff9800; font-weight: 600; }
.tutorial-intro { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; }
.tutorial-phase-title {
    font-size: 1.05rem; color: var(--gold); margin: 2rem 0 1.2rem;
    padding: 0.4rem 0.8rem; border-left: 3px solid var(--gold);
    background: rgba(245,197,24,0.06);
}
.tutorial-nav-link:not(.disabled):hover { color: var(--accent); border-color: var(--accent); background: rgba(124,138,255,0.06); cursor: pointer; }

.tutorial-option {
    padding: 0.8rem 1rem; border-radius: 8px; margin: 0.6rem 0;
    font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
}
.tutorial-option strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.tutorial-option ul { margin: 0.4rem 0 0 1.2rem; }
.tutorial-option-correct {
    background: rgba(46,160,67,0.08); border: 1px solid rgba(46,160,67,0.25);
}
.tutorial-option-correct strong { color: var(--green); }
.tutorial-option-incorrect {
    background: rgba(215,58,73,0.08); border: 1px solid rgba(215,58,73,0.25);
}
.tutorial-option-incorrect strong { color: var(--red); }

/* ===== SERIES ===== */
.series-header {
    text-align: center;
    margin-bottom: 2rem;
}
.series-header h1 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.series-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.series-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.series-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--surface2);
    overflow: hidden;
}
.series-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.series-card-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
}

.series-card-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.series-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-card-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.series-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
}
.series-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}
.series-progress-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.series-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}
.badge-pending {
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    border: 1px solid rgba(245,197,24,0.3);
}
.badge-done {
    background: rgba(46,160,67,0.12);
    color: var(--green);
    border: 1px solid rgba(46,160,67,0.3);
}

/* Series detail (episodes list) */
.series-detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.series-detail-poster {
    width: 150px;
    min-width: 150px;
    flex-shrink: 0;
}
.series-detail-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.series-detail-info {
    flex: 1;
}
.series-detail-info h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.series-detail-overview {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.series-nav-link {
    display: flex;
    gap: 0.5rem;
}

/* Series inspect page - larger poster */
.meta-poster-wrap-large {
    width: 180px;
    min-width: 180px;
}

/* Series inspect actions area */
.series-inspect-actions-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.series-inspect-actions-area .verify-actions {
    width: 100%;
    max-width: 500px;
}
.series-inspect-actions-area .btn-correct,
.series-inspect-actions-area .btn-incorrect {
    font-size: 1.3rem;
    padding: 1.1rem 0;
}
.series-inspect-prompt {
    text-align: center;
    margin-bottom: 2.5rem;
}
.series-inspect-prompt h2 {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.series-inspect-prompt p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 500px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .verify-columns { flex-direction: column; gap: 1rem; }
    .meta-col {
        width: 100%;
        max-height: none; height: auto;
        position: static;
        padding-right: 0;
    }
    .meta-top-row { flex-direction: row; }
    .meta-poster-wrap { width: 150px; min-width: 150px; }
    .player-col { width: 100%; }
    .title-bar h1 { font-size: 1.3rem; }
    .verify-actions { flex-direction: column; gap: 0.75rem; }
    .btn-correct, .btn-incorrect { width: 100%; padding: 0.9rem; }
    .reason-actions { flex-direction: column; }
}

@media (max-width: 600px) {
    .navbar { padding: 0.5rem 1rem; }
    .verify-columns { padding: 0 0.75rem 1rem; }
    .title-bar { padding: 0.75rem 1rem; }
    .title-bar h1 { font-size: 1.1rem; letter-spacing: 1px; }
    .meta-top-row { flex-direction: column; }
    .meta-poster-wrap { width: 100%; min-width: unset; max-width: 180px; }
}

/* ===== PEDIDOS PAGE ===== */
.pedidos-page { padding-bottom: 3rem; }
.pedidos-header { text-align: center; margin-bottom: 1.5rem; }
.pedidos-header h1 { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.3rem; }
.pedidos-subtitle { color: var(--text-dim); font-size: 0.95rem; }

.pedidos-search-bar {
    display: flex; gap: 0.75rem; align-items: center;
    max-width: 700px; margin: 0 auto 1.5rem;
}
.pedidos-type-toggle { display: flex; gap: 0; }
.type-btn {
    padding: 0.55rem 1.2rem; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-dim); cursor: pointer;
    font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.type-btn:first-child { border-radius: 8px 0 0 8px; }
.type-btn:last-child { border-radius: 0 8px 8px 0; }
.type-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pedidos-search-input-wrap { flex: 1; position: relative; }
.pedidos-search-input-wrap input {
    width: 100%; padding: 0.6rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text); font-size: 1rem;
}
.pedidos-search-input-wrap input:focus { outline: none; border-color: var(--accent); }
.search-spinner {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
}
.search-spinner .spinner { width: 18px; height: 18px; }

.pedidos-limit-notice {
    text-align: center; color: var(--gold); font-size: 0.82rem;
    margin-bottom: 1.5rem; opacity: 0.7;
}

.pedidos-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.pedidos-empty, .pedidos-error {
    grid-column: 1 / -1; text-align: center;
    color: var(--text-dim); padding: 3rem 0;
}

.pedidos-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pedidos-card:hover {
    transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}
.pedidos-card-info {
    padding: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1;
}
.pedidos-card-overview {
    font-size: 0.75rem; color: var(--text-dim); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.pedidos-card-rating { font-size: 0.8rem; }
.pedidos-card-actions { margin-top: auto; padding-top: 0.4rem; }

/* Badges */
.pedidos-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase;
}
.badge-xui {
    background: rgba(46,160,67,0.15); color: var(--green);
    border: 1px solid rgba(46,160,67,0.3);
}
.badge-pedido {
    background: rgba(245,197,24,0.12); color: var(--gold);
    border: 1px solid rgba(245,197,24,0.3);
}

/* PEDIR buttons */
.pedidos-btn-pedir {
    display: inline-block; padding: 0.4rem 0.9rem; border: none;
    border-radius: 6px; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    background: var(--green); color: #fff; text-transform: uppercase;
}
.pedidos-btn-pedir:hover { box-shadow: 0 0 15px rgba(46,160,67,0.3); transform: translateY(-1px); }
.pedidos-btn-pedir:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pedidos-btn-done { background: rgba(46,160,67,0.15); color: var(--green); cursor: default; }
.pedidos-btn-limited { background: rgba(245,197,24,0.15); color: var(--gold); cursor: default; }
.pedidos-btn-pedir-small {
    padding: 0.25rem 0.65rem; font-size: 0.72rem; font-weight: 700;
    border: none; border-radius: 4px; cursor: pointer;
    background: var(--green); color: #fff; transition: all 0.2s;
}
.pedidos-btn-pedir-small:hover { box-shadow: 0 0 10px rgba(46,160,67,0.3); }
.pedidos-btn-pedir-small:disabled { opacity: 0.5; cursor: not-allowed; }

/* Series modal large */
.modal-box-large { max-width: 750px; max-height: 80vh; overflow-y: auto; }
.series-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; position: sticky; top: 0;
    background: var(--surface); padding: 0.75rem 0;
    border-bottom: 1px solid var(--border); z-index: 5;
}
.series-modal-header h2 { font-size: 1.2rem; color: var(--accent); }

.pedidos-series-actions { margin-bottom: 1rem; }
.pedidos-season { margin-bottom: 1.5rem; }
.pedidos-season-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border);
}
.pedidos-season-header h3 { font-size: 1rem; color: var(--text); }

.pedidos-episodes-list { display: flex; flex-direction: column; gap: 0.3rem; }
.pedidos-episode-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.4rem 0.6rem; border-radius: 6px;
    background: var(--surface2); font-size: 0.85rem;
}
.pedidos-ep-number { font-weight: 700; color: var(--accent); min-width: 30px; }
.pedidos-ep-name { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pedidos-ep-date { color: var(--text-dim); font-size: 0.78rem; min-width: 80px; }
.pedidos-ep-action { min-width: 80px; text-align: right; }

@media (max-width: 600px) {
    .pedidos-search-bar { flex-direction: column; }
    .pedidos-type-toggle { width: 100%; }
    .type-btn { flex: 1; text-align: center; }
    .modal-box-large { max-width: 95vw; margin: 1rem; }
}

/* ===== HOMEPAGE ===== */
.home-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.home-welcome {
    text-align: center;
    margin-bottom: 2.5rem;
}
.home-welcome h1 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.home-welcome-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Stats grid */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.home-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.home-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-stat-icon-films { background: rgba(124,138,255,0.12); color: var(--accent); }
.home-stat-icon-series { background: rgba(46,160,67,0.12); color: var(--green); }
.home-stat-icon-user { background: rgba(245,197,24,0.12); color: var(--gold); }
.home-stat-icon-pedidos { background: rgba(215,58,73,0.12); color: var(--red); }

.home-stat-numbers { display: flex; flex-direction: column; }
.home-stat-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.home-stat-sep { color: var(--text-dim); font-weight: 400; }
.home-stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.home-stat-bar {
    height: 5px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
}
.home-stat-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.home-stat-bar-series { background: var(--green); }

.home-stat-detail {
    display: flex;
    gap: 0.75rem;
    font-size: 0.78rem;
}
.home-stat-detail-item { font-weight: 600; }
.home-stat-correct { color: var(--green); }
.home-stat-incorrect { color: var(--red); }

/* Section links */
.home-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.home-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.home-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: var(--accent);
}
.home-section-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.home-section-icon-films { background: rgba(124,138,255,0.12); color: var(--accent); }
.home-section-icon-series { background: rgba(46,160,67,0.12); color: var(--green); }
.home-section-icon-pedidos { background: rgba(245,197,24,0.12); color: var(--gold); }

.home-section-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
}
.home-section-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.home-section-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    border: 1px solid rgba(245,197,24,0.3);
    margin-top: 0.25rem;
}
.home-section-badge-done {
    background: rgba(46,160,67,0.12);
    color: var(--green);
    border-color: rgba(46,160,67,0.3);
}
.home-section-badge-neutral {
    background: rgba(124,138,255,0.1);
    color: var(--accent);
    border-color: rgba(124,138,255,0.2);
}

@media (max-width: 700px) {
    .home-sections { grid-template-columns: 1fr; }
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
    .home-stats-grid { grid-template-columns: 1fr; }
}

/* ===== TUTORIAL CONFIRMATION ===== */
.tutorial-nav-check {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
    transition: all 0.3s;
}
.tutorial-nav-check.visited {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 6px rgba(46,160,67,0.4);
}

.tutorial-confirm-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent);
}
.tutorial-confirm-box {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.tutorial-confirm-box h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.tutorial-confirm-box p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tutorial-progress {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tutorial-progress-item {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.tutorial-progress-item.done {
    background: rgba(46,160,67,0.15);
    color: var(--green);
    border-color: rgba(46,160,67,0.4);
}
.tutorial-progress-hint {
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.tutorial-confirm-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 1.25rem;
    padding: 0.7rem 1rem;
    background: rgba(124,138,255,0.08);
    border: 1px solid rgba(124,138,255,0.2);
    border-radius: 8px;
}
.tutorial-confirm-check input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.tutorial-confirm-btn {
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.8rem 2rem;
}
.tutorial-confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
