:root {
    --clr-bg-start: #020617;
    --clr-bg-end: #0f172a;
    --clr-accent: #3b82f6;
    --clr-accent-glow: rgba(59, 130, 246, 0.4);
    --clr-neon-blue: #00d2ff;
    --clr-neon-purple: #9d50bb;
    --clr-text-white: #f8fafc;
    --clr-text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px);
    --spiritual-glow: 0 0 30px rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--clr-bg-start);
    font-family: 'Inter', sans-serif;
    color: var(--clr-text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-attachment: fixed;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(157, 80, 187, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #020617 0%, #000 100%);
    opacity: 0.8;
}

.player-container {
    width: 100%;
    max-width: 800px;
    padding: 10px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.main-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.logo-wrapper {
    position: relative;
    padding: 15px 15px 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: auraRotate 10s linear infinite;
}

@keyframes auraRotate {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.5;
    }
}

.top-logo {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.4));
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* Player Card Styles */
.player-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.4s ease;
}

.player-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: glowMove 8s ease-in-out infinite;
}

@keyframes glowMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, 10px);
    }
}

.program-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(4px);
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 12px #ef4444;
}

.playing .live-indicator .dot {
    animation: pulse 1.5s infinite;
}

.live-indicator span:last-child {
    font-size: 0.7rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    max-width: 280px;
}

.station-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 400;
}

/* Visualizer */
.visualizer-container {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualizer-bars {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.visualizer-bars span {
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, var(--clr-accent), var(--clr-neon-blue));
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.playing .visualizer-bars span {
    opacity: 1;
    animation: bar-dance 0.8s infinite alternate;
    box-shadow: 0 0 15px var(--clr-accent-glow);
}

.playing .visualizer-bars span:nth-child(2) {
    animation-delay: 0.1s;
    height: 12px;
}

.playing .visualizer-bars span:nth-child(3) {
    animation-delay: 0.2s;
    height: 16px;
}

.playing .visualizer-bars span:nth-child(4) {
    animation-delay: 0.15s;
    height: 20px;
}

.playing .visualizer-bars span:nth-child(5) {
    animation-delay: 0.3s;
    height: 14px;
}

.playing .visualizer-bars span:nth-child(6) {
    animation-delay: 0.25s;
    height: 18px;
}

.playing .visualizer-bars span:nth-child(7) {
    animation-delay: 0.05s;
    height: 10px;
}

/* Play Button */
.play-btn-premium {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, var(--clr-accent), #2563eb);
    border: none;
    border-radius: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.play-btn-premium::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 38px;
    transition: all 0.4s ease;
}

.play-btn-premium:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.4);
}

.play-btn-premium:hover::before {
    inset: -10px;
    opacity: 0;
}

.play-btn-premium:active {
    transform: scale(0.95);
}

.play-btn-premium .material-icons-round {
    font-size: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Footer Section */
.player-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.volume-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.volume-container .material-icons-round {
    font-size: 18px;
    color: var(--clr-text-muted);
}

.premium-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--clr-accent);
    transition: transform 0.2s ease;
}

.premium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Social Footer */
.social-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--clr-accent);
    transform: translateY(-6px) rotate(4deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-btn.instagram:hover {
    color: #e1306c;
}

.social-btn.youtube:hover {
    color: #ff0000;
}

.footer-mission {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bar-dance {
    from {
        height: 8px;
        transform: scaleY(1);
    }

    to {
        height: 32px;
        transform: scaleY(1.2);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .player-container {
        padding: 10px 20px 32px 20px;
        gap: 32px;
    }

    .brand-name {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }

    .top-logo {
        width: 180px;
    }

    .logo-wrapper::before {
        width: 240px;
        height: 240px;
    }

    .player-card {
        padding: 32px 20px;
        border-radius: 32px;
        gap: 24px;
    }

    .program-title {
        font-size: 1.2rem;
    }

    .play-btn-premium {
        width: 80px;
        height: 80px;
    }
}

/* Desktop Larger View */
@media (min-width: 1024px) {
    .player-container {
        max-width: 800px;
    }

    .top-logo {
        width: 600px;
    }

    .logo-wrapper::before {
        width: 750px;
        height: 750px;
    }
}

/* Install Button */
#pwaInstallBtn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, #5c67ff, #3b82f6) !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}