/* Radio station UI styles scoped to .phone.right inside Music View */

/* Radio toggle button (top-right of .phone.right) */
.phone.right .content .right-phone-radio-toggle-btn {
    position: absolute;
    top: 2.5%;
    right: 20px;
    width: 32px;
    height: 32px;
    z-index: 101;
    background: var(--controls-normal-button-wrapper-gradient);
    box-shadow: var(--controls-button-wrapper-neu-shadows);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    pointer-events: auto;
}

.phone.right .content .right-phone-radio-toggle-btn.hidden,
.phone.mini .right-phone-radio-toggle-btn {
    display: none !important;
}

.phone.right .content .right-phone-radio-toggle-btn .btn-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--controls-normal-button-front-gradient);
    box-shadow: var(--controls-normal-button-inset-shadows);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transform: scale(0.925);
    transition: all 0.1s linear;
}

.phone.right .content .right-phone-radio-toggle-btn:hover .btn-icon {
    color: rgba(255, 255, 255, 1);
    transform: scale(0.95);
}

.phone.right .content .right-phone-radio-toggle-btn:active .btn-icon,
.phone.right .content .right-phone-radio-toggle-btn.active .btn-icon {
    box-shadow: var(--controls-pressed-button-inset-shadows);
    background: var(--controls-pressed-button-front-gradient);
    color: #fff;
    transform: scale(0.9);
}

.phone.right .content .right-phone-radio-toggle-btn.active {
    background: var(--controls-pressed-button-wrapper-gradient);
}

/* Completely hide playlists panel and toggle while Radio is displayed */
.phone.right.radio-mode-active .category-dropdown-wrapper,
.phone.right.radio-mode-active section.favorites-icon-section,
.phone.right.radio-mode-active .favorites-icon-section,
.phone.right.radio-mode-active .favorites-icon-panel-container,
.phone.right.radio-mode-active #favoritesIconPanel,
.phone.right.radio-mode-active #playlistExpandToggleBtn,
.phone.right.radio-mode-active #playlistMenuToggleContainer,
.phone.right.radio-mode-active .playlist-menu-toggle,
.phone.right.radio-mode-active #favoritesPanelToggleContainer,
.phone.right.radio-mode-active .favorites-toggle-container,
.phone.right .content .right-content-wrapper.radio-mode-active .category-dropdown-wrapper,
.phone.right .content .right-content-wrapper.radio-mode-active > section.favorites-icon-section,
.phone.right .content .right-content-wrapper.radio-mode-active .favorites-icon-section,
.phone.right .content .right-content-wrapper.radio-mode-active .favorites-icon-panel-container,
.phone.right .content .right-content-wrapper.radio-mode-active #favoritesIconPanel,
.phone.right .content .right-content-wrapper.radio-mode-active #playlistExpandToggleBtn,
.phone.right .content .right-content-wrapper.radio-mode-active #playlistMenuToggleContainer,
.phone.right .content .right-content-wrapper.radio-mode-active .playlist-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.phone.right.radio-mode-active .content > section.albums-section,
.phone.right.radio-mode-active .content .right-content-wrapper > section.category-section,
.phone.right .content .right-content-wrapper.radio-mode-active > section.category-section {
    height: 100% !important;
    flex: 1 1 auto !important;
    max-height: none !important;
}

.phone.right .content .albums-row.list-view .album-item.radio-station-item,
.phone.right .content .category-row.list-view .album-item.radio-station-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone.right .content .albums-row:not(.list-view) .album-item.radio-station-item .radio-station-meta,
.phone.right .content .category-row:not(.list-view) .album-item.radio-station-item .radio-station-meta {
    display: none;
}

.phone.right .content .albums-row.list-view .album-item.radio-station-item .radio-station-meta,
.phone.right .content .category-row.list-view .album-item.radio-station-item .radio-station-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 3px;
    text-align: left;
}

.phone.right .content .albums-row.list-view .album-item.radio-station-item .album-item-title,
.phone.right .content .category-row.list-view .album-item.radio-station-item .album-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone.right .content .albums-row.list-view .album-item.radio-station-item .radio-station-subtitle,
.phone.right .content .category-row.list-view .album-item.radio-station-item .radio-station-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone.right .content .album-item.radio-station-item.radio-loading {
    opacity: 0.65;
    pointer-events: none;
    animation: radioStationPulse 1.1s ease-in-out infinite;
}

@keyframes radioStationPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.99);
    }
    50% {
        opacity: 0.9;
        transform: scale(1);
    }
}

.phone.right .content .radio-status-toast,
.radio-status-toast {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 25;
    max-width: calc(100% - 32px);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.phone.right .content .radio-status-toast.hidden,
.radio-status-toast.hidden {
    display: none;
}

.phone.right .content .radio-status-toast.error,
.radio-status-toast.error {
    background: rgba(95, 24, 30, 0.92);
    border-color: rgba(255, 118, 128, 0.35);
    color: #ffd8dc;
}

.phone.right .content .albums-row .radio-empty-state,
.phone.right .content .category-row .radio-empty-state {
    width: 100%;
    padding: 36px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.5;
    grid-column: 1 / -1;
}
