@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f6f2ec;
    --card: #ffffff;
    --card-border: #eae4da;
    --text: #1a1612;
    --text-muted: #7a7168;
    --text-light: #a89f94;
    --accent: #b8860b;
    --accent-hover: #a07608;
    --accent-light: rgba(184,134,11,0.07);
    --accent-medium: rgba(184,134,11,0.15);
    --warm: #efe9e0;
    --warm-dark: #ddd6ca;
}

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

::selection { background: rgba(184,134,11,0.18); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    position: relative;
}

/* ---- NAV ---- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    animation: fadeUp .5s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #d4a017);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-family: 'Bebas Neue', cursive;
    box-shadow: 0 4px 14px rgba(184,134,11,0.25);
}

.nav-logo span { font-size: 14px; font-weight: 600; }

.nav-tabs {
    display: flex; gap: 2px;
    background: var(--warm); border-radius: 10px; padding: 3px;
}

.nav-tab {
    background: transparent; border: none;
    color: var(--text-muted); padding: 8px 18px;
    font-size: 12px; font-weight: 400;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    border-radius: 8px; transition: all .2s;
    text-decoration: none; display: flex; align-items: center; gap: 5px;
}

.nav-tab.active, .nav-tab:hover {
    background: var(--card); color: var(--accent);
    font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ---- TYPOGRAPHY ---- */
.title-hero {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(48px, 11vw, 80px);
    font-weight: 400; line-height: .95;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--text);
}

.title-section {
    font-family: 'Bebas Neue', cursive;
    font-size: 38px; font-weight: 400;
    letter-spacing: 2px; color: var(--text);
}

.title-page {
    font-family: 'Bebas Neue', cursive;
    font-size: 40px; font-weight: 400;
    letter-spacing: 2px; color: var(--text);
}

.title-film {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px; font-weight: 700;
    color: var(--text); line-height: 1.2;
}

.title-film-sm {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-weight: 600; color: var(--text);
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 18px;
    color: var(--text-muted); font-weight: 400;
}

.label {
    font-size: 11px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--accent);
    font-weight: 600;
}

.label-muted {
    font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-light);
}

/* ---- CARDS ---- */
.card {
    background: var(--card); border-radius: 22px;
    padding: 36px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}

.card-sm {
    background: var(--card); border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}

/* ---- POSTER ---- */
.poster {
    width: 100%; object-fit: cover; display: block;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

.poster-sm {
    width: 70px; height: 100px; object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.poster-placeholder {
    width: 100%; height: 400px;
    background: linear-gradient(145deg, #e8e0d4, #d4cbc0);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
}

.poster-placeholder-sm {
    width: 70px; height: 100px;
    background: linear-gradient(145deg, #e8e0d4, #d4cbc0);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; opacity: .3; flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 12px 24px; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; letter-spacing: 1px;
    text-transform: uppercase; transition: all .2s;
    text-decoration: none; border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 16px rgba(184,134,11,0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(184,134,11,0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--warm);
    border: 1px solid var(--warm-dark);
    color: var(--text-muted);
}

.btn-secondary:hover { background: var(--warm-dark); }

.btn-danger {
    background: #fde8e8; color: #c0392b;
    border: 1px solid #f5c6c6;
}

.btn-danger:hover { background: #fbc4c4; }

.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-xs { padding: 6px 12px; font-size: 10px; }

/* ---- FORMS ---- */
.form-input {
    background: #fff; border: 1px solid var(--card-border);
    border-radius: 10px; padding: 12px 14px;
    color: var(--text); font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    width: 100%; outline: none;
    transition: border .2s, box-shadow .2s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.08);
}

.form-label {
    font-size: 11px; letter-spacing: 2px;
    color: var(--text-light); text-transform: uppercase;
    display: block; margin-bottom: 6px;
}

.form-row { display: flex; gap: 12px; }
.form-group { margin-bottom: 16px; }

/* ---- TAGS ---- */
.tag {
    display: inline-block;
    font-size: 11px; padding: 3px 12px;
    border-radius: 20px;
    background: var(--warm); color: var(--text-light);
}

.tag-accent {
    background: var(--accent-light);
    color: var(--accent); font-weight: 600;
}

.tag-member {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: 24px; padding: 8px 20px;
    font-size: 13px; color: var(--text-muted);
    font-weight: 500;
}

/* ---- COUNTDOWN ---- */
.countdown-box {
    display: inline-block; background: var(--warm);
    border-radius: 14px; padding: 14px 36px;
    font-variant-numeric: tabular-nums;
    font-size: 26px; font-weight: 300;
    letter-spacing: 2px; color: var(--text);
}

/* ---- FILM GRID ---- */
.films-grid {
    display: flex; gap: 36px;
    justify-content: center; flex-wrap: wrap;
}

.film-card { flex: 1 1 280px; max-width: 340px; }

.film-list-item {
    display: flex; gap: 16px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* ---- ARCHIVE ---- */
.archive-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px; padding: 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.03);
    margin-bottom: 20px; position: relative;
}

.archive-number {
    background: var(--accent-light);
    color: var(--accent); padding: 4px 12px;
    border-radius: 6px; font-size: 12px; font-weight: 700;
}

/* ---- LOGIN ---- */
.login-card {
    max-width: 420px; margin: 40px auto;
    background: var(--card); border-radius: 22px;
    padding: 48px 36px; text-align: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

/* ---- ALERTS ---- */
.alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 13px; margin-bottom: 16px;
}

.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.alert-success { background: #e8f8e8; color: #2d7a2d; border: 1px solid #b8e6b8; }

/* ---- FOOTER ---- */
.footer {
    margin-top: 80px; padding-top: 24px;
    border-top: 1px solid var(--warm-dark);
    text-align: center; font-size: 11px;
    color: var(--text-light); letter-spacing: 2px;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }
.mb-5 { margin-bottom: 48px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; display: inline-block;
    box-shadow: 0 0 8px rgba(74,222,128,0.4);
    animation: pulse 2s infinite;
}

.empty-state {
    text-align: center; padding: 64px 24px;
    background: var(--card); border-radius: 22px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.fade-in { animation: fadeUp .6s ease; }

/* ---- AMBIENT ---- */
.ambient-circle {
    position: fixed; border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(184,134,11,0.035) 0%, transparent 70%);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .container { padding: 20px 16px 60px; }
    .nav { flex-direction: column; gap: 16px; }
    .title-hero { font-size: 42px; }
    .films-grid { gap: 24px; }
    .film-card { max-width: 100%; }
    .form-row { flex-direction: column; gap: 8px; }
    .card { padding: 24px; }
    .login-card { padding: 32px 24px; margin: 20px auto; }
}
