/* Watch Page Layout & Player Styles */
.watch-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.watch-title-header {
    margin-bottom: 10px;
}

.watch-video-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Side by Side Player & Player Ad */
.watch-player-ad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 900px) {
    .watch-player-ad-grid {
        grid-template-columns: 1fr 340px;
    }
}


.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;  /* replaces padding-top hack */
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.player-container video,
.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-container video {
    object-fit: contain;
}

/* Preroll Ad Container Overlay */
.preroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.skip-ad-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    z-index: 60;
}

.skip-ad-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

/* Adjacent Player Ad Box */
.player-adjacent-ad {
    background: repeating-linear-gradient(
        -45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #242424 10px,
        #242424 20px
    );
    border: 1px solid var(--border-color);
    border-radius: 3px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

/* Video Stats & Action Bar */
.watch-stats-bar {
    background: #181818;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #ccc;
}

.watch-stats-views {
    font-weight: bold;
    color: #fff;
}

/* Tag Pill Cloud */
.watch-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}
