/* Variables de Diseño y Reseteo */
:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --bg-dark: rgba(10, 10, 12, 0.75);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #020205;
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Carrusel Widescreen de Fondo --- */
.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 8s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(2,2,5,0.85) 100%);
    z-index: -1;
}

/* --- Contenido Hero --- */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    justify-content: space-between;
    z-index: 1;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
}

.intro {
    max-width: 600px;
    margin-bottom: 8rem; /* Espacio para el footer */
}

.intro h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro h2 {
    font-size: 0.8em;
    line-height: 1em;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

/* --- Footer & Reproductor Dinámico --- */
.audio-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.2rem 4rem;
    z-index: 10;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

/* Track Info */
.track-info {
    flex: 1;
    min-width: 200px;
}

.track-text {
    display: flex;
    flex-direction: column;
}

#current-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#current-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Controles */
.player-controls {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.btn-control {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.1s;
}

.btn-control:hover {
    color: var(--primary-color);
}

.btn-play {
    background: var(--text-main);
    color: #000;
    padding: 0.8rem;
    border-radius: 50%;
}

.btn-play:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.05);
}

/* Barra de Progreso */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    position: relative;
}

/* Acciones laterales */
.player-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    min-width: 200px;
}

/* Dropdown de la Playlist */
.playlist-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 4rem;
    width: 320px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.playlist-dropdown.show {
    display: block;
}

.playlist-dropdown h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.playlist-dropdown ul {
    list-style: none;
}

.playlist-dropdown li {
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.playlist-dropdown li:hover, .playlist-dropdown li.active {
    background: var(--glass-bg);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content { padding: 2rem; }
    .intro h1 { font-size: 2.3rem; }
    .audio-footer { padding: 1.2rem 1.5rem; }
    .player-container { flex-direction: column; gap: 1rem; }
    .player-actions, .track-info { display: none; }
    .player-controls { width: 100%; }
    .playlist-dropdown { right: 1.5rem; width: calc(100% - 3rem); }
}