/* BBMALYA Exclusive Player - WordPress Plugin CSS */

.bbmalya-player-wrapper {
    position: relative;
    margin: 40px 0;
}

.bbmalya-video-container {
    background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(107, 70, 193, 0.4);
}

/* BBMALYA Header */
.bbmalya-header {
    background: linear-gradient(90deg, var(--bbmalya-primary, #6B46C1) 0%, var(--bbmalya-accent, #00D4FF) 100%);
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.bbmalya-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bbmalya-logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--bbmalya-gold, #FFB800), #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.bbmalya-tagline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Video Wrapper */
.bbmalya-video-wrapper {
    position: relative;
    background: #000;
}

.bbmalya-video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

/* Controls */
.bbmalya-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bbmalya-video-wrapper:not(:hover) .bbmalya-controls.hide {
    transform: translateY(100%);
    opacity: 0;
}

/* Progress Bar */
.bbmalya-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
}

.bbmalya-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bbmalya-primary, #6B46C1), var(--bbmalya-accent, #00D4FF));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.bbmalya-progress-bar::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--bbmalya-gold, #FFB800);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

/* Control Buttons */
.bbmalya-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bbmalya-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.bbmalya-btn:hover {
    background: rgba(107, 70, 193, 0.8);
    transform: scale(1.05);
}

.bbmalya-btn-primary {
    background: linear-gradient(135deg, var(--bbmalya-primary, #6B46C1), var(--bbmalya-accent, #00D4FF));
    padding: 12px 20px;
    font-weight: bold;
    font-size: 18px;
}

.bbmalya-btn-primary:hover {
    box-shadow: 0 5px 20px rgba(107, 70, 193, 0.5);
    transform: scale(1.08);
}

.bbmalya-time-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 100px;
    text-align: center;
    font-family: monospace;
}

/* Volume */
.bbmalya-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbmalya-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.bbmalya-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--bbmalya-gold, #FFB800);
    border-radius: 50%;
    cursor: pointer;
}

.bbmalya-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--bbmalya-gold, #FFB800);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.bbmalya-spacer {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bbmalya-header {
        padding: 15px 20px;
    }

    .bbmalya-logo {
        font-size: 20px;
    }

    .bbmalya-tagline {
        font-size: 8px;
    }

    .bbmalya-controls {
        padding: 15px;
    }

    .bbmalya-controls-row {
        gap: 8px;
    }

    .bbmalya-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .bbmalya-btn-primary {
        padding: 10px 16px;
        font-size: 16px;
    }

    .bbmalya-time-display {
        font-size: 12px;
        min-width: 80px;
    }

    .bbmalya-volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .bbmalya-controls-row {
        justify-content: center;
    }

    .bbmalya-spacer {
        display: none;
    }
}

/* Loading State */
.bbmalya-video:not([src]) {
    min-height: 400px;
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="white">Loading...</text></svg>') center/50px no-repeat;
}

/* Fullscreen Mode */
.bbmalya-video-container:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

.bbmalya-video-container:-moz-full-screen {
    width: 100%;
    height: 100%;
}

.bbmalya-video-container:fullscreen {
    width: 100%;
    height: 100%;
}