/* 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;
}

.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);
}

.episode-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.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 */
.duration-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.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);
}

.duration-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* 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;
}

/* 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: 2px;
    background: rgba(255,255,255,0.1);
}

.mini-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s linear;
}

.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 */
.player-progress {
    margin-bottom: 1.5rem;
}

.progress-slider {
    width: 100%;
    height: 8px !important;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 0 0 8px 0;
    padding: 0;
    display: block !important;
}

/* Chrome, Safari, Edge */
.progress-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
    border: 2px solid #fff;
}

.progress-slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.7);
}

/* Firefox */
.progress-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.progress-slider::-moz-range-progress {
    background: var(--gold);
    height: 6px;
    border-radius: 3px;
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.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: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.list-item:hover .list-play {
    background: var(--gold);
    color: var(--bg-darkest);
}

/* =====================================================
   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: sticky;
    top: var(--header-height);
    background: var(--bg-darkest);
    z-index: 50;
}

.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);
}

/* 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 1.125rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-chip:hover {
    background: rgba(255,255,255,0.1);
}

.filter-chip.active {
    background: var(--gold);
    color: var(--bg-darkest);
}

/* 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);
}

/* =====================================================
   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;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.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;
}
