:root {
    --bg-dark: #09090b; /* Deep rich dark */
    --bg-panel: rgba(15, 15, 20, 0.45);
    --bg-card: rgba(20, 20, 25, 0.5);
    --bg-card-hover: rgba(30, 30, 35, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa; /* Softer, modern gray */
    --accent-color: #00E676; /* Vibrant neon green */
    --accent-glow: rgba(0, 230, 118, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Light theme variables */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-panel: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-border-hover: rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
    position: relative;
}

/* Mesh Gradient Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 230, 118, 0.04), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(0, 230, 118, 0.06), transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(0, 230, 118, 0.03), transparent 40%);
    pointer-events: none;
}

[data-theme="light"] .bg-mesh {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 230, 118, 0.08), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(0, 230, 118, 0.1), transparent 35%);
}

/* Modern Glassmorphism */
.glass {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Custom Slim Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.15); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: rgba(255, 255, 255, 0.25); 
}
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); }

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    position: sticky;
    top: 10px;
    z-index: 100;
    margin: 0 10px;
    border-radius: 16px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .app-header {
        padding: 1rem 2rem;
        margin: 0 20px;
        top: 15px;
        border-radius: 20px;
    }
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .logo-text { font-size: 1.6rem; letter-spacing: 1px; }
}

.text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (min-width: 768px) {
    .header-controls { gap: 1.5rem; }
}

.datetime-display {
    display: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .datetime-display { display: block; }
}

.icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .icon-btn { width: 44px; height: 44px; font-size: 1.2rem; }
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

[data-theme="light"] .icon-btn {
    background: rgba(0,0,0,0.03);
}
[data-theme="light"] .icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 20px;
    max-width: 1800px;
    margin: 10px auto 0;
}

@media (min-width: 992px) {
    .app-container {
        padding: 2rem;
        gap: 2rem;
        margin: 15px auto 0;
    }
}

.top-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 992px) {
    .top-section {
        flex-direction: row;
        height: 65vh;
        align-items: stretch;
        gap: 2rem;
    }

    .player-section {
        flex: 0 0 72%;
        display: flex;
        flex-direction: column;
    }

    .side-panel-section {
        flex: 1;
        overflow-y: hidden;
        padding-right: 5px;
        display: flex;
        flex-direction: column;
    }
}

/* Player Section */
.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
    .player-wrapper { height: 100%; border-radius: 24px; }
}

/* Fullscreen handling */
.player-wrapper:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; border: none; }
.player-wrapper:-moz-full-screen { width: 100%; height: 100%; border-radius: 0; border: none; }
.player-wrapper:fullscreen { width: 100%; height: 100%; border-radius: 0; border: none; }

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}

.player-overlay.show {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    display: none;
    box-shadow: 0 0 15px rgba(0,230,118,0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff4d4d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    text-align: center;
    padding: 0 20px;
    font-weight: 500;
}

/* Custom Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 20;
}

@media (min-width: 768px) {
    .custom-controls {
        padding: 25px;
        gap: 12px;
        opacity: 0;
    }
    .player-wrapper:hover .custom-controls,
    .custom-controls:hover,
    .custom-controls:focus-within {
        opacity: 1;
    }
}

.progress-bar-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.live-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.8); }
    70% { box-shadow: 0 0 0 12px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

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

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .controls-left, .controls-right { gap: 20px; }
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
}

@media (min-width: 768px) {
    .control-btn { font-size: 1.4rem; }
}

.control-btn:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

.volume-container {
    display: none;
    align-items: center;
    gap: 10px;
}

@media (min-width: 480px) {
    .volume-container { display: flex; }
}

#volumeSlider {
    width: 70px;
    cursor: pointer;
    accent-color: var(--accent-color);
    height: 4px;
}

@media (min-width: 768px) {
    #volumeSlider { width: 90px; }
}

.current-channel-name {
    font-weight: 600;
    margin-left: 8px;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .current-channel-name {
        font-size: 1.1rem;
        margin-left: 15px;
        max-width: none;
    }
}

.quality-selector {
    position: relative;
}

.quality-menu {
    position: absolute;
    bottom: 45px;
    right: -10px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
}

.quality-menu.show {
    display: flex;
    animation: popUp 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.quality-option {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-option.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Channel List */
.section-header {
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .channel-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 992px) {
    .channel-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

.channel-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 992px) {
    .channel-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1.2rem;
        gap: 18px;
    }
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.channel-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.channel-card.active {
    background: var(--bg-card-hover);
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.channel-card.active::before {
    transform: scaleY(1);
}

.channel-logo {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .channel-logo { width: 65px; height: 65px; border-radius: 16px; }
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    width: 100%;
}

.channel-name {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

@media (min-width: 992px) {
    .channel-name { font-size: 1.2rem; }
}

.channel-category {
    font-size: 0.7rem;
    color: #000;
    background: var(--accent-color);
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
    font-weight: 700;
    margin: 0 auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .channel-category { margin: 0; font-size: 0.75rem; }
}

.channel-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
    font-weight: 400;
}

@media (min-width: 992px) {
    .channel-desc { display: block; font-size: 0.85rem; }
}

.card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
}

@media (min-width: 992px) {
    .card-actions { top: 15px; right: 15px; }
}

.fav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px;
}

@media (min-width: 992px) {
    .fav-btn { font-size: 1.3rem; }
}

.fav-btn.active {
    color: var(--accent-color);
    transform: scale(1.1);
}

.fav-btn:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #09090b;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 20px;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .logos-container { gap: 4rem; }
}

.splash-logo {
    height: 110px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .splash-logo { height: 160px; }
}

.pulse {
    animation: splashPulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes splashPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,255,255,0.1)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255,255,255,0.3)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,255,255,0.1)); }
}

.splash-text h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .splash-text h2 { font-size: 3rem; letter-spacing: 3px; }
}

.splash-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.splash-loader {
    width: 220px;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .splash-loader { width: 300px; height: 8px; }
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: loadingBar 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

@keyframes loadingBar {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* World Cup Hub */
.wc-hub-section {
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .wc-hub-section { padding: 2rem; border-radius: 24px; }
}

.wc-header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .wc-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

.wc-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .wc-tabs { gap: 1.2rem; }
}

.wc-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .wc-tab { font-size: 1.05rem; padding: 0.8rem 1.5rem; }
}

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

.wc-tab.active {
    color: #000;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.wc-pane {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wc-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .groups-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
}

.group-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .group-card { padding: 1.8rem; border-radius: 20px; }
}

.group-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.group-header {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
    border-radius: 8px;
}

.team-row:hover {
    background: rgba(255,255,255,0.03);
}

@media (min-width: 768px) {
    .team-row { gap: 15px; padding: 12px 10px; }
}

.team-row:last-child {
    border-bottom: none;
}

.team-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media (min-width: 768px) {
    .team-flag { width: 32px; height: 22px; border-radius: 4px; }
}

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

@media (min-width: 768px) {
    .team-name { font-size: 1.05rem; }
}

/* Fixtures List */
.fixtures-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 1200px) {
    .fixtures-list { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.fixture-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    align-items: center;
    text-align: center;
}

.fixture-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: var(--glass-border-hover);
}

@media (min-width: 768px) {
    .fixture-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem;
        text-align: left;
    }
}

.fixture-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,230,118,0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .fixture-date { margin-bottom: 0; width: 150px; font-size: 0.95rem; background: transparent; padding: 0; }
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .fixture-teams { gap: 1.2rem; width: auto; }
}

.f-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    flex: 1;
}

@media (min-width: 768px) {
    .f-team { gap: 15px; font-size: 1.15rem; width: 45%; flex: none; }
}

.f-team.home { justify-content: flex-end; text-align: right; }
.f-team.away { justify-content: flex-start; text-align: left; }

.f-vs {
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .f-vs { padding: 6px 14px; font-size: 0.9rem; }
}

.fixture-venue {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .fixture-venue { margin-top: 0; width: 180px; justify-content: flex-end; font-size: 0.95rem; }
}

/* Footer & Dev Profile */
.app-footer {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 10px 10px;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .app-footer { padding: 4rem 2rem; margin: 3rem 20px 20px; border-radius: 24px; }
}

.dev-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
    max-width: 450px;
    width: 100%;
}

@media (min-width: 600px) {
    .dev-profile {
        flex-direction: row;
        text-align: left;
    }
}

.dev-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 25px var(--accent-glow);
    transition: var(--transition);
}

.dev-profile:hover .dev-photo {
    transform: scale(1.05) rotate(5deg);
}

@media (min-width: 600px) {
    .dev-photo { width: 110px; height: 110px; }
}

.dev-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.5px;
}

@media (min-width: 600px) {
    .dev-info h3 { font-size: 1.6rem; }
}

.dev-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

@media (min-width: 600px) {
    .dev-info p { font-size: 1.05rem; }
}

.dev-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 600px) {
    .dev-socials { justify-content: flex-start; }
}

.dev-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 600px) {
    .dev-socials a { font-size: 1.6rem; width: 45px; height: 45px; }
}

.dev-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-4px);
    background: rgba(0,230,118,0.1);
    border-color: rgba(0,230,118,0.3);
    box-shadow: 0 5px 15px rgba(0,230,118,0.2);
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    width: 100%;
}

@media (min-width: 600px) {
    .footer-bottom { font-size: 0.95rem; }
}


/* Side Panel Tabs */
.side-panel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}
.side-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.side-tab.active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-color);
}
.side-pane {
    display: none;
    flex: 1;
    overflow-y: auto;
}
.side-pane.active {
    display: block;
}

/* Chat UI */
#chat-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#chat-pane.active {
    display: flex;
}
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-welcome {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 10px 0;
}
.chat-name-setup {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--glass-border);
}
.chat-name-setup input, .chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}
.chat-name-setup input:focus, .chat-input-area input:focus {
    border-color: var(--accent-color);
}
.chat-name-setup button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.chat-name-setup button:hover {
    transform: scale(1.05);
}
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}
.chat-input-area button {
    background: var(--accent-color);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.chat-input-area button:hover {
    transform: scale(1.1);
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}
.chat-msg.self {
    align-self: flex-end;
}
.chat-msg.other {
    align-self: flex-start;
}
.chat-msg-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    margin-left: 5px;
}
.chat-msg.self .chat-msg-name {
    text-align: right;
    margin-right: 5px;
}
.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-msg.other .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}
.chat-msg.self .chat-msg-bubble {
    background: var(--accent-color);
    color: #000;
    border-bottom-right-radius: 4px;
}


/* Accordion Styles */
.accordion-item {
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.1) 100%);
}

.accordion-header.active {
    background: var(--accent-color);
    color: #000;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00c853;
}

/* Hover Effects Polish */
.channel-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 230, 118, 0.4);
}

.fixture-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.fixture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 230, 118, 0.4);
}


/* Player Watermark */
.player-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: auto;
    z-index: 5;
    opacity: 0.7;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
