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

:root {
    --bg-primary: #1a2d4d;
    --bg-secondary: #142640;
    --bg-card: #1c365c;
    --bg-hover: #243a5c;
    --text-primary: #ffffff;
    --text-secondary: #d5deea;
    --text-muted: #9aadc4;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #5b9cff;
    --accent-blue: #2d6fe6;
    --accent-yellow: #8eb6ff;
    --border-color: #2e4a6e;
    --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: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: 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-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.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(91, 156, 255, 0.12);
}

.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: 380px 1fr;
    gap: 24px;
}

.video-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}
.video-section .video-container {
    flex: 1;
    min-width: 0;
}

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

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

@supports (aspect-ratio: 16 / 9) {
    .video-player {
        height: auto;
        padding-bottom: 0;
    }
}

.video-placeholder {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    background: linear-gradient(180deg, #142640 0%, #1a2d4d 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;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    z-index: 1;
}

#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);
}

.promo-bar {
    background: linear-gradient(180deg, #5b9cff 0%, #2d6fe6 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(45, 111, 230, 0.45);
    }
    50% {
        box-shadow: 0 0 25px rgba(45, 111, 230, 0.7);
    }
}

.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);
}

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

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

.tab-btn {
    flex: 1;
    padding: 14px 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn svg {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

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

.tab-btn:hover svg { opacity: 0.8; }

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

.tab-btn.active svg {
    opacity: 1;
    color: var(--accent-orange);
}

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

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 10px 10px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.sidebar-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

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

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

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

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.match-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(91, 156, 255, 0.3);
}

.match-card.active {
    background: rgba(91, 156, 255, 0.08);
    border-color: var(--accent-orange);
}

.match-card-inner {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
}

.match-team-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.match-team-logo .team-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

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

.match-teams-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0.3px;
}

.match-live-badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-red);
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: livePulse 2s ease-in-out infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: liveDotBlink 1.2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.match-starting-badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #5b9cff 0%, #2d6fe6 100%);
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    animation: startingPulse 1.5s ease-in-out infinite;
}

@keyframes startingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.match-time-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-orange);
}

.match-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.match-date-label {
    display: inline-flex;
    align-items: center;
}

.match-date-time {
    font-weight: 600;
    opacity: 0.8;
}

.match-date-live {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    color: var(--accent-red);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.match-date-starting {
    background: linear-gradient(90deg, rgba(91, 156, 255, 0.2), rgba(91, 156, 255, 0.08));
    color: var(--accent-orange);
    border-bottom: 1px solid rgba(91, 156, 255, 0.15);
}

.match-date-today {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: var(--accent-green);
    border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.match-date-tomorrow {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: var(--accent-blue);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.match-date-date {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.match-channel-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2px 12px 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.match-channel-info svg {
    opacity: 0.4;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}

.channel-list {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.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-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: 0.3px;
}

.ch-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

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

.ch-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ch-row.active {
    background: rgba(91, 156, 255, 0.12);
    border-left: 3px solid var(--accent-orange);
}

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

.ch-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.ch-row.active .ch-name { color: var(--accent-orange); }

.ch-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.ch-live-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--accent-red);
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.ch-row-logo {
    height: 30px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
}

.ch-row-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ch-row-live {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.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;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    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);
    border-right: 2px solid rgba(34, 197, 94, 0.3);
}

.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-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: rgba(91, 156, 255, 0.15);
    color: var(--accent-orange);
}

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

.empty-state {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

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

@media (max-width: 1024px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        height: 70px;
    }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; border-radius: 12px; order: 0; }
    .main-content { padding: 24px; }
    .tab-content { max-height: none; }
}

@media (max-width: 640px) {
    .header-container { padding: 0 16px; height: 60px; }
    .main-content { padding: 12px; }
    .video-controls { flex-direction: column; gap: 12px; align-items: flex-start; }
    .sidebar { border-radius: 10px; }
    .sidebar-tabs { padding: 0; }
    .tab-btn { padding: 12px 6px; font-size: 11px; }
    .sidebar-search { margin: 8px 8px 0; padding: 7px 10px; }
    .match-list-container { padding: 4px; gap: 4px; }
    .match-card { border-radius: 8px; }
    .match-card-inner { padding: 10px 12px; gap: 10px; }
    .match-team-logo { width: 30px; height: 30px; }
    .match-team-logo .team-logo { width: 30px; height: 30px; }
    .match-team-logo .team-initial { width: 30px; height: 30px; font-size: 12px; }
    .match-teams-text { font-size: 12px; font-weight: 600; }
    .match-channel-info { padding: 0 12px 8px; font-size: 10px; }
    .match-live-badge { font-size: 9px; padding: 2px 10px; }
    .match-starting-badge { font-size: 9px; padding: 2px 10px; }
    .match-time-text { font-size: 11px; }
    .match-date-bar { font-size: 8px; padding: 2px 10px; }
    .ch-row { padding: 12px 14px; gap: 10px; }
    .ch-name { font-size: 12px; }
    .ch-logo { height: 26px; max-width: 75px; }
    .ch-live-badge { font-size: 9px; padding: 4px 10px; }
    .ch-right { gap: 8px; }
    .mobile-slide-menu { width: 280px; }
}

#hlsPlayer {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    z-index: 1;
}

#hlsPlayer.active {
    display: block;
}

#overlayContainer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5;
    isolation: isolate;
}

#overlayContainer a,
#overlayContainer div {
    pointer-events: auto;
}

#playerContainer:fullscreen,
#playerContainer:-webkit-full-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.mobile-fs-close {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 52;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.video-player.mobile-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    z-index: 10000 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    overflow: hidden !important;
}

.video-player.mobile-fullscreen .mobile-fs-close {
    display: flex;
}

.video-player.mobile-fullscreen.controls-visible .mobile-fs-close {
    opacity: 1;
    pointer-events: auto;
}

.video-player.mobile-fullscreen #hlsPlayer.active,
.video-player.mobile-fullscreen #streamFrame.active {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
}

.video-player.mobile-fullscreen .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player.mobile-fullscreen .player-controls {
    z-index: 51;
}

.video-player.mobile-fullscreen #overlayContainer {
    z-index: 49;
}

.video-player.mobile-fullscreen .loading-spinner {
    z-index: 50;
}

.video-player.mobile-fullscreen .player-overlay {
    z-index: 50;
}

body.mobile-player-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

#playerContainer:fullscreen #streamFrame,
#playerContainer:-webkit-full-screen #streamFrame {
    z-index: 1;
}

#playerContainer:fullscreen #hlsPlayer,
#playerContainer:-webkit-full-screen #hlsPlayer {
    z-index: 1;
}

#playerContainer:fullscreen #overlayContainer,
#playerContainer:-webkit-full-screen #overlayContainer {
    z-index: 9;
}

.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;
    pointer-events: none;
}

.video-player.controls-visible .player-controls {
    opacity: 1;
    pointer-events: auto;
}

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

.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 {
    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;
}

.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;
    top: 0; right: 0; bottom: 0; left: 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;
}

.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;
    top: 0; right: 0; bottom: 0; left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 8;
    pointer-events: none;
}

.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); }
}

@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 {
    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; }
}

#prerollOverlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

#prerollOverlay video,
#prerollOverlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preroll-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.preroll-countdown-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.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; }
}

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

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

.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);
}

#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(180deg, #5b9cff 0%, #2d6fe6 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(45, 111, 230, 0.4);
    transition: all 0.3s ease;
}

.popup-register-btn:hover {
    background: linear-gradient(180deg, #6aa6ff 0%, #3b7cf0 100%);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .popup-modal-container { max-width: 95%; }
    .popup-modal-close { top: -10px; right: -10px; width: 32px; height: 32px; }
    .popup-register-btn { padding: 14px 24px; font-size: 16px; }
}

.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:not(.bottom-nav-logo):hover {
    color: var(--accent-orange);
    background: rgba(91, 156, 255, 0.12);
}

.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-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-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; }
}

.watermark-container {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 8;
    overflow: hidden;
}

.watermark-item {
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.watermark-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.watermark-item.watermark-bottom-full {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
}

.watermark-item.watermark-bottom-full img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: fill !important;
    display: block;
}

.player-banner-overlay {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-banner-overlay.hidden { display: none; }

.player-banner-overlay a,
.player-banner-overlay .banner-img-wrap {
    display: block;
    pointer-events: auto;
    line-height: 0;
    max-width: 90%;
}

.player-banner-overlay img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    display: block;
    object-fit: contain;
}

.video-player.controls-visible .player-banner-overlay {
    opacity: 0;
}

.mobile-app-banner {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 150;
    background: linear-gradient(135deg, #0b1228 0%, #111d3a 40%, #162545 70%, #1a2d50 100%);
    padding: 16px 16px 14px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(calc(100% + 62px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.mobile-app-banner.visible {
    transform: translateY(0);
}

.mobile-app-banner-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.mobile-app-banner-close:hover,
.mobile-app-banner-close:active {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.mobile-app-banner-content {
    display: flex;
    align-items: flex-end;
}

.mobile-app-banner-left {
    flex: 1;
    padding-right: 10px;
    padding-top: 20px;
}

.mobile-app-banner-text {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 14px;
    font-weight: 400;
}

.mobile-app-banner-text strong {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-app-banner-btn {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    background: linear-gradient(180deg, #5b9cff 0%, #2d6fe6 100%);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(91, 156, 255, 0.3);
}

.mobile-app-banner-btn:hover,
.mobile-app-banner-btn:active {
    background: linear-gradient(180deg, #6aa6ff 0%, #3b7cf0 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 156, 255, 0.4);
}

.mobile-app-banner-dismiss {
    display: flex;
    align-items: center;
    margin-top: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-app-banner-dismiss input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #2d6fe6;
    border-radius: 3px;
}

.mobile-app-banner-dismiss span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.mobile-app-banner-right {
    flex-shrink: 0;
    text-decoration: none;
}

.mobile-app-banner-phone {
    height: 160px;
    width: auto;
    display: block;
    margin-top: -55px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

@media (min-width: 769px) {
    .mobile-app-banner { display: none !important; }
}

@media (max-width: 768px) {
    .mobile-app-banner { display: block; }
}

@media (max-width: 380px) {
    .mobile-app-banner-text { font-size: 13px; }
    .mobile-app-banner-btn { font-size: 12px; padding: 8px 20px; }
    .mobile-app-banner-phone { height: 130px; margin-top: -40px; }
}

/* ─── Banner Position Containers ─────────────────────────────────────── */
.banner-position-container {
    width: 100%;
    text-align: center;
    overflow: hidden;
}
.banner-position-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.position-banner-item {
    margin-bottom: 8px;
}
.position-banner-item:last-child {
    margin-bottom: 0;
}

.banner-header {
    padding: 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-player-top {
    margin-bottom: 8px;
}

.banner-player-bottom {
    margin-top: 8px;
}

.banner-footer-top {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-side {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    position: sticky;
    top: 16px;
}
.banner-side img {
    border-radius: 8px;
}

.banner-left {
    margin-right: 12px;
}
.banner-right {
    margin-left: 12px;
}

@media (max-width: 1200px) {
    .banner-side {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .banner-header,
    .banner-footer-top {
        padding: 8px 12px;
    }
}

@keyframes unmutePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
