/* ================================================
   VIDEOS.CSS - Estilos para banners y modales de video
   ================================================ */

/* ========== BANNER DE VIDEO FREE FIRE TV ========== */
.video-banner-wrapper {
    width: 100%;
    margin: 18px 0 15px 0;
}

.video-banner-inner {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.video-banner-box {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 0, 0.25);
    position: relative;
    box-shadow: 
        0 0 25px rgba(255, 204, 0, 0.12),
        inset 0 0 40px rgba(0, 0, 0, 0.7);
}

.video-banner-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.video-banner-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(25,25,25,0.92) 100%);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    position: relative;
    z-index: 3;
}

.video-banner-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.video-banner-ff-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.6));
}

.video-banner-title {
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.video-banner-title-accent {
    color: var(--premium);
}

.video-banner-live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #aaa;
    text-transform: uppercase;
}

.video-banner-live-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: livePulse 1.6s infinite;
    box-shadow: 0 0 8px #4caf50;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

#videoBannerPlayer {
    width: 100%;
    height: 175px;
    background: #000;
    position: relative;
    z-index: 1;
}

#videoBannerPlayer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-banner-bottombar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(25,25,25,0.9) 100%);
    border-top: 1px solid rgba(255, 204, 0, 0.12);
    position: relative;
    z-index: 3;
}

.video-banner-yt-icon {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.video-banner-channel {
    color: #999;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Brillo en el borde del banner */
.video-banner-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid transparent;
    z-index: 4;
    pointer-events: none;
    animation: borderGlow 3.5s infinite ease-in-out;
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(255, 204, 0, 0.15); }
    50% { border-color: rgba(255, 204, 0, 0.45); }
}

/* ========== MODAL DE VIDEO RECOMPENSADO ========== */
#modalVideoRecompensa {
    animation: fadeIn 0.3s ease;
}

.modal-video-card {
    width: 92%;
    max-width: 400px;
    background: #0a0a0a;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 0, 0.3);
    box-shadow: 
        0 0 35px rgba(255, 204, 0, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.85);
    position: relative;
}

/* Barra superior del modal de video */
.modal-video-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: linear-gradient(180deg, rgba(0,0,0,0.97) 0%, rgba(20,20,20,0.95) 100%);
    border-bottom: 1px solid rgba(255, 204, 0, 0.18);
}

.modal-video-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.modal-video-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-video-counter {
    color: var(--premium);
    font-size: 13.5px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1.2px;
    background: rgba(0,0,0,0.7);
    padding: 5px 12px;
    border-radius: 16px;
    white-space: nowrap;
    border: 1px solid rgba(255,204,0,0.25);
}

/* Contenedor del reproductor */
#videoPlayerContainer {
    width: 100%;
    background: #000;
}

#youtubePlayer {
    width: 100%;
    height: 225px;
}

#youtubePlayer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Barra inferior */
.modal-video-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.97) 0%, rgba(25,25,25,0.92) 100%);
    border-top: 1px solid rgba(255, 204, 0, 0.15);
    flex-wrap: wrap;
}

.modal-video-message {
    color: #bbb;
    font-size: 11px;
    margin: 0;
    flex: 1;
    min-width: 160px;
    text-align: left;
    line-height: 1.4;
}

.modal-video-close-btn {
    background: var(--grad-amarillo-3d);
    color: #221a00;
    border: none;
    padding: 11px 24px;
    border-radius: 22px;
    font-weight: 900;
    font-size: 11.5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 
                inset 0 1px 2px rgba(255,255,255,0.4);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.modal-video-close-btn:active {
    transform: scale(0.95);
}

/* Brillo en el borde del modal de video */
.modal-video-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid transparent;
    z-index: 4;
    pointer-events: none;
    animation: borderGlow 3s infinite ease-in-out;
}