/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --bg-dark: #000;
    --bg-light: #111;
    --bg-card: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --text-light: #ccc;
    --text-headings: #fff;
    --color-border: #333;
    --shadow-color-primary: rgba(231, 76, 60, 0.2);
    --shadow-color-dark: rgba(0, 0, 0, 0.5);
    --font-family-base: 'Roboto', sans-serif;
    --border-radius-m: 15px;
}

body {
    font-family: var(--font-family-base);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    background: var(--bg-card); /* <- Gradiente de tarjeta */
    border-radius: var(--border-radius-m); /* <- Bordes redondeados */
    border: 1px solid var(--color-border); /* <- Borde sutil */
    box-shadow: 0 15px 30px var(--shadow-color-dark); /* <- Sombra profunda */
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem; /* Un poco más de padding interno */
}

.content-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Títulos */
h1, h2 {
    color: var(--text-headings); /* <- Color de títulos principal */
    font-weight: 700; /* Un poco más de peso */
}

/* Barra de progreso del reproductor */
#progressFill {
    background-color: var(--color-primary); /* <- Usa tu color primario (rojo/naranja) */
}

/* Icono de Play/Pause */
#playBtn .play-icon,
#playBtn .pause-icon {
    fill: var(--color-primary); /* <- Usa también el color primario */
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.artist-name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-headings); /* Usa el color blanco de los títulos */
    text-transform: uppercase;
    /* Se eliminan las propiedades de background para quitar el gradiente */
}

/* Album Art */
.album-art-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-art-container:hover {
    transform: scale(1.02);
}

.album-art {
    width: 100%;
    height: auto;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-art-container:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: var(--text-color);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 25px;
}

.track-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-headings);
}

.track-artist {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.feat {
    font-weight: 400;
}

/* Audio Player */
.audio-player {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn {
    background-color: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px var(--shadow-color-primary); /* Sombra a juego con el nuevo color */
}

.play-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-headings); /* Aseguramos que el icono sea blanco (o el color de tus títulos) */
}

.play-btn:active {
    transform: scale(0.95);
}

.icon-pause {
    display: none;
}

.play-btn.playing .icon-play {
    display: none;
}

.play-btn.playing .icon-pause {
    display: block;
}

.progress-container {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-primary); /* <- CAMBIO CLAVE */
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 30px;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cta-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Platform Buttons */
.platforms-grid {
    display: grid;
    gap: 12px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.platform-btn:hover::before {
    left: 100%;
}

.platform-btn i {
    /* los mismos estilos que tenías antes */
    font-size: 1.5rem; /* Con Font Awesome es mejor usar font-size para el tamaño */
    width: 24px;       /* Puedes mantener width/height si lo necesitas */
    text-align: center;
}

/* Ajuste para que la imagen de Tidal tenga el tamaño correcto */
.platform-btn img {
    width: 24px;
    height: auto;
}

/* ============================================= */
/* COLORES DE MARCA PARA BOTONES DE PLATAFORMAS  */
/* ============================================= */

/* --- Colores oficiales para cada servicio --- */
.platform-btn.spotify {
    background-color: #1db954;
    border-color: #1db954;
}

/* 💡 Nota: Uso .apple-music para que coincida con tu HTML */
.platform-btn.apple-music {
    background-color: #000000;
    border-color: #333; /* Un borde ligeramente visible sobre el fondo oscuro */
}

.platform-btn.youtube {
    background-color: #ff0000;
    border-color: #ff0000;
}

.platform-btn.amazon {
    background-color: #00A4D9;
    border-color: #00A4D9;
}

.platform-btn.deezer {
    background-color: #1998A2; /* Color correcto de tu ejemplo */
    border-color: #1998A2;
}

.platform-btn.soundcloud {
    background-color: #FF5500;
    border-color: #FF5500;
}

.platform-btn.tidal {
    background-color: #000000;
    border-color: #333;
}

/* --- Ajustes de texto y hover --- */
.platform-btn {
    color: #ffffff; /* Asegura que el texto sea siempre blanco y legible */
    transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.platform-btn:hover {
    color: #ffffff;
    filter: brightness(90%); /* Oscurece un poco el botón al pasar el ratón */
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .content-wrapper {
        padding: 30px 20px;
    }

    .artist-name {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .track-title {
        font-size: 1.4rem;
    }

    .track-artist {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-description {
        font-size: 0.9rem;
    }

    .platform-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .platform-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .content-wrapper {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .artist-name {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }
}

/* ============================================= */
/* ESTILOS DEL FOOTER (PIE DE PÁGINA)          */
/* ============================================= */

.site-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: 30px; /* Espacio entre el contenedor principal y el footer */
    font-size: 0.8rem;  /* Letra pequeña */
    color: #555;       /* Color gris oscuro, de bajo contraste */
}

.site-footer a {
    color: #555; /* Mismo color para el enlace */
    text-decoration: underline;
}

.site-footer a:hover {
    color: #888; /* Un poco más claro al pasar el ratón */
}
