:root {
    --primary-color: #ff3c00;
    --secondary-color: #d55e3a;
    --accent-color: #ff3366;
    --dark-bg: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Background */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, var(--secondary-color), var(--dark-bg));
    opacity: 0.5;
    z-index: -1;
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Main Container & Glassmorphism */
.player-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Header */
.card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.main-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.live-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 51, 102, 0.2);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Station Info */
.station-info {
    text-align: center;
    margin-bottom: 30px;
}

.station-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--text-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frequency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Visualizer (Fake simple bars) */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 40px;
    gap: 4px;
    margin-bottom: 30px;
    opacity: 0.3;
    /* dim when not playing */
    transition: opacity 0.3s;
}

.visualizer.active {
    opacity: 1;
}

.visualizer .bar {
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
    height: 10px;
}

.visualizer.active .bar {
    animation: bounce 1s infinite alternate;
}

.visualizer.active .bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 15px;
}

.visualizer.active .bar:nth-child(2) {
    animation-delay: 0.3s;
    height: 25px;
}

.visualizer.active .bar:nth-child(3) {
    animation-delay: 0.5s;
    height: 35px;
}

.visualizer.active .bar:nth-child(4) {
    animation-delay: 0.2s;
    height: 40px;
}

.visualizer.active .bar:nth-child(5) {
    animation-delay: 0.6s;
    height: 30px;
}

.visualizer.active .bar:nth-child(6) {
    animation-delay: 0.4s;
    height: 20px;
}

.visualizer.active .bar:nth-child(7) {
    animation-delay: 0.7s;
    height: 15px;
}

@keyframes bounce {
    0% {
        transform: scaleY(0.5);
    }

    100% {
        transform: scaleY(1.5);
    }
}

/* Controls */
.controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    color: var(--text-muted);
}

.volume-control input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.volume-control input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

.volume-control input[type=range]:focus {
    outline: none;
}

.volume-control input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.volume-control input[type=range]::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Contact Actions */
.contact-actions {
    width: 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.app-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

/* Responsive */
@media (max-height: 700px) {
    .station-name {
        font-size: 1.5rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 20px 15px;
    }
}