body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e; /* Fondo oscuro moderno */
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 30px 20px;
}

.video-container {
    background: #202030;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #e94560; /* Color de acento */
    margin-bottom: 25px;
}

hr {
    border: 0;
    height: 1px;
    background: #3c3c58;
    margin: 30px 0;
}

/* Reproductor Principal */
.main-player {
    background: #161625;
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

#videoPlayer {
    aspect-ratio: 16 / 9; /* Mantiene la proporción 16:9 */
    border-radius: 8px;
    border: 5px solid #0f3460;
}

.current-title {
    margin-top: 15px;
    color: #ffc400; /* Título llamativo */
    font-size: 1.8em;
}

.current-description {
    color: #b0b0d0;
    font-size: 1em;
}

/* Lista de Videos (Playlist Grid) */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsivo con min-width 200px */
    gap: 20px;
    margin-top: 20px;
}

.video-item {
    background: #3c3c58;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

.video-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-item p {
    padding: 10px;
    margin: 0;
    font-size: 0.9em;
    font-weight: bold;
    color: #f0f0f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estado activo */
.video-item.active {
    border-color: #ffc400;
    box-shadow: 0 0 0 4px #ffc400;
}

/* Media query para móviles */
@media (max-width: 768px) {
    .video-container {
        padding: 15px;
    }
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    #videoPlayer {
        height: 300px;
    }
}