/**
 * CD Video Home - Estilos
 *
 * @author    Custom Development
 * @copyright Custom Development
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0
 */

.cdvideohome-wrapper {
    padding: 40px 0;
    background-color: #f8f8f8;
}

.cdvideohome-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.cdvideohome-player-container {
    max-width: 800px;
    margin: 0 auto;
}

.cdvideohome-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

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

.cdvideohome-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: #222;
    border-radius: 0 0 4px 4px;
}

.cdvideohome-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.cdvideohome-btn:hover {
    opacity: 0.8;
}

.cdvideohome-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.cdvideohome-volume-slider {
    width: 100px;
    height: 4px;
    cursor: pointer;
    accent-color: #fff;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 2px;
    outline: none;
}

.cdvideohome-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.cdvideohome-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

.cdvideohome-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .cdvideohome-wrapper {
        padding: 25px 0;
    }

    .cdvideohome-title {
        font-size: 1.2rem;
    }

    .cdvideohome-volume-slider {
        width: 70px;
    }
}
