/* ========== TARAFTARIUM24 - lesfilmsdelair.com ========== */
/* Emerald Green Theme - Broadcast Style */

:root {
    --green: #10b981;
    --green-light: #34d399;
    --green-dark: #059669;
    --bg-base: #0b1120;
    --bg-surface: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2d40;
    --bg-input: #0f1a2a;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --red-live: #ef4444;
    --border-line: #1e293b;
    --radius: 10px;
    --radius-sm: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ========== TOP BAR ========== */
.topbar {
    background: var(--green-dark);
    padding: 6px 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.signal-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.topbar-text {
    color: rgba(255,255,255,0.8);
}

/* ========== HEADER ========== */
.site-header {
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-line);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.nav-item:hover,
.active-nav {
    color: var(--green);
    background: rgba(16, 185, 129, 0.08);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-shade {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 98;
}

.mobile-shade.open { display: block; }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-surface);
    z-index: 99;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-line);
}

.mobile-menu.open {
    display: block;
    right: 0;
}

.mobile-menu a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-line);
}

/* ========== STREAM AREA ========== */
.stream-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.stream-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

/* Stream Zone */
.stream-zone {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-line);
}

.stream-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-line);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-tag {
    background: var(--red-live);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}

.now-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.screen-wrap {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0a0f1c 0%, #111b2e 50%, #0d1524 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.screen-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.screen-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.screen-hint {
    display: block;
    font-size: 0.8rem;
}

.channel-bar {
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-line);
    overflow-x: auto;
}

.channel-btn {
    background: var(--bg-card);
    color: var(--text-dim);
    border: 1px solid var(--border-line);
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.channel-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.channel-btn.selected {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.hd-btn.selected {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

/* ========== SCHEDULE PANEL ========== */
.schedule-panel {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-line);
    overflow: hidden;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
}

.panel-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-line);
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.sport-filters {
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-line);
    overflow-x: auto;
}

.filter-pill {
    background: var(--bg-card);
    color: var(--text-dim);
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.filter-pill.active-pill {
    background: var(--green);
    color: #fff;
}

.search-area {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-line);
}

.search-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-line);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-field:focus {
    border-color: var(--green);
}

.search-field::placeholder {
    color: var(--text-muted);
}

.game-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

/* Game Cards */
.game-card {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.game-card:hover {
    background: var(--bg-card);
}

.game-card.on-air {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.game-teams {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.game-live {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--red-live);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 3px;
}

.game-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-clock {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
}

.game-league {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ========== GUIDE SECTION ========== */
.guide-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-line);
    margin-top: 40px;
}

.guide-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 24px 60px;
}

.guide-article {
    color: var(--text-main);
}

.guide-article h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.3;
}

.guide-article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 38px;
    margin-bottom: 14px;
    color: var(--text-main);
    padding-left: 14px;
    border-left: 3px solid var(--green);
}

.guide-article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.guide-article p {
    margin-bottom: 16px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.guide-article ul, .guide-article ol {
    margin: 14px 0 18px 20px;
    color: var(--text-dim);
}

.guide-article li {
    margin-bottom: 8px;
    font-size: 0.93rem;
    line-height: 1.7;
}

.guide-article strong {
    color: var(--text-main);
}

/* Writer Box */
.writer-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.writer-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.writer-info {
    display: flex;
    flex-direction: column;
}

.writer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.writer-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.publish-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-line);
}

/* Tip Block */
.tip-block {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--green);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.tip-block strong {
    color: var(--green);
}

.tip-block.green {
    background: rgba(16, 185, 129, 0.1);
}

/* FAQ Block */
.faq-block {
    margin: 16px 0 24px;
}

.faq-piece {
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-piece summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-main);
    transition: background 0.2s;
    list-style: none;
}

.faq-piece summary::-webkit-details-marker { display: none; }

.faq-piece summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-weight: 700;
    color: var(--green);
    margin-right: 8px;
}

.faq-piece[open] summary::before { content: '−'; }

.faq-piece summary:hover {
    background: var(--bg-card-hover);
}

.faq-answer {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    border-top: 1px solid var(--border-line);
}

/* Reference Links */
.ref-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.ref-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: border-color 0.2s, color 0.2s;
}

.ref-link:hover {
    border-color: var(--green);
    color: var(--green);
}

.ref-icon {
    font-size: 1.2rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-line);
    margin-top: 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}

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

.footer-about h4,
.footer-nav h4,
.footer-reach h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.footer-about p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-nav a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--green); }

.footer-reach p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-base {
    border-top: 1px solid var(--border-line);
    padding-top: 20px;
    text-align: center;
}

.footer-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-copy strong {
    color: var(--green);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .stream-layout {
        grid-template-columns: 1fr;
    }

    .schedule-panel {
        position: static;
        max-height: none;
    }

    .game-list {
        max-height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ref-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .burger { display: flex; }

    .brand-logo { height: 30px; }
    .header-inner { height: 56px; }

    .topbar-text { display: none; }

    .guide-article h1 { font-size: 1.5rem; }
    .guide-article h2 { font-size: 1.15rem; }

    .stream-area { padding: 10px; }

    .guide-wrap { padding: 30px 16px 40px; }
}

/* ========== SCROLLBAR ========== */
.game-list::-webkit-scrollbar {
    width: 4px;
}

.game-list::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.game-list::-webkit-scrollbar-thumb {
    background: var(--border-line);
    border-radius: 4px;
}

.game-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
    .guide-section {
        animation: slideUp 0.6s ease-out;
    }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
