/* assets/css/player-styles.css */
.wpvt-player-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Ancho máximo para el reproductor */
    margin: 20px auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

.wpvt-video-player {
    width: 100%;
    height: auto;
    display: block;
}

/* New: Ensure video fills its container when in fullscreen */
.wpvt-player-container:-webkit-full-screen .wpvt-video-player,
.wpvt-player-container:-moz-full-screen .wpvt-video-player,
.wpvt-player-container:-ms-fullscreen .wpvt-video-player,
.wpvt-player-container:fullscreen .wpvt-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps aspect ratio, adds black bars if necessary */
    /* If they want it to crop to fill, use object-fit: cover; */
}

.wpvt-custom-controls {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #222;
    color: #fff;
    gap: 10px;
    border-top: 1px solid #333;
}

.wpvt-custom-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpvt-custom-controls button:hover {
    background-color: #444;
}

.wpvt-custom-controls svg {
    width: 24px;
    height: 24px;
}

.wpvt-progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #555;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wpvt-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.wpvt-time-display {
    font-size: 0.9em;
    min-width: 90px;
    text-align: right;
}

.wpvt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.wpvt-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wpvt-overlay-play-btn {
    background-color: rgba(0, 123, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.wpvt-overlay-play-btn:hover {
    transform: scale(1.05);
    background-color: rgba(0, 123, 255, 1);
}

.wpvt-overlay-play-btn svg {
    width: 48px;
    height: 48px;
    margin-left: 5px; /* Ajuste para que el triángulo parezca centrado */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpvt-player-container {
        margin: 10px auto;
        border-radius: 8px;
    }

    .wpvt-custom-controls {
        padding: 8px 10px;
        flex-wrap: wrap;
    }

    .wpvt-custom-controls button {
        padding: 6px;
    }

    .wpvt-custom-controls svg {
        width: 20px;
        height: 20px;
    }

    .wpvt-time-display {
        font-size: 0.8em;
        min-width: 70px;
    }

    .wpvt-overlay-play-btn {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }

    .wpvt-overlay-play-btn svg {
        width: 36px;
        height: 36px;
    }
}
