/* ===========================
   KooraGo - Sporty100 Style
   Dark Theme + Blue/Purple Accent
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Sporty100 Dark Colors */
    --bg-main: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --text-light: #6e7681;

    /* Blue/Purple Gradient Accent */
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-bg: rgba(99, 102, 241, 0.15);
    --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
    --logo-gradient: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);

    /* Status Colors */
    --live-color: #ef4444;
    --success: #22c55e;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 12px;

    /* Card Gradient Border */
    --card-border: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
}

/* Light Mode (optional toggle) */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --logo-gradient: linear-gradient(135deg, #0f172a 30%, #6366f1 100%);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   HEADER - KooraTime Style
   =========================== */
.header {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    color: var(--accent);
    white-space: nowrap;
}

/* Navigation */
.nav {
    display: none;
    gap: 0.15rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    padding: 8px 12px;
    border-radius: 99px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--accent-bg);
}

.nav-link.active {
    background: var(--accent);
    color: #fff;
}

/* Search Form */
.search-form {
    display: none;
    align-items: center;
    gap: 0;
    background: var(--bg-main);
    border-radius: 25px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .search-form {
        display: flex;
    }
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: clamp(100px, 12vw, 150px);
    color: var(--text-main);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Search Results Page */
.search-section {
    margin-bottom: 2rem;
}

.search-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-bg);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.search-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.search-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.search-item-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-main);
}

.search-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

/* Theme Icons */
[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: block;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px;
    text-align: center;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main {
    padding: 2rem 0;
}

/* Date Tabs - KooraTime Style */
.date-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    justify-content: center;
}

.date-tab {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.date-tab:hover {
    color: var(--text-main);
    background: var(--accent-bg);
}

.date-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.page-title-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* ===========================
   LIVE BANNER - KooraTime Style
   =========================== */
.live-banner {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.live-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--live-color);
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--live-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-matches-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.05);
}

.live-matches-scroll::-webkit-scrollbar {
    height: 6px;
}

.live-matches-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.live-matches-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 10px;
}

.live-match-mini {
    min-width: 220px;
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all 0.2s;
    position: relative;
}

.live-match-mini:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.live-match-mini::before {
    content: 'LIVE';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--live-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
}

.live-match-teams {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.live-match-score {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* ===========================
   LEAGUE & MATCH CARDS
   =========================== */
.league-section {
    margin-bottom: 2rem;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.league-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.league-name {
    font-weight: 700;
    font-size: 1rem;
}

.league-country {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Match Card - Sporty100 Style */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

.match-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: var(--card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.match-card:hover::before {
    opacity: 1;
}

.match-card:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

/* Card Header */
.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.match-card-league {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.match-round {
    color: var(--accent);
}

.match-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-status.live {
    background: var(--live-color);
    color: #fff;
}

.match-status .live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.match-status.finished {
    background: var(--text-light);
    color: #fff;
}

/* Teams Row */
.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    gap: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.team-logo-lg {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.team-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-bg);
}

.team-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.3;
    color: var(--text-main);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Match Center (Score/Time) */
.match-center {
    min-width: 100px;
    text-align: center;
}

.match-time-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.match-date-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.match-score-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.score-dash {
    color: var(--text-muted);
}

/* Card Footer */
.match-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.watch-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.watch-btn-mini:hover {
    background: #6d28d9;
    transform: scale(1.05);
}

/* Watch Button (Legacy) */
.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.watch-btn:hover {
    background: #6d28d9;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===========================
   WATCH PAGE - KooraTime Style
   =========================== */
.watch-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .watch-container {
        grid-template-columns: 1fr;
    }
}

.player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--text-muted);
    gap: 1rem;
}

.player-placeholder-icon {
    font-size: 3rem;
}

/* Sidebar */
.watch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.servers-section,
.match-details-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.servers-title {
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.servers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-btn {
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.server-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.server-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Match Details Card */
.match-details-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.match-details-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.match-details-team-logo {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

.match-details-team-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.match-details-score {
    display: flex;
    gap: 8px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.match-details-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-details-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-main);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-timezone {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===========================
   MATCH INFO ORGANIZED LAYOUT
   =========================== */
.match-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.match-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-main);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.match-extra-details {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-main);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.extra-details-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-bg);
}

.extra-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.extra-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.detail-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .match-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .match-time-section {
        width: 100%;
    }

    .match-teams {
        width: 100%;
    }

    .match-info {
        width: 100%;
    }

    .team-logo {
        width: 48px;
        height: 48px;
    }

    .match-score {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .extra-details-grid {
        grid-template-columns: 1fr;
    }
}

/* H2H and Form Section */
.h2h-section,
.form-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.h2h-matches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h2h-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-main);
    border-radius: 8px;
    font-size: 0.9rem;
}

.h2h-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 90px;
}

.h2h-teams {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.h2h-score {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: var(--bg-main);
    border-radius: 8px;
}

.form-team {
    font-weight: 600;
}

.form-badges {
    display: flex;
    gap: 4px;
}

.form-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.form-badge.w {
    background-color: #22c55e;
}

.form-badge.d {
    background-color: #f59e0b;
}

.form-badge.l {
    background-color: #ef4444;
}

.text-green-400 {
    color: #4ade80;
}

.text-red-400 {
    color: #f87171;
}

.text-gray-400 {
    color: #9ca3af;
}

.font-bold {
    font-weight: 700;
}

/* ======================================================== */
/* ============ MATCH SHOW - LIGHT THEME STYLING =========== */
/* ======================================================== */

/* 1. Tabs Navigation Light Mode */
[data-theme="light"] .match-tabs-nav {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0 0.5rem !important;
}
[data-theme="light"] .tab-nav-btn {
    color: #475569 !important;
    background: transparent !important;
}
[data-theme="light"] .tab-nav-btn:hover {
    color: var(--accent, #3b82f6) !important;
    background: rgba(59, 130, 246, 0.05) !important;
}
[data-theme="light"] .tab-nav-btn.active {
    color: var(--accent, #3b82f6) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 2px solid var(--accent, #3b82f6) !important;
}

/* 2. Standings Table Light Mode */
[data-theme="light"] .standings-table-wrapper {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 10px !important;
}
[data-theme="light"] .standings-table {
    background: #ffffff !important;
    width: 100% !important;
}
[data-theme="light"] .standings-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .standings-table td {
    color: #1e293b !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .standings-table tr {
    background: #ffffff !important;
}
[data-theme="light"] .standings-table tr:hover td {
    background: #f1f5f9 !important;
}
[data-theme="light"] .standings-table tr.highlight-home td {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-theme="light"] .standings-table tr.highlight-away td {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-theme="light"] .rank-badge {
    background: #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}
[data-theme="light"] .rank-1 {
    background: #10b981 !important;
    color: #fff !important;
}
[data-theme="light"] .rank-2,
[data-theme="light"] .rank-3 {
    background: #3b82f6 !important;
    color: #fff !important;
}
[data-theme="light"] .rank-4 {
    background: #f59e0b !important;
    color: #fff !important;
}
[data-theme="light"] .standings-table tr.relegation .rank-badge {
    background: #ef4444 !important;
    color: #fff !important;
}
[data-theme="light"] .std-name {
    color: #0f172a !important;
    font-weight: 600 !important;
}
[data-theme="light"] .td-pts {
    color: var(--accent, #3b82f6) !important;
    font-weight: 800 !important;
}

/* 3. Stats Tab Light Mode */
[data-theme="light"] .stat-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .stat-name {
    color: #475569 !important;
    font-weight: 600 !important;
}
[data-theme="light"] .stat-val {
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-theme="light"] .stat-bar-wrapper {
    background: #fee2e2 !important;
}
[data-theme="light"] .stat-bar-fill.home {
    background: var(--accent, #3b82f6) !important;
}

/* 4. Lineups Tab Light Mode */
[data-theme="light"] .lineup-team {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .lineup-team-name {
    color: #0f172a !important;
}
[data-theme="light"] .lineup-formation {
    background: var(--accent, #3b82f6) !important;
    color: #ffffff !important;
}
[data-theme="light"] .lineup-section h4 {
    color: #475569 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .player-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .player-row:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}
[data-theme="light"] .player-num {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .player-name-text {
    color: #0f172a !important;
}
[data-theme="light"] .player-card .player-name {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="light"] .pitch-team-btn {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .pitch-team-btn.active {
    background: var(--accent, #3b82f6) !important;
    color: #ffffff !important;
}
[data-theme="light"] .formation-label-3d {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #ffffff !important;
}

/* 5. Summary Tab & Timeline Light Mode */
[data-theme="light"] .timeline-card {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}
[data-theme="light"] .timeline-time {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .timeline-player {
    color: #0f172a !important;
}
[data-theme="light"] .timeline-detail {
    color: #475569 !important;
}
[data-theme="light"] .content-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .empty-state p {
    color: #475569 !important;
}

/* 6. Sleek Scrollable Tabs on Mobile */
@media (max-width: 768px) {
    .match-tabs-nav {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }
    [data-theme="dark"] .match-tabs-nav {
        background: #111222 !important;
    }
    [data-theme="light"] .match-tabs-nav {
        background: #e2e8f0 !important;
    }
    .match-tabs-nav::-webkit-scrollbar {
        display: none !important;
    }
    .tab-nav-btn {
        flex: 0 0 auto !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
}

/* 7. Hero Section Light Mode */
[data-theme="light"] .premium-hero {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .hero-bg {
    filter: blur(40px) brightness(1.2) !important;
    opacity: 0.15 !important;
}
[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)) !important;
}
[data-theme="light"] .hero-team-name {
    color: #1e293b !important;
}
[data-theme="light"] .hero-score {
    color: #1e293b !important;
}
[data-theme="light"] .hero-score-sep {
    color: #94a3b8 !important;
}
[data-theme="light"] .match-status-badge {
    color: #475569 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .scorer-item {
    color: #475569 !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .match-info-bar {
    background: #f1f5f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .info-item {
    color: #475569 !important;
}

/* 8. H2H & Team Form Cards Light Mode */
[data-theme="light"] .team-form-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .form-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .form-header .team-name {
    color: var(--accent, #3b82f6) !important;
}
[data-theme="light"] .match-row-item {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .match-row-item .t-name {
    color: #1e293b !important;
}
[data-theme="light"] .match-row-item .score-box {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}
[data-theme="light"] .match-row-item .row-date-col {
    color: #64748b !important;
}
[data-theme="light"] .match-row-item .league-badge {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #64748b !important;
}

/* Force H2H grids to stack on mobile */
@media(max-width: 768px) {
    .team-form-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .h2h-main-header {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 12px !important;
    }
}


/* 9. Timeline Events Light Mode */
[data-theme="light"] .timeline-container {
    background: #f8fafc !important;
}
[data-theme="light"] .timeline-line {
    background: rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .timeline-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .event-player {
    color: #1e293b !important;
}
[data-theme="light"] .badge-icon {
    background: #ffffff !important;
    border-color: var(--accent, #3b82f6) !important;
}

/* 10. Voting Section Light Mode */
[data-theme="light"] .vote-box {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .vote-label {
    color: #475569 !important;
}

/* 11. Streaming / Servers Light Mode */
[data-theme="light"] .server-chip {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}
[data-theme="light"] .server-chip:hover,
[data-theme="light"] .server-chip.active {
    background: var(--accent, #3b82f6) !important;
    color: #fff !important;
}/* ===========================
   NEW MATCH CARD DESIGN
   =========================== */
.new-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .new-card {
    background: #1c2128;
    border: 1px solid #30363d;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}

.new-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .new-card:hover {
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.4);
    border-color: #6366f1;
}

.nc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

[data-theme="dark"] .nc-top-bar {
    border-bottom: 1px solid #30363d;
}

.nc-league {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nc-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nc-league-info {
    display: flex;
    flex-direction: column;
}

.nc-league-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
}

[data-theme="dark"] .nc-league-name {
    color: #9ca3af;
}

.nc-round {
    font-size: 0.7rem;
    color: #9ca3af;
}

.nc-status-badge .badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.time-badge {
    background-color: #8b5cf6;
    color: #ffffff;
}

.live-badge {
    background-color: #ef4444;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.finished-badge {
    background-color: #f3f4f6;
    color: #6b7280;
}

[data-theme="dark"] .finished-badge {
    background-color: #374151;
    color: #d1d5db;
}

.nc-teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
}

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

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

.nc-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    color: #1f2937;
}

[data-theme="dark"] .nc-team-name {
    color: #f3f4f6;
}

.nc-center {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nc-score {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
}

[data-theme="dark"] .nc-score {
    background: #374151;
    color: #f3f4f6;
}

.nc-vs {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
.nc-match-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 150px;
}

.nc-score-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.nc-time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nc-status-text-top {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-height: 14px;
}

.nc-status-text-bottom {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.nc-circular-progress {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-circular-progress svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.nc-circle-bg {
    fill: none;
    stroke: rgba(139, 92, 246, 0.15); /* Light purple background circle */
    stroke-width: 4;
}

.nc-circle-fg {
    fill: none;
    stroke: var(--progress-color, #f59e0b);
    stroke-width: 4;
    stroke-dasharray: var(--dasharray, 157);
    stroke-dashoffset: var(--dashoffset, 157);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.nc-time-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    z-index: 1;
}

.upcoming-time .nc-circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .upcoming-time .nc-circle-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.upcoming-time .nc-time-text {
    color: var(--text-main);
}

.nc-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: #f9fafb;
    border-top: 1px solid #f5f5f5;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    color: #6b7280;
}

[data-theme="dark"] .nc-bottom-bar {
    background-color: #161b22;
    border-top: 1px solid #30363d;
    color: #9ca3af;
}

.nc-meta-left, .nc-meta-right {
    display: flex;
    align-items: center;
}

.nc-commentator, .nc-broadcaster {
    display: flex;
    align-items: center;
    gap: 6px;
}
