:root {
    --noir-black: #050505;
    --pure-white: #ffffff;
    --crimson-red: #e60000;
    --crimson-glow: rgba(230, 0, 0, 0.6);
    --deep-bg: #000000;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--deep-bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(1) brightness(0.5);
}

.background-radial-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--deep-bg) 100%);
    z-index: -1;
    pointer-events: none;
}

#weather-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}


.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

#visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.central-control {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
    transform: translateY(-20px);
}

.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.premium-text-logo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.6rem;
    text-transform: uppercase;
    color: var(--pure-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.accent {
    color: var(--crimson-red);
    font-weight: 700;
    text-shadow: 0 0 15px var(--crimson-glow);
}

.logo-subtitle {
    font-family: var(--font-main);
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: clamp(0.2rem, 1vw, 0.5rem);
    text-transform: uppercase;
    color: var(--pure-white);
    opacity: 0.9;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 10px rgba(230, 0, 0, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(230, 0, 0, 0.6)); }
}

.player-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

#play-pause-btn {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#play-pause-btn:hover {
    transform: scale(1.05);
}

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

.btn-inner {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-inner svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.neon-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--crimson-red);
    box-shadow: 0 0 20px var(--crimson-glow), inset 0 0 15px var(--crimson-glow);
}

.playing .neon-ring {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 20px var(--crimson-glow); }
    50% { transform: scale(1.2); opacity: 0.7; box-shadow: 0 0 40px var(--crimson-glow); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 20px var(--crimson-glow); }
}

.info-panels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}
@media (max-width: 650px) {
    .info-panels-container {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    min-width: 280px;
    max-width: 400px;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-panel:hover {
    transform: translateY(-8px);
    background: hsla(0, 0%, 100%, 0.07);
    border-color: hsla(0, 0%, 100%, 0.2);
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.station-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    outline: none;
}

.station-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.station-btn.active {
    background: rgba(230, 0, 0, 0.1);
    border-color: var(--crimson-red);
    box-shadow: 0 0 15px var(--crimson-glow);
    color: var(--pure-white);
}

.station-icon {
    font-size: 1.2rem;
}

.station-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 500;
}

.weather-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.weather-item {
    text-align: center;
    flex: 1;
}

.location-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
    margin: 0 1rem;
}

.panel-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.ultra-minimalist {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.app-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .central-control {
        margin-bottom: 4rem;
    }
    .premium-text-logo {
        letter-spacing: 0.4rem;
    }
}

@media (max-width: 480px) {
    .info-panels-container {
        gap: 1rem;
    }
    .glass-panel {
        width: 100%;
        min-width: unset;
        padding: 1.25rem;
    }
    .central-control {
        margin-bottom: 3rem;
        transform: translateY(0);
    }
    #play-pause-btn {
        width: 100px;
        height: 100px;
    }
    .btn-inner {
        width: 70px;
        height: 70px;
    }
    .app-footer {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
        font-size: 0.6rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .app-container {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    .central-control {
        margin-bottom: 2rem;
        flex-direction: row;
        gap: 2rem;
    }
    .logo-container {
        margin-bottom: 0;
        text-align: left;
    }
    #play-pause-btn {
        width: 80px;
        height: 80px;
    }
    .btn-inner {
        width: 60px;
        height: 60px;
    }
}

@media screen and (min-width: 2000px) {
    :root {
        font-size: 20px;
    }
    .info-panels-container {
        max-width: 1600px;
    }
}
