

/* ========================================
   ROOT VARIABLES
======================================== */
:root {
    --primary: #0d6efd;
    --primary-dark: #084298;

    --accent: #ffc107;
    --accent-dark: #e0a800;

    --bg: #0f1117;
    --surface: #181b23;
    --surface-2: #20232d;

    --border: rgba(255,255,255,0.08);

    --text: #f5f7fa;
    --text-soft: #aab2c0;

    --success: #1ed760;
    --shadow: 0 10px 35px rgba(0,0,0,0.35);

    --radius: 18px;
}

/* ========================================
   RESET
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(circle at top left, rgba(13,110,253,0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(255,193,7,0.10), transparent 30%),
        var(--bg);

    color: var(--text);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 40px 20px;
}

/* ========================================
   MAIN CONTAINER
======================================== */
.radio-shell {
    width: 100%;
    max-width: 1200px;
}

.radio-card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.015)
    );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

/* ========================================
   HEADER
======================================== */
.radio-header {
    padding: 28px 32px;

    border-bottom: 1px solid var(--border);

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

.radio-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-title {
    margin: 0;

    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.radio-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    background: rgba(30,215,96,0.12);

    border: 1px solid rgba(30,215,96,0.3);
    border-radius: 999px;

    color: #7dffae;

    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.live-dot {
    width: 10px;
    height: 10px;

    background: var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 0 0 rgba(30,215,96,0.7);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30,215,96,0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(30,215,96,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30,215,96,0);
    }
}

/* ========================================
   PLAYER SECTION
======================================== */
.player-section {
    padding: 32px;
}

.player-panel {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 24px;
}

/* ========================================
   AUDIO PLAYER
======================================== */
audio {
    width: 100%;
    height: 64px;

    border-radius: 12px;
}

/* ========================================
   TRACK INFO
======================================== */
#trackInfo {
    margin-top: 18px;

    padding: 16px 18px;

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   CONTROLS
======================================== */
.controls {
    display: flex;
    justify-content: center;
    gap: 14px;

    margin-top: 24px;
}

.player-btn {
    appearance: none;
    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    background: linear-gradient(
        180deg,
        var(--accent),
        var(--accent-dark)
    );

    color: #1a1a1a;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.player-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(255,193,7,0.25);
}

.player-btn:active {
    transform: scale(0.98);
}

/* ========================================
   PLAYLIST
======================================== */
.playlist-section {
    margin-top: 28px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.playlist-title {
    margin: 0;

    font-size: 1.2rem;
    font-weight: 700;
}

.playlist-count {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.playlist {
    display: grid;
    gap: 12px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    padding: 16px 18px;

    background: var(--surface-2);

    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        border-color 0.2s ease,
        transform 0.15s ease,
        background 0.2s ease;
}

.playlist-item:hover {
    transform: translateY(-2px);

    border-color: rgba(255,255,255,0.16);

    background: rgba(255,255,255,0.04);
}

.track-meta {
    min-width: 0;
}

.track-name {
    display: block;

    color: var(--text);

    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-time {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 0.88rem;
}

.operator-link {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;

    padding: 10px 16px;

    border-radius: 10px;

    background: rgba(13,110,253,0.14);

    border: 1px solid rgba(13,110,253,0.25);

    color: #7db7ff;

    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        border-color 0.2s ease;
}

.operator-link:hover {
    background: rgba(13,110,253,0.24);

    border-color: rgba(13,110,253,0.45);

    transform: translateY(-1px);
}

/* ========================================
   FOOTER
======================================== */
.radio-footer {
    padding: 20px 28px;

    border-top: 1px solid var(--border);

    color: var(--text-soft);
    font-size: 0.85rem;

    text-align: center;
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

/* ========================================
   MOBILE
======================================== */
@media (max-width: 768px) {

    body {
        padding: 18px;
    }

    .radio-header,
    .player-section {
        padding: 22px;
    }

    .playlist-item {
        flex-direction: column;
        align-items: stretch;
    }

    .operator-link {
        width: 100%;
    }

    .controls {
        flex-direction: column;
    }

    .player-btn {
        width: 100%;
    }

}

