/*
 * TMV Universal Player - Fallback Inteligente 2.0.0
 * O HTML5 permanece intocado. Estas regras só entram depois de uma falha real.
 */

.tmv-native-fallback-container {
    position: relative !important;
    overflow: hidden !important;
    background: #000 !important;
}

html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-controls-forced,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-timeline-panel,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-volume-floating-panel,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-play-central,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-legenda-box,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-controls,
html.tmv-native-fallback-active .tmv-native-fallback-container .tmv-custom-controls,
html.tmv-native-fallback-active .tmv-native-fallback-container .plyr__controls,
html.tmv-native-fallback-active .tmv-native-fallback-container .vjs-control-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.tmv-native-fallback-active video.tmv-native-fallback-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    background: #000 !important;
    object-fit: contain !important;
    pointer-events: auto !important;
    outline: none !important;
    box-shadow: none !important;
}

.tmv-native-fallback-message {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 84% !important;
    min-height: 48px !important;
    padding: 13px 18px !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255,255,255,.32) !important;
    border-radius: 7px !important;
    background: rgba(0,0,0,.88) !important;
    color: #fff !important;
    font: 600 16px/1.4 Arial, Helvetica, sans-serif !important;
    text-align: center !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.65) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transition: opacity .35s ease, visibility .35s ease !important;
}

.tmv-native-fallback-message-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.tmv-native-fallback-spinner {
    flex: 0 0 auto !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255,255,255,.35) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: tmv-native-fallback-spin .8s linear infinite !important;
}

@keyframes tmv-native-fallback-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .tmv-native-fallback-message {
        max-width: 90% !important;
        padding: 11px 14px !important;
        font-size: 14px !important;
    }
}
