@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    /* Modern Palette - Dark & Vibrant */
    --bg-dark: #0f1115;
    --bg-card: rgba(22, 24, 29, 0.7);
    --bg-card-hover: rgba(30, 32, 38, 0.9);
    --primary-color: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --accent-blue: #00ccff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 204, 255, 0.03) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* Navbar */
.top-nav {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: var(--glass-blur);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 2px;
}

/* Intro Text */
.intro-text {
    color: var(--text-secondary);
    text-align: center;
    margin: 30px 0;
    font-weight: 300;
    font-size: 1.1rem;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.order-by {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.6;
}

/* Matches Container */
#matches-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-weight: 300;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Time Header */
.time-header {
    background: transparent;
    color: var(--primary-color);
    padding: 10px 5px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-header::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Match Card */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.match-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.league-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    padding: 1px;
}

.league-name-text {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.league-round {
    color: #666;
    font-size: 0.8rem;
}

/* Card Body */
.card-body {
    display: flex;
    align-items: flex-start;
}

.match-time-col {
    width: 80px;
    border-right: 1px solid var(--border-color);
    margin-right: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.match-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.match-status-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    line-height: 1.3;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Teams */
.match-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.team-name-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
    color: #e0e0e0;
}

.score-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: right;
}

.penalty-score {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Channels */
.match-channels {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.channel-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.channel-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.channel-logo {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 20px;
    }

    .top-nav {
        padding: 10px 0;
    }

    .nav-links {
        display: none;
        /* Hide for now on mobile per original */
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px;
        margin: 0 -20px 20px -20px;
        /* Full width scroll */
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 0;
        border-right: none;
        border-left: none;
        background: rgba(15, 17, 21, 0.95);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
    }

    .match-card {
        padding: 15px;
        margin: 0;
        border-radius: 12px;
    }

    .match-time-col {
        width: 65px;
        margin-right: 15px;
        padding-right: 15px;
    }

    .team-logo {
        width: 24px;
        height: 24px;
    }

    .team-name {
        font-size: 0.95rem;
    }
}

/* --- Game Details Page Styles --- */

.game-details-container {
    max-width: 900px;
    /* Wider for details */
    margin: 0 auto;
    padding-top: 20px;
}

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

#seo-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#seo-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Big Scoreboard */
.scoreboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
}

/* Competition Info Centered */
.competition-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.comp-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.comp-text {
    text-align: center;
    display: flex;
    flex-direction: column;
}

#comp-name {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comp-round {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Score Display Row */
.score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

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

.team-logo-big {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.team-logo-big:hover {
    transform: scale(1.05);
}

.team-name-big {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
}

.score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.score-main {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    gap: 15px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.game-time-status {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
    background: rgba(0, 255, 136, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.game-time-status.live {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Watch Section */
.watch-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

#watch-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #fff;
}

.channels-list-big {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.channel-item-big {
    background: #fff;
    /* White background as per user image for channels text */
    border-radius: 8px;
    /* Slightly grounded */
    padding: 15px;
    /* Bigger padding */
    display: flex;
    align-items: center;
    gap: 20px;
    color: #333;
    /* Dark text for contrast on white channel card */
}

.channel-item-big img {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

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

.channel-name {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.channel-type {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* About Section */
.about-match {
    margin-bottom: 60px;
}

.about-match h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.seo-text-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.seo-text-content p {
    margin-bottom: 20px;
}

.seo-text-content strong {
    color: #fff;
}

/* Mobile Responsiveness for Game Page */
@media (max-width: 768px) {
    #seo-title {
        font-size: 1.4rem;
    }

    .score-main {
        font-size: 2.5rem;
    }

    .team-logo-big {
        width: 60px;
        height: 60px;
    }

    .team-col {
        gap: 10px;
    }

    .score-center {
        padding: 0 10px;
    }

    .game-time-status {
        font-size: 1rem;
    }

    .channel-item-big {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}