/* EM FEEDBACK 4.3.0.13 - Presentación aislada de Video lección. */
.em-app-start-mode-video[hidden],
.em-app-mode-card-video[hidden] {
    display: none !important;
}

.em-feedback-video-overlay,
.em-feedback-video-overlay * {
    box-sizing: border-box;
}

.em-feedback-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: #000;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.em-feedback-video-overlay[hidden] {
    display: none !important;
}

.em-feedback-video-player,
.em-feedback-video-player > div,
.em-feedback-video-player iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
}

.em-feedback-video-toggle {
    position: absolute;
    inset: 0 0 max(76px, calc(58px + env(safe-area-inset-bottom))) 0;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: transparent;
    cursor: pointer;
    filter: none !important;
    opacity: 1 !important;
    touch-action: manipulation;
    transform: none !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.em-feedback-video-toggle:hover,
.em-feedback-video-toggle:focus,
.em-feedback-video-toggle:active {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.em-feedback-video-toggle:focus {
    outline: 0;
}

.em-feedback-video-toggle:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.92);
    outline-offset: -7px;
}

.em-feedback-video-controls {
    position: absolute;
    z-index: 5;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 9px;
}

.em-feedback-video-control {
    min-width: 44px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.76);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.em-feedback-video-control:hover,
.em-feedback-video-control:focus-visible {
    background: rgba(30, 41, 59, 0.94);
}

.em-feedback-video-control:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.9);
    outline-offset: 2px;
}

.em-feedback-video-control:disabled {
    opacity: 0.56;
    cursor: wait;
}

.em-feedback-video-feedback {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.64);
    font-size: 32px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 150ms ease, transform 150ms ease;
}

.em-feedback-video-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.em-feedback-video-loading,
.em-feedback-video-error {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    background: #020617;
}

.em-feedback-video-loading[hidden],
.em-feedback-video-error[hidden] {
    display: none !important;
}

.em-feedback-video-loading-card,
.em-feedback-video-error-card {
    width: min(100%, 470px);
}

.em-feedback-video-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border: 4px solid rgba(255, 255, 255, 0.24);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: em-feedback-video-spin 800ms linear infinite;
}

.em-feedback-video-error h2 {
    margin: 0 0 10px;
    font-size: clamp(23px, 4vw, 32px);
}

.em-feedback-video-error p,
.em-feedback-video-loading p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.em-feedback-video-error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

@keyframes em-feedback-video-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .em-feedback-video-controls {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        gap: 6px;
    }

    .em-feedback-video-control {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .em-feedback-video-feedback {
        width: 64px;
        height: 64px;
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .em-feedback-video-feedback {
        transition: none;
    }
}
