:root {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent-blue: #2563eb;
    --border-color: #e5e7eb;
    --hover-bg: #f9fafb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 600; /* Increased base font weight */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Intro Article */
.intro-article {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    background: linear-gradient(to bottom right, #ffffff, #f3f4f6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.intro-article h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #111827; /* Fallback */
}

.intro-article p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.intro-article strong {
    color: var(--accent-blue);
}

.nav-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    padding-right: 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-main);
    width: 250px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.search-icon {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Discord Button */
.discord-btn {
    background-color: #5865F2; /* Discord Brand Color */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
}

/* League Section */
.league-section {
    margin-bottom: 40px;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.league-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.league-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.league-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Match Card */
.match-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: var(--hover-bg);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

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

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

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.match-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 100px;
}

.vs-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.score-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    background-color: #f3f4f6;
    color: var(--text-main);
}

.score-badge.live {
    background-color: #fee2e2;
    color: #dc2626;
    animation: pulse 2s infinite;
}

.score-badge.ended {
    background-color: #e5e7eb;
    color: #6b7280;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.disclaimer {
    font-size: 12px;
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Watch Page Styles */
.watch-container {
    max-width: 1850px; /* Accommodate 1280px player + sidebars + gaps */
    margin: 20px auto;
    padding: 0 10px;
}

.watch-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    justify-content: center;
}

.player-container {
    flex: 1;
    min-width: 0; /* Critical for flex items to shrink properly */
    display: flex;
    justify-content: center;
}

.player-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Exact 1280px width */
    padding-top: 56.25%; /* Exact 16:9 Aspect Ratio (720px height at 1280px width) */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-sidebar {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.left-sidebar {
    width: 160px;
    min-width: 160px;
}

.right-sidebar {
    width: 300px;
    min-width: 300px;
}

@media (max-width: 1750px) { /* Breakpoint for when sidebars don't fit with 1280px player */
    .watch-layout {
        flex-direction: column;
        align-items: center;
    }

    .player-container {
        width: 100%;
    }

    .player-wrapper {
        margin-bottom: 20px;
    }

    .ad-sidebar {
        margin-top: 20px;
    }
    
    .ad-sidebar.left-sidebar,
    .ad-sidebar.right-sidebar {
        width: auto;
        min-width: 300px;
    }
}

.player-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.countdown-overlay {
    text-align: center;
    color: white;
    z-index: 10;
}

.countdown-label {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e5e7eb;
}

.countdown-timer {
    font-size: 48px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    margin: 20px 0;
    color: #ef4444; /* Red for visibility */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.live-indicator {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ef4444;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    animation: pulse 2s infinite;
    margin-bottom: 10px;
}

.match-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

.match-details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px; /* Added spacing since wrapper is gone from direct flow */
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}

/* Partner Backlinks */
.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.partner-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.partner-links a:hover {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.horizontal-ad {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}
