﻿/* ============ ReleaseTick — Dark Cinematic Theme ============ */

:root {
    --bg: #07070c;
    --bg-elevated: #12121c;
    --bg-card: #15151f;
    --bg-card-hover: #1c1c2a;
    --border: #2a2a3a;
    --text: #f2f2f7;
    --text-dim: #9a9aae;
    --text-faint: #6b6b80;

    --accent: #8b5cf6;
    --accent-2: #06b6d4;
    --gold: #fbbf24;

    --movie: #f43f5e;
    --tv: #06b6d4;
    --anime: #ec4899;
    --game: #8b5cf6;
    --sport: #22c55e;
    --custom: #fbbf24;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 12, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
    max-width: 1320px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo span { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.nav-tabs {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-tab:hover { color: var(--text); background: var(--bg-card); }

.nav-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-search {
    position: relative;
    min-width: 200px;
}

.nav-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.nav-search input:focus { border-color: var(--accent); }

.nav-search::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 360px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item img {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-card);
}

.search-result-item .sr-title { font-weight: 600; font-size: 0.88rem; }
.search-result-item .sr-meta { font-size: 0.75rem; color: var(--text-faint); }

.nav-cta {
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #1a1300;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(251,191,36,0.3); }

/* ============ HERO ============ */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,7,12,0.2) 0%, rgba(7,7,12,0.75) 60%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px 48px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 12px;
    max-width: 800px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    max-width: 620px;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.hero-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active { background: var(--accent-2); }

/* ============ COUNTDOWN TIMER ============ */

.countdown-timer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-timer.large .ct-unit {
    min-width: 90px;
    padding: 16px 12px;
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 0 24px rgba(139,92,246,0.25), inset 0 0 20px rgba(139,92,246,0.06);
}

.countdown-timer.large .ct-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(139,92,246,0.6);
}

.ct-unit {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
    min-width: 64px;
    backdrop-filter: blur(6px);
}

.ct-value {
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ct-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-top: 2px;
}

.ct-expected, .ct-released {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}

.ct-released {
    color: var(--sport);
    border-color: var(--sport);
    background: rgba(34,197,94,0.1);
}

.released-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--sport), #16a34a);
    color: #062a10;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.35); }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #1a1300;
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,191,36,0.35); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }

/* ============ SECTIONS ============ */

.section {
    padding: 56px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .emoji { font-size: 1.4rem; }

.section-sub { color: var(--text-faint); font-size: 0.9rem; }

.section.highlight {
    background: linear-gradient(180deg, rgba(139,92,246,0.08), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section.just-released {
    background: linear-gradient(180deg, rgba(34,197,94,0.06), transparent);
    border-bottom: 1px solid var(--border);
}

/* ============ FILTER / SORT BAR ============ */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* ============ CARD GRID ============ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.grid.row-scroll {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.grid.row-scroll .card { scroll-snap-align: start; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(24px);
}

.card.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.card[data-category="movie"]:hover { border-color: #f43f5e; box-shadow: 0 10px 30px rgba(244,63,94,0.25); }
.card[data-category="tv"]:hover { border-color: #3b82f6; box-shadow: 0 10px 30px rgba(59,130,246,0.25); }
.card[data-category="anime"]:hover { border-color: #ec4899; box-shadow: 0 10px 30px rgba(236,72,153,0.25); }
.card[data-category="game"]:hover { border-color: #22c55e; box-shadow: 0 10px 30px rgba(34,197,94,0.25); }
.card[data-category="sport"]:hover { border-color: #fbbf24; box-shadow: 0 10px 30px rgba(251,191,36,0.25); }

.card-media {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-elevated);
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-media img { transform: scale(1.06); }

.img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder::after {
    content: attr(data-letter);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.placeholder-movie { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.placeholder-anime { background: linear-gradient(135deg, #a855f7, #ec4899); }
.placeholder-game { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.placeholder-tv { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.placeholder-sport { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.placeholder-custom, .placeholder-personal { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.detail-poster.img-placeholder {
    position: relative;
    inset: auto;
    width: 200px;
    aspect-ratio: 2/3;
}

.detail-poster.img-placeholder::after { font-size: 5rem; }

@media (max-width: 768px) {
    .detail-poster.img-placeholder { width: 140px; }
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.badge-movie { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.badge-tv { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.badge-anime { background: linear-gradient(135deg, #a855f7, #ec4899); }
.badge-game { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.badge-sport { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1300; }
.badge-custom, .badge-personal { background: var(--custom); color: #1a1300; }

.badge-editors {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #1a1300;
}

.badge-sponsored {
    background: rgba(255,255,255,0.85);
    color: #1a1300;
}

.badge-confirmed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #07210f;
}

.badge-expected {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1a1300;
}

.badge-unknown {
    background: rgba(255,255,255,0.15);
    color: var(--text-dim);
}

.dropping-today-banner {
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    color: #1a1300;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.dropping-today-banner a {
    color: #1a1300;
    text-decoration: underline;
}

.badge-released {
    background: var(--sport);
    color: #062a10;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-faint);
    font-weight: 600;
}

.card-desc {
    font-size: 0.83rem;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .countdown-timer { gap: 6px; }

.card .ct-unit { min-width: 0; flex: 1; padding: 6px 4px; }
.card .ct-value { font-size: 1.15rem; }
.card .ct-label { font-size: 0.55rem; }

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.card-actions .btn { flex: 1; padding: 9px 12px; font-size: 0.8rem; }

/* ============ COUNTDOWN DETAIL PAGE ============ */

.detail-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,7,12,0.1) 0%, rgba(7,7,12,0.8) 70%, var(--bg) 100%);
}

.detail-content {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    display: flex;
    gap: 32px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.detail-poster {
    width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.detail-info { flex: 1; min-width: 280px; }

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 40px 0;
}

@media (max-width: 800px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.detail-section h3 { margin-top: 0; }

.genre-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    margin: 0 6px 6px 0;
    color: var(--text-dim);
}

/* ============ MODAL ============ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
    position: relative;
}

.modal h3 { margin-top: 0; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1.4rem;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.form-input:focus { border-color: var(--accent); }

.modal-message { font-size: 0.85rem; margin-top: 10px; }
.modal-message.success { color: var(--sport); }
.modal-message.error { color: var(--movie); }

/* ============ FOOTER ============ */

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 40px;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-attribution {
    width: 100%;
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); }

/* ============ MISC PAGES ============ */

.page-header {
    padding: 60px 0 30px;
    text-align: center;
}

.page-header h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-header p { color: var(--text-dim); }

.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-error { background: rgba(244,63,94,0.15); color: #fca5b1; border: 1px solid rgba(244,63,94,0.3); }
.alert-success { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ============ EMPTY STATE ============ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
}

.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }

/* ============ TRAILER EMBED ============ */

.trailer-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.trailer-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============ SHARE BUTTONS ============ */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============ HYPE ============ */

.hype-btn { font-weight: 600; }
.hype-btn.active { color: var(--accent); border-color: var(--accent); }

/* ============ COMMENTS ============ */

.comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.comment-body { margin: 6px 0; color: var(--text-dim); line-height: 1.5; }
.comment-date { font-size: 0.75rem; color: var(--text-faint); }

/* ============ ANIMATIONS ============ */

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.pulse { animation: pulse-glow 2s infinite; }

/* Confetti */
.confetti-piece {
    position: fixed;
    top: -10px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.3;
    }
}

/* ============ ANNOUNCEMENT BAR ============ */

.announcement-bar {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    z-index: 1000;
}

/* ============ BREADCRUMB ============ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 12px 0 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: 0.4; }

/* ============ LANGUAGE SWITCHER ============ */

.nav-lang {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 8px;
    border-left: 1px solid var(--border);
    padding-left: 12px;
}
.lang-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}
.lang-btn:hover, .lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ MOBILE NAVIGATION ============ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    /* Hamburger trigger */
    .nav-hamburger { display: flex; order: 3; }

    /* Nav hides on mobile by default, slides down when open */
    .nav-tabs {
        display: none;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 4px;
        z-index: 199;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-tabs.open { display: flex; }

    .nav-tab {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }
    .nav-lang { border-left: none; padding-left: 0; margin-left: 0; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

    /* Search & CTA collapse nicely */
    .navbar-inner { flex-wrap: nowrap; gap: 8px; }
    .nav-search { order: 2; flex: 1; min-width: 0; }
    .nav-cta { display: none; }

    .hero { min-height: 60vh; }
    .hero-content { padding: 40px 16px 32px; }
    .countdown-timer.large .ct-unit { min-width: 64px; padding: 10px 6px; }
    .countdown-timer.large .ct-value { font-size: 1.6rem; }
    .detail-content { flex-direction: column; align-items: flex-start; }
    .detail-poster { width: 140px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Navbar auto-hide on scroll */
.navbar { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.navbar.hidden { transform: translateY(-100%); }

/* ============ AD SLOTS ============ */

.grid-full-row {
    grid-column: 1 / -1;
}

.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 24px auto;
    overflow: hidden;
}

.ad-slot-slot1_leaderboard,
.ad-slot-slot6_footer {
    max-width: 728px;
    margin: 16px auto;
}

.ad-slot-slot4_sidebar {
    max-width: 300px;
}

.ad-slot-slot7_mobile_banner {
    max-width: 320px;
    margin: 0 auto 8px;
}

.ad-slot-slot8_mobile_sticky {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 500;
    max-width: 360px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 60px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-card);
}

.ad-placeholder small { font-size: 0.7rem; text-transform: none; letter-spacing: normal; }

.ad-device-desktop { display: block; }
.ad-device-mobile { display: none; }

@media (max-width: 768px) {
    .ad-device-desktop { display: none; }
    .ad-device-mobile { display: block; }
    body { padding-bottom: 70px; }
    .ad-slot-slot1_leaderboard { display: none; }
    .ad-slot-slot6_footer { display: none; }
}

@media (min-width: 769px) {
    .ad-slot-slot7_mobile_banner { display: none; }
    .ad-slot-slot8_mobile_sticky { display: none; }
}

/* ============ FOOTER NEWSLETTER ============ */

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-newsletter .form-input {
    flex: 1;
    min-width: 160px;
    margin-bottom: 0;
}
