/* Estilos para la página de videos */
.videos-page {
    background-color: #1e1e1e;
    color: #fff;
    font-family: 'Minecraft', sans-serif;
    padding: 2rem;
    min-height: 100vh;
}

.videos-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #FFFF99;
    text-shadow: 
        2px 2px 0px #B8860B,
        4px 4px 0px #8B6508;
}

.back-button {
    display: inline-block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Minecraft', sans-serif;
    font-size: 1rem;
    border: 2px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #FFFF55;
    color: #FFFF55;
    box-shadow: 0 4px 12px rgba(255, 255, 85, 0.3);
}

.back-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-button i {
    margin-right: 8px;
}

.videos-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.video-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #555;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 85, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-wrapper:hover::before {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.video-item.playing .video-wrapper::before {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 85, 0.5), 0 0 15px rgba(255, 255, 85, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.8rem;
    color: #FFFF99;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #000;
}

.video-info .precio {
    font-size: 2.5rem;
    color: #FFFF55;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 0px #B8860B,
        4px 4px 0px #8B6508;
}

.duration-info {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #444;
}

.duration-info h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 0px #000;
}

.duration-info p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.price-value {
    color: #FFFF55;
    font-weight: bold;
}

/* Icono de indicador de sonido */
.sound-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .sound-indicator {
    opacity: 1;
}

/* Añadir código JavaScript para insertar este elemento dinámicamente */
.video-wrapper::after {
    content: 'Clic para activar sonido';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover::after {
    opacity: 1;
}

/* Ocultar el mensaje después de hacer clic */
.video-wrapper.clicked::after {
    display: none;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .videos-page h1 {
        font-size: 2.8rem;
        margin-top: 2rem;
    }
    
    .videos-container {
        gap: 2.5rem;
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .videos-page h1 {
        font-size: 2.5rem;
        margin-top: 3rem;
    }
    
    .videos-container {
        gap: 2rem;
        max-width: 100%;
    }
    
    .video-info h3 {
        font-size: 1.5rem;
    }
    
    .video-info .precio {
        font-size: 2rem;
    }
    
    .duration-info h4 {
        font-size: 1.1rem;
    }
    
    .duration-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .videos-page {
        padding: 1rem;
    }
    
    .videos-page h1 {
        font-size: 2rem;
        margin-top: 4rem;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .video-info h3 {
        font-size: 1.3rem;
    }
    
    .video-info .precio {
        font-size: 1.8rem;
    }
    
    .duration-info {
        padding: 0.8rem;
    }
    
    .duration-info h4 {
        font-size: 1rem;
    }
    
    .duration-info p {
        font-size: 0.8rem;
    }
} 