/**
 * ============================================
 * Video Player - Custom Controls
 * ============================================
 */

.video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-player.vertical {
    max-width: 400px;
    margin: 0 auto;
}

.video-player video {
    width: 100%;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.play-pause-btn {
    font-size: 24px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar:hover {
    height: 8px;
}

.video-time {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.playback-speed {
    position: relative;
}

.speed-btn {
    min-width: 50px;
}

.speed-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.playback-speed:hover .speed-options {
    display: flex;
}

.speed-option {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.speed-option:hover,
.speed-option.active {
    background: var(--primary-color);
}

.quality-selector {
    position: relative;
}

.quality-btn {
    min-width: 70px;
}

.quality-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.quality-selector:hover .quality-options {
    display: flex;
}

.quality-option {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.quality-option:hover,
.quality-option.active {
    background: var(--primary-color);
}

.fullscreen-btn {
    font-size: 20px;
}

/* Loading Spinner */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Fullscreen Styles */
.video-player:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.video-player:fullscreen video {
    height: 100%;
    object-fit: contain;
}

/* Media Tabs */
.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sample Images Grid */
.sample-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sample-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sample-images img:hover {
    transform: scale(1.05);
}

/* Package Media Section */
.package-media {
    margin: 25px 0;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.package-media h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Responsive Video Player */
@media screen and (max-width: 768px) {
    .video-controls {
        padding: 10px;
        gap: 8px;
    }

    .control-btn {
        font-size: 16px;
        padding: 3px 6px;
    }

    .play-pause-btn {
        font-size: 20px;
    }

    .video-time {
        font-size: 12px;
    }

    .volume-slider {
        width: 40px;
    }

    .speed-btn,
    .quality-btn {
        font-size: 14px;
    }

    .fullscreen-btn {
        font-size: 18px;
    }

    .media-tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .sample-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .sample-images img {
        height: 100px;
    }

    .package-media {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .video-controls {
        flex-wrap: wrap;
        padding: 8px;
        gap: 5px;
    }

    .progress-bar {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 5px;
    }

    .volume-control {
        display: none;
    }

    .speed-btn,
    .quality-btn {
        min-width: auto;
        padding: 3px 8px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}