:root {
    --primary-color: #f7b731;
    /* Golden Yellow from Logo */
    --primary-glow: rgba(247, 183, 49, 0.4);
    --secondary-color: #eb3b5a;
    /* Warm Red/Pink for accents */
    --accent-warm: #fa8231;
    /* Vibrant Orange for extra warmth */

    --bg-dark: #1e272e;
    /* Dark slate based on logo contrast */
    --text-main: #ffffff;
    --text-muted: #d2dae2;
    --glass-bg: rgba(30, 39, 46, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vH;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Image & Overlay */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    filter: blur(5px) brightness(0.6); /* Menos borroso, más brillante inicial */
    transform: scale(1.1);
    animation: pulseBg 15s ease-in-out infinite alternate; /* Más rápido (de 30s a 15s) */
}

@keyframes pulseBg {
    0% {
        transform: scale(1.1);
        filter: blur(5px) brightness(0.6);
    }
    100% {
        transform: scale(1.3); /* Zoom mucho más agresivo */
        filter: blur(15px) brightness(0.9); /* Más brillante en el pico */
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(247, 183, 49, 0.2) 0%, rgba(5, 5, 10, 0.9) 100%); /* Introduce el color primario en el centro */
    z-index: -1;
    animation: shiftGradient 10s linear infinite alternate; /* Más rápido (de 20s a 10s) */
}

@keyframes shiftGradient {
    0% {
        background: radial-gradient(circle at 50% 50%, rgba(235, 59, 90, 0.3) 0%, rgba(10, 10, 18, 0.8) 100%); /* Color secundario */
    }
    50% {
        background: radial-gradient(circle at 50% 50%, rgba(247, 183, 49, 0.3) 0%, rgba(10, 10, 18, 0.9) 100%); /* Color primario */
    }
    100% {
        background: radial-gradient(circle at 50% 50%, rgba(250, 130, 49, 0.3) 0%, rgba(5, 5, 10, 0.95) 100%); /* Color acento cálido */
    }
}

/* Reusable Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    padding: 0 0;
    position: absolute;
    /* No longer sticky/fixed */
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 325px;
    /* 30% larger than 250px */
    width: auto;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 15px rgba(247, 183, 49, 0.4));
    margin-bottom: 20px;
    /* Manteniendo el espaciado interno */
}

.logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    /* Leave room for simple footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 320px;
    /* Muchísimo más espacio para compensar el logo gigante de 325px */
    padding-bottom: 50px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
}

.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1.accent-text {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--primary-glow);
    white-space: nowrap;
    /* Prevent line breaks */
    width: 100%;
    /* Occupy full width */
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.equipos-img {
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 51, 102, 0.3));
}

.hover-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Player Container */
.player-container {
    padding: 40px;
    width: 100%;
    max-width: 650px;
    /* Much larger */
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(30, 39, 46, 0.8), rgba(15, 20, 25, 0.9));
}

/* Subtle animated background gradient for player */
.player-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(247, 183, 49, 0.15), rgba(250, 130, 49, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

.player-info,
.visualizer,
.player-controls {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.now-playing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 51, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
    }
}

.station-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Larger font */
    font-weight: 700;
}

/* CSS Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    /* wider gaps */
    height: 70px;
    /* taller visualizer */
    width: 100%;
    justify-content: center;
}

.visualizer .bar {
    width: 12px;
    /* thicker bars */
    background: linear-gradient(to top, var(--accent-warm), var(--primary-color));
    border-radius: 6px 6px 0 0;
    height: 10%;
    transition: height 0.1s ease;
}

.visualizer.active .bar {
    animation: eq 1s ease-in-out infinite alternate;
}

.visualizer.active .bar:nth-child(1) {
    animation-duration: 0.8s;
}

.visualizer.active .bar:nth-child(2) {
    animation-duration: 0.5s;
}

.visualizer.active .bar:nth-child(3) {
    animation-duration: 0.9s;
}

.visualizer.active .bar:nth-child(4) {
    animation-duration: 0.6s;
}

.visualizer.active .bar:nth-child(5) {
    animation-duration: 1.1s;
}

.visualizer.active .bar:nth-child(6) {
    animation-duration: 0.7s;
}

.visualizer.active .bar:nth-child(7) {
    animation-duration: 0.85s;
}

.visualizer.active .bar:nth-child(8) {
    animation-duration: 0.55s;
}

.visualizer.active .bar:nth-child(9) {
    animation-duration: 0.95s;
}

@keyframes eq {
    0% {
        height: 20%;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 50%;
    }
}

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

.play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
    border: none;
    width: 80px;
    /* larger play button */
    height: 80px;
    /* larger play button */
    border-radius: 50%;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(247, 183, 49, 0.6);
}

.play-btn svg {
    width: 40px;
    /* larger icon */
    height: 40px;
    /* larger icon */
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.volume-control svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--text-main);
    border: 3px solid var(--primary-color);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    /* Thicker track */
    cursor: pointer;
    background: linear-gradient(to right, var(--accent-warm), var(--glass-border));
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Share Button */
.share-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.share-btn:hover {
    background: var(--primary-color);
    color: #111;
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

/* App Stores and Social */
.apps-and-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.app-stores {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-link img {
    height: 45px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-link:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s;
}

.icon-link svg {
    width: 24px;
    height: 24px;
}

.icon-link:hover {
    background: var(--primary-color);
    color: #111;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Minimal Footer */
.footer-minimal {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
    .logo {
        max-height: 185px;
        /* 30% larger than 140px */
    }

    .hero-section {
        padding-top: 200px;
        /* Proporcional a pantalla chica */
    }

    .hero-container {
        gap: 20px;
    }

    h1.accent-text {
        font-size: clamp(2rem, 10vw, 3rem);
        white-space: normal;
        /* Allow break on very thin screens if absolutely necessary, but clamp mostly prevents it */
    }

    .app-stores {
        flex-direction: column;
        align-items: center;
    }
}