/* Video Player Styles */

#player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 50;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#video-player:fullscreen {
    width: 100vw;
    height: 100vh;
}

#player-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to video if needed */
}

/* Loading Overlay */
.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 60;
}

/* Stream Info Overlay */
.player-info {
    position: absolute;
    top: 3.7vh;
    left: 2.08vw;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 55;
    max-width: 31.25vw;
}

.player-info-logo {
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
}

.player-info-content {
    display: flex;
    flex-direction: column;
}

.player-info-text {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.player-info-group {
    font-size: 18px;
    color: #B0B0B0;
}

.player-quality-indicator {
    font-size: 14px;
    color: #2196F3;
    margin-top: 5px;
}

/* Error Overlay */
.player-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 40px;
    background-color: #1a1a1a;
    border: 2px solid #F44336;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 70;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.player-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.player-error-message {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.player-error-hint {
    font-size: 18px;
    color: #B0B0B0;
}

/* Controls Hint Overlay */
.player-controls-hint {
    position: absolute;
    bottom: 3.7vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 18px;
    z-index: 55;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.player-controls-hint span {
    margin: 0 10px;
}

/* Player Controls Overlay */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13.89vh;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.85vh 2.08vw;
    z-index: 60;
}

.player-controls .progress-bar {
    width: 100%;
    height: 8px;
    background: #424242;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.player-controls #seek-bar {
    width: 100%;
    height: 8px;
    cursor: pointer;
}

.player-controls .time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #B0B0B0;
    margin-bottom: 10px;
}

.player-controls .control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-controls .btn-player {
    background: #2196F3;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.player-controls .btn-player.focused {
    border-color: white;
    transform: scale(1.1);
    background-color: #1976D2;
}
