* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
    font-family: 'Arial', sans-serif;
}

/* Efecto CRT para autenticidad de los 90s */
.crt-effect::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

.crt-effect::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

#video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

#okru-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    border: none;
    pointer-events: none;
    object-fit: cover;
}

/* Ocultar elementos de información de Ok.ru */
#okru-player * {
    color: transparent !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #00ffcc;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 255, 204, 0.5);
    opacity: 0.8;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
    z-index: 10;
}

.logo::before {
    content: "▶";
    margin-right: 10px;
    color: #ff003c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.time-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(10, 10, 26, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.6);
    letter-spacing: 1px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0.8;
}

.time {
    font-size: 1rem;
    margin-bottom: 2px;
}

.date {
    font-size: 0.6rem;
    color: #ff00a0;
}

.social-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 100, 0.85), rgba(180, 0, 255, 0.85));
    border-top: 3px solid rgba(0, 255, 255, 0.7);
    padding: 12px 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease;
    text-align: center;
    box-shadow: 0 -5px 25px rgba(255, 0, 100, 0.6);
    backdrop-filter: blur(5px);
}

.social-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.social-banner p {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    padding: 0 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.social-banner .highlight {
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
}

.next-video-banner {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 26, 0.85);
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 0, 200, 0.6);
    backdrop-filter: blur(4px);
    max-width: 200px;
    text-align: right;
}

.next-video-banner.show {
    opacity: 1;
    transform: translateX(0);
}

.next-video-banner p {
    margin: 0;
    font-size: 0.8rem;
    color: #ff00a0;
}

.next-video-banner .video-title {
    font-weight: bold;
    color: #00f0ff;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* Capa que bloquea toda interacción con el reproductor */
.video-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
}

/* Efecto de parpadeo aleatorio como TV vieja */
@keyframes tv-flicker {
    0% { opacity: 1; }
    5% { opacity: 0.95; }
    10% { opacity: 0.98; }
    15% { opacity: 0.92; }
    20% { opacity: 0.99; }
    25% { opacity: 0.97; }
    30% { opacity: 1; }
    100% { opacity: 1; }
}

.tv-flicker {
    animation: tv-flicker 20s infinite;
}

/* Barras de color de prueba (como en TV antigua) */
.color-bars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        #ff0000 0%, #ff0000 14.28%, 
        #ffff00 14.28%, #ffff00 28.56%, 
        #00ff00 28.56%, #00ff00 42.84%, 
        #00ffff 42.84%, #00ffff 57.12%, 
        #0000ff 57.12%, #0000ff 71.4%, 
        #ff00ff 71.4%, #ff00ff 85.68%, 
        #ff0000 85.68%, #ff0000 100%);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.color-bars.show {
    opacity: 0.7;
}

/* Indicador de carga/error */
.status-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ff003c;
    z-index: 20;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.status-indicator.show {
    opacity: 1;
}

.status-indicator p {
    margin: 10px 0 0;
    color: #00f0ff;
    font-size: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #00f0ff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para ocultar elementos de información de video */
.ok-video-header,
.vp-layer-info,
.video-card_info,
.video-card__info,
.video-info,
.video-title,
.vp-layer-title,
[class*="title"],
[class*="info"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
    
    .time-display {
        padding: 6px 10px;
        bottom: 8px;
        right: 8px;
    }
    
    .time {
        font-size: 0.9rem;
    }
    
    .date {
        font-size: 0.55rem;
    }
    
    .social-banner p {
        font-size: 1.1rem;
    }
    
    .next-video-banner {
        top: 15px;
        right: 15px;
        max-width: 180px;
        padding: 6px 10px;
    }
    
    .next-video-banner p {
        font-size: 0.75rem;
    }
    
    .next-video-banner .video-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
        padding: 6px 12px;
        top: 15px;
        left: 15px;
    }
    
    .time-display {
        padding: 5px 8px;
        bottom: 5px;
        right: 5px;
    }
    
    .time {
        font-size: 0.8rem;
    }
    
    .date {
        font-size: 0.5rem;
    }
    
    .social-banner p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .next-video-banner {
        top: 10px;
        right: 10px;
        max-width: 160px;
        padding: 5px 8px;
    }
    
    .next-video-banner p {
        font-size: 0.7rem;
    }
    
    .next-video-banner .video-title {
        font-size: 0.75rem;
    }
}