/* =============================================
   CUPLIVE — TOURNAMENT DESIGN SYSTEM
   Shared styles for all tournament pages
   ============================================= */

/* ---------- CSS Variables (defaults — overridden per tournament via JS) ---------- */
:root {
    --green-deep: #022F1D;
    --green-dark: #00150D;
    --green-mid: #0A4A30;
    --green-light: #0D6B45;
    --gold: #8F7843;
    --gold-light: #C4A95B;
    --gold-bright: #E8D48B;
    --gold-glow: #FFE8A0;
    --ice-white: #F0F7FF;
    --ice-blue: #B8E0F7;
    --white: #FFFFFF;
    --text-light: rgba(255,255,255,0.7);
    --red: #E74C3C;
    --red-soft: rgba(231,76,60,0.15);

    /* Premium glass & motion */
    --glass-bg: rgba(255,255,255,0.035);
    --glass-border: rgba(143,120,67,0.12);
    --glass-border-hover: rgba(143,120,67,0.35);
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.25);
    --gradient-gold-text: linear-gradient(180deg, #f5ecd0 0%, #c4a95b 25%, #e8d48b 45%, #fff8e0 50%, #c4a95b 55%, #8f7843 75%, #6b5a32 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--green-dark);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(0, 21, 13, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(143,120,67,0.08);
    transition: all 0.4s ease;
}
.navbar.scrolled {
    padding: 0.7rem 2.5rem;
    background: rgba(0, 21, 13, 0.95);
    border-bottom-color: rgba(143,120,67,0.15);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { width: 32px; height: 32px; }
.nav-logo-text {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em;
}
.nav-logo-text span {
    color: var(--gold-light); font-size: 0.65rem; font-weight: 600;
    display: block; letter-spacing: 0.15em; margin-top: -2px;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: var(--text-light); letter-spacing: 0.04em; transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gold-light); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { width: 100%; background: var(--gold-bright); }
.nav-cta-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-dark) !important; padding: 0.55rem 1.4rem;
    border-radius: 100px; font-weight: 700 !important; letter-spacing: 0.03em;
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(143,120,67,0.3); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }

/* ---------- Section Headings ---------- */
.section-label {
    font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 0.8rem;
}
.section-title {
    font-family: 'Outfit', sans-serif; font-size: 2.8rem; font-weight: 900;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 600px; line-height: 1.7; }

/* ---------- Gold Text Utility ---------- */
.gold-text {
    background: var(--gradient-gold-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; position: relative; overflow: hidden;
    transition: var(--transition-premium);
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-bright));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px); box-shadow: var(--shadow-card-hover);
}
.glass-card:hover::before { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 100px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem;
    letter-spacing: 0.03em; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); border: none; text-decoration: none;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-dark); box-shadow: 0 4px 20px rgba(143,120,67,0.25);
    position: relative; overflow: hidden;
}
.btn-gold::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(143,120,67,0.35); }
.btn-gold:hover::before { left: 100%; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(143,120,67,0.3); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(231,76,60,0.3); }
.btn-danger:hover { background: rgba(231,76,60,0.25); }

/* ---------- Match Card ---------- */
.match-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(143,120,67,0.12);
    border-radius: 20px; padding: 1.5rem 2rem;
    transition: var(--transition-premium);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
    position: relative; overflow: hidden;
}
.match-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    opacity: 0; transition: opacity 0.3s;
}
.match-card:hover { border-color: rgba(143,120,67,0.3); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.match-card.live { border-color: rgba(232,212,139,0.4); background: rgba(143,120,67,0.06); animation: livePulse 2s ease-in-out infinite; }
.match-card.live::before { opacity: 1; }
.match-card.completed { opacity: 0.7; }
.match-card.completed:hover { opacity: 1; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,212,139,0.1); } 50% { box-shadow: 0 0 25px 4px rgba(232,212,139,0.12); } }
.match-team { display: flex; align-items: center; gap: 0.75rem; }
.match-team-home { justify-content: flex-end; text-align: right; }
.match-team-away { justify-content: flex-start; }
.match-team-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,0.05); padding: 4px; flex-shrink: 0; }
.match-team-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.match-center { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 100px; }
.match-time { font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.1em; }
.score-display { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; letter-spacing: 0.05em; }
.score-display.has-score {
    background: linear-gradient(180deg, #f5ecd0 0%, #c4a95b 40%, #e8d48b 50%, #c4a95b 60%, #8f7843 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.score-separator { color: rgba(143,120,67,0.4); margin: 0 0.2rem; -webkit-text-fill-color: rgba(143,120,67,0.4); }
.match-vs { font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.match-period { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-bright); }
.match-division-tag { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); opacity: 0.6; }
.match-timer { font-family: 'Outfit', monospace; font-weight: 800; font-size: 1.1rem; color: var(--gold-bright); letter-spacing: 0.05em; margin-top: 0.2rem; }

/* ---------- Status Badge ---------- */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.8rem;
    border-radius: 100px; font-family: 'Outfit', sans-serif; font-size: 0.65rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.status-live { background: rgba(232,212,139,0.15); border: 1px solid rgba(232,212,139,0.4); color: var(--gold-bright); }
.status-live::before { content: ''; width: 6px; height: 6px; background: var(--gold-bright); border-radius: 50%; animation: liveDot 1.5s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.status-completed { background: rgba(13,107,69,0.2); border: 1px solid rgba(13,107,69,0.4); color: var(--green-light); }
.status-upcoming { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-light); }

/* ---------- Standings Table ---------- */
.standings-wrapper { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(143,120,67,0.1); background: rgba(255,255,255,0.02); }
.standings-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.standings-table th {
    font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold);
    padding: 1rem 0.8rem; text-align: center; border-bottom: 1px solid rgba(143,120,67,0.15); white-space: nowrap;
}
.standings-table th:nth-child(2) { text-align: left; }
.standings-table td { padding: 0.85rem 0.8rem; font-size: 0.88rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.2s ease; }
.standings-table td:nth-child(2) { text-align: left; font-family: 'Outfit', sans-serif; font-weight: 700; }
.standings-table tbody tr:hover td { background: rgba(143,120,67,0.04); }
.standings-table tbody tr:first-child td { background: rgba(143,120,67,0.06); }
.standings-table .pos-num { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--gold-light); }
.standings-table .team-cell { display: flex; align-items: center; gap: 0.6rem; }
.standings-table .team-cell img { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; }
.standings-table .pts-cell { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1rem; color: var(--gold-bright); }

/* ---------- Division Header ---------- */
.division-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.division-header::before, .division-header::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(143,120,67,0.2), transparent); }
.division-header h3 { font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); white-space: nowrap; }

/* ---------- Superfinal Card ---------- */
.superfinal-card {
    background: linear-gradient(135deg, rgba(143,120,67,0.08), rgba(143,120,67,0.02));
    border: 1px solid rgba(143,120,67,0.25); border-radius: 24px; padding: 3rem;
    text-align: center; position: relative; overflow: hidden;
}
.superfinal-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(232,212,139,0.06) 0%, transparent 70%); pointer-events: none; }
.superfinal-title {
    font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 900;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: linear-gradient(180deg, #f5ecd0 0%, #c4a95b 25%, #e8d48b 45%, #fff8e0 50%, #c4a95b 55%, #8f7843 75%, #6b5a32 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 2rem;
}
.superfinal-matchup { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.superfinal-team { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.superfinal-team img { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: rgba(255,255,255,0.05); padding: 8px; }
.superfinal-team-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.2rem; }
.superfinal-team-div { font-size: 0.7rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.superfinal-score { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 900; background: linear-gradient(180deg, #f5ecd0, #c4a95b, #8f7843); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.superfinal-pending { font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--text-light); font-style: italic; }

/* ---------- Tabs ---------- */
.tab-bar { display: flex; gap: 0.25rem; padding: 0.25rem; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(143,120,67,0.08); width: fit-content; }
.tab-btn { padding: 0.6rem 1.4rem; border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--text-light); background: transparent; border: none; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.tab-btn:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.tab-btn.active { background: rgba(143,120,67,0.15); color: var(--gold-bright); border: 1px solid rgba(143,120,67,0.2); }

/* ---------- Skeleton Loading ---------- */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-match { height: 90px; border-radius: 20px; margin-bottom: 0.75rem; }
.skeleton-table { height: 300px; border-radius: 16px; }

/* ---------- Toast Notification ---------- */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--green-mid); border: 1px solid rgba(143,120,67,0.2); border-radius: 12px; padding: 1rem 1.5rem; font-size: 0.85rem; color: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 9999; }
.toast.show { transform: translateY(0); }
.toast.success { border-color: rgba(13,107,69,0.4); }
.toast.error { border-color: rgba(231,76,60,0.4); }

/* ---------- Footer ---------- */
.cup-footer { padding: 3rem 2rem; text-align: center; border-top: 1px solid rgba(143,120,67,0.08); color: var(--text-light); font-size: 0.8rem; }
.cup-footer a { color: var(--gold-light); transition: color 0.2s ease; }
.cup-footer a:hover { color: var(--gold-bright); }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-light); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ---------- Tournament Hero ---------- */
.t-hero {
    position: relative; overflow: hidden;
    padding: 10rem 2rem 4rem; text-align: center;
    min-height: 70vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.t-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
.t-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,21,13,0.5) 0%, rgba(2,47,29,0.85) 60%, var(--green-dark) 100%);
}
.t-hero-bg video {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.25; filter: brightness(0.7);
}
.t-hero-content { position: relative; z-index: 1; max-width: 700px; }
.t-hero-logo { width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 16px; }
.t-hero h1 {
    font-family: 'Outfit', sans-serif; font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.1;
    margin-bottom: 0.6rem;
}
.t-hero h1 span {
    background: linear-gradient(180deg, #f5ecd0 0%, #c4a95b 40%, #e8d48b 50%, #c4a95b 60%, #8f7843 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.t-hero-meta {
    font-size: 1rem; color: var(--text-light); margin-bottom: 0.5rem;
}
.t-hero-meta strong { color: var(--gold-light); }
.t-hero-desc {
    font-size: 0.95rem; color: var(--text-light); max-width: 500px;
    margin: 0.8rem auto 2rem; line-height: 1.6;
}
.t-hero-badges { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Info Cards ---------- */
.info-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; padding: 3rem 0;
}
.info-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.5rem; text-align: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    position: relative; overflow: hidden; transition: var(--transition-premium);
}
.info-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.info-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.info-card:hover::before { transform: scaleX(1); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.info-card-label {
    font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.3rem;
}
.info-card-value {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
}

/* ---------- Teams Grid ---------- */
.teams-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem; padding: 1rem 0;
}
.team-slot {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(143,120,67,0.08);
    border-radius: 16px; padding: 1.2rem; text-align: center;
    transition: all 0.3s ease;
}
.team-slot:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); background: rgba(143,120,67,0.04); }
.team-slot img {
    width: 48px; height: 48px; border-radius: 10px; object-fit: contain;
    background: rgba(255,255,255,0.05); padding: 4px; margin: 0 auto 0.6rem;
}
.team-slot-name {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.8rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-slot-empty {
    border-style: dashed; opacity: 0.4;
}
.team-slot-empty .team-slot-name { color: var(--text-light); }
.spots-counter {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 100px;
    background: rgba(143,120,67,0.1); border: 1px solid rgba(143,120,67,0.2);
    font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 700;
    color: var(--gold-bright);
}
.spots-bar {
    width: 100%; max-width: 300px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.06); margin: 0.8rem auto 0; overflow: hidden;
}
.spots-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    transition: width 0.6s ease;
}

/* ---------- Schedule Timeline ---------- */
.schedule-timeline { display: grid; gap: 1rem; padding: 1rem 0; }
.schedule-item {
    display: flex; align-items: flex-start; gap: 1.2rem;
    padding: 1.2rem 1.5rem; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(143,120,67,0.08);
    transition: border-color 0.3s;
}
.schedule-item:hover { border-color: rgba(143,120,67,0.2); }
.schedule-time {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem;
    color: var(--gold-bright); min-width: 60px; padding-top: 0.15rem;
}
.schedule-content h4 {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.schedule-content p { font-size: 0.8rem; color: var(--text-light); }

/* ---------- Sponsors Marquee ---------- */
.sponsors-marquee {
    overflow: hidden; padding: 1.5rem 0; position: relative;
}
.sponsors-marquee::before, .sponsors-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
    pointer-events: none;
}
.sponsors-marquee::before { left: 0; background: linear-gradient(90deg, var(--green-dark), transparent); }
.sponsors-marquee::after { right: 0; background: linear-gradient(270deg, var(--green-dark), transparent); }
.sponsors-track {
    display: flex; gap: 2rem; animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.sponsor-card {
    flex-shrink: 0; width: 180px; height: 80px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(143,120,67,0.12);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    padding: 0.8rem; transition: border-color 0.3s;
}
.sponsor-card:hover { border-color: rgba(143,120,67,0.3); }
.sponsor-card img { max-height: 50px; max-width: 140px; object-fit: contain; filter: brightness(0.9); }
.sponsors-tier-label {
    font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
    text-align: center; margin-bottom: 0.8rem;
}

/* ---------- Map Section ---------- */
.map-section { border-radius: 20px; overflow: hidden; border: 1px solid rgba(143,120,67,0.1); }
.map-section iframe { width: 100%; height: 350px; border: 0; filter: grayscale(0.3) brightness(0.8); }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Section Spacing ---------- */
.t-section { padding: 4rem 0; }
.t-section-alt { background: linear-gradient(180deg, rgba(2,47,29,0.25) 0%, transparent 100%); }
.t-section-dark { background: linear-gradient(180deg, rgba(0,21,13,0.5) 0%, rgba(2,47,29,0.2) 100%); }
.t-section-header { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Match Ticker (navbar) ---------- */
.match-ticker {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background: rgba(143,120,67,0.1); border-bottom: 1px solid rgba(143,120,67,0.15);
    overflow: hidden; height: 0; transition: height 0.3s ease;
}
.match-ticker.active { height: 32px; }
.match-ticker-track {
    display: flex; gap: 3rem; animation: tickerScroll 20s linear infinite;
    white-space: nowrap; padding: 0.4rem 0;
}
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item {
    font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 600;
    color: var(--gold-bright); flex-shrink: 0;
}
.ticker-live { color: var(--gold-glow); }
.navbar.has-ticker { top: 32px; }

/* ---------- Landing Page ---------- */
.landing-hero {
    text-align: center; padding: 8rem 2rem 5rem; min-height: 70vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.landing-hero h1 {
    font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 3.5rem;
    line-height: 1.1; letter-spacing: -0.02em; max-width: 700px; margin-bottom: 1.5rem;
}
.landing-hero p { font-size: 1.15rem; color: var(--text-light); max-width: 500px; margin-bottom: 2.5rem; line-height: 1.7; }
.landing-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; padding: 3rem 0;
}
.landing-feature {
    padding: 2rem; border-radius: 20px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(143,120,67,0.1); transition: all 0.3s ease;
}
.landing-feature:hover { border-color: rgba(143,120,67,0.25); transform: translateY(-2px); }
.landing-feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.landing-feature h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.5rem; }
.landing-feature p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.landing-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    padding: 3rem 0; text-align: center;
}
.landing-step-num {
    font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.5rem;
    color: var(--gold-light); opacity: 0.3; margin-bottom: 0.5rem;
}
.landing-step h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 0.4rem; }
.landing-step p { font-size: 0.85rem; color: var(--text-light); }

/* ---------- Stagger Reveal ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal-stagger > * { opacity: 0; transform: translateY(20px); }
.reveal-stagger.visible > * { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.07s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.14s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(7) { animation-delay: 0.42s; }
.reveal-stagger.visible > *:nth-child(8) { animation-delay: 0.49s; }
.reveal-stagger.visible > *:nth-child(9) { animation-delay: 0.56s; }
.reveal-stagger.visible > *:nth-child(10) { animation-delay: 0.63s; }
.reveal-stagger.visible > *:nth-child(n+11) { animation-delay: 0.7s; }

/* ---------- AFIK Branding Footer ---------- */
.afik-branding {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 1.5rem 2rem; margin-top: 1.5rem;
    border-top: 1px solid rgba(143,120,67,0.08);
}
.afik-branding img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.afik-branding-text {
    font-family: 'Outfit', sans-serif; font-size: 0.75rem; color: var(--text-light);
}
.afik-branding-text strong { color: var(--white); font-weight: 700; }
.afik-branding-tagline {
    font-size: 0.65rem; font-style: italic; color: rgba(255,255,255,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 21, 13, 0.98); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.3rem; }
    .hamburger { display: flex; z-index: 1001; }
    .section-title { font-size: 2rem; }
    .match-card { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.2rem 1.5rem; text-align: center; }
    .match-team { justify-content: center !important; text-align: center; }
    .match-team-home { flex-direction: row; }
    .container { padding: 0 1.2rem; }
    .tab-bar { width: 100%; overflow-x: auto; }
    .superfinal-title { font-size: 1.8rem; }
    .superfinal-card { padding: 2rem 1.5rem; }
    .landing-hero h1 { font-size: 2.2rem; }
    .landing-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .t-hero { padding: 7rem 1.5rem 3rem; min-height: 50vh; }
    .t-hero-logo { width: 56px; height: 56px; }
    .info-cards { grid-template-columns: repeat(2, 1fr); }
    .teams-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .schedule-item { flex-direction: column; gap: 0.4rem; }
    .map-section iframe { height: 250px; }
}
@media (max-width: 480px) {
    .match-team-name { font-size: 0.85rem; }
    .score-display { font-size: 1.5rem; }
}
