:root {
    --primary-color: #4CAF50;
    --accent-color: #81C784;
    --text-color: #ffffff;
    --bg-dark: #121212;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* App Container */
.app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    max-height: 95vh;
    max-height: 95dvh;
    /* Dynamic viewport height for mobile browsers */
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.glass-card::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Info Button */
.info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.info-btn:hover {
    color: white;
}

/* Header */
.header {
    padding-top: 10px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-container {
    margin-bottom: 10px;
}

.logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.station-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Player Controls */
.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.4);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

/* Volume */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 1.2em;
}

/* Visualizer */
.visualizer {
    display: flex;
    gap: 5px;
    height: 25px;
    align-items: flex-end;
}

.bar {
    width: 5px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: bounce 1s infinite ease-in-out;
}

.visualizer.active .bar {
    animation-play-state: running;
}

.visualizer:not(.active) .bar {
    height: 5px !important;
    animation-play-state: paused;
}

.bar:nth-child(1) {
    height: 12px;
    animation-duration: 0.8s;
}

.bar:nth-child(2) {
    height: 20px;
    animation-duration: 1.1s;
}

.bar:nth-child(3) {
    height: 16px;
    animation-duration: 0.9s;
}

.bar:nth-child(4) {
    height: 25px;
    animation-duration: 1.2s;
}

.bar:nth-child(5) {
    height: 14px;
    animation-duration: 1.0s;
}

@keyframes bounce {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 100%;
    }
}

/* Footer */
.slogan {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.4;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 15px;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ================= */
/* === MODAL ======= */
/* ================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 15px;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal .glass-card {
    text-align: left;
    max-width: 500px;
    width: 100%;
    padding: 30px;
}

.modal h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.contact-section {
    margin-top: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.contact-section p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-section a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.mt-2 {
    margin-top: 12px;
}

/* ========================= */
/* === RESPONSIVE DESIGN === */
/* ========================= */

/* Short screens / landscape phones */
@media (max-height: 700px) {
    .glass-card {
        padding: 25px 20px;
        gap: 15px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .station-name {
        font-size: 1.3rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .slogan {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .visualizer {
        height: 18px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .glass-card {
        padding: 25px 15px;
        gap: 15px;
    }

    .station-name {
        font-size: 1.3rem;
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .modal .glass-card {
        padding: 20px 15px;
    }
}

/* Tablets / larger screens */
@media (min-width: 768px) {
    .glass-card {
        max-width: 420px;
        padding: 45px 35px;
    }
}