/* ═══════════════════════════════════════════════════════
   NexTask - Mobile Radio Experience (Premium UI)
═══════════════════════════════════════════════════════ */

#mobile-radio-hero {
    display: none;
    /* Sadece mobilde aktif olacak */
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-main);
    overflow: hidden;
    flex-direction: column;
    padding: 24px;
    padding-top: 60px;
    /* Header boşluğu */
}

/* Arka plan animasyonu */
#mobile-radio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    animation: radioBgRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes radioBgRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Ana Disk Alanı ── */
.radio-disk-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1;
}

.radio-vinyl-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
}

.radio-vinyl {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    background: repeating-radial-gradient(circle,
            #111,
            #111 2px,
            #181818 3px,
            #111 4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 10px #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-vinyl.playing {
    animation: vinylRotate 8s linear infinite;
}

.radio-vinyl-center {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.radio-vinyl-center i {
    width: 40px;
    height: 40px;
}

@keyframes vinylRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Bilgi Alanı ── */
.radio-meta {
    text-align: center;
    width: 100%;
}

.radio-station-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.radio-song-name {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Görselleştirici (Visualizer) ── */
.radio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.radio-visualizer span {
    width: 4px;
    background: var(--primary);
    border-radius: 10px;
    height: 5px;
    transition: height 0.2s;
}

.radio-visualizer.playing span {
    animation: radioWave 0.8s infinite alternate;
}

@keyframes radioWave {
    0% {
        height: 5px;
        opacity: 0.5;
    }

    100% {
        height: 40px;
        opacity: 1;
    }
}

/* ── Kontroller ── */
.radio-hero-controls {
    background: rgba(var(--bg-card-rgb), 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: auto;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.rh-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.rh-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rh-btn.primary {
    width: 72px;
    height: 72px;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
}

.rh-btn:active {
    transform: scale(0.9);
}

.rh-volume-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 8px;
}

.rh-volume-row i {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.rh-range {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 10px;
    background: var(--border);
    outline: none;
}

.rh-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ── İstasyon Listesi (Sheet) ── */
.radio-stations-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.radio-stations-sheet::-webkit-scrollbar {
    width: 3px;
}

.radio-sheet-item {
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.2s;
}

.radio-sheet-item.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* ── Responsive Kurallar ── */

@media (max-width: 768px) {

    /* Radyo Modu Butonu (Header'a eklenecek) */
    #toggle-radio-mode-btn {
        display: flex;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        align-items: center;
        justify-content: center;
        color: var(--primary);
    }

    body.radio-mode-active #todo-container-main>div:not(#mobile-radio-hero),
    body.radio-mode-active #todo-container-main>header #header-left,
    body.radio-mode-active #todo-container-main>header #header-right #view-switch-group,
    body.radio-mode-active #todo-container-main>header #header-right #global-search-btn {
        display: none !important;
    }

    body.radio-mode-active #mobile-radio-hero {
        display: flex;
    }
}