/* ═══════════════════════════════════════════════════════════════
   K-AURA CUSTOM VIDEO PLAYER (MINIMALISTA PREMIUM — ESTILO PANDA)
   Barra Neon #00FA04, 1080p, Auto-hide 3s, Proteção 4s ao Despausar,
   Zero YouTube Branding, Topo 100% Limpo.
   ═══════════════════════════════════════════════════════════════ */
.kaura-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #050507;
    user-select: none;
    -webkit-user-select: none;
}

/* Target Iframe: 100% Proporção Original 16:9 — ZERO ZOOM, sem cortar abas nem laterais */
.kaura-yt-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    border: none !important;
    overflow: hidden !important;
    transform: none !important;
}

.kaura-yt-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    pointer-events: none !important;
    display: block;
}

/* Zero máscaras pesadas para manter a tela 100% limpa */
.kaura-top-mask,
.kaura-bottom-mask {
    display: none !important;
}

/* ZERO DESFOQUE / TURVO: A imagem fica 100% cristalina ao pausar para leitura perfeita */
.kaura-pause-backdrop {
    display: none !important;
}

/* Camada de vidro transparente que intercepta 100% dos cliques do usuário */
.kaura-glass-surface {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

/* Marca do topo removida a pedido do usuário para liberar visão total das abas */
.kaura-top-brand {
    display: none !important;
}

.kaura-brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00FA04;
    box-shadow: 0 0 10px #00FA04;
    animation: kauraDotPulse 2s infinite ease-in-out;
}

@keyframes kauraDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Botão Central de Play / Pause (Aura Neon Compacto — Sem cobrir a leitura do meio) */
.kaura-center-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kaura-center-state.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
}

.kaura-center-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 250, 4, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(0, 250, 4, 0.65), 0 8px 25px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kaura-center-btn svg {
    width: 28px;
    height: 28px;
    fill: #000000;
}

/* Remover spinner feio */
.kaura-buffer-spinner {
    display: none !important;
}

/* Barra de Controles Inferior (Panda Style) */
.kaura-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 24px 20px 14px 20px;
    background: linear-gradient(to top, rgba(7, 7, 9, 0.96) 0%, rgba(7, 7, 9, 0.65) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kaura-controls-bar.autohide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* Barra de Progresso Verde */
.kaura-progress-container {
    position: relative;
    width: 100%;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.kaura-progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    transition: height 0.15s ease;
}

.kaura-progress-container:hover .kaura-progress-track,
.kaura-progress-container.dragging .kaura-progress-track {
    height: 6px;
}

.kaura-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: width 0.2s ease;
}

.kaura-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: #00FA04;
    box-shadow: 0 0 12px rgba(0, 250, 4, 0.85);
    pointer-events: none;
}

.kaura-progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #00FA04;
    box-shadow: 0 0 12px #00FA04;
    transition: transform 0.15s ease;
    pointer-events: none;
}

.kaura-progress-container:hover .kaura-progress-thumb,
.kaura-progress-container.dragging .kaura-progress-thumb {
    transform: translateY(-50%) scale(1);
}

/* Tooltip de tempo ao passar mouse */
.kaura-progress-tooltip {
    position: absolute;
    bottom: 22px;
    transform: translateX(-50%);
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(0, 250, 4, 0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.kaura-progress-container:hover .kaura-progress-tooltip {
    display: block;
}

/* Linha de Botões e Controles */
.kaura-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kaura-controls-left {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #08080c !important;
    opacity: 1 !important;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 250, 4, 0.35);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.98);
}

.kaura-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #08080c !important;
    opacity: 1 !important;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 250, 4, 0.35);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.98);
    min-width: 175px;
    justify-content: flex-end;
}

.kaura-hd-badge {
    background: rgba(0, 250, 4, 0.12);
    border: 1px solid rgba(0, 250, 4, 0.4);
    color: #00FA04;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: default;
    display: inline-flex;
    align-items: center;
}

.kaura-ctrl-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    cursor: pointer;
    padding: 7px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kaura-ctrl-btn:hover {
    color: #00FA04;
    background: rgba(0, 250, 4, 0.12);
    transform: scale(1.06);
}

.kaura-ctrl-btn:active {
    transform: scale(0.96);
}

.kaura-ctrl-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Display de Tempo */
.kaura-time-display {
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    user-select: none;
}

.kaura-time-sep {
    color: #71717a;
    font-weight: 400;
}

/* Controle de Volume */
.kaura-vol-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.kaura-vol-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.22s ease;
    display: flex;
    align-items: center;
}

.kaura-vol-wrapper:hover .kaura-vol-slider-wrap {
    width: 65px;
    margin-left: 4px;
}

.kaura-vol-slider {
    width: 60px;
    accent-color: #00FA04;
    cursor: pointer;
    height: 4px;
    outline: none;
}

/* Seletor de Velocidade (Panda style) */
.kaura-speed-menu-wrap {
    position: relative;
}

.kaura-speed-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kaura-speed-btn:hover {
    background: rgba(0, 250, 4, 0.15);
    border-color: rgba(0, 250, 4, 0.45);
    color: #00FA04;
}

.kaura-speed-dropdown {
    position: absolute;
    bottom: 34px;
    right: 0;
    background: #0f0f14;
    border: 1px solid rgba(0, 250, 4, 0.28);
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
    z-index: 25;
    min-width: 96px;
}

.kaura-speed-dropdown.show {
    display: flex;
}

.kaura-speed-opt {
    background: transparent;
    border: none;
    color: #a1a1aa;
    padding: 6px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kaura-speed-opt:hover,
.kaura-speed-opt.active {
    background: rgba(0, 250, 4, 0.15);
    color: #00FA04;
}

/* Modo Tela Cheia & Ocultamento de Cursor */
#playerComeceAqui:fullscreen,
#playerComeceAqui:-webkit-full-screen,
.cinema-video-container:fullscreen,
.cinema-video-container:-webkit-full-screen,
.kaura-player-wrapper:fullscreen,
.kaura-player-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    background: #000000 !important;
}

#playerComeceAqui:fullscreen .kaura-player-wrapper,
#playerComeceAqui:-webkit-full-screen .kaura-player-wrapper,
.cinema-video-container:fullscreen .kaura-player-wrapper,
.cinema-video-container:-webkit-full-screen .kaura-player-wrapper {
    border-radius: 0 !important;
}

.kaura-player-wrapper.hide-cursor,
.kaura-player-wrapper.hide-cursor * {
    cursor: none !important;
}
