:root {
    --primary: #022C2B;
    --primary-light: #004d40;
    --accent: #00E676;
    --accent-glow: rgba(0, 230, 118, 0.35);
    --gold: #FFD700;
    --dark-bg: #011a19;
    --glass: rgba(2, 44, 43, 0.8);
    --glass-light: rgba(0, 77, 64, 0.5);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Background ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,230,118,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,77,64,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,215,0,0.04) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    to { transform: scale(1.1) rotate(3deg); }
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(1, 26, 25, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,230,118,0.12);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.header-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
}

.header-brand span {
    color: var(--accent);
}

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

.header-datetime {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
}

.header-datetime .time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--accent);
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-light);
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 5px 18px var(--accent-glow);
}

/* ===== Banner ===== */
.hero-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 25px 20px 0;
}

.banner-frame {
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(0,230,118,0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.banner-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== Main ===== */
.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px 40px;
    gap: 30px;
    text-align: center;
}

/* ===== Station Info ===== */
.station-info {
    text-align: center;
}

.station-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 35px var(--accent-glow);
    animation: logoPulse 3s ease-in-out infinite alternate;
    margin-bottom: 16px;
}

@keyframes logoPulse {
    to { box-shadow: 0 0 55px var(--accent-glow), 0 0 100px rgba(0,230,118,0.15); }
}

.station-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(22px, 3.5vw, 26px);
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.station-freq {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.station-location {
    font-size: 13px;
    color: var(--text-muted);
}

.station-location i {
    color: var(--accent);
    margin-right: 4px;
}

/* ===== Weather Widget ===== */
.weather-widget {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto 30px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.weather-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon svg {
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 60px;
}

.weather-details {
    flex: 1;
    text-align: left;
}

.weather-temp {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1;
    color: var(--text);
    margin-bottom: 4px;
}

.weather-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* ===== Audio Player ===== */
.audio-player {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border-radius: var(--radius);
    border: 1px solid rgba(0,230,118,0.15);
    padding: 28px;
    width: 100%;
    max-width: 680px;
    margin-bottom: 35px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.player-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.player-title-container {
    max-width: 250px;
    width: 100%;
}

.player-artwork {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(0,230,118,0.25);
    flex-shrink: 0;
    transition: transform 0.4s;
}

.player-artwork.playing {
    animation: discSpin 4s linear infinite;
}

@keyframes discSpin {
    to { transform: rotate(360deg); }
}

.player-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
}

.player-title-text {
    display: inline-block;
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.player-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.status-dot.live {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.status-dot.error {
    background: #ff1744;
}

@keyframes dotPulse {
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 45px;
    gap: 3px;
    margin-bottom: 22px;
    padding: 0 8px;
}

.viz-bar {
    flex: 1;
    max-width: 5px;
    min-height: 3px;
    background: linear-gradient(to top, var(--accent), var(--gold));
    border-radius: 3px;
    height: 3px;
}

/* Controls */
.player-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.btn-play {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00C853);
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 22px var(--accent-glow);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0,230,118,0.45);
}

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

.btn-play .fa-play {
    margin-left: 3px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(2,44,43,0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-play.loading .spinner {
    display: block;
}

.btn-play.loading .fa-play,
.btn-play.loading .fa-pause {
    display: none;
}

/* Volume */
.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vol-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.vol-btn:hover {
    color: var(--accent);
}

.vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 180px;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
}

.vol-slider::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent) var(--vol-pct, 75%), rgba(255,255,255,0.1) var(--vol-pct, 75%));
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    margin-top: -4.5px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.vol-slider::-moz-range-track {
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    border: none;
}

.vol-slider::-moz-range-progress {
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 3px;
}

.vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 22px rgba(37,211,102,0.3);
    margin-bottom: 30px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(37,211,102,0.4);
}

.whatsapp-btn i {
    font-size: 20px;
}

/* ===== Social Cards ===== */
.social-cards {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,230,118,0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-card i {
    font-size: 18px;
}

.social-card.facebook i {
    color: #1877F2;
}

.social-card.twitter i {
    color: #fff;
}

.social-card.wa i {
    color: #25D366;
}

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    background: rgba(1, 26, 25, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,230,118,0.12);
    padding: 22px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-copy a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-copy a:hover {
    color: var(--gold);
}

.footer-designer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-designer img {
    height: 20px;
    width: auto;
    border-radius: 4px;
}

.footer-designer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-designer a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials .social-link {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 15px 10px 0;
    }

    .banner-frame {
        max-width: 100%;
        height: 300px; 
    }

    .banner-frame img {
        height: 100%;
        object-fit: contain; 
    }

    header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-brand {
        font-size: 12px;
    }

    .station-name {
        font-size: clamp(20px, 3vw, 22px);
    }

    .station-freq {
        font-size: clamp(12px, 1.8vw, 14px);
    }

    .audio-player {
        padding: 20px;
        border-radius: 16px;
    }

    .player-artwork {
        width: 54px;
        height: 54px;
    }

    .btn-play {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .visualizer {
        height: 35px;
    }

    .weather-widget {
        padding: 16px 20px;
        gap: 14px;
    }

    .weather-temp {
        font-size: clamp(22px, 3.5vw, 26px);
    }

    .weather-icon {
        width: 50px;
        height: 50px;
    }

    .social-cards {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}