/* KalviYogi / Edunivra - Premium Educational Podcast Platform */
/* Black-Gold Royal Theme - World-Class Design */

:root {
    /* Royal Gold Palette */
    --gold: #D4AF37;
    --gold-light: #F4D56B;
    --gold-dark: #A68B2C;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-subtle: rgba(212, 175, 55, 0.08);
    
    /* Deep Dark Theme */
    --bg-darkest: #000000;
    --bg-darker: #050505;
    --bg-dark: #0A0A0A;
    --bg-medium: #111111;
    --bg-light: #1A1A1A;
    --bg-lighter: #222222;
    --bg-card: #141414;
    --bg-card-hover: #1C1C1C;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --text-gold: var(--gold);
    
    /* Gradients */
    --gradient-hero: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 30%, transparent 60%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darkest) 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    
    /* Spacing */
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 64px;
    --bottom-nav-height: 70px;
    --mini-player-height: 64px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
    
    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

/* Prevent horizontal overflow globally */
.app-container,
.app-main,
main,
section,
.hero-section,
.hero-content {
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

.app-container.has-mini-player {
    padding-bottom: calc(var(--bottom-nav-height) + var(--mini-player-height) + var(--safe-area-bottom));
}

/* App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    overflow: hidden; /* Prevent overflow */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 1; /* Allow logo to shrink on mobile */
    min-width: 0; /* Allow text truncation */
    overflow: hidden; /* Prevent overflow */
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darkest);
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
}

.logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0; /* Allow flex items to shrink */
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}

.header-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.3);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    padding: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gold);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--gold-subtle);
    color: var(--gold);
}

/* Main Content */
.app-main {
    flex: 1;
    padding-top: var(--header-height);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 30%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 90;
    backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    min-width: 0;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.nav-item.active {
    color: var(--gold);
}

.nav-item:active {
    transform: scale(0.95);
}

/* =====================================================
   HERO SECTION - Premium Above-the-Fold
   ===================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 60%;
    background: var(--gradient-radial);
    pointer-events: none;
}

/* Audio Wave Animation */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.15;
    overflow: hidden;
}

.hero-waves svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: waveFlow 20s linear infinite;
}

@keyframes waveFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gold-subtle);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-badge i {
    font-size: 0.625rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title .gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.hero-location i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* =====================================================
   VALUE CARDS - Why KalviYogi
   ===================================================== */

.features-section {
    padding: 4rem 1.25rem;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--gold);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   CONTENT ROWS - Spotify-Style
   ===================================================== */

.content-section {
    padding: 2rem 0;
}

.content-row {
    margin-bottom: 2.5rem;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
}

.row-title {
    font-size: 1.375rem;
    font-weight: 700;
}

.row-link {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.row-link:hover {
    color: var(--gold);
}

/* Horizontal Scroll Row */
.scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

/* Episode Card */
.episode-card {
    flex: 0 0 155px;
    max-width: 155px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition);
    overflow: hidden;
}

.episode-card:hover {
    transform: translateY(-6px);
}

.episode-card:active {
    transform: scale(0.98);
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.875rem;
    background: #252525;
    box-shadow: var(--shadow-card);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.episode-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

.card-play-btn {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    z-index: 5;
}

.episode-card:hover .card-play-btn,
.episode-card:focus-within .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Always show play button on mobile/touch devices */
@media (hover: none), (max-width: 768px) {
    .card-play-btn {
        opacity: 1;
        transform: translateY(0);
        width: 40px;
        height: 40px;
    }
}

.card-play-btn:active {
    transform: scale(0.9);
}

/* Quick Play Pulse Animation */
.card-play-btn.playing {
    animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: var(--shadow-gold); }
    50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.3), var(--shadow-gold); }
}

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.6);
}

.card-progress-bar {
    height: 100%;
    background: var(--gold);
}

/* Duration Badge - YouTube Style Corner (Bottom-Left) */
.duration-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 10;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Episode Info Layout (for wide cards) */
.episode-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.episode-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.episode-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Episode Thumbnail */
.episode-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.875rem;
    background: #252525;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.episode-card:hover .episode-thumb img {
    transform: scale(1.08);
}

.episode-play {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}

.episode-card:hover .episode-play {
    opacity: 1;
    transform: translateY(0);
}

/* Continue Listening Card (Wide) */
.continue-card {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition);
}

.continue-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 175, 55, 0.2);
}

.continue-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.continue-info {
    flex: 1;
    min-width: 0;
}

.continue-title {
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.continue-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.continue-progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.continue-progress-fill {
    height: 100%;
    background: var(--gold);
}

.continue-play {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.continue-play:hover {
    transform: scale(1.1);
}

.continue-play:active {
    transform: scale(0.95);
}

/* Section Card (Larger) */
.section-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition);
}

.section-card:hover {
    transform: translateY(-6px);
}

.section-card .card-thumbnail {
    aspect-ratio: 1;
}

/* =====================================================
   FOUNDER SECTION
   ===================================================== */

.founder-section {
    padding: 4rem 1.25rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: var(--gradient-radial);
    opacity: 0.5;
}

.founder-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.founder-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid var(--gold);
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.founder-title {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.founder-story {
    margin-bottom: 2rem;
}

.story-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--gold);
}

.story-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.story-text {
    flex: 1;
}

.story-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.story-text span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.founder-signature {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.founder-signature strong {
    color: var(--gold);
}

/* =====================================================
   TRUST STRIP
   ===================================================== */

.trust-section {
    padding: 2.5rem 1rem;
    background: var(--bg-medium);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* =====================================================
   VISION SECTION
   ===================================================== */

.vision-section {
    padding: 3rem 1.25rem;
    text-align: center;
}

.vision-quote {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

.vision-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    font-family: Georgia, serif;
}

.vision-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}

.vision-author {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */

.app-footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 1.25rem 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social .social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social .social-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-location {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.footer-location i {
    color: var(--gold);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-darkest);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-subtle);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-default {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

.badge-gold {
    background: var(--gradient-gold);
    color: var(--bg-darkest);
}

.badge-accent {
    background: var(--gold-subtle);
    color: var(--gold);
}

/* =====================================================
   MINI PLAYER & FULL PLAYER
   ===================================================== */

.mini-player {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    left: 0;
    right: 0;
    height: var(--mini-player-height);
    background: var(--bg-medium);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 95;
    cursor: pointer;
}

.mini-player-progress {
    height: 4px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    position: relative;
    /* Larger tap area */
    padding: 12px 0;
    margin: -12px 0;
    background-clip: content-box;
    border-radius: 2px;
}

.mini-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Playhead dot on mini player */
.mini-progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.mini-player-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 1.25rem;
    height: calc(100% - 2px);
}

.mini-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-controls {
    display: flex;
    gap: 0.5rem;
}

.mini-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Full Player Modal */
.player-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-darkest) 100%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.player-modal.active {
    transform: translateY(0);
}

.player-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    padding-top: env(safe-area-inset-top, 1.25rem);
}

.player-close, .player-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.player-header-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 2.5rem 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
}

.player-artwork {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.player-artwork img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    background: #252525;
}

.player-artwork img[src=""],
.player-artwork img:not([src]) {
    background: #252525 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23252525" width="100" height="100"/><text x="50" y="55" text-anchor="middle" fill="%23555" font-family="sans-serif" font-size="30">🎧</text></svg>') center/cover no-repeat;
}

.player-info {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.player-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 1.3;
}

.player-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Progress Bar with Waveform */
.player-progress {
    margin-bottom: 1.5rem;
}

/* Waveform Container */
.waveform-container {
    position: relative;
    height: 48px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 8px;
}

.waveform-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    z-index: 1;
    pointer-events: none;
}

.waveform-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    min-width: 3px;
    max-width: 5px;
    transition: background 0.1s;
    pointer-events: none;
}

.waveform-bar.played {
    background: linear-gradient(to top, #d4af37, #f0d060);
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    z-index: 0;
    pointer-events: none;
}

/* Hidden range slider overlay for seeking */
.waveform-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0;
    opacity: 1;
}

.waveform-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    background: transparent;
}

.waveform-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 56px;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.waveform-container:hover .waveform-slider::-webkit-slider-thumb {
    opacity: 1;
}

.waveform-slider::-moz-range-track {
    width: 100%;
    height: 100%;
    background: transparent;
}

.waveform-slider::-moz-range-thumb {
    width: 4px;
    height: 56px;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.waveform-container:hover .waveform-slider::-moz-range-thumb {
    opacity: 1;
}

/* Playhead indicator */
.waveform-container::after {
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: #fff;
    border-radius: 2px;
    left: var(--playhead-position, 0%);
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.control-btn {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn.active {
    color: var(--gold);
}

.control-prev, .control-next {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.control-play {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: var(--bg-darkest);
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    box-shadow: var(--shadow-gold);
}

.control-play:hover {
    transform: scale(1.05);
}

.control-play:active {
    transform: scale(0.95);
}

/* Player Actions */
.player-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.action-btn {
    padding: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--text-primary);
}

.action-btn.active {
    color: var(--gold);
}

#speedDisplay {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Queue Modal */
.queue-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    background: var(--bg-dark);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 210;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.queue-modal.active {
    transform: translateY(0);
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.queue-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.queue-header button {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.queue-list {
    padding: 0.5rem 0;
    max-height: calc(60vh - 65px);
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    transition: background var(--transition);
}

.queue-item:hover {
    background: rgba(255,255,255,0.04);
}

.queue-item.active {
    background: var(--gold-subtle);
}

.queue-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* =====================================================
   VOLUME CONTROL
   ===================================================== */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.volume-btn {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--gold);
}

.volume-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
}

/* =====================================================
   SKIP BUTTONS
   ===================================================== */
.skip-label {
    position: absolute;
    font-size: 0.6rem;
    font-weight: 700;
    bottom: 4px;
    right: 4px;
}

.control-btn {
    position: relative;
}

/* =====================================================
   SLEEP TIMER MODAL
   ===================================================== */
.sleep-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 210;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.sleep-modal.active {
    transform: translateY(0);
}

.sleep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sleep-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sleep-header h3 i {
    color: var(--gold);
}

.sleep-header button {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.sleep-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.sleep-option {
    padding: 1rem;
    background: var(--bg-medium);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.sleep-option:hover {
    background: var(--bg-lighter);
    border-color: var(--gold);
}

.sleep-option.active {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

.sleep-cancel {
    grid-column: span 2;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.sleep-cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
}

.sleep-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gold-subtle);
    color: var(--gold);
    font-weight: 600;
    margin: 0 1.5rem 1rem;
    border-radius: var(--radius-md);
}

/* Keyboard shortcuts hint */
.keyboard-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.keyboard-hint.show {
    opacity: 1;
}

.keyboard-hint kbd {
    background: var(--bg-lighter);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 0.25rem;
}

/* =====================================================
   LIST VIEWS
   ===================================================== */

.episode-list {
    padding: 0 1.25rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background var(--transition);
}

.list-item:hover {
    background: rgba(255,255,255,0.03);
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.list-item:last-child {
    border-bottom: none;
}

.list-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-weight: 500;
    margin-bottom: 0.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.list-play {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.list-play:hover,
.list-item:hover .list-play {
    background: var(--gold);
    color: var(--bg-darkest);
    transform: scale(1.1);
}

.list-play:active {
    transform: scale(0.95);
}

/* Gold variant - more prominent */
.list-play.gold {
    background: var(--gold);
    color: var(--bg-darkest);
    box-shadow: var(--shadow-gold);
}

/* =====================================================
   PAGE HEADERS
   ===================================================== */

.page-header {
    padding: 2rem 1.25rem 1.25rem;
}

.page-header-banner {
    position: relative;
    height: 220px;
    margin: -4rem -1.25rem 1.25rem;
    overflow: hidden;
}

.page-header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 0%, var(--bg-darkest) 100%);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

/* =====================================================
   SEARCH
   ===================================================== */

.search-container {
    padding: 1.25rem;
    position: relative;
    background: transparent;
    z-index: 10;
    margin-bottom: 0;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: var(--bg-lighter);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.voice-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition);
}

.voice-search-btn:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-filters::-webkit-scrollbar {
    display: none;
}

.filter-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: rgba(40, 40, 45, 0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    min-height: 38px;
}

.filter-chip:hover {
    background: rgba(60, 60, 65, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-chip:active {
    transform: scale(0.98);
}

.filter-chip.active {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
    font-weight: 600;
}

.filter-chip.active:hover {
    background: #e6c64a;
}

.filter-chip.active i {
    color: var(--bg-darkest);
}

/* =====================================================
   FILTER CONTROLS - Enhanced Layout
   ===================================================== */

.filter-controls {
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 0 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.filter-group:not(:last-child) {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.25rem;
}

.filter-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.125rem;
}

.filter-group-label i {
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 1;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    row-gap: 0.5rem;
    width: 100%;
}

.filter-chip i {
    font-size: 0.75rem;
}

/* Mobile responsive filters */
@media (max-width: 768px) {
    .filter-controls {
        padding: 1rem;
        margin: 0.75rem 0.5rem 1rem;
        gap: 1rem;
    }
    
    .filter-group {
        gap: 0.625rem;
    }
    
    .filter-group-label {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        margin-bottom: -0.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .filter-chips::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-chips::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .filter-chips::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.3);
        border-radius: 2px;
    }
    
    .filter-chips::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 175, 55, 0.5);
    }
    
    .filter-chip {
        flex-shrink: 0;
        padding: 0.625rem 1.125rem;
        min-height: 38px;
        font-size: 0.8125rem;
    }
}

/* Search Results */
.search-results {
    padding: 0 1.25rem;
}

.results-header {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   EMPTY STATES & TOASTS
   ===================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    left: 1rem;
    right: 1rem;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-success {
    border-left: 3px solid var(--gold);
}

.toast-error {
    border-left: 3px solid #FF4444;
}

/* =====================================================
   SHARE TIMESTAMP OPTION
   ===================================================== */
.timestamp-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timestamp-option input {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

/* =====================================================
   SKELETON LOADING
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-medium) 25%, var(--bg-lighter) 50%, var(--bg-medium) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    width: 160px;
    flex-shrink: 0;
}

.skeleton-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 12px;
    width: 70%;
}

.skeleton-row {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    padding: 0 1.25rem;
}

/* =====================================================
   LIBRARY TABS
   ===================================================== */

.library-tabs {
    display: flex;
    gap: 1.25rem;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.library-tab {
    padding: 1rem 0;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.library-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold);
}

.library-tab i {
    margin-right: 0.5rem;
}

/* =====================================================
   PLAYLIST STYLES
   ===================================================== */

/* Playlist Grid */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.playlist-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.playlist-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.playlist-card.create-new {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    background: transparent;
}

.playlist-card.create-new:hover {
    border-color: var(--gold);
    background: var(--gold-subtle);
}

.playlist-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-cover-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    font-size: 2.5rem;
    color: var(--text-muted);
}

.playlist-cover-default.add-new {
    color: var(--gold);
    background: var(--gold-subtle);
    font-size: 2rem;
}

.playlist-play-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.playlist-card:hover .playlist-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.playlist-play-btn:hover {
    transform: scale(1.08);
}

.playlist-info {
    flex: 1;
}

.playlist-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.playlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    margin-top: 0.5rem;
}

.playlist-badge.public {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.playlist-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Playlist Hero (Single Playlist Page) */
.playlist-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(212,175,55,0.08) 0%, transparent 100%);
}

@media (min-width: 768px) {
    .playlist-hero {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
        padding: 2.5rem;
    }
}

.playlist-hero-cover {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

@media (min-width: 768px) {
    .playlist-hero-cover {
        width: 240px;
        height: 240px;
    }
}

.playlist-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.playlist-mosaic img,
.playlist-mosaic-empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-mosaic-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    color: var(--text-muted);
}

.playlist-cover-default-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    font-size: 4rem;
    color: var(--text-muted);
}

.playlist-hero-info {
    flex: 1;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .playlist-hero-info {
        margin-top: 0;
    }
}

.playlist-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .playlist-type {
        justify-content: flex-start;
    }
}

.playlist-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .playlist-hero-title {
        font-size: 2.5rem;
    }
}

.playlist-hero-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 500px;
}

.playlist-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .playlist-hero-meta {
        justify-content: flex-start;
    }
}

.playlist-hero-meta .sep {
    color: var(--text-muted);
}

.playlist-owner-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.playlist-owner-name {
    font-weight: 600;
    color: var(--text-primary);
}

.playlist-owner-name:hover {
    text-decoration: underline;
}

/* Playlist Edit Form */
.playlist-edit-form {
    width: 100%;
    max-width: 400px;
}

.playlist-title-input {
    width: 100%;
    font-size: 2rem;
    font-weight: 800;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gold);
    color: var(--text-primary);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.playlist-title-input:focus {
    outline: none;
}

.playlist-desc-input {
    width: 100%;
    font-size: 1rem;
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem;
    resize: vertical;
    min-height: 80px;
}

/* Playlist Actions Bar */
.playlist-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.play-all-btn {
    min-width: 120px;
}

.follow-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-btn.following {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Playlist Episodes List */
.playlist-episodes {
    padding: 1rem 0;
}

.playlist-episode {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
}

.playlist-episode:hover {
    background: var(--bg-card-hover);
}

.playlist-episode .drag-handle {
    color: var(--text-muted);
    cursor: grab;
    padding: 0.25rem;
}

.playlist-episode .drag-handle:active {
    cursor: grabbing;
}

.playlist-episode .episode-number {
    width: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.playlist-episode .episode-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-episode .episode-info {
    flex: 1;
    min-width: 0;
}

.playlist-episode .episode-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-episode .episode-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.playlist-episode .episode-subtitle a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.playlist-episode .episode-duration {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.playlist-episode .episode-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition);
}

.playlist-episode:hover .episode-play,
.playlist-episode .episode-play:focus {
    opacity: 1;
}

.playlist-episode .episode-remove {
    color: var(--text-muted);
    opacity: 0;
    transition: all var(--transition);
}

.playlist-episode:hover .episode-remove {
    opacity: 1;
}

.playlist-episode .episode-remove:hover {
    color: #FF4444;
}

/* Drag and Drop */
.playlist-episode.dragging {
    opacity: 0.5;
    background: var(--bg-light);
}

.playlist-episodes.edit-mode .playlist-episode {
    cursor: move;
}

/* Add to Playlist Modal */
.add-to-playlist-episode {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.add-to-playlist-episode img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.add-to-playlist-episode .episode-details {
    flex: 1;
}

.add-to-playlist-episode .episode-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.add-to-playlist-episode .episode-action {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.create-playlist-quick {
    width: 100%;
    padding: 1rem;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.create-playlist-quick:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

.quick-create-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.quick-create-form input {
    flex: 1;
}

.playlists-select-list {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-select-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.playlist-select-item:hover {
    background: var(--bg-card-hover);
}

.playlist-select-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-select-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-select-info {
    flex: 1;
}

.playlist-select-name {
    font-weight: 500;
}

.playlist-select-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.playlist-add-icon {
    color: var(--gold);
    opacity: 0;
    transition: all var(--transition);
}

.playlist-select-item:hover .playlist-add-icon {
    opacity: 1;
}

.empty-playlists-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
}

.empty-playlists-text i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Share Modal */
.share-link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-link-box input {
    flex: 1;
    font-size: 0.875rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.share-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.share-btn.whatsapp:hover {
    background: #1EB851;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-btn.twitter:hover {
    background: #0C90E0;
}

/* Library Playlists Grid */
.library-playlists {
    padding: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .playlist-hero-cover {
        width: 160px;
        height: 160px;
    }
    
    .playlist-hero-title {
        font-size: 1.5rem;
    }
    
    .playlist-actions-bar {
        justify-content: center;
    }
    
    .playlist-episode .episode-play {
        opacity: 1;
        width: 36px;
        height: 36px;
    }
}

/* =====================================================
   SHARE MODAL STYLES
   ===================================================== */

.share-episode-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.share-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.share-details {
    flex: 1;
    min-width: 0;
}

.share-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.75rem;
    font-weight: 500;
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-link {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-link .form-input {
    flex: 1;
    background: var(--bg-tertiary);
}

.share-timestamp {
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* Voice Search Modal */
.voice-modal {
    background: transparent !important;
    box-shadow: none !important;
}

.voice-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.voice-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.voice-icon.listening {
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 30px rgba(212, 175, 55, 0); }
}

.voice-status {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.voice-transcript {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 2rem;
    margin-bottom: 1.5rem;
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* =====================================================
   SKELETON LOADING
   ===================================================== */

.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-lighter) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    width: 155px;
    flex-shrink: 0;
}

.skeleton-thumb {
    aspect-ratio: 1;
    margin-bottom: 0.875rem;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 0.75rem;
    width: 60%;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.px-1 { padding-left: 1.25rem; padding-right: 1.25rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (min-width: 768px) {
    .app-main {
        padding-left: 80px;
    }
    
    .bottom-nav {
        top: 0;
        bottom: auto;
        left: 0;
        width: 80px;
        height: 100vh;
        flex-direction: column;
        padding: 1.5rem 0;
        justify-content: flex-start;
        gap: 0.5rem;
        background: var(--bg-dark);
        border-right: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 1rem;
    }
    
    .app-container {
        padding-bottom: 0;
    }
    
    .app-container.has-mini-player {
        padding-bottom: var(--mini-player-height);
    }
    
    .mini-player {
        bottom: 0;
        left: 80px;
    }
    
    .scroll-row {
        padding: 0.5rem 2rem;
    }
    
    .row-header {
        padding: 0 2rem;
    }
    
    .episode-card {
        flex: 0 0 180px;
        max-width: 180px;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .episode-card {
        flex: 0 0 200px;
        max-width: 200px;
    }
    
    .player-modal {
        max-width: 480px;
        left: auto;
        right: 0;
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    
    .hero-section {
        min-height: 90vh;
    }
}

/* =====================================================
   LIGHT THEME
   ===================================================== */
[data-theme="light"] {
    --bg-darkest: #FFFFFF;
    --bg-darker: #F8F9FA;
    --bg-dark: #F1F3F4;
    --bg-medium: #E8EAED;
    --bg-light: #DADCE0;
    --bg-lighter: #D2D4D8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F5F5;
    
    --text-primary: #1A1A1A;
    --text-secondary: #5F6368;
    --text-muted: #80868B;
    
    --shadow-card: 0 2px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

[data-theme="light"] .header {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--bg-light);
}

[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--bg-light);
}

[data-theme="light"] .mini-player {
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--bg-light);
}

[data-theme="light"] .player-modal {
    background: var(--bg-darkest);
}

[data-theme="light"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-light);
}

[data-theme="light"] .section-card,
[data-theme="light"] .unit-card {
    background: var(--bg-card);
}

/* =====================================================
   TOAST NOTIFICATIONS - ENHANCED
   ===================================================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-medium);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    font-size: 0.9rem;
}

.toast i:first-child {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast span {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}
.toast-success i:first-child { color: #22C55E; }

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}
.toast-error i:first-child { color: #EF4444; }

.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}
.toast-warning i:first-child { color: #F59E0B; }

.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}
.toast-info i:first-child { color: #3B82F6; }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* =====================================================
   THEME TOGGLE BUTTON
   ===================================================== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold);
}

/* =====================================================
   SHARE MODAL
   ===================================================== */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.share-modal {
    background: var(--bg-medium);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.share-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    font-size: 1.25rem;
    transition: color var(--transition);
}

.share-close:hover {
    color: var(--text-primary);
}

.share-modal-body {
    padding: 1.5rem;
}

.share-title {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.75rem;
    color: white;
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn span {
    opacity: 0.9;
}

.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1da851; }

.share-twitter { background: #1DA1F2; }
.share-twitter:hover { background: #0c8de4; }

.share-facebook { background: #4267B2; }
.share-facebook:hover { background: #365899; }

.share-telegram { background: #0088CC; }
.share-telegram:hover { background: #006da3; }

.share-copy { background: var(--bg-light); color: var(--text-primary); }
.share-copy:hover { background: var(--gold); color: var(--bg-darkest); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =====================================================
   AUTH PAGES - ENHANCED
   ===================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-darkest);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-medium);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-darkest);
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.auth-header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 500;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon input {
    padding-left: 2.75rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    margin-top: 0.125rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* =====================================================
   EXAM PALETTE SECTION
   ===================================================== */
.exam-palette-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%);
}

.exam-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.exam-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-medium);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exam-pill::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--exam-color, var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exam-pill:hover {
    background: var(--bg-lighter);
    border-color: var(--exam-color, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.exam-pill:hover::before {
    opacity: 1;
}

.exam-pill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--exam-color, var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.exam-pill-content {
    flex: 1;
    min-width: 0;
}

.exam-pill-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.exam-pill-full {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.exam-pill-arrow {
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.exam-pill:hover .exam-pill-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--exam-color, var(--gold));
}

.exam-more {
    text-align: center;
    margin-top: 2rem;
}

/* Exam Page Styles */
.exam-hero {
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(var(--exam-rgb), 0.15) 0%, transparent 60%);
    text-align: center;
}

.exam-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exam-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.exam-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.exam-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.exam-stat {
    text-align: center;
}

.exam-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.exam-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* All Exams Grid */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

.exam-card {
    background: var(--bg-medium);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-4px);
    border-color: var(--exam-color, var(--gold));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.exam-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.exam-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.exam-card-full {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.exam-card-count {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    /* Header Mobile Fixes */
    .app-header {
        padding: 0 0.75rem;
        height: 56px;
    }
    
    .app-logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    /* Hide offline indicator text on mobile, show only icon */
    .offline-indicator {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .offline-indicator span {
        display: none !important;
    }
    
    .offline-indicator.show {
        display: inline-flex !important;
        min-width: 32px;
        justify-content: center;
    }
    
    /* Also hide if not offline */
    .offline-indicator:not(.show) {
        display: none !important;
    }
    
    /* Header buttons smaller on mobile */
    .header-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    /* Login/Signup buttons smaller */
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* User avatar smaller */
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Badge in header buttons */
    .header-btn .badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
    
    .exam-palette {
        grid-template-columns: 1fr;
    }
    
    .exam-pill {
        padding: 0.875rem 1rem;
    }
    
    .exam-pill-icon {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }
    
    .exam-pill-name {
        font-size: 1rem;
    }
    
    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .exam-card {
        padding: 1rem;
    }
    
    .exam-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .exam-card-name {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .app-header {
        padding: 0 0.5rem;
    }
    
    .logo-text {
        display: none; /* Hide text, show only icon on very small screens */
    }
    
    .header-right {
        gap: 0.35rem;
    }
    
    .offline-indicator {
        padding: 0.35rem 0.5rem;
        min-width: 28px;
    }
    
    .header-btn,
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Hide offline library button on very small screens if too crowded */
    #offlineLibraryBtn {
        display: none !important;
    }
}

/* =====================================================
   ADVANCED PLAYER FEATURES
   ===================================================== */

/* Skip Time Settings */
.skip-time-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.skip-time-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-time-btn:hover,
.skip-time-btn.active {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

/* Equalizer Modal */
.eq-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 0;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.eq-band input[type="range"] {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 20px;
    height: 100px;
    background: transparent;
}

.eq-band input[type="range"]::-webkit-slider-thumb {
    background: var(--gold);
}

.eq-band-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    min-width: 30px;
}

.eq-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-lighter);
}

.eq-preset-btn {
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.eq-preset-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

/* Bookmarks */
.bookmarks-list {
    max-height: 300px;
    overflow-y: auto;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.bookmark-item:hover {
    background: var(--bg-lighter);
}

.bookmark-time {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gold);
    min-width: 50px;
}

.bookmark-note {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.bookmark-delete:hover {
    color: #e74c3c;
}

.no-bookmarks {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.add-bookmark-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Chapter Markers */
.chapter-markers {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-lighter);
}

.chapter-marker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.chapter-marker:hover {
    background: var(--bg-light);
}

.chapter-time {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--gold);
    min-width: 45px;
}

.chapter-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Car Mode */
.car-mode-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-darkest);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.car-mode-modal.active {
    display: flex;
}

.car-mode-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.car-mode-time {
    font-size: 3rem;
    font-family: monospace;
    color: var(--gold);
    margin-bottom: 2rem;
}

.car-mode-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.car-mode-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.car-mode-btn.play {
    width: 120px;
    height: 120px;
    background: var(--gold);
    color: var(--bg-darkest);
    font-size: 3rem;
}

.car-mode-btn:active {
    transform: scale(0.95);
}

.car-mode-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

/* Recently Played */
.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.recent-item:hover {
    background: var(--bg-lighter);
}

.recent-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.recent-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Transcript */
.transcript-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 0;
}

.transcript-segment {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.transcript-segment:hover {
    background: var(--bg-light);
}

.transcript-segment.active {
    background: var(--gold-subtle);
    border-left: 3px solid var(--gold);
}

.transcript-time {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--gold);
    min-width: 45px;
}

.transcript-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.transcript-plain {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-secondary);
}

.no-transcript {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Episode Notes */
.notes-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Offline Episodes */
.offline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.offline-info {
    flex: 1;
    cursor: pointer;
}

.offline-title {
    font-weight: 500;
}

.offline-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.offline-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.offline-remove:hover {
    color: #e74c3c;
}

/* Speed Options */
.speed-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.speed-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.speed-btn:hover,
.speed-btn.active {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

/* Player Extra Controls Row */
.player-extra-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-lighter);
}

.player-extra-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    min-width: 60px;
    transition: all 0.2s;
}

.player-extra-btn i {
    font-size: 1rem;
}

.player-extra-btn:hover {
    background: var(--bg-lighter);
    color: var(--gold);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Keyboard Shortcuts Help */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem 0;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.shortcut-key {
    font-family: monospace;
    padding: 0.125rem 0.5rem;
    background: var(--bg-medium);
    border-radius: 3px;
    font-size: 0.75rem;
}

.shortcut-action {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Waveform Visualization */
.waveform-container {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.3) 100%);
    pointer-events: none;
    transition: width 0.1s linear;
}

.waveform-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Modal styling improvements */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

.modal-content.modal-large {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bg-lighter);
}

.modal-header h3 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-header button:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.setting-section {
    margin-bottom: 1.5rem;
}

.setting-section h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   GAMIFICATION & ENGAGEMENT FEATURES
   ===================================================== */

/* Streak Display */
.streak-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.streak-widget:hover {
    transform: scale(1.05);
}

.streak-fire {
    font-size: 1.25rem;
    animation: flicker 0.5s infinite alternate;
}

.streak-fire.streak-hot {
    animation: flicker 0.2s infinite alternate, glow 1s infinite;
}

@keyframes flicker {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #ff6b6b, 0 0 10px #ff6b6b; }
    50% { text-shadow: 0 0 15px #ff6b6b, 0 0 25px #ff6b6b, 0 0 35px #ff8e53; }
}

/* Streak Modal */
.streak-display {
    text-align: center;
    padding: 2rem;
}

.streak-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streak-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.streak-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.streak-stat {
    text-align: center;
}

.streak-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.streak-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.achievement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.3s;
}

.achievement-card.earned {
    opacity: 1;
    filter: grayscale(0);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--gold-subtle);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.achievement-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.achievement-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Pomodoro Timer */
.pomodoro-container {
    text-align: center;
    padding: 1rem;
}

.pomodoro-modes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pomodoro-mode-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pomodoro-mode-btn.active {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

.pomodoro-timer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.pomodoro-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pomodoro-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.3), transparent);
    transition: height 1s linear;
}

.pomodoro-time {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    z-index: 1;
}

.pomodoro-mode-label {
    font-size: 0.875rem;
    z-index: 1;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.pomodoro-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pomodoro-btn.play {
    background: var(--gold);
    color: var(--bg-darkest);
}

.pomodoro-btn:hover {
    transform: scale(1.1);
}

.pomodoro-sessions {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pomodoro-sessions span {
    font-weight: 700;
    color: var(--gold);
}

/* Ambient Sounds */
.ambient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.ambient-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.ambient-btn:hover {
    background: var(--bg-lighter);
    transform: translateY(-2px);
}

.ambient-btn.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.ambient-btn i {
    font-size: 2rem;
}

.ambient-btn span {
    font-size: 0.8rem;
}

.ambient-volume {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.ambient-volume input {
    flex: 1;
}

/* Learning Calendar (Heatmap) */
.calendar-grid {
    padding: 1rem 0;
}

.calendar-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 0.5rem;
    float: left;
}

.calendar-label {
    height: 12px;
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 12px;
}

.calendar-weeks {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}

.calendar-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--bg-lighter);
}

.calendar-day.level-1 { background: rgba(212, 175, 55, 0.25); }
.calendar-day.level-2 { background: rgba(212, 175, 55, 0.5); }
.calendar-day.level-3 { background: rgba(212, 175, 55, 0.75); }
.calendar-day.level-4 { background: var(--gold); }

.calendar-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    clear: both;
}

.calendar-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bg-lighter);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quick Access Buttons in Header */
.engagement-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.engagement-btn:hover {
    background: var(--gold);
    color: var(--bg-darkest);
}

.engagement-btn i {
    font-size: 0.9rem;
}

/* XP Bar */
.xp-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transition: width 0.5s ease;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* =====================================================
   OFFLINE MODE STYLES
   ===================================================== */

.offline-info-text {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offline-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: background 0.2s;
}

.offline-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.offline-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.offline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offline-info {
    flex: 1;
    min-width: 0;
}

.offline-title {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.offline-actions {
    display: flex;
    gap: 0.25rem;
}

.offline-actions .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.offline-actions .btn-icon:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.offline-actions .btn-danger:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

/* Offline indicator in header */
.offline-indicator {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 100, 100, 0.1);
    border-radius: 50px;
    color: #ff6464;
    font-size: 0.8rem;
    font-weight: 500;
}

.offline-indicator.show {
    display: inline-flex;
}

.offline-indicator i {
    animation: pulse 1.5s infinite;
}

/* Hide offline text on mobile - ALWAYS just show icon */
@media (max-width: 768px) {
    .offline-indicator span {
        display: none !important;
    }
    
    .offline-indicator.show {
        padding: 0.4rem 0.5rem;
        gap: 0;
    }
}

/* Save offline button states */
#saveOfflineBtn.saved {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
}

#saveOfflineBtn.saved i {
    color: var(--gold);
}

/* Offline badge */
.badge {
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* Empty state for offline */
.offline-list .empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.offline-list .empty-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.offline-list .empty-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Storage info bar */
.offline-storage-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.storage-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.storage-used {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.storage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.clear-all-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 8px;
    color: #ff6464;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-all-btn:hover {
    background: rgba(255, 100, 100, 0.2);
}

/* Download progress overlay */
.download-progress-overlay {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.download-progress-text {
    font-size: 0.85rem;
    white-space: nowrap;
}

.download-progress-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.download-progress-bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.2s ease;
}

.download-progress-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.download-progress-cancel:hover {
    color: #ff6464;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, #c4a030 100%);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    z-index: 999;
    animation: slideUp 0.4s ease;
}

.pwa-install-banner.hidden {
    display: none;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.pwa-install-content {
    flex: 1;
}

.pwa-install-title {
    font-weight: 600;
    color: #000;
    font-size: 0.95rem;
}

.pwa-install-subtitle {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.7);
}

.pwa-install-btn {
    background: #000;
    color: var(--gold);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
}

.pwa-install-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 0.25rem;
}

/* Offline playing indicator */
.offline-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.offline-playing-badge i {
    font-size: 0.6rem;
}

/* =====================================================
   SPOTIFY-STYLE PLAYER - PREMIUM REDESIGN
   ===================================================== */

/* === PLAY BUTTON - Always Visible on Mobile === */
.card-play-btn,
.list-play,
.episode-play {
    /* Always visible on touch devices */
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Spotify-style play button with green accent */
.spotify-play-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #1DB954;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.3);
    flex-shrink: 0;
}

.spotify-play-btn:hover {
    transform: scale(1.06);
    background: #1ed760;
}

.spotify-play-btn:active {
    transform: scale(0.96);
}

.spotify-play-btn i {
    margin-left: 2px; /* Optical centering for play icon */
}

/* Large play button variant */
.spotify-play-btn.large {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 1.4rem;
}

.spotify-play-btn.xl {
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 1.6rem;
    box-shadow: 0 12px 24px rgba(29, 185, 84, 0.4);
}

/* Gold variant for YogiPod branding */
.spotify-play-btn.gold {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
}

.spotify-play-btn.gold:hover {
    background: var(--gold-light);
}

/* === LIST ITEM ENHANCED - Mobile Touch Friendly === */
.list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.list-item:hover,
.list-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.list-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.99);
}

/* Enhanced list play button - Always visible */
.list-play {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #1DB954;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.25);
}

.list-play:hover {
    transform: scale(1.08);
    background: #1ed760;
}

.list-play:active {
    transform: scale(0.95);
}

/* Gold variant */
.list-play.gold {
    background: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Force icon visibility in play buttons */
.list-play i.fa-play,
.list-play i.fas,
.list-play.gold i {
    color: #000 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* === CARD PLAY BUTTON - Always Visible === */
.card-play-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1DB954;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(29, 185, 84, 0.2);
    transition: all 0.15s ease;
    z-index: 5;
}

.card-play-btn:hover {
    transform: scale(1.08);
    background: #1ed760;
}

.card-play-btn:active {
    transform: scale(0.95);
}

/* Gold card button */
.card-play-btn.gold {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
}

/* Force icon visibility in card play buttons */
.card-play-btn i.fa-play,
.card-play-btn i.fas,
.card-play-btn.gold i {
    color: #000 !important;
    font-size: 1.1rem !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* === SPOTIFY-STYLE MINI PLAYER === */
.mini-player {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, #181818 0%, #121212 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 95;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mini-player.active {
    display: block;
}

.mini-player-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.mini-progress-bar {
    height: 100%;
    background: #1DB954;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.mini-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.mini-player-progress:hover .mini-progress-bar::after {
    opacity: 1;
}

.mini-player-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    height: calc(100% - 3px);
}

.mini-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mini-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.mini-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    margin-bottom: 2px;
}

.mini-subtitle {
    font-size: 0.75rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mini-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.mini-btn:hover {
    color: #1DB954;
    transform: scale(1.1);
}

.mini-btn.primary {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    font-size: 1rem;
}

.mini-btn.primary:hover {
    transform: scale(1.08);
    background: #fff;
    color: #000;
}

.mini-btn.primary:active {
    transform: scale(0.96);
}

/* Force icon visibility in mini player buttons */
.mini-btn.primary i,
.mini-btn.primary i.fas,
.mini-btn.primary i.fa-play,
.mini-btn.primary i.fa-pause {
    color: #000 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mini player gold variant */
.mini-player.gold-theme .mini-progress-bar {
    background: var(--gold);
}

.mini-player.gold-theme .mini-btn:hover {
    color: var(--gold);
}

.mini-player.gold-theme .mini-btn.primary {
    background: var(--gradient-gold);
    color: var(--bg-darkest);
}

/* === SPOTIFY-STYLE FULL PLAYER === */
.player-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #282828 0%, #121212 30%, #000 100%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.player-modal.active {
    transform: translateY(0);
}

.player-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    padding-top: max(1rem, env(safe-area-inset-top));
}

.player-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.player-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.player-header-info {
    font-size: 0.7rem;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.player-menu {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.player-menu:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Artwork with glow effect */
.player-artwork {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    min-height: 0;
}

.player-artwork-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
}

.player-artwork-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
}

.player-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

/* Track info */
.player-track-info {
    text-align: left;
    margin-bottom: 1.5rem;
}

.player-track-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.player-track-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* Progress bar Spotify style */
.player-progress {
    margin-bottom: 1rem;
}

.progress-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.15s;
}

.progress-slider:hover {
    height: 6px;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.progress-slider:hover::-webkit-slider-thumb {
    opacity: 1;
}

.progress-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.progress-slider:hover::-moz-range-thumb {
    opacity: 1;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #b3b3b3;
    font-weight: 500;
}

/* Player controls Spotify style */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-btn {
    color: #b3b3b3;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.15s;
}

.control-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.control-btn.active {
    color: #1DB954;
}

.control-prev,
.control-next {
    font-size: 1.75rem;
    color: #fff;
    padding: 0.5rem;
}

.control-prev:hover,
.control-next:hover {
    transform: scale(1.08);
}

/* Main play/pause button */
.control-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.1s;
}

.control-play:hover {
    transform: scale(1.06);
}

.control-play:active {
    transform: scale(0.96);
}

.control-play i.fa-play {
    margin-left: 3px; /* Optical centering */
}

/* Gold theme for controls */
.player-modal.gold-theme .control-btn.active {
    color: var(--gold);
}

.player-modal.gold-theme .control-play {
    background: var(--gradient-gold);
}

/* Player action buttons */
.player-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.action-btn {
    padding: 0.75rem;
    color: #b3b3b3;
    font-size: 1.125rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    color: #fff;
}

.action-btn.active {
    color: #1DB954;
}

.action-btn span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Speed display */
#speedDisplay {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* === RESPONSIVE MOBILE FIXES === */
@media (max-width: 768px) {
    /* Always show play buttons on mobile */
    .card-play-btn,
    .list-play,
    .episode-play {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
    
    /* Larger touch targets */
    .list-item {
        padding: 1rem;
        min-height: 72px;
    }
    
    .list-play {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.1rem;
    }
    
    .card-play-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
    
    /* Mini player mobile */
    .mini-player-content {
        padding: 0.5rem 0.75rem;
    }
    
    .mini-thumbnail {
        width: 48px;
        height: 48px;
    }
    
    .mini-btn {
        width: 36px;
        height: 36px;
    }
    
    .mini-btn.primary {
        width: 42px;
        height: 42px;
    }
    
    /* Full player mobile */
    .player-content {
        padding: 0 1.25rem 1.5rem;
    }
    
    .player-artwork-wrapper {
        max-width: 280px;
    }
    
    .player-track-title {
        font-size: 1.25rem;
    }
    
    .player-controls {
        gap: 1rem;
    }
    
    .control-play {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
    }
    
    .control-prev,
    .control-next {
        font-size: 1.5rem;
    }
    
    .player-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .action-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .list-item {
        gap: 0.75rem;
        padding: 0.875rem 0.75rem;
    }
    
    .list-thumb {
        width: 52px;
        height: 52px;
    }
    
    .list-play {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .mini-player-content {
        gap: 0.625rem;
    }
    
    .mini-title {
        font-size: 0.85rem;
    }
    
    .player-artwork-wrapper {
        max-width: 240px;
    }
}

/* === TOUCH FEEDBACK === */
@media (hover: none) {
    .list-item:active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .card-play-btn:active,
    .list-play:active,
    .mini-btn:active,
    .control-play:active {
        transform: scale(0.92);
    }
    
    .episode-card:active .card-thumbnail img {
        transform: scale(1.02);
    }
}

/* === PLAYING ANIMATION === */
.now-playing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.now-playing-indicator span {
    width: 3px;
    background: #1DB954;
    border-radius: 1px;
    animation: playing-bar 0.8s ease-in-out infinite;
}

.now-playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.now-playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.now-playing-indicator.gold span {
    background: var(--gold);
}

@keyframes playing-bar {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* List item with playing state */
.list-item.playing {
    background: rgba(29, 185, 84, 0.1);
}

.list-item.playing .list-play {
    background: #1DB954;
}

.list-item.playing .now-playing-indicator {
    display: flex;
}

/* === QUICK PLAY FLOATING BUTTON === */
.quick-play-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--mini-player-height) + var(--safe-area-bottom) + 16px);
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1DB954;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
    transition: all 0.2s;
    z-index: 90;
}

.quick-play-fab:hover {
    transform: scale(1.08);
}

.quick-play-fab:active {
    transform: scale(0.95);
}

.quick-play-fab.hidden {
    display: none;
}

/* Gold FAB variant */
.quick-play-fab.gold {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
}

/* === WAVEFORM VISUALIZER === */
.waveform-container {
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.waveform-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    gap: 2px;
    padding: 8px;
}

.waveform-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.waveform-bar.active {
    background: #1DB954;
}

.waveform-bar.gold.active {
    background: var(--gold);
}

/* === SKIP TIME BUTTONS === */
.skip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.skip-btn:active {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(0.95);
}

.skip-btn span {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: -2px;
}

/* Mobile: larger tap area */
@media (max-width: 768px) {
    .skip-btn {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }
}

/* === ENHANCED EPISODE CARD === */
.episode-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.episode-card:active {
    transform: scale(0.98);
}

/* Card overlay gradient for better button visibility */
.card-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.episode-card:hover .card-thumbnail::after,
.episode-card:active .card-thumbnail::after {
    opacity: 1;
}

/* Mobile always show overlay */
@media (hover: none) {
    .card-thumbnail::after {
        opacity: 1;
    }
}

/* =====================================================
   RECENT UPLOADS SECTION
   ===================================================== */

.recent-uploads-section {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.recent-uploads-section .row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 0.75rem;
}

.recent-uploads-section .row-title {
    display: flex;
    align-items: center;
}

.see-all {
    font-size: 0.8125rem;
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.see-all:hover {
    color: #f5c842;
    transform: translateX(2px);
}

.see-all i {
    font-size: 0.65rem;
}

/* Upload time badge */
.upload-time {
    color: var(--gold) !important;
    font-weight: 500;
}

.upload-time i {
    color: var(--gold);
}

/* Enhanced list item for recent uploads */
.recent-uploads-section .list-item {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    margin-bottom: 0.375rem;
    border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.recent-uploads-section .list-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES - 2024
   ===================================================== */

/* === GLOBAL MOBILE RESETS === */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .app-main {
        padding-bottom: calc(var(--mini-player-height) + var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    }
    
    .px-1 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* === HEADER MOBILE === */
@media (max-width: 768px) {
    .app-header {
        padding: 0.5rem 0.75rem;
        height: auto;
        min-height: 52px;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .user-dropdown {
        right: 0;
        min-width: 180px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.4rem 0.5rem;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .header-right .btn-outline {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .header-btn {
        width: 32px;
        height: 32px;
    }
}

/* === BOTTOM NAVIGATION MOBILE === */
@media (max-width: 768px) {
    .bottom-nav {
        height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
        padding-bottom: var(--safe-area-bottom);
    }
    
    .nav-item {
        padding: 0.35rem 0;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-item span {
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }
}

/* === MINI PLAYER MOBILE === */
@media (max-width: 768px) {
    .mini-player {
        padding: 0.5rem 0.75rem;
        height: var(--mini-player-height);
    }
    
    .mini-player-info {
        gap: 0.625rem;
    }
    
    .mini-thumb {
        width: 44px;
        height: 44px;
    }
    
    .mini-text {
        max-width: 45vw;
    }
    
    .mini-title {
        font-size: 0.875rem;
    }
    
    .mini-subtitle {
        font-size: 0.7rem;
    }
    
    .mini-controls {
        gap: 0.25rem;
    }
    
    .mini-btn {
        width: 40px;
        height: 40px;
    }
    
    .mini-btn.play {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 400px) {
    .mini-player {
        padding: 0.4rem 0.5rem;
    }
    
    .mini-thumb {
        width: 40px;
        height: 40px;
    }
    
    .mini-text {
        max-width: 40vw;
    }
    
    .mini-title {
        font-size: 0.8rem;
    }
}

/* === PLAYER MODAL MOBILE === */
@media (max-width: 768px) {
    .player-modal {
        border-radius: 20px 20px 0 0;
    }
    
    .player-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .player-modal-body {
        padding: 1rem;
    }
    
    .player-modal-cover {
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .player-modal-cover img {
        border-radius: 12px;
    }
    
    .player-modal-title {
        font-size: 1.25rem;
    }
    
    .player-modal-subtitle {
        font-size: 0.875rem;
    }
    
    .progress-container {
        margin: 1.25rem 0;
    }
    
    .control-play {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .player-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .player-action-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .player-extra-actions {
        flex-wrap: wrap;
        gap: 0.375rem;
        padding: 0 0.5rem;
    }
    
    .extra-action-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* === EPISODE CARDS MOBILE === */
@media (max-width: 768px) {
    .card-row {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .episode-card {
        flex: 0 0 140px;
        max-width: 140px;
    }
    
    .card-thumbnail {
        height: 140px;
    }
    
    .card-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .card-subtitle {
        font-size: 0.7rem;
    }
    
    .card-play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .duration-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .episode-card {
        flex: 0 0 120px;
        max-width: 120px;
    }
    
    .card-thumbnail {
        height: 120px;
    }
    
    .card-title {
        font-size: 0.75rem;
    }
}

/* === LIST ITEMS MOBILE === */
@media (max-width: 768px) {
    .list-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .list-thumb {
        width: 56px;
        height: 56px;
    }
    
    .list-title {
        font-size: 0.9rem;
    }
    
    .list-subtitle {
        font-size: 0.75rem;
    }
    
    .list-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    .list-play {
        width: 40px;
        height: 40px;
    }
}

/* === SEARCH PAGE MOBILE === */
@media (max-width: 768px) {
    .search-container {
        padding: 0.75rem;
        margin: 0;
    }
    
    .search-input-wrapper {
        height: 44px;
    }
    
    .search-input-wrapper input {
        font-size: 1rem;
        padding-left: 44px;
    }
    
    .search-input-wrapper .search-icon {
        font-size: 1rem;
        left: 14px;
    }
    
    .voice-search-btn {
        width: 40px;
        height: 40px;
    }
    
    .filter-controls {
        padding: 0.75rem;
        margin: 0.5rem;
        gap: 0.75rem;
    }
    
    .filter-group {
        gap: 0.5rem;
    }
    
    .filter-group-label {
        font-size: 0.65rem;
    }
    
    .filter-chips {
        gap: 0.375rem;
    }
    
    .filter-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* === SECTION/CHAPTER PAGES MOBILE === */
@media (max-width: 768px) {
    .section-hero,
    .chapter-hero,
    .unit-hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === CHARTS PAGE MOBILE === */
@media (max-width: 768px) {
    .charts-header {
        padding: 1.25rem 0;
    }
    
    .charts-header .page-title {
        font-size: 1.5rem;
    }
    
    .chart-tabs {
        gap: 0.375rem;
        padding: 0.75rem 0;
        scrollbar-width: none;
    }
    
    .chart-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .chart-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .chart-item {
        padding: 0.625rem 0.75rem;
        gap: 0.625rem;
    }
    
    .chart-position {
        font-size: 1.125rem;
        min-width: 2rem;
    }
    
    .chart-thumb {
        width: 48px;
        height: 48px;
    }
    
    .chart-title {
        font-size: 0.875rem;
    }
    
    .chart-subtitle {
        font-size: 0.75rem;
    }
    
    .chart-play {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
}

/* === SETTINGS PAGE MOBILE === */
@media (max-width: 768px) {
    .settings-header {
        padding: 1rem 0;
    }
    
    .settings-section {
        margin-bottom: 1.5rem;
    }
    
    .settings-section-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .setting-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .setting-label {
        font-size: 0.9rem;
    }
    
    .setting-desc {
        font-size: 0.7rem;
    }
    
    .setting-select {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .toggle {
        width: 44px;
        height: 24px;
    }
    
    .toggle-slider::before {
        width: 18px;
        height: 18px;
    }
    
    .toggle input:checked + .toggle-slider::before {
        transform: translateX(20px);
    }
    
    .shortcuts-list {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
    
    .shortcut-item {
        font-size: 0.8rem;
        padding: 0.5rem;
        background: var(--bg-tertiary);
        border-radius: var(--radius);
    }
}

/* === ACTIVITY PAGE MOBILE === */
@media (max-width: 768px) {
    .activity-header {
        padding: 1rem 0;
    }
    
    .activity-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .activity-avatar {
        width: 40px;
        height: 40px;
    }
    
    .activity-user {
        font-size: 0.9rem;
    }
    
    .activity-action {
        font-size: 0.8rem;
    }
    
    .activity-entity {
        padding: 0.625rem;
        gap: 0.625rem;
    }
    
    .activity-entity-thumb {
        width: 44px;
        height: 44px;
    }
    
    .activity-entity-title {
        font-size: 0.875rem;
    }
    
    .activity-play-btn {
        width: 32px;
        height: 32px;
    }
}

/* === PLAYLIST PAGE MOBILE === */
@media (max-width: 768px) {
    .playlist-hero {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    .playlist-hero-cover {
        width: 140px;
        height: 140px;
    }
    
    .playlist-hero-title {
        font-size: 1.5rem;
    }
    
    .playlist-hero-desc {
        font-size: 0.8rem;
    }
    
    .playlist-hero-meta {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .playlist-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .playlist-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .playlist-card {
        padding: 0.75rem;
    }
    
    .playlist-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .playlist-title {
        font-size: 0.85rem;
    }
    
    .playlist-meta {
        font-size: 0.7rem;
    }
}

/* === LIBRARY PAGE MOBILE === */
@media (max-width: 768px) {
    .library-tabs {
        gap: 0.25rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .library-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .library-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .library-content {
        padding: 1rem 0.75rem;
    }
}

/* === MODALS MOBILE === */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
    }
    
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 65vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Specific modals */
    .share-modal .share-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .eq-modal .eq-bands {
        gap: 0.5rem;
    }
    
    .eq-band {
        width: 40px;
    }
    
    .queue-modal .queue-item {
        padding: 0.75rem;
    }
    
    .offline-modal .offline-item {
        padding: 0.75rem;
    }
}

/* === FORMS MOBILE === */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    .form-checkbox label {
        font-size: 0.875rem;
    }
}

/* === BUTTONS MOBILE === */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
}

/* === TOAST NOTIFICATIONS MOBILE === */
@media (max-width: 768px) {
    .toast-container {
        bottom: calc(var(--mini-player-height) + var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }
    
    .toast {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* === LOADING STATES MOBILE === */
@media (max-width: 768px) {
    .loading-spinner {
        font-size: 1.5rem;
    }
    
    .skeleton-card {
        min-width: 120px;
    }
}

/* === EMPTY STATES MOBILE === */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i,
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.125rem;
    }
    
    .empty-state p {
        font-size: 0.875rem;
    }
}

/* === HOMEPAGE HERO MOBILE === */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.875rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* === EXAM PAGES MOBILE === */
@media (max-width: 768px) {
    .exam-grid,
    .section-grid,
    .unit-grid,
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .exam-card,
    .section-card,
    .unit-card,
    .chapter-card {
        padding: 1rem;
    }
    
    .exam-card h3,
    .section-card h3,
    .unit-card h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .exam-grid,
    .section-grid {
        grid-template-columns: 1fr;
    }
}

/* === LOGIN/SIGNUP PAGES MOBILE === */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-box {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-logo {
        margin-bottom: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-form .btn {
        padding: 0.875rem;
    }
}

/* === PROFILE PAGE MOBILE === */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.25rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
}

/* === LANDSCAPE ORIENTATION FIX === */
@media (max-height: 500px) and (orientation: landscape) {
    .player-modal {
        flex-direction: row;
    }
    
    .player-modal-cover {
        max-width: 40%;
        margin: 0;
    }
    
    .player-modal-body {
        flex: 1;
        padding: 1rem;
    }
    
    .mini-player {
        height: 56px;
    }
}

/* === SAFE AREA SUPPORT (iPhone X+) === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mini-player {
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
    
    .player-modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === DARK MODE OPTIMIZATIONS === */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .btn,
    .card,
    .list-item {
        border: 2px solid currentColor;
    }
    
    .filter-chip {
        border: 2px solid currentColor;
    }
}

/* === PRINT STYLES === */
@media print {
    .app-header,
    .bottom-nav,
    .mini-player,
    .player-modal,
    .modal-overlay {
        display: none !important;
    }
    
    .app-main {
        padding: 0;
    }
}

/* =====================================================
   PHASE 1: SPOTIFY-STYLE ENHANCEMENTS
   ===================================================== */

/* === 1. LOADING SKELETONS === */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        var(--bg-lighter) 20%,
        rgba(255, 255, 255, 0.08) 40%,
        var(--bg-lighter) 60%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Skeleton Card */
.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.full {
    width: 100%;
}

/* Skeleton List Item */
.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

/* Skeleton Section */
.skeleton-section {
    margin-bottom: 2rem;
}

.skeleton-section-title {
    height: 28px;
    width: 200px;
    margin-bottom: 1.5rem;
}

/* Skeleton Player */
.skeleton-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.skeleton-album-art {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
}

.skeleton-progress {
    width: 100%;
    height: 4px;
    border-radius: 2px;
}

.skeleton-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.skeleton-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-btn.large {
    width: 64px;
    height: 64px;
}

/* === 2. DYNAMIC GRADIENT BACKGROUNDS === */
.gradient-bg {
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: var(--dynamic-gradient, linear-gradient(180deg, rgba(212, 175, 55, 0.3) 0%, transparent 100%));
    opacity: 0.6;
    transition: background 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.gradient-bg > * {
    position: relative;
    z-index: 1;
}

/* Page-specific gradients */
.page-gradient {
    --dynamic-gradient: linear-gradient(180deg, 
        var(--gradient-color, rgba(212, 175, 55, 0.25)) 0%, 
        rgba(0, 0, 0, 0.8) 50%,
        var(--bg-darkest) 100%);
}

/* Player gradient */
.player-modal.has-gradient {
    background: linear-gradient(180deg, 
        var(--player-gradient-color, rgba(80, 80, 80, 0.5)) 0%, 
        var(--bg-darkest) 40%,
        var(--bg-darkest) 100%);
    transition: background 1s ease;
}

/* Card hover gradient */
.card-gradient-hover {
    position: relative;
    overflow: hidden;
}

.card-gradient-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-gradient-hover:hover::after {
    opacity: 1;
}

/* Ambient glow effect */
.ambient-glow {
    position: relative;
}

.ambient-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, var(--glow-color, rgba(212, 175, 55, 0.15)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.ambient-glow:hover::before,
.ambient-glow.active::before {
    opacity: 1;
}

/* === 3. IMPROVED ANIMATIONS === */

/* Fade animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Slide animations */
@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from { 
        transform: translateY(100%);
    }
    to { 
        transform: translateY(0);
    }
}

/* Bounce animation */
@keyframes bounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.3);
    }
    50% { 
        transform: scale(1.05);
    }
    70% { 
        transform: scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation (for play button) */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Wave animation (for now playing) */
@keyframes wave {
    0%, 100% { 
        transform: scaleY(0.5);
    }
    50% { 
        transform: scaleY(1);
    }
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glow pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--gold-glow), 0 0 10px var(--gold-glow);
    }
    50% {
        box-shadow: 0 0 15px var(--gold-glow), 0 0 30px var(--gold-glow);
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.4s ease forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.3s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* Card animations on load */
.cards-container .card,
.episode-grid .card {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.cards-container .card:nth-child(1) { animation-delay: 0s; }
.cards-container .card:nth-child(2) { animation-delay: 0.05s; }
.cards-container .card:nth-child(3) { animation-delay: 0.1s; }
.cards-container .card:nth-child(4) { animation-delay: 0.15s; }
.cards-container .card:nth-child(5) { animation-delay: 0.2s; }
.cards-container .card:nth-child(6) { animation-delay: 0.25s; }

/* Improved hover transitions */
.card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card:active {
    transform: translateY(-2px) scale(1.01);
}

/* Button press effect */
.btn {
    transition: transform 0.15s ease, 
                box-shadow 0.15s ease,
                background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

/* Ripple button effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Play button animation */
.play-btn,
.card-play-btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                box-shadow 0.2s ease;
}

.play-btn:hover,
.card-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.play-btn:active,
.card-play-btn:active {
    transform: scale(0.95);
}

/* Now playing indicator */
.now-playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.now-playing-bar {
    width: 3px;
    background: var(--gold);
    border-radius: 1px;
    animation: wave 0.8s ease-in-out infinite;
}

.now-playing-bar:nth-child(1) { animation-delay: 0s; height: 60%; }
.now-playing-bar:nth-child(2) { animation-delay: 0.2s; height: 100%; }
.now-playing-bar:nth-child(3) { animation-delay: 0.4s; height: 40%; }
.now-playing-bar:nth-child(4) { animation-delay: 0.1s; height: 80%; }

/* Progress bar animation */
.progress-fill {
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
    background: var(--gold-light);
}

/* List item hover animation */
.list-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.list-item:hover {
    background: var(--bg-lighter);
}

.list-item:active {
    transform: scale(0.99);
}

/* Modal animations */
.modal-overlay {
    animation: fadeIn 0.2s ease forwards;
}

.modal-content {
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.closing {
    animation: fadeIn 0.2s ease reverse forwards;
}

.modal-overlay.closing .modal-content {
    animation: fadeInScale 0.2s ease reverse forwards;
}

/* Bottom sheet animation */
.bottom-sheet {
    animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bottom-sheet.closing {
    animation: slideInUp 0.25s ease reverse forwards;
}

/* Player modal slide animation - only when active */
.player-modal.active {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.player-modal.closing {
    animation: slideInUp 0.3s ease reverse forwards;
}

/* Filter chip animation */
.filter-chip {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    transform: translateY(-2px);
}

.filter-chip.active {
    animation: bounceIn 0.3s ease forwards;
}

/* Search input focus animation */
.search-input {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Tab indicator animation */
.tab-indicator {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Volume slider animation */
.volume-slider::-webkit-slider-thumb {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Tooltip animation */
.tooltip {
    animation: fadeInUp 0.2s ease forwards;
}

/* Loading spinner with gold */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-lighter);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Page transition */
.page-transition-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition-exit {
    opacity: 1;
}

.page-transition-exit-active {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Image load animation */
.img-loading {
    background: var(--bg-light);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    background-size: 200% 100%;
}

.img-loaded {
    animation: fadeIn 0.3s ease forwards;
}

/* Heart/Like animation */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.like-btn.liked {
    animation: heartBeat 0.5s ease;
}

.like-btn.liked i {
    color: #ff4757;
}

/* === 4. KEYBOARD SHORTCUTS INDICATOR === */
.keyboard-shortcuts-modal {
    max-width: 500px;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-lighter);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-keys {
    display: flex;
    gap: 0.5rem;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 2px 0 var(--bg-card);
}

.shortcut-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Keyboard shortcut toast */
.shortcut-toast {
    position: fixed;
    bottom: calc(var(--mini-player-height) + var(--bottom-nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.3s ease forwards;
    z-index: 9999;
}

.shortcut-toast .shortcut-key {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold-dark);
}

.shortcut-toast-text {
    color: var(--text-primary);
    font-weight: 500;
}

.shortcut-toast.hiding {
    animation: fadeInUp 0.2s ease reverse forwards;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-darkest);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
}

/* =====================================================
   PHASE 2: TRANSCRIPT, CHAPTERS, CAST, NOTIFICATIONS
   ===================================================== */

/* Enhanced Transcript Modal */
.transcript-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.transcript-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.transcript-loading .loading-spinner {
    margin-bottom: 1rem;
}

.transcript-line {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.transcript-line:hover {
    background: var(--bg-lighter);
}

.transcript-line.active {
    background: var(--gold-subtle);
    border-left: 3px solid var(--gold);
}

.transcript-line.highlight {
    background: rgba(255, 200, 0, 0.2);
}

.transcript-time {
    flex-shrink: 0;
    width: 50px;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.transcript-text {
    flex: 1;
    line-height: 1.6;
    color: var(--text-primary);
}

.transcript-text mark {
    background: var(--gold);
    color: var(--bg-darkest);
    padding: 0 0.25rem;
    border-radius: 2px;
}

/* Transcript Search */
.transcript-search {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--bg-lighter);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transcript-search input {
    flex: 1;
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.transcript-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.search-results-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transcript-sync-btn,
.transcript-search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.transcript-sync-btn:hover,
.transcript-search-btn:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

.transcript-sync-btn.active {
    color: var(--gold);
}

.modal-header-left,
.modal-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chapters List */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapters-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.chapter-item:hover {
    background: var(--bg-lighter);
    border-color: var(--gold-subtle);
}

.chapter-item.active {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

.chapter-item.playing {
    border-color: var(--gold);
}

.chapter-item.playing .chapter-number {
    background: var(--gold);
    color: var(--bg-darkest);
}

.chapter-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
    min-width: 0;
}

.chapter-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chapter-time {
    color: var(--gold);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.chapter-duration {
    color: var(--text-muted);
}

.chapter-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.chapter-item:hover .chapter-play-btn {
    opacity: 1;
}

.chapter-play-btn:hover {
    transform: scale(1.1);
}

/* Progress on chapter */
.chapter-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: width 0.1s linear;
}

/* Cast Modal */
.cast-info {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.cast-info p {
    margin: 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cast-info i {
    color: var(--gold);
    margin-top: 0.25rem;
}

.cast-devices {
    margin-bottom: 1.5rem;
}

.cast-searching {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--text-muted);
}

.cast-device {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.cast-device:hover {
    background: var(--bg-lighter);
}

.cast-device.connected {
    border: 1px solid var(--gold);
    background: var(--gold-subtle);
}

.cast-device-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.cast-device.connected .cast-device-icon {
    background: var(--gold);
    color: var(--bg-darkest);
}

.cast-device-info {
    flex: 1;
}

.cast-device-name {
    font-weight: 500;
    color: var(--text-primary);
}

.cast-device-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cast-device.connected .cast-device-status {
    color: var(--gold);
}

.cast-instructions {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.cast-instructions h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cast-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
}

.cast-native-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.cast-native-btn i {
    margin-right: 0.5rem;
}

/* Notifications Modal */
.notification-status {
    text-align: center;
    padding: 2rem;
}

.notification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.notification-status.enabled .notification-icon {
    background: var(--gold-subtle);
    color: var(--gold);
}

.notification-status h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.notification-status p {
    margin: 0;
    color: var(--text-secondary);
}

.notification-options {
    padding: 1rem 0;
    text-align: center;
}

.notification-preferences {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.notification-preferences h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-lighter);
}

.toggle-option:last-child {
    border-bottom: none;
}

.toggle-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.toggle-option span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Push notification bell animation */
@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    60% { transform: rotate(0); }
}

.notification-enabled .fa-bell {
    animation: bellRing 1s ease;
}

/* Mini player cast indicator */
.mini-player .casting-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--gold-subtle);
    border-radius: var(--radius-sm);
}

/* Chapter markers on progress bar */
.progress-chapters {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.chapter-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.chapter-marker::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-medium);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.chapter-marker:hover {
    opacity: 1;
}

.chapter-marker:hover::after {
    opacity: 1;
}

/* No transcript/chapters state */
.no-content-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-content-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-content-message h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.no-content-message p {
    margin: 0;
}

/* =====================================================
   PHASE 3: COLLABORATIVE, SOCIAL, RADIO, OFFLINE
   ===================================================== */

/* === COLLABORATIVE PLAYLIST === */
.collaborative-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collaborator-avatars {
    display: flex;
    align-items: center;
}

.collaborator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-medium);
    margin-left: -8px;
    object-fit: cover;
    background: var(--bg-lighter);
}

.collaborator-avatar:first-child {
    margin-left: 0;
}

.collaborator-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: -8px;
    border: 2px solid var(--bg-medium);
}

/* Invite Modal */
.invite-modal .modal-content {
    max-width: 450px;
}

.invite-link-section {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.invite-link-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.invite-link-input {
    display: flex;
    gap: 0.5rem;
}

.invite-link-input input {
    flex: 1;
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.invite-link-input button {
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-link-input button:hover {
    background: var(--gold-hover);
}

.invite-users-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.invite-search {
    position: relative;
    margin-bottom: 1rem;
}

.invite-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.invite-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.invite-user-list {
    max-height: 200px;
    overflow-y: auto;
}

.invite-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-user-item:hover {
    background: var(--bg-light);
}

.invite-user-item.invited {
    background: var(--gold-subtle);
}

.invite-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-lighter);
}

.invite-user-info {
    flex: 1;
}

.invite-user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.invite-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.invite-user-status {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
}

/* Collaborator management */
.collaborator-list {
    margin-top: 1.5rem;
}

.collaborator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.collaborator-role {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.collaborator-role.owner {
    background: var(--gold);
    color: var(--bg-darkest);
}

.collaborator-actions {
    display: flex;
    gap: 0.5rem;
}

.collaborator-actions button {
    padding: 0.35rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.collaborator-actions button:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

/* === FRIEND ACTIVITY FEED === */
.activity-sidebar {
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    width: 320px;
    background: var(--bg-medium);
    border-left: 1px solid var(--bg-lighter);
    padding: 1rem;
    overflow-y: auto;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.activity-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-lighter);
}

.activity-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.activity-header button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--bg-lighter);
}

.activity-avatar {
    position: relative;
    flex-shrink: 0;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #1DB954;
    border: 2px solid var(--bg-light);
    border-radius: 50%;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-user {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-action {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.activity-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-track-thumb {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.activity-track-info {
    min-width: 0;
}

.activity-track-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-track-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Listening now indicator */
.listening-now {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #1DB954;
    font-size: 0.75rem;
    font-weight: 500;
}

.listening-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.listening-bar {
    width: 3px;
    background: #1DB954;
    border-radius: 1px;
    animation: listeningBars 0.8s ease-in-out infinite;
}

.listening-bar:nth-child(1) { animation-delay: 0s; height: 4px; }
.listening-bar:nth-child(2) { animation-delay: 0.2s; height: 8px; }
.listening-bar:nth-child(3) { animation-delay: 0.4s; height: 6px; }

@keyframes listeningBars {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Activity toggle button */
/* Hide standalone activity button - now inside FAB container */
.activity-toggle-btn {
    display: none !important;
}

/* Activity button inside FAB container */
.fab-activity-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.fab-activity-btn:hover {
    transform: scale(1.1);
}

.activity-toggle-btn:hover {
    transform: scale(1.1);
}

.activity-toggle-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #FF4444;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* === PLAYLIST RADIO === */
.radio-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.radio-mode-indicator i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.start-radio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-radio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.radio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.radio-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.radio-info-text h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.radio-info-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === OFFLINE MODE ENHANCEMENTS === */
.offline-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--bg-medium);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gold);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.offline-indicator.visible {
    opacity: 1;
    pointer-events: auto;
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sync-indicator.syncing i {
    animation: spin 1s linear infinite;
}

.sync-indicator.synced {
    color: #1DB954;
}

.offline-episode-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
    background: var(--gold);
    color: var(--bg-darkest);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-progress-ring {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
}

.download-progress-ring circle {
    fill: none;
    stroke-width: 3;
}

.download-progress-ring .bg {
    stroke: var(--bg-lighter);
}

.download-progress-ring .progress {
    stroke: var(--gold);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

/* === MINI PLAYER ENHANCEMENTS === */
.mini-player {
    touch-action: pan-y;
}

.mini-player-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 0.5rem;
}

.wave-bar {
    width: 3px;
    height: 16px;
    background: var(--gold);
    border-radius: 1.5px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.mini-player.paused .wave-bar {
    animation-play-state: paused;
}

/* Swipe gesture feedback */
.mini-player-swipe-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: var(--bg-medium);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

.mini-player-swipe-hint.left {
    left: -40px;
}

.mini-player-swipe-hint.right {
    right: -40px;
}

.mini-player.swiping-left .mini-player-swipe-hint.left,
.mini-player.swiping-right .mini-player-swipe-hint.right {
    opacity: 1;
}

/* Mini player progress bar */
.mini-player-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-lighter);
}

.mini-player-progress-bar {
    height: 100%;
    background: var(--gold);
    transition: width 0.1s linear;
}

/* Enhanced mini player layout */
.mini-player-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.mini-player-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.mini-player-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Now playing glow effect */
.now-playing-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--glow-color, rgba(255, 193, 7, 0.15)) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mini-player.playing .now-playing-glow {
    opacity: 1;
}

/* === BLEND PLAYLISTS === */
.blend-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.blend-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.blend-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.blend-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.blend-avatar:last-child {
    margin-left: -20px;
}

.blend-plus {
    width: 32px;
    height: 32px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    font-weight: 600;
}

.blend-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blend-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.blend-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.blend-match-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.blend-match-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
}

/* Responsive adjustments for Phase 3 */
@media (max-width: 768px) {
    .activity-sidebar {
        width: 100%;
        top: 0;
        z-index: 1001;
    }
    
    .activity-toggle-btn {
        bottom: 140px;
    }
    
    .blend-avatars {
        justify-content: center;
    }
    
    .invite-user-list {
        max-height: 150px;
    }
}

/* =====================================================
   PHASE 4: MISSING UI/UX POLISH
   ===================================================== */

/* === 1. LYRICS KARAOKE MODE === */
.karaoke-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-darkest) 0%, #1a1a2e 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.karaoke-modal.active {
    opacity: 1;
    visibility: visible;
}

.karaoke-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.karaoke-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.karaoke-info {
    text-align: center;
    flex: 1;
}

.karaoke-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.karaoke-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.karaoke-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

.karaoke-lyrics {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.karaoke-line {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    margin: 1rem 0;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.karaoke-line.active {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 0 30px rgba(255,193,7,0.5);
}

.karaoke-line.past {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}

.karaoke-progress {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
}

.karaoke-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.karaoke-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.karaoke-btn:hover {
    transform: scale(1.1);
}

.karaoke-btn.secondary {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
}

/* === 2. PULL TO REFRESH === */
.pull-to-refresh {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--bg-darkest);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.pull-to-refresh.visible {
    display: flex;
    transform: translateX(-50%) translateY(10px);
}

.pull-to-refresh.refreshing i {
    animation: spin 1s linear infinite;
}

/* === 3. MARQUEE SCROLLING TEXT === */
.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
}

.marquee-text.scrolling {
    animation: marqueeScroll 8s linear infinite;
    padding-right: 50px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mini-player .marquee-container {
    max-width: 150px;
}

/* === 4. SEARCH HISTORY === */
.search-history {
    padding: 1rem;
    background: var(--bg-medium);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.search-history-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-history-clear {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.8rem;
    cursor: pointer;
}

.search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-history-item:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

.search-history-item i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.search-history-remove {
    margin-left: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-history-item:hover .search-history-remove {
    opacity: 1;
}

/* === 5. CONTEXT MENU (LONG PRESS) === */
.context-menu {
    position: fixed;
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.15s ease;
}

.context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.context-menu-item:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.context-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.context-menu-item:hover i {
    color: var(--gold);
}

.context-menu-divider {
    height: 1px;
    background: var(--bg-lighter);
    margin: 0.5rem 0;
}

.context-menu-item.danger {
    color: #FF6B6B;
}

.context-menu-item.danger i {
    color: #FF6B6B;
}

/* === 6. AUDIO QUALITY SELECTOR === */
.quality-selector {
    padding: 1rem;
}

.quality-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.quality-option:hover {
    background: var(--bg-lighter);
}

.quality-option.selected {
    border-color: var(--gold);
    background: var(--gold-subtle);
}

.quality-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.quality-option.selected .quality-icon {
    background: var(--gold);
    color: var(--bg-darkest);
}

.quality-name {
    font-weight: 500;
    color: var(--text-primary);
}

.quality-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quality-check {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0;
}

.quality-option.selected .quality-check {
    opacity: 1;
}

/* === 7. ONBOARDING TOOLTIPS === */
.tooltip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tooltip-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip-spotlight {
    position: fixed;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.75);
    border-radius: var(--radius-md);
    z-index: 9999;
    pointer-events: none;
}

.onboarding-tooltip {
    position: fixed;
    background: white;
    color: #1a1a2e;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 320px;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.onboarding-tooltip.arrow-top::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.onboarding-tooltip.arrow-bottom::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.onboarding-tooltip h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.onboarding-tooltip p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-skip {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
}

.onboarding-next {
    padding: 0.6rem 1.5rem;
    background: var(--gold);
    color: #1a1a2e;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
}

.onboarding-dots {
    display: flex;
    gap: 0.5rem;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.onboarding-dot.active {
    background: var(--gold);
}

/* === 8. PRIVATE SESSION === */
.private-session-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-medium);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.private-session-indicator i {
    color: #9b59b6;
}

.private-session-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.private-session-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.private-session-info i {
    font-size: 1.2rem;
    color: #9b59b6;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-lighter);
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* === 9. QUICK ACTION FAB === */
.fab-container {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-darkest);
    border: none;
    outline: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main:hover {
    transform: scale(1.1);
}

.fab-main.open {
    transform: rotate(45deg);
}

.fab-actions {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container.open .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
}

.fab-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.fab-action-btn:hover {
    background: var(--bg-lighter);
    color: var(--gold);
}

.fab-action-label {
    padding: 0.5rem 0.75rem;
    background: var(--bg-medium);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* === 10. RECENTLY PLAYED QUICK ACCESS === */
.recent-access {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.recent-access::-webkit-scrollbar {
    display: none;
}

.recent-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    cursor: pointer;
}

.recent-access-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-lighter);
    transition: all 0.2s ease;
}

.recent-access-item:hover .recent-access-thumb {
    border-color: var(--gold);
    transform: scale(1.05);
}

.recent-access-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .karaoke-line {
        font-size: 1.5rem;
    }
    
    .karaoke-line.active {
        font-size: 1.8rem;
    }
    
    .fab-container {
        bottom: 180px;
    }
    
    .context-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }
    
    .context-menu.visible {
        transform: translateY(0);
    }
}
