* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pitch-green: #2ecc71;
    --pitch-dark: #27ae60;
    --ball-white: #ecf0f1;
    --jersey-blue: #3498db;
    --jersey-dark: #2980b9;
    --bg-stadium: #1a252f;
    --bg-field: #243342;
    --bg-lighter: #2c3e50;
    --text-bright: #ffffff;
    --text-soft: #bdc3c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-stadium);
    color: var(--text-bright);
    line-height: 1.8;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    color: var(--pitch-green);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--pitch-dark);
}

/* Kickoff Gate */
.kickoff-gate {
    position: fixed;
    inset: 0;
    background: rgba(26, 37, 47, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.kickoff-gate.active {
    opacity: 1;
    visibility: visible;
}

.gate-pitch {
    background: linear-gradient(145deg, var(--bg-field), var(--bg-lighter));
    border: 3px solid var(--pitch-green);
    border-radius: 16px;
    padding: 3rem;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.2);
}

.pitch-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.gate-pitch h2 {
    color: var(--pitch-green);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.gate-pitch p {
    color: var(--text-soft);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
}

.pitch-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pitch-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.pitch-btn.yes {
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-dark));
    color: white;
}

.pitch-btn.yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

.pitch-btn.no {
    background: transparent;
    color: var(--text-soft);
    border: 2px solid var(--text-soft);
}

.pitch-btn.no:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
}

/* Header */
.stadium-header {
    background: var(--bg-field);
    border-bottom: 3px solid var(--pitch-green);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-pitch {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.badge-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-dark));
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--ball-white);
}

.badge-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--pitch-green);
    letter-spacing: 2px;
}

.whistle-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.whistle-btn span {
    width: 28px;
    height: 3px;
    background: var(--pitch-green);
    border-radius: 2px;
    transition: all 0.3s;
}

.stadium-nav {
    display: flex;
    gap: 2.5rem;
}

.stadium-nav a {
    color: var(--text-soft);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.stadium-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--pitch-green);
    transition: width 0.3s;
}

.stadium-nav a:hover,
.stadium-nav a.active {
    color: var(--pitch-green);
}

.stadium-nav a:hover::after,
.stadium-nav a.active::after {
    width: 100%;
}

/* Match Hero */
.match-hero {
    background: linear-gradient(180deg, var(--bg-field) 0%, var(--bg-stadium) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-pitch {
    max-width: 900px;
    margin: 0 auto;
}

.hero-pitch h1 {
    font-size: 4rem;
    color: var(--pitch-green);
    margin-bottom: 1.5rem;
}

.hero-chant {
    font-size: 1.15rem;
    color: var(--text-soft);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(180deg, var(--bg-field) 0%, var(--bg-stadium) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-banner h1 {
    font-size: 3.5rem;
    color: var(--pitch-green);
    margin-bottom: 0.75rem;
}

.page-banner p {
    color: var(--text-soft);
    font-size: 1.1rem;
}

/* Squad Cards */
.squad-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.squad-card {
    background: var(--bg-field);
    border: 2px solid var(--bg-lighter);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.squad-card:hover {
    border-color: var(--pitch-green);
    transform: translateY(-5px);
}

.card-ball {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.2rem;
}

.squad-card h3 {
    color: var(--pitch-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.squad-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

/* Match Area */
.match-area {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.match-area.full-match {
    padding-top: 2rem;
}

.match-header {
    text-align: center;
    margin-bottom: 2rem;
}

.match-header h2 {
    color: var(--pitch-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.match-header p {
    color: var(--text-soft);
}

.match-screen {
    background: var(--bg-field);
    border: 3px solid var(--pitch-green);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.match-screen.expanded {
    aspect-ratio: 16 / 10;
    max-width: 1200px;
    margin: 0 auto;
}

.game-pitch {
    width: 100%;
    height: 100%;
    border: none;
}

/* Commentary */
.commentary {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid var(--bg-lighter);
}

.commentary:last-of-type {
    border-bottom: none;
}

.commentary h2 {
    color: var(--pitch-green);
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.commentary p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.commentary p:last-child {
    margin-bottom: 0;
}

.commentary.alert {
    background: var(--bg-field);
    border: 2px solid var(--pitch-green);
    border-radius: 12px;
    padding: 2.5rem !important;
    margin: 2rem auto;
}

/* Lineup List */
.lineup-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.lineup-item {
    color: var(--text-soft);
    padding: 1rem;
    background: var(--bg-field);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

/* Footer */
.stadium-footer {
    background: var(--bg-field);
    border-top: 3px solid var(--pitch-green);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-pitch {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.support-bench {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bench-label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.support-bench a {
    font-size: 0.9rem;
}

.final-whistle {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 1024px) {
    .squad-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-pitch h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .whistle-btn {
        display: flex;
    }

    .stadium-nav {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--bg-field);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 3px solid var(--pitch-green);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s;
    }

    .stadium-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-pitch {
        padding: 1rem 1.5rem;
    }

    .match-hero {
        padding: 3.5rem 1.5rem;
    }

    .hero-pitch h1 {
        font-size: 2.5rem;
    }

    .hero-chant {
        font-size: 1rem;
    }

    .page-banner {
        padding: 3rem 1.5rem;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }

    .squad-cards {
        padding: 2rem 1.5rem;
    }

    .squad-card {
        padding: 2rem 1.5rem;
    }

    .match-area {
        padding: 2rem 1rem;
    }

    .match-screen {
        aspect-ratio: 4 / 3;
    }

    .commentary {
        padding: 2rem 1.5rem;
    }

    .commentary h2 {
        font-size: 1.6rem;
    }

    .support-bench {
        flex-direction: column;
        gap: 0.8rem;
    }

    .stadium-footer {
        padding: 2rem 1.5rem;
    }

    .gate-pitch {
        margin: 1.5rem;
        padding: 2rem;
    }

    .pitch-actions {
        flex-direction: column;
    }
}
