/* Video Player Page Styles - Dark Theme */

body {
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Match Info */
.match-info {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    border: 1px solid #2a2a2a;
}

.match-teams-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
}

.match-teams-header .team {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-teams-header .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.match-teams-header .team span {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.match-teams-header .vs {
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.match-details {
    text-align: center;
    color: #999;
    margin: 10px 0 0 0;
}

.match-info h1 {
    text-align: center;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.event-logo-header {
    text-align: center;
    margin-bottom: 20px;
}

.event-logo-header img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
}

/* Video Player */
.video-player {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sources List */
.sources-container {
    background: #1a1a1a;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
    margin-bottom: 25px;
}

.sources-container h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.sources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.source-btn {
    padding: 14px 18px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.source-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.source-btn.active {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

.source-btn .premium-badge {
    font-size: 14px;
    margin-right: 4px;
}

/* Player Banner Ad */
.player-banner-ad {
    margin: 25px auto;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-banner-ad a {
    display: block;
    width: 100%;
    max-width: 970px;
}

.player-banner-ad img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Modal Ad (On-Demand) */
.modal-ad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.popup-countdown {
    position: absolute;
    top: 15px;
    right: 60px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.modal-ad-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: slideIn 0.4s;
}

.modal-ad-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-ad-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.modal-ad-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

/* Video Intro Ad */
.video-intro-ad {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.video-intro-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-intro-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skip-ad-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.skip-ad-btn:hover {
    background: white;
    color: black;
}

.ad-clickable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Popup Banner Ad */
.popup-banner-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-banner-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: slideIn 0.3s ease;
}

.popup-banner-content img {
    max-width: 970px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.popup-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .match-teams-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .match-teams-header .vs {
        transform: rotate(90deg);
    }
    
    .source-buttons {
        grid-template-columns: 1fr;
    }
}
