/* ==========================================================================
   FIFA LIVE TV - Custom CSS Stylesheet
   Design Language: Obsidian Dark, Glassmorphism, Neon Accents, Cyber-Sports
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
    --bg-base: #060713;
    --bg-surface: rgba(13, 16, 38, 0.75);
    --bg-surface-solid: #0d1026;
    --bg-card: rgba(22, 28, 61, 0.45);
    --bg-input: rgba(10, 12, 31, 0.6);
    
    --primary: #00f2fe; /* Cyber Cyan */
    --primary-hover: #4facfe;
    --secondary: #d946ef; /* Electric Pink */
    --accent: #8b5cf6; /* Vivid Purple */
    --live-color: #39ff14; /* Neon Green */
    --warning: #f59e0b; /* Amber */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #0b0c16;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.25);
    
    --glass-blur: blur(16px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 7, 19, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Pulsing Live Dot */
.live-link {
    position: relative;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--live-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--live-color);
    animation: pulse 1.5s infinite;
}

.admin-nav-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
}

.admin-login-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    color: var(--text-dark) !important;
}

.logout-link {
    color: #ef4444 !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Main Layout --- */
.main-content {
    min-height: calc(100vh - 75px - 300px);
    padding: 2rem 0 4rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Hero Banner --- */
.hero-banner {
    position: relative;
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(13, 16, 38, 0.95) 0%, rgba(22, 28, 61, 0.95) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-badge .live-dot {
    animation: pulse 1.2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
    font-size: 1.05rem;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
    color: var(--text-dark);
}

/* --- League Filter Menu --- */
.filter-wrapper {
    margin-bottom: 2rem;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
}

.filter-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

/* --- Section Headings --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.8rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.live-section-title {
    border-left-color: var(--live-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-badge-static {
    background-color: var(--live-color);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* --- Matches Grid and Cards --- */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.match-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, rgba(0, 242, 254, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

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

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-league {
    font-weight: 600;
    color: var(--primary);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.live {
    background: rgba(57, 255, 20, 0.15);
    color: var(--live-color);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.status-badge.upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.ended {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* Card Teams & Score Area */
.card-teams-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

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

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    padding: 5px;
    transition: var(--transition-smooth);
}

.match-card:hover .team-logo {
    border-color: var(--primary);
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.score-display {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-dash {
    color: var(--text-muted);
    font-weight: 400;
}

.score-live-badge {
    background-color: var(--live-color);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.vs-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
}

.match-time {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Card Footer Actions */
.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-countdown {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.countdown-timer {
    color: var(--warning);
    font-weight: 600;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.card-action-btn.btn-watch {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

.card-action-btn.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.4);
}

.card-action-btn.btn-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.card-action-btn.btn-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* Empty State */
.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.no-matches i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- Watch Page Layout --- */
.watch-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-top: 1rem;
}

/* Main Streaming Column */
.stream-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Video Player Wrapper */
.video-player-container {
    position: relative;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16/9;
}

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

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

.no-stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle, var(--bg-surface-solid) 0%, #000 100%);
    gap: 1rem;
}

.no-stream-placeholder i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-stream-placeholder h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* Stream Server Switcher */
.servers-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
}

.servers-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.server-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.server-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.server-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Stream Match Info Card */
.match-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.match-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.match-info-league {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.match-info-teams {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.match-info-teams h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.match-info-teams span {
    color: var(--text-muted);
    font-weight: 700;
}

.match-info-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sidebar Column: Live Chat Panel */
.chat-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    position: sticky;
    top: 90px;
    overflow: hidden;
}

.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--live-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--live-color);
}

.viewer-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Chat Message Logs Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    animation: slideUp 0.25s ease-out;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-username {
    font-weight: 700;
    color: var(--primary);
    margin-right: 0.4rem;
}

.chat-msg:nth-child(even) .chat-username {
    color: var(--secondary);
}

.chat-msg:nth-child(3n) .chat-username {
    color: var(--warning);
}

.chat-text {
    color: var(--text-main);
}

/* Chat Input Footer */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 7, 19, 0.4);
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* --- Admin Panel --- */
.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.admin-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.admin-header-area h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Admin Alert System */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Admin Data Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.2);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-team-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.table-logo-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.badge-live {
    background: rgba(57, 255, 20, 0.15);
    color: var(--live-color);
}

.badge.badge-upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge.badge-ended {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.badge.badge-featured {
    background: rgba(217, 70, 239, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.action-links {
    display: flex;
    gap: 0.75rem;
}

.action-links a {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-edit {
    color: var(--primary);
}

.action-edit:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.action-delete {
    color: #ef4444;
}

.action-delete:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Beautiful Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Login Wrapper */
.login-wrapper {
    max-width: 420px;
    margin: 4rem auto;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-icon-header {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Match Header Component (used in admin and watch pages) */
.stream-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stream-match-display {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stream-team {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stream-team img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.stream-team h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.stream-vs {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.stream-score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Footer Section styling */
.main-footer {
    background: #04050d;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-description {
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.footer-links-group h3, .footer-contact h3 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-group ul a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-group ul a i {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links-group ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links-group ul a:hover i {
    color: var(--primary);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dmca-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-bottom {
    width: 90%;
    max-width: 1400px;
    margin: 3rem auto 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* --- Animations --- */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 12px currentColor;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1100px) {
    .watch-container {
        grid-template-columns: 1fr;
    }
    .chat-panel {
        height: 500px;
        position: static;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.75rem 0;
    }
    .mobile-menu-btn {
        display: block;
        color: var(--text-main);
    }
    .navbar {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-surface-solid);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    .navbar.active {
        display: block;
        animation: slideUp 0.3s ease-out;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .nav-links a {
        padding: 0.75rem 1rem;
    }
    .hero-banner {
        padding: 2.5rem 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .matches-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .stream-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .stream-match-display {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-badge {
        font-size: 0.75rem;
    }
    .card-teams-area {
        margin: 1rem 0;
    }
    .team-logo {
        width: 50px;
        height: 50px;
    }
    .team-name {
        max-width: 90px;
        font-size: 0.85rem;
    }
}

/* --- Watch Page Tabbed Details & Lineups --- */
.info-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.tab-content {
    display: none;
    animation: slideUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

/* Lineups side-by-side grid */
.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.lineup-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.lineup-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lineup-formation {
    font-size: 0.8rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-left: auto;
}

.player-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.player-number {
    width: 24px;
    height: 24px;
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.player-name {
    font-weight: 500;
}

.player-sub-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 0.25rem;
}

/* Highlights embed player tab container */
.highlights-tab-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
    .lineups-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Pagination Controls --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    min-width: 36px;
    height: 36px;
    color: var(--text-main);
}

.pagination-btn:hover:not(.active):not(.disabled) {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .pagination-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Admin Secondary Navigation Tabs --- */
.admin-tabs-nav {
    border-bottom: 1px solid var(--border-color);
}

.admin-tab-link {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.admin-tab-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-link.active {
    color: var(--primary) !important;
    background: rgba(0, 242, 254, 0.08) !important;
    border-color: rgba(0, 242, 254, 0.25) !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* --- TV Guide Channel Switcher --- */
.channel-list-item {
    cursor: pointer;
}

.channel-list-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

.channel-list-item.active {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* --- FIFA World Cup 2026 Countdown Widget --- */
.wc-countdown-banner {
    margin-bottom: 3rem;
}

.wc-countdown-card {
    display: flex;
    background: linear-gradient(135deg, rgba(13, 16, 38, 0.95) 0%, rgba(22, 28, 61, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    align-items: center;
    position: relative;
}

.wc-flags-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(6, 7, 19, 0.95) 0%, rgba(6, 7, 19, 0.6) 100%), 
                      url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?w=600&auto=format&fit=crop&q=60');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.wc-logo-area {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.wc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(255,255,255,0.15));
}

.wc-timer-area {
    flex: 1;
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.wc-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.wc-dates {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.wc-countdown-timer-wrapper {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.wc-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc-time-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    width: 68px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.wc-days-box {
    background: #d90429;
    color: #fff;
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.wc-gray-box {
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wc-time-colon {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    align-self: flex-start;
    margin-top: 12px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.wc-time-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.4rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .wc-countdown-card {
        flex-direction: column;
        text-align: center;
    }
    
    .wc-logo-area {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .wc-timer-area {
        padding: 1.5rem;
        align-items: center;
    }
    
    .wc-countdown-timer-wrapper {
        justify-content: center;
    }
}
