/* Macro TV Professional - Video.js Skin & Overlays (Isolated) */
:root {
    --mtpro-theme-color: #007bff;
    --mtpro-bg-color: #000;
    --mtpro-controls-bg: linear-gradient(to top, rgba(0, 15, 30, 0.9), transparent);
    --mtpro-text-color: #ffffff;
}

.mtpro-player-container {
    position: relative;
    max-width: 1280px;
    margin: 20px auto;
    background-color: var(--mtpro-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    z-index: 10;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

/* Video.js Overrides strictly for mtpro */
.mtpro-player-container .video-js {
    width: 100% !important;
    height: 100% !important;
    background-color: #000 !important;
}

.mtpro-player-container .vjs-big-play-button {
    background-color: rgba(0, 123, 255, 0.8) !important;
    border-radius: 50% !important;
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
    margin-top: -35px !important;
    margin-left: -35px !important;
    border: 2px solid #fff !important;
    z-index: 55 !important;
}

/* Custom Overlays */
.mtpro-title {
    position: absolute;
    z-index: 60;
    font-weight: 700;
    pointer-events: none;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin: 0;
}

.mtpro-logo-container {
    position: absolute;
    z-index: 70;
    pointer-events: auto;
    opacity: 0.7;
    transition: opacity 0.5s ease-in-out;
}

.mtpro-logo-container:hover {
    opacity: 1 !important;
}

/* Loader Pro with Sparks */
.mtpro-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    background: transparent;
    pointer-events: none;
}

.mtpro-loader-logo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtpro-loader-logo {
    width: 45px;
    height: auto;
    z-index: 2;
    animation: mtpro-pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

.mtpro-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mtpro-sparks span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    filter: blur(1px);
}

.mtpro-sparks span:nth-child(odd) {
    background: #00ffff;
    box-shadow: 0 0 8px #00ffff, 0 0 15px rgba(0, 255, 255, 0.5);
}

.mtpro-sparks span:nth-child(even) {
    background: #3a7bd5;
    box-shadow: 0 0 8px #3a7bd5, 0 0 15px rgba(58, 123, 213, 0.5);
}

@keyframes spark-flicker {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) translate(0, 5px);
    }

    40% {
        opacity: 1;
        transform: scale(1.2) translate(0, -10px);
    }

    70% {
        opacity: 0.8;
        transform: scale(1) translate(0, -25px);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(0, -40px);
    }
}

.mtpro-sparks span:nth-child(1) {
    top: 30%;
    left: 45%;
    animation: spark-flicker 1.4s infinite 0.1s;
}

.mtpro-sparks span:nth-child(2) {
    top: 40%;
    left: 55%;
    animation: spark-flicker 1.6s infinite 0.3s;
}

.mtpro-sparks span:nth-child(3) {
    top: 50%;
    left: 60%;
    animation: spark-flicker 1.2s infinite 0.5s;
}

.mtpro-sparks span:nth-child(4) {
    top: 60%;
    left: 50%;
    animation: spark-flicker 2.0s infinite 0.7s;
}

.mtpro-sparks span:nth-child(5) {
    top: 55%;
    left: 35%;
    animation: spark-flicker 1.5s infinite 0.9s;
}

.mtpro-sparks span:nth-child(6) {
    top: 45%;
    left: 40%;
    animation: spark-flicker 1.7s infinite 0.2s;
}

.mtpro-sparks span:nth-child(7) {
    top: 35%;
    left: 65%;
    animation: spark-flicker 1.3s infinite 0.4s;
}

.mtpro-sparks span:nth-child(8) {
    top: 50%;
    left: 40%;
    animation: spark-flicker 1.9s infinite 0.6s;
}

.mtpro-sparks span:nth-child(9) {
    top: 40%;
    left: 30%;
    animation: spark-flicker 1.8s infinite 0.8s;
}

.mtpro-sparks span:nth-child(10) {
    top: 35%;
    left: 55%;
    animation: spark-flicker 1.5s infinite 1.0s;
}

@keyframes mtpro-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spark-fly {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
        transform: scale(1.5) translate(10px, -10px);
    }

    100% {
        transform: scale(0) translate(20px, -20px);
        opacity: 0;
    }
}

/* Status Message and Loader Fade */
.mtpro-loader-container.fade-in {
    display: flex;
    animation: mtpro-fadeIn 0.4s forwards;
}

.mtpro-loader-container.fade-out {
    display: flex;
    animation: mtpro-fadeOut 0.4s forwards;
}

@keyframes mtpro-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mtpro-fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.mtpro-status-message {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    z-index: 65;
    font-size: 13px;
    pointer-events: none;
}

/* Custom Controls Bar */
.mtpro-custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mtpro-controls-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 100;
}

.mtpro-player-container:hover .mtpro-custom-controls {
    opacity: 1;
    visibility: visible;
}

.mtpro-controls-left,
.mtpro-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.control-button:hover {
    transform: scale(1.15);
}

.control-button svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.mtpro-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mtpro-volume-slider {
    cursor: pointer;
    width: 90px;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.mtpro-live-indicator {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mtpro-live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff3b30;
    animation: mtpro-blink 1.2s infinite;
}

@keyframes mtpro-blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

/* Range input styling */
.mtpro-volume-slider[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

.mtpro-volume-slider[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    /* Glow neon celeste */
}

/* Responsive fixes */
@media (max-width: 768px) {
    .mtpro-custom-controls {
        padding: 10px;
    }

    .mtpro-title {
        font-size: 1.1rem;
    }

    .mtpro-volume-slider {
        width: 60px;
    }
}

/* ==========================================================================
   Nuevos Estilos de Reproductor (Skins)
   ========================================================================== */

/* 1. GLASSMORPHISM (CRISTAL GLOW) */
.mtpro-player-container.mt-style-glass .mtpro-custom-controls {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 15px;
    border-radius: 15px;
    bottom: 10px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.mtpro-player-container.mt-style-glass .control-button svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* 2. CYBER NEON (ELECTRIC CYAN) */
.mtpro-player-container.mt-style-neon .mtpro-custom-controls {
    background: rgba(0, 0, 0, 0.85) !important;
    border-top: 2px solid #00ffff !important;
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.3);
}

.mtpro-player-container.mt-style-neon .control-button svg {
    fill: #00ffff !important;
    filter: drop-shadow(0 0 8px #00ffff);
}

.mtpro-player-container.mt-style-neon .mtpro-live-dot {
    background-color: #00ffff;
    box-shadow: 0 0 12px #00ffff;
}

.mtpro-player-container.mt-style-neon .mtpro-volume-slider::-webkit-slider-thumb {
    background: #00ffff !important;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff !important;
}

/* 3. MINIMALISTA */
.mtpro-player-container.mt-style-minimal .mtpro-custom-controls {
    background: #fff !important;
    color: #000 !important;
    width: auto !important;
    min-width: 300px;
    max-width: 90%;
    height: 45px !important;
    padding: 0 20px !important;
    border-radius: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 25px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
}

.mtpro-player-container.mt-style-minimal .control-button svg {
    fill: #111 !important;
    filter: none !important;
}

.mtpro-player-container.mt-style-minimal .mtpro-live-indicator {
    color: #111 !important;
}

.mtpro-player-container.mt-style-minimal .mtpro-controls-left,
.mtpro-player-container.mt-style-minimal .mtpro-controls-right {
    gap: 25px !important;
}

.mtpro-player-container.mt-style-minimal .mtpro-volume-slider {
    background: #eee !important;
}

.mtpro-volume-slider::-webkit-slider-thumb {
    background: #111 !important;
    box-shadow: none !important;
}

/* 4. RETRO WOOD (VINTAGE) */
.mtpro-player-container.mt-style-retro .mtpro-custom-controls {
    background: #5d2e0a linear-gradient(to bottom, #8b4513, #5d2e0a) !important;
    border: 4px solid #3d1f07 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    padding: 10px 20px !important;
}

.mtpro-player-container.mt-style-retro .control-button svg {
    fill: #ffd700 !important;
    /* Gold */
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.8)) !important;
}

.mtpro-player-container.mt-style-retro .mtpro-live-indicator {
    background: #111;
    padding: 2px 8px;
    border-radius: 2px;
    color: #ff3b30 !important;
    font-family: 'Courier New', monospace;
    border: 1px solid #333;
}

.mtpro-player-container.mt-style-retro .mtpro-volume-slider::-webkit-slider-thumb {
    background: #ffd700 !important;
    border-radius: 0 !important;
}