/**
 * Watch Page Styles - Clean & Optimized
 * All text visible with proper contrast
 */

/* Base */
.modern-watch-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: 100vh;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.modern-watch-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.modern-watch-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-watch-header.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modern-watch-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 50px;
}

.modern-watch-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.modern-watch-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.modern-watch-logo i {
    font-size: 28px;
    color: #3b82f6;
}

.modern-watch-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}



/* Badges */
.modern-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ef4444;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.modern-live-badge .live-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.modern-upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f59e0b;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

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



/* Layout */
.modern-video-container {
    padding: 20px 0 40px;
}

.modern-watch-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}



/* Player Wrapper */
.modern-player-wrapper {
    position: relative;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 24px;
}

.modern-video-aspect {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000000;
}

/* CRITICAL: Force video and Plyr to be visible */
.modern-video-aspect video,
.modern-video-aspect iframe,
.modern-video-aspect .plyr,
.modern-video-aspect .plyr__video-wrapper,
.modern-video-aspect .plyr video,
#modern-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.plyr--video {
    height: 100% !important;
    background: #000 !important;
}

.plyr__video-wrapper {
    height: 100% !important;
    background: #000 !important;
}

/* Plyr controls styling */
.plyr--full-ui input[type=range] { color: #3b82f6; }
.plyr__control--overlaid { background: rgba(59, 130, 246, 0.9) !important; }
.plyr--video .plyr__control:hover { background: #3b82f6; }
.plyr__controls { z-index: 50 !important; }

/* Server Selector */
.modern-server-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.server-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.server-header h3 i {
    color: #60a5fa;
}

.server-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

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

.modern-server-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modern-server-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.modern-server-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
}

.server-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-icon i {
    font-size: 14px;
    color: #ffffff;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.server-quality {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.server-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Single Server Info */
.single-server-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    margin-bottom: 24px;
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
}

/* Sidebar */
.modern-watch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}

.modern-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.modern-sidebar-card h3 i {
    color: #60a5fa;
}



/* Other Matches */
.modern-other-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-other-match-item {
    display: block;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-other-match-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    transform: translateX(4px);
}

.other-match-header {
    margin-bottom: 8px;
}

.mini-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #ef4444;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
}

.mini-live-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.mini-upcoming-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.modern-other-match-teams {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 6px;
}

.modern-other-match-teams span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 12px;
}

.modern-other-match-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.modern-other-match-time i {
    margin-right: 6px;
    color: #60a5fa;
}

/* No Stream */
.modern-no-stream {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px 20px;
}

.no-stream-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(96, 165, 250, 0.3);
}

.no-stream-icon i {
    font-size: 32px;
    color: #60a5fa;
}

.modern-no-stream h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.modern-no-stream p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.stream-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: #fbbf24;
    font-weight: 500;
    font-size: 13px;
}

/* Ads */
.ad-container {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
}

.ad-container script { display: none !important; }

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .modern-watch-layout {
        grid-template-columns: 1fr;
    }
    
    .modern-watch-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .modern-watch-header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .modern-server-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-watch-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Desktop Video Height */
@media (min-width: 1024px) {
    .modern-video-aspect {
        padding-bottom: 0;
        height: 550px;
        max-height: 65vh;
    }
    
    .modern-watch-sidebar {
        position: sticky;
        top: 80px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .modern-video-aspect {
        padding-bottom: 0;
        height: 420px;
    }
}
