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

:root {
    --bg-primary: #0b132a;
    --bg-secondary: #12193a;
    --bg-card: #1a2344;
    --bg-hover: #243054;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #ec8032;
    --accent-blue: #3b82f6;
    --accent-yellow: #eab308;
    --border-color: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}

.logo svg {
    color: var(--accent-green);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--accent-orange);
    background: rgba(236, 128, 50, 0.1);
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.video-placeholder svg {
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 14px;
    text-align: center;
    max-width: 300px;
}

.video-placeholder.hidden {
    display: none;
}

#streamFrame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

#streamFrame.active {
    display: block;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

.match-title {
    font-size: 14px;
    font-weight: 500;
}

.control-buttons {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: var(--bg-hover);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--accent-orange);
}

.top-banner {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    border: 1px solid var(--accent-orange);
    border-radius: 16px 16px 0 0;
    padding: 14px 24px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(236, 128, 50, 0.08) 50%, transparent 100%);
    pointer-events: none;
}

.top-banner:hover {
    opacity: 0.9;
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.top-banner-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.top-banner-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.top-banner-text strong {
    color: var(--accent-orange);
    font-weight: 700;
}

.top-banner-highlight {
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent-orange);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-bar {
    background: linear-gradient(135deg, #ec8032 0%, #d97028 100%);
    padding: 14px 20px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    margin-top: 1px;
    animation: promo-pulse 3s infinite;
}

@keyframes promo-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(26, 84, 144, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(26, 84, 144, 0.8);
    }
}

.promo-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-info-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.team-logo {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.vs-badge {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 8px;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.match-time {
    background: var(--accent-green);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}

.match-league {
    color: var(--text-secondary);
    font-size: 13px;
}

.sidebar {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 94px;
}

.sidebar-banner {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-banner a {
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}

.sidebar-banner a:hover {
    opacity: 0.9;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 16px 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 3px 3px 0 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.tab-content {
    display: none;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

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

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tab-content::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

.match-list-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-card {
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.match-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 128, 50, 0.15);
}

.match-card.active {
    background: rgba(236, 128, 50, 0.12);
}

.match-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    position: relative;
}

.match-left-section {
    display: flex;
    flex-shrink: 0;
}

.match-center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-time-center {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.3px;
    text-align: center;
}

.match-time-center.live-label {
    color: var(--accent-red);
    font-weight: 900;
    text-transform: uppercase;
}

.match-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: var(--accent-red);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.match-live-badge-center {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: var(--accent-red);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.match-time-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-orange);
    text-align: center;
    letter-spacing: 0.3px;
}

.match-right-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.match-teams-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.team-logo-box {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-logo-box .team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.team-logo-box .team-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
}

.team-name-full {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.match-card-footer svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.channel-info {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.channel-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.channel-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    flex-shrink: 0;
}

.channel-logo {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.channel-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.channel-status {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    flex-shrink: 0;
}

.channel-status.live {
    background: #dc2626;
    color: white;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.mobile-slide-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.mobile-menu-logo svg {
    color: var(--accent-green);
}

.mobile-menu-close {
    background: var(--bg-hover);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--accent-red);
}

.mobile-menu-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-menu-item.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.mobile-menu-item svg {
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.mobile-menu-footer p {
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .main-content {
        padding: 24px;
    }

    .sidebar-tabs {
        background: var(--bg-card);
    }

    .tab-btn {
        padding: 16px 12px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .tab-content {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }

    .logo span {
        font-size: 16px;
    }

    .main-content {
        padding: 12px;
    }

    .video-controls {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .teams-display {
        flex-direction: row;
    }

    .team-logo {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .team-name {
        font-size: 14px;
    }

    .team-name-full {
        font-size: 14px;
    }

    .match-info-card {
        padding: 16px;
    }

    .sidebar {
        border-radius: 12px;
    }

    .sidebar-banner {
        margin-bottom: 8px;
    }

    .sidebar-tabs {
        overflow-x: auto;
        border-radius: 10px;
        margin: 0 8px;
        background: var(--bg-secondary);
        border: 2px solid var(--border-color);
    }

    .tab-btn {
        white-space: nowrap;
        padding: 16px 8px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .tab-btn.active {
        color: var(--accent-orange);
        background: rgba(236, 128, 50, 0.08);
    }

    .tab-btn.active::after {
        width: 60%;
        height: 4px;
    }

    .search-box {
        margin: 10px 8px;
        padding: 10px 14px;
    }

    .tab-content {
        max-height: 460px;
        overflow-y: auto;
    }

    .match-list-container {
        padding: 6px;
        gap: 4px;
    }

    .match-card {
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .match-card-body {
        padding: 8px 8px;
        gap: 6px;
    }

    .team-logo-box {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .match-teams-row {
        font-size: 11px;
        gap: 3px;
    }

    .match-time-center {
        font-size: 12px;
    }

    .match-live-badge-center {
        font-size: 9px;
        padding: 2px 8px;
    }

    .match-card-footer {
        padding: 6px 8px;
    }

    .channel-info {
        font-size: 9px;
    }

    .channel-list {
        padding: 8px;
        gap: 8px;
    }

    .channel-item {
        padding: 14px 12px;
        border-radius: 10px;
        gap: 10px;
    }

    .channel-play-icon {
        width: 28px;
        height: 28px;
    }

    .channel-play-icon svg {
        width: 16px;
        height: 16px;
    }

    .channel-name {
        font-size: 12px;
    }

    .channel-logo {
        height: 28px;
        max-width: 90px;
    }

    .mobile-slide-menu {
        width: 280px;
    }
}

.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    flex-direction: column;
    gap: 8px;
}

.nav-menu-mobile.active {
    display: flex;
}

.nav-menu-mobile .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
}

#hlsPlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}

#hlsPlayer.active {
    display: block;
}

#frameCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    object-fit: contain;
}

#frameCanvas.active {
    display: block;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 40px 16px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-player:hover .player-controls,
.video-player.controls-visible .player-controls {
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 12px;
}

.progress-bar:hover {
    height: 7px;
}

.progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-orange);
    border-radius: 3px;
    width: 0%;
    z-index: 2;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    width: 0%;
    z-index: 1;
}

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

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

.player-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}

.controls-left:hover .volume-slider-wrapper,
#muteBtn:focus + .volume-slider-wrapper {
    width: 80px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    padding: 4px 10px;
    background: var(--accent-red);
    border-radius: 4px;
    margin-left: 8px;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.video-player:hover .player-overlay.visible,
.player-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.big-play-btn {
    background: rgba(59, 130, 246, 0.9);
    border: none;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.big-play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-orange);
}

.big-play-btn svg {
    margin-left: 4px;
}

.loading-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 15;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-player.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    aspect-ratio: auto;
    border-radius: 0;
}

@media (max-width: 640px) {
    .player-controls {
        padding: 30px 12px 8px;
    }

    .controls-left,
    .controls-right {
        gap: 4px;
    }

    .player-btn {
        padding: 6px;
    }

    .volume-slider-wrapper {
        display: none;
    }

    .time-display {
        font-size: 10px;
        padding: 3px 6px;
    }

    .big-play-btn {
        width: 60px;
        height: 60px;
    }

    .big-play-btn svg {
        width: 40px;
        height: 40px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    padding: 48px 0 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    background: var(--bg-secondary);
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.age-badge {
    background: var(--accent-red);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    border: 2px solid white;
}

.footer-disclaimer {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}

.footer-warning {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px 32px;
    }
}

@media (max-width: 640px) {
    .footer {
        margin-top: 40px;
        padding: 32px 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px 24px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-bottom {
        padding: 20px 16px;
        text-align: center;
    }

    .footer-warning {
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

.p2p-stats {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 20;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.p2p-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.p2p-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: p2p-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

@keyframes p2p-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.p2p-label {
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.p2p-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.p2p-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p2p-stat .stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.p2p-stat .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 35px;
}

#p2pSavings {
    color: var(--accent-green) !important;
}

@media (max-width: 640px) {
    .p2p-stats {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        gap: 8px;
        font-size: 10px;
    }

    .p2p-indicator {
        padding-right: 8px;
    }

    .p2p-details {
        gap: 10px;
    }

    .p2p-stat .stat-value {
        min-width: 28px;
    }
}

.preroll-ad-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preroll-ad-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preroll-ad-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.preroll-ad-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.preroll-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.preroll-ad-overlay .preroll-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ad-countdown-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 52;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ad-countdown-badge span:first-child {
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#adCountdownTimer {
    background: var(--accent-orange);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ad-countdown-badge.hidden {
    display: none;
}

.skip-ad-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    z-index: 52;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skip-ad-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.skip-ad-btn.hidden {
    display: none;
}

@media (max-width: 768px) {
    .ad-countdown-badge {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    #adCountdownTimer {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .skip-ad-btn {
        bottom: 12px;
        right: 12px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

.popup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-modal-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    animation: scaleIn 0.3s ease;
}

.popup-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-red);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.popup-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.popup-modal-link {
    display: block;
}

#popupModalBanner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.popup-register-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.popup-register-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.popup-register-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .popup-modal-container {
        max-width: 95%;
    }

    .popup-modal-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
    }

    .popup-modal-close svg {
        width: 16px;
        height: 16px;
    }

    .popup-register-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-top: 2px solid var(--border-color);
    padding: 6px 8px max(6px, env(safe-area-inset-bottom)) 8px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 4px;
        height: 60px;
    }

    body {
        padding-bottom: 60px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 70px;
}

.bottom-nav-item svg {
    transition: all 0.3s ease;
}

.bottom-nav-item:not(.bottom-nav-logo):hover {
    color: var(--accent-orange);
    background: rgba(236, 128, 50, 0.1);
}

.bottom-nav-item:not(.bottom-nav-logo).active {
    color: var(--accent-orange);
}

.bottom-nav-item.active svg {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.bottom-nav-item span {
    letter-spacing: 0.3px;
    text-align: center;
}

.bottom-nav-logo {
    position: relative;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.bottom-nav-logo-circle {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 0 0 4px var(--bg-secondary),
                0 0 0 6px var(--accent-orange);
    position: relative;
    top: -28px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bottom-nav-logo:hover .bottom-nav-logo-circle {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 32px rgba(236, 128, 50, 0.4),
                0 0 0 4px var(--bg-secondary),
                0 0 0 6px var(--accent-orange);
}

.bottom-nav-logo-circle svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bottom-nav-logo-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

@media (max-width: 480px) {
    .bottom-nav-item {
        max-width: 60px;
        padding: 5px 2px;
        font-size: 9px;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-logo-circle {
        width: 56px;
        height: 56px;
        top: -24px;
    }

    .bottom-nav-logo-circle svg {
        width: 28px;
        height: 28px;
    }

    .bottom-nav-logo-circle img {
        width: 90%;
        height: 90%;
    }
}

/* Channels Page Styles */
.channels-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.channels-page-header {
    text-align: center;
    margin-bottom: 48px;
}

.channels-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.channels-page-title svg {
    color: var(--accent-orange);
}

.channels-page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.channels-loading,
.channels-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.channels-loading .spinner,
.channels-empty svg {
    margin: 0 auto 20px;
}

.channels-empty svg {
    color: var(--text-secondary);
    opacity: 0.3;
}

.channels-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.channels-empty p {
    font-size: 14px;
    color: var(--text-secondary);
}

.channel-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(236, 128, 50, 0.2);
    border-color: var(--accent-orange);
}

.channel-card-inner {
    display: flex;
    flex-direction: column;
}

.channel-card-logo-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(135deg, rgba(236, 128, 50, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    overflow: hidden;
}

.channel-card-logo,
.channel-card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.channel-card-logo {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.channel-card-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(236, 128, 50, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
    border: 3px solid var(--accent-orange);
}

.channel-card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.channel-card:hover .channel-card-play-overlay {
    opacity: 1;
}

.channel-card-play-overlay svg {
    color: var(--accent-orange);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.channel-card-live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-red);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.channel-card-info {
    padding: 20px;
    background: var(--bg-secondary);
}

.channel-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-player-modal.active {
    display: flex;
}

.video-player-modal-content {
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    max-height: 800px;
    position: relative;
}

.close-player-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-player-modal:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.close-player-modal svg {
    color: white;
}

.channel-info-overlay {
    padding: 20px;
}

.channel-name-overlay {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.video-player-modal .video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-player-modal .hls-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-player-modal .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    z-index: 10;
}

.video-player-modal .controls-top {
    display: flex;
    justify-content: flex-start;
}

.video-player-modal .controls-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.video-player-modal .control-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.video-player-modal .control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    flex-shrink: 0;
}

.video-player-modal .control-btn:hover,
.video-player-modal .control-btn:active {
    background: var(--accent-orange);
}

.video-player-modal .control-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.video-player-modal .volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    flex-shrink: 0;
}

.video-player-modal .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
}

.video-player-modal .volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    border: none;
}

.video-player-modal .player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
}

.video-player-modal .player-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.video-player-modal .big-play-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.video-player-modal .big-play-btn:hover,
.video-player-modal .big-play-btn:active {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.video-player-modal .loading-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 15;
}

.video-player-modal .loading-spinner.active {
    display: flex;
}

.video-player-modal .preroll-ad-overlay {
    z-index: 20;
}

@media (max-width: 1024px) {
    .channels-page-container {
        padding: 30px 16px;
    }

    .channels-page-header {
        margin-bottom: 32px;
    }

    .channels-page-title {
        font-size: 28px;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .video-player-modal-content {
        height: 95vh;
    }

    .close-player-modal {
        top: -45px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .channels-page-container {
        padding: 24px 12px 80px;
    }

    .channels-page-header {
        margin-bottom: 24px;
    }

    .channels-page-title {
        font-size: 24px;
        gap: 8px;
    }

    .channels-page-title svg {
        width: 24px;
        height: 24px;
    }

    .channels-page-subtitle {
        font-size: 14px;
    }

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

    .channel-card {
        border-radius: 12px;
    }

    .channel-card-placeholder {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }

    .channel-card-info {
        padding: 14px;
    }

    .channel-card-name {
        font-size: 14px;
    }

    .channel-card-play-overlay svg {
        width: 40px;
        height: 40px;
    }

    .video-player-modal {
        padding: 0;
        background: #000;
    }

    .video-player-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        position: relative;
    }

    .video-player-modal .video-player {
        border-radius: 0;
        width: 100%;
        height: 100%;
        position: relative;
        display: block;
    }

    .video-player-modal .hls-player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: calc(100% - 70px) !important;
        object-fit: contain;
        background: #000;
        display: block !important;
    }

    .video-player-modal .video-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(0, 0, 0, 0.95);
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .video-player-modal .controls-top {
        display: none;
    }

    .video-player-modal .controls-bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .video-player-modal .control-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .video-player-modal .control-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        background: rgba(255, 255, 255, 0.1);
    }

    .video-player-modal .control-btn svg {
        width: 22px;
        height: 22px;
    }

    .video-player-modal .volume-slider {
        width: 50px;
    }

    .video-player-modal .player-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 70px;
        height: auto;
    }

    .video-player-modal .big-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-player-modal .big-play-btn svg {
        width: 50px;
        height: 50px;
    }

    .video-player-modal .loading-spinner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 70px;
        height: auto;
    }

    .video-player-modal .preroll-ad-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 70px;
        height: auto;
    }

    .close-player-modal {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.7);
        z-index: 100;
    }

    .channel-name-overlay {
        font-size: 16px;
    }

    .channel-info-overlay {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 0;
        z-index: 50;
    }
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-page-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.match-page-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
}

.match-page-card-inner {
    padding: 20px;
    position: relative;
}

.match-page-date {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.match-page-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.match-page-team-logo-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.match-page-team-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.match-page-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-page-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.match-page-live-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.match-page-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.match-page-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.match-page-channel svg {
    color: var(--accent-orange);
}

.match-page-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-page-card:hover .match-page-play-overlay {
    opacity: 1;
}

.match-page-play-overlay svg {
    color: white;
    transition: transform 0.3s ease;
}

.match-page-card:hover .match-page-play-overlay svg {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .match-page-card-inner {
        padding: 16px;
    }

    .match-page-team-logo-box {
        width: 56px;
        height: 56px;
    }

    .match-page-team-logo {
        width: 40px;
        height: 40px;
    }

    .match-page-team-placeholder {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .match-page-team-name {
        font-size: 12px;
    }

    .match-page-vs {
        min-width: 60px;
    }

    .match-page-time {
        font-size: 16px;
    }

    .match-page-live-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .match-page-play-overlay {
        opacity: 0;
    }

    .match-page-play-overlay svg {
        width: 40px;
        height: 40px;
    }
}
