/* ============================================
   Radio - Website Styles
   Mobile-first responsive design with dark theme
   ============================================ */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-nav: rgba(30, 30, 30, 0.95);
    --bg-player: rgba(40, 40, 40, 0.98);

    /* Mobile floating bars (player + bottom nav) - unified style */
    --bg-mobile-bar: rgba(30, 30, 30, 0.95);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-green: #22c55e;

    /* Aliases for components */
    --accent-color: var(--accent-blue);
    --accent-hover: #2563eb;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --nav-height-mobile: 70px;
    --player-height-mobile: 60px;
    --header-height-mobile: 50px;
    --header-height-desktop: 70px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

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

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   Mobile Header
   ============================================ */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-mobile);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.logo-icon-mobile {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.profile-icon-mobile {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: background var(--transition-fast);
}

.profile-icon-mobile:hover {
    background: var(--bg-card);
}

/* ============================================
   Desktop Header
   ============================================ */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-desktop);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.desktop-nav .nav-item:hover,
.desktop-nav .nav-item.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.desktop-nav .nav-item i {
    font-size: 1.25rem;
}

.header-profile .profile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: background var(--transition-fast);
}

.header-profile .profile-icon:hover {
    background: var(--bg-card);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding-top: calc(var(--header-height-mobile) + 1rem);
    padding-bottom: calc(180px + env(safe-area-inset-bottom)); /* Space for floating nav + player */
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 100vh;
    transition: opacity 0.15s ease;
}

/* ============================================
   Mobile Bottom Navigation (Floating Pill)
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    height: 64px;
    background: var(--bg-mobile-bar);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: var(--radius-full);
    z-index: 1000;
    padding: 6px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    max-height: 52px;
}

.mobile-nav-item i {
    font-size: 1.5rem;
}

.mobile-nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-item.active i {
    color: var(--accent-blue);
}

.mobile-nav-item:hover:not(.active) {
    color: var(--text-secondary);
}

/* ============================================
   Mini Player (Floating Pill)
   ============================================ */
.mini-player-placeholder,
.mini-player {
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom)); /* Above the nav bar */
    left: 16px;
    right: 16px;
    height: 56px;
    background: var(--bg-mobile-bar);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    z-index: 999;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mini-player-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    gap: 10px;
}

.mini-player-cover {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.mini-player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mini-player-radio-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.9);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mini-player-station {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mini-player-track {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-player-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.375rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.mini-player-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.mini-player-btn.liked,
.mini-player-btn.liked i {
    color: var(--accent-red);
}

.mini-player-btn.disliked,
.mini-player-btn.disliked i {
    color: var(--accent-blue);
}

.mini-player-btn-play {
    background: transparent;
    color: #e91e63; /* Pink/magenta play button */
    font-size: 1.75rem;
}

.mini-player-btn-play:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.mini-player-live {
    display: none; /* Hide LIVE badge in floating pill design */
    flex-shrink: 0;
}

/* Mini Player Progress Bar */
.mini-player-progress {
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 4px;
    padding: 0;
    z-index: 10;
}

.progress-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--accent-blue) 0%, rgba(255, 255, 255, 0.3) 0%);
    border-radius: 2px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: block;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-blue);
    cursor: pointer;
}

.progress-slider::-moz-range-thumb {
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-blue);
    cursor: pointer;
    border: none;
}

.progress-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.progress-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-slider::-moz-range-progress {
    background: var(--accent-blue);
    height: 4px;
    border-radius: 2px;
}

.mini-player-time {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1;
}

/* ============================================
   Desktop Player
   ============================================ */
.desktop-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    display: none;
    overflow: visible;
}

.desktop-player.has-progress {
    height: 110px;
}

.desktop-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.desktop-player-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.desktop-player-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.desktop-player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-player-radio-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
    color: white;
    font-size: 1.5rem;
}

.desktop-player-info {
    min-width: 0;
    overflow: hidden;
}

.desktop-player-station {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.desktop-player-track {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-player-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-player-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.desktop-player-btn:hover {
    transform: scale(1.1);
}

.desktop-player-skip {
    font-size: 1.5rem;
    opacity: 0.7;
}

.desktop-player-skip:hover {
    opacity: 1;
}

.desktop-player-btn.liked,
.desktop-player-btn.liked i {
    color: var(--accent-red);
}

.desktop-player-btn.disliked,
.desktop-player-btn.disliked i {
    color: var(--accent-blue);
}

/* Desktop Player Progress Bar */
.desktop-player-progress {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 40px;
}

.progress-slider-desktop {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--accent-blue) 0%, rgba(255, 255, 255, 0.2) 0%);
    border-radius: 2px;
    cursor: pointer;
}

.progress-slider-desktop::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-slider-desktop::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-slider-desktop::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.progress-slider-desktop::-moz-range-progress {
    background: var(--accent-blue);
    height: 4px;
    border-radius: 2px;
}

.desktop-player-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: none;
}

/* Desktop: Show desktop player, hide mini player and mobile nav */
@media (min-width: 768px) {
    .mini-player {
        display: none;
    }

    .desktop-player {
        display: block;
    }

    .main-content {
        padding-bottom: 160px;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* ============================================
   Podcast Cards
   ============================================ */
.podcast-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.podcast-card-link:hover {
    color: inherit;
}

.podcast-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.podcast-card:hover {
    transform: scale(1.02);
}

.podcast-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
}

.podcast-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.podcast-card-author {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-card-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.podcast-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.podcast-card-duration {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.podcast-card-duration i {
    font-size: 0.75rem;
}

.podcast-card-menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.podcast-card-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Podcast Grid (Mobile - 2 columns)
   ============================================ */
.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ============================================
   Category Section with Horizontal Scroll
   ============================================ */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    margin-bottom: 1rem;
}

.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll .podcast-card-link,
.category-scroll .podcast-card {
    flex: 0 0 calc(50% - 0.375rem);
    scroll-snap-align: start;
    min-width: 150px;
    max-width: 200px;
}

/* Scroll Container with Buttons (Desktop) */
.category-scroll-container {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-scroll-container:hover .scroll-btn,
.timetable-scroll-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--bg-card);
}

.scroll-btn-left {
    left: 0;
}

.scroll-btn-right {
    right: 0;
}

/* ============================================
   LIVE Badge
   ============================================ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--accent-red);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Desktop Styles (768px+)
   ============================================ */
@media (min-width: 768px) {
    /* Main content */
    .main-content {
        padding-top: calc(var(--header-height-desktop) + 2rem);
        padding-bottom: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Grid - 3 columns */
    .podcasts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Category scroll - larger cards */
    .category-scroll {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .category-scroll .podcast-card {
        flex: 0 0 calc(33.333% - 0.833rem);
        max-width: 280px;
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    /* Grid - 4 columns */
    .podcasts-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-scroll .podcast-card {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: 320px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-card {
    background: var(--bg-card) !important;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   Placeholder Image
   ============================================ */
.podcast-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    color: var(--text-muted);
    font-size: 3rem;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ============================================
   Podcasts Page
   ============================================ */
.podcasts-page {
    padding-bottom: 2rem;
}

/* ============================================
   Radio Page
   ============================================ */
.radio-page {
    padding-bottom: 8rem;
    overflow-x: hidden;
    min-width: 0;
}

.radio-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.radio-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 1.5rem;
}

.radio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
    color: white;
    font-size: 4rem;
}

.radio-info {
    margin-bottom: 2rem;
}

.radio-station-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.radio-track-name {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.radio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.radio-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.radio-play-btn:hover {
    transform: scale(1.05);
    background: #2563eb;
}

.radio-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.radio-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.radio-action-btn.liked {
    color: var(--accent-red);
}

/* ============================================
   Profile Page
   ============================================ */
.profile-page {
    padding: 2rem 0;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.profile-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.profile-list-item:last-child {
    border-bottom: none;
}

.profile-list-item:hover {
    background: var(--bg-secondary);
}

.profile-list-item i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.profile-list-item .chevron {
    margin-left: auto;
    color: var(--text-muted);
}

.profile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-login-btn:hover {
    background: #2563eb;
}

.profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-logout-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Profile Page - Desktop */
@media (min-width: 768px) {
    .profile-page {
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem 1rem 100px;
    }

    .profile-header {
        padding: 3rem 2rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-section {
        margin-bottom: 2.5rem;
    }

    .profile-section-title {
        padding: 0;
    }

    .profile-list-item {
        padding: 1.25rem 1.5rem;
    }

    .profile-login-btn,
    .profile-logout-btn {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ============================================
   Auth Pages (Login / Register)
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input.error {
    border-color: var(--accent-red);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .auth-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.125rem;
    transition: color var(--transition-fast);
}

.auth-password-toggle:hover {
    color: var(--text-primary);
}

.auth-field-error {
    font-size: 0.75rem;
    color: var(--accent-red);
    margin-top: 0.25rem;
    display: none;
}

.auth-field-error.visible {
    display: block;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-blue);
}

.auth-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--accent-red);
    font-size: 0.875rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Back to home link */
.auth-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.auth-back:hover {
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .auth-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   Debug: CSS Variables Display (Development)
   Uncomment to debug color/spacing issues
   ============================================ */
/*
.debug-vars::before {
    content: 'bg-primary: ' var(--bg-primary);
    position: fixed;
    top: 0;
    right: 0;
    background: red;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    z-index: 9999;
}
*/
