:root {
    --bg: #050510;
    --bg-elevated: #101020;
    --bg-elevated-soft: #15152a;
    --accent: #4facfe;
    --accent-soft: rgba(79, 172, 254, 0.18);
    --accent-strong: #8f94fb;
    --text-main: #f9f9ff;
    --text-muted: #a0a0c0;
    --border-subtle: #232345;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #181840 0, #050510 45%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* Layout */
.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* Brand / top bar */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: conic-gradient(from 160deg, #4facfe, #8f94fb, #00f2fe, #4facfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #050510;
    box-shadow: 0 0 18px rgba(79, 172, 254, 0.5);
}

.brand-text-main {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 18px;
}

.brand-text-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(10, 10, 25, 0.85);
    color: var(--text-muted);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #29f393;
    box-shadow: 0 0 8px rgba(41, 243, 147, 0.8);
}

/* Columns */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(7, 7, 30, 0.9));
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px 22px;
    border: 1px solid rgba(79, 172, 254, 0.35);
    box-shadow: 0 18px 40px rgba(2, 2, 20, 0.9);
}

.hero-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 8px;
}

    .hero-title .gradient {
        background: linear-gradient(135deg, #4facfe, #8f94fb, #00f2fe);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 460px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.hero-stat {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(81, 92, 194, 0.7);
    background: rgba(8, 8, 18, 0.9);
    font-size: 11px;
    color: var(--text-muted);
}

    .hero-stat strong {
        color: var(--text-main);
    }

/* Search */
.search-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 30px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(5, 5, 20, 0.95);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

    .search-input::placeholder {
        color: #70708d;
    }

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
}

.filter-pill {
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(8, 8, 25, 0.9);
    color: var(--text-muted);
    white-space: nowrap;
}

/* Station list */
.station-list-container {
    margin-top: 10px;
    background: rgba(5, 5, 20, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 10px;
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.station-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.station-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c2c55 transparent;
}

    .station-list::-webkit-scrollbar {
        width: 6px;
    }

    .station-list::-webkit-scrollbar-thumb {
        background: #2c2c55;
        border-radius: 999px;
    }

.station-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
}

    .station-item:hover {
        background: rgba(40, 40, 80, 0.7);
        transform: translateY(-1px);
    }

    .station-item.active {
        background: var(--accent-soft);
        border-color: var(--accent);
    }

.station-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.station-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.station-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.station-country-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    border: 1px solid rgba(120, 120, 200, 0.8);
    background: rgba(10, 10, 30, 0.9);
    white-space: nowrap;
}

.station-play-icon {
    font-size: 14px;
    margin-left: 2px;
    opacity: 0.8;
}

.loading-text,
.error-text {
    font-size: 12px;
    padding: 8px;
    color: var(--text-muted);
}

.error-text {
    color: #ff8080;
}

/* Player card */
.player-card {
    background: linear-gradient(145deg, rgba(5, 5, 18, 0.98), rgba(12, 12, 36, 0.98));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 172, 254, 0.45);
    padding: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

    .player-card::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(79, 172, 254, 0.35), transparent 60%);
        top: -130px;
        right: -80px;
        opacity: 0.8;
        pointer-events: none;
    }

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.player-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}

.player-badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(79, 172, 254, 0.8);
    background: rgba(6, 10, 36, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-main-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.now-playing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.now-playing-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.now-playing-name {
    font-size: 16px;
    font-weight: 600;
}

.now-playing-country {
    font-size: 12px;
    color: var(--text-muted);
}

.audio-wrap {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(100, 100, 190, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

audio {
    width: 100%;
    outline: none;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.8));
}

.hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.glow-dots {
    margin-top: 18px;
    display: flex;
    gap: 6px;
}

.glow-dot {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(79, 172, 254, 0.1), rgba(79, 172, 254, 0.9));
    opacity: 0.6;
    animation: pulse 1.4s ease-in-out infinite;
}

    .glow-dot:nth-child(2) {
        animation-delay: 0.15s;
    }

    .glow-dot:nth-child(3) {
        animation-delay: 0.3s;
    }

    .glow-dot:nth-child(4) {
        animation-delay: 0.45s;
    }

@keyframes pulse {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}
