:root {
    --primary-color: #121212;
    --accent-color: #E53935;
    --bg-light: #F4F6F8;
    --text-main: #333;
    --text-muted: #666;
    --white: #FFFFFF;
    --polymarket-green: #00BFA5;
    --polymarket-blue: #2962FF;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* HERO HEADER */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 20px 0 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-area h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: #cbd5e1;
}

/* NAVIGATION */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.main-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.main-nav button.active {
    background: var(--white);
    color: var(--primary-color);
}

/* MAIN CONTAINER */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    display: none;
}

section.active-section {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* MATCH CARDS */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.match-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    border-top: 4px solid var(--accent-color);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.team-flag {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.vs {
    font-weight: 800;
    color: #ccc;
    font-size: 1.5rem;
    margin: 0 15px;
}

/* ODDS BAR */
.odds-container {
    width: 100%;
    margin-top: 25px;
}

.odds-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.odds-bar-bg {
    width: 100%;
    height: 10px;
    background-color: var(--polymarket-blue);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.odds-bar-fill {
    height: 100%;
    background-color: var(--polymarket-green);
    transition: width 1s ease-in-out;
}

.color-t1 { color: var(--polymarket-green); }
.color-t2 { color: var(--polymarket-blue); }

/* GROUPS GRID */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.group-table {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.group-table h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 5px;
    text-align: center;
    font-size: 0.9rem;
}

th {
    color: var(--text-muted);
    font-weight: 600;
}

tr {
    border-bottom: 1px solid #f0f0f0;
}

tr:last-child {
    border-bottom: none;
}

td:first-child {
    text-align: left;
    font-weight: 600;
}

/* PLAYERS AND BROADCASTS */
.players-grid, .broadcast-grid, .hosts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.player-card, .host-card, .broadcast-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.player-card img, .host-card img {
    border-radius: 50%;
    margin-bottom: 15px;
}

.player-name, .host-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.player-details, .host-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* MOBILE STYLES */
@media (max-width: 768px) {
    .logo-area h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; margin-bottom: 20px; }
    .hero { padding: 30px 15px 0 15px; }
    .main-nav { gap: 8px; flex-wrap: wrap; }
    .main-nav button { padding: 10px 15px; font-size: 0.85rem; flex: 1 1 45%; }
    .section-header h2 { font-size: 1.8rem; }
    .matches-grid, .groups-grid, .players-grid, .hosts-cards, .broadcast-grid { grid-template-columns: 1fr; }
    .match-card { padding: 15px; }
    .team-flag { width: 48px; height: 48px; }
    .team-name { font-size: 0.95rem; }
    .vs { font-size: 1.2rem; margin: 0 5px; }
    
    /* Table Fixes for Mobile */
    .group-table { overflow-x: auto; padding: 15px 5px; -webkit-overflow-scrolling: touch; }
    table { width: 100%; min-width: 100%; }
    th, td { padding: 8px 3px; font-size: 0.75rem; }
    td:first-child { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .odds-labels { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .main-nav button { flex: 1 1 100%; }
    th:nth-child(6), td:nth-child(6), /* GF */
    th:nth-child(7), td:nth-child(7)  /* GA */
    { display: none; } /* Hide GF and GA on extremely small screens to ensure Pts and GD stay visible */
}
/* COUNTDOWN TIMER */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: -10px 0 20px 0;
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 70px;
}
.countdown-item span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff8a00;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cd-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    margin-top: 2px;
}

/* POLYMARKET BET LINK */
.bet-link-container {
    text-align: center;
    margin-top: 12px;
}

.bet-link {
    display: inline-block;
    color: var(--polymarket-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(41, 98, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(41, 98, 255, 0.05);
    transition: all 0.2s ease;
}

.bet-link:hover {
    background-color: rgba(41, 98, 255, 0.15);
    color: #1c44b2;
    border-color: rgba(41, 98, 255, 0.5);
}
