/* ============================================
   PodGlimpse — Professional Redesign
   A premium, intellectual aesthetic for podcast enthusiasts
   ============================================ */

:root {
    /* Premium Color System */
    --primary-50: #eef4ff;
    --primary-100: #d9e6ff;
    --primary-200: #bcd4ff;
    --primary-300: #8eb8ff;
    --primary-400: #5990ff;
    --primary-500: #3366ff;
    --primary-600: #1a4fff;
    --primary-700: #1340e6;
    --primary-800: #1636ba;
    --primary-900: #183293;
    --primary-color: var(--primary-600);
    --secondary-color: var(--primary-700);
    
    /* Accent & Semantic */
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --danger-500: #ef4444;
    
    /* Neutral Scale */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    /* Legacy aliases */
    --text-color: var(--slate-800);
    --text-900: var(--slate-900);
    --text-800: var(--slate-800);
    --text-700: var(--slate-700);
    --muted-600: var(--slate-600);
    --muted-500: var(--slate-500);
    --border-color: var(--slate-200);
    --surface: #ffffff;
    --background-color: var(--slate-50);
    --hover-color: var(--slate-100);
    
    /* Glass & Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(26, 79, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 20px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;
    
    /* Legacy animation aliases */
    --ease-standard: var(--ease-out);
    --anim-quick: var(--duration-fast);
    --anim-standard: var(--duration-normal);
    --anim-slow: var(--duration-slow);
}

/* ============================================
   Base & Background
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

/* Layered gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(26, 79, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(26, 79, 255, 0.05), transparent 50%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(16, 185, 129, 0.04), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Page Container
   ============================================ */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6) var(--space-16);
    position: relative;
}

/* ============================================
   Topbar — Floating Glass Header
   ============================================ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-4) var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: var(--space-4);
    z-index: 100;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-500), var(--success-500));
    box-shadow: 0 0 0 4px rgba(26, 79, 255, 0.1), 0 2px 8px rgba(26, 79, 255, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(26, 79, 255, 0.1), 0 2px 8px rgba(26, 79, 255, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(26, 79, 255, 0.15), 0 4px 16px rgba(26, 79, 255, 0.4); }
}

.topbar-actions {
    display: inline-flex;
    gap: var(--space-3);
    align-items: center;
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Upgrade Button */
.btn-upgrade {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-upgrade::before {
    display: none;
}

/* ============================================
   Unified Site Header — Minimal Dock Design
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    z-index: 1000;
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.header-brand:hover {
    opacity: 0.8;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-right: auto;
    margin-left: var(--space-8);
}

.header-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.header-link:hover {
    color: var(--slate-900);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* User Badge */
.user-badge-wrapper {
    position: relative;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.user-badge:hover {
    background: var(--slate-200);
    border-color: var(--slate-300);
}

.user-badge.pro {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}

.user-badge.pro:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.15));
}

.badge-chevron {
    transition: transform var(--duration-fast) var(--ease-out);
}

.user-badge[aria-expanded="true"] .badge-chevron {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 1001;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-3) var(--space-4);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: var(--slate-100);
    margin: var(--space-1) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
    text-align: left;
}

.dropdown-item:hover {
    background: var(--slate-50);
}

.dropdown-item svg {
    color: var(--slate-400);
    flex-shrink: 0;
}

.dropdown-item-danger {
    color: var(--danger-500);
}

.dropdown-item-danger svg {
    color: var(--danger-500);
}

/* Header Sign In Button (guest) */
.header-signin {
    font-size: 0.875rem;
}

/* Header CTA */
.header-cta {
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    gap: var(--space-2);
}

.header-cta svg {
    width: 14px;
    height: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 1100;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-overlay.open .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--slate-100);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-close:hover {
    background: var(--slate-100);
    color: var(--slate-700);
}

.mobile-menu-nav {
    padding: var(--space-4) var(--space-3);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-4);
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-700);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
    text-align: left;
}

.mobile-menu-item:hover {
    background: var(--slate-50);
}

.mobile-menu-item-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    font-weight: 600;
}

.mobile-menu-item-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--slate-100);
    margin: var(--space-2) var(--space-5);
}

.mobile-menu-user {
    padding: var(--space-3);
}

.mobile-menu-email {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-signout {
    color: var(--danger-500);
}

.mobile-menu-guest {
    padding: var(--space-4) var(--space-5);
}

.mobile-signin-btn {
    width: 100%;
    justify-content: center;
}

/* Body padding for fixed header */
body.has-site-header {
    padding-top: 64px;
}

/* Page container adjustments for fixed header */
body.has-site-header .page {
    padding-top: var(--space-8);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .site-header {
        height: 56px;
    }
    
    body.has-site-header {
        padding-top: 56px;
    }
    
    .header-container {
        padding: 0 var(--space-4);
    }
    
    .header-nav,
    .header-signin,
    .user-badge-wrapper {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }
    
    .header-cta span {
        display: none;
    }
}

/* ============================================
   Main Content Area
   ============================================ */
.main {
    display: grid;
    gap: var(--space-8);
}

/* ============================================
   Hero Section — Glass Card with Premium Feel
   ============================================ */
.hero-minimal {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Decorative gradient orb */
.hero-minimal::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 79, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-minimal::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-minimal h1 {
    position: relative;
    margin: 0 0 var(--space-4) 0;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-minimal p {
    position: relative;
    margin: 0;
    color: var(--slate-600);
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.65;
    max-width: 540px;
}

.auth-status {
    position: relative;
    margin-top: var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: var(--slate-100);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-status:empty {
    display: none;
}

.auth-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.auth-error {
    position: relative;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--danger-500);
}

/* ============================================
   Buttons — Premium Interactions
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: 
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        background-color var(--duration-fast) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 16px rgba(26, 79, 255, 0.25),
        0 1px 2px rgba(26, 79, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(26, 79, 255, 0.35),
        0 2px 4px rgba(26, 79, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(26, 79, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
}

.btn-ghost::before {
    display: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--slate-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 16px rgba(245, 158, 11, 0.3),
        0 1px 2px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.4),
        0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px var(--slate-50),
        0 0 0 5px var(--primary-500);
}

/* ============================================
   Search Container — Premium Search Experience
   ============================================ */
.search-container {
    position: relative;
    margin-bottom: var(--space-6);
}

.search-container::before {
    content: '';
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
    z-index: 10;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

#search-input {
    width: 100%;
    height: 60px;
    padding: 0 var(--space-6) 0 56px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--slate-900);
    background: var(--surface);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: 
        border-color var(--duration-fast) var(--ease-smooth),
        box-shadow var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out);
}

#search-input::placeholder {
    color: var(--slate-400);
    font-weight: 400;
}

#search-input:hover {
    border-color: var(--slate-300);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 
        var(--shadow-md),
        0 0 0 4px rgba(26, 79, 255, 0.1);
    transform: translateY(-2px);
}

#search-input:focus-visible {
    outline: none;
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    overflow-x: hidden;
}

#search-results:empty {
    display: none;
}

.search-result {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    cursor: pointer;
    border-bottom: 1px solid var(--slate-100);
    transition: background-color var(--duration-fast) var(--ease-smooth);
    gap: var(--space-4);
}

.search-result:first-child {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.search-result:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.search-result:only-child {
    border-radius: var(--radius-xl);
}

.search-result:hover {
    background: var(--slate-50);
}

.search-result:active {
    background: var(--slate-100);
}

.search-result img,
.podcast-artwork {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-900);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-artist {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.artist-label {
    font-weight: 500;
}

.artist-name {
    color: var(--slate-600);
}

/* Loading & Empty States for Search */
.search-loading,
.no-results,
.search-error {
    padding: var(--space-8) var(--space-6);
    text-align: center;
    color: var(--slate-500);
    font-size: 0.9375rem;
}

.no-results {
    font-style: italic;
    color: var(--slate-400);
}

.search-error {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-lg);
    color: var(--danger-500);
}

.error-details {
    margin-top: var(--space-2);
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ============================================
   Episode List Container
   ============================================ */
#episode-list-container {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
    padding: var(--space-8);
    animation: slideUp var(--duration-slow) var(--ease-out);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#podcast-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 var(--space-6) 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

#podcast-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-full);
}

/* Episode Cards */
.episode-item {
    position: relative;
    padding: var(--space-6);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    transition: 
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        border-color var(--duration-fast) var(--ease-smooth);
}

.episode-item:last-child {
    margin-bottom: 0;
}

.episode-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--slate-300);
}

.episode-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    color: var(--slate-500);
    font-size: 0.8125rem;
    font-weight: 500;
}

.episode-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
}

/* Summarize Button */
.summarize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(26, 79, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: 
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.summarize-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.summarize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(26, 79, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.summarize-btn:active {
    transform: translateY(0);
}

.summarize-btn:disabled {
    background: var(--slate-300);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.summarize-btn:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px var(--surface),
        0 0 0 5px var(--primary-500);
}

/* ============================================
   Summary Section — Premium Reading Experience
   ============================================ */
.podcast-summary {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-10) var(--space-8);
    max-width: 840px;
    margin: 0 auto;
    animation: slideUp var(--duration-slow) var(--ease-out);
}

.summary-loading {
    text-align: center;
    padding: var(--space-12) var(--space-8);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
}

.loading-spinner {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 4px solid var(--slate-200);
    border-radius: 50%;
    border-top-color: var(--primary-600);
    border-right-color: var(--primary-400);
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--space-6);
}

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

.progress-steps {
    max-width: 320px;
    margin: var(--space-6) auto 0;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.progress-step.active {
    color: var(--slate-700);
    font-weight: 500;
}

.progress-step.completed {
    color: var(--success-500);
}

.progress-step-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 
        background-color var(--duration-fast) var(--ease-smooth),
        color var(--duration-fast) var(--ease-smooth);
}

.progress-step.active .progress-step-icon {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 79, 255, 0.3);
}

.progress-step.completed .progress-step-icon {
    background: var(--success-500);
    color: white;
}

/* Summary Content Typography */
.summary-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--slate-700);
}

.summary-container {
    padding: 0;
}

.summary-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--slate-200);
}

.summary-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.summary-section {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--slate-50) 0%, rgba(248, 250, 252, 0.5) 100%);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: 
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}

.summary-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    letter-spacing: -0.01em;
}

.summary-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 3px rgba(26, 79, 255, 0.15);
}

.section-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate-600);
}

.section-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-content li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
}

.section-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.section-content li:last-child {
    margin-bottom: 0;
}

.section-content blockquote {
    margin: var(--space-4) 0;
    padding: var(--space-4) var(--space-5);
    background: var(--surface);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--slate-600);
    box-shadow: var(--shadow-sm);
}

.summary-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: 
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-smooth);
    box-shadow: var(--shadow-xs);
}

.action-btn:hover {
    background: var(--slate-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-btn:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px var(--surface),
        0 0 0 5px var(--primary-500);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--slate-900);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0;
    box-shadow: var(--shadow-xl);
    transition: 
        transform var(--duration-slow) var(--ease-spring),
        opacity var(--duration-normal) var(--ease-smooth);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   Error & Retry States
   ============================================ */
.error-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--primary-600);
    color: white;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: var(--space-4);
    cursor: pointer;
    transition: 
        transform var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(26, 79, 255, 0.2);
}

.retry-btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.error-message {
    text-align: center;
    padding: var(--space-8);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-xl);
    color: var(--danger-500);
}

.loading {
    text-align: center;
    padding: var(--space-8);
    color: var(--slate-500);
    background: var(--slate-50);
    border-radius: var(--radius-lg);
}

.no-episodes {
    text-align: center;
    padding: var(--space-10);
    color: var(--slate-500);
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    font-style: italic;
}

/* Processing State */
.summary-processing {
    text-align: center;
    padding: var(--space-10);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
}

.processing-indicator {
    margin-bottom: var(--space-6);
}

.notification-info {
    color: var(--primary-600);
    font-weight: 600;
    margin: var(--space-4) 0;
}

.time-estimate {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

/* ============================================
   Modal Styles
   ============================================ */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn var(--duration-normal) var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    width: 100%;
    max-width: 420px;
    margin: var(--space-4);
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp var(--duration-slow) var(--ease-out);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: 
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.modal-btn-primary {
    background: var(--primary-600);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 79, 255, 0.2);
}

.modal-btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.modal-btn-secondary {
    background: var(--surface);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.modal-btn-secondary:hover {
    background: var(--slate-50);
}

/* Upgrade Modal */
.upgrade-modal-content {
    max-width: 480px;
    text-align: center;
}

.upgrade-modal-header {
    margin-bottom: var(--space-4);
}

.upgrade-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-3);
}

.upgrade-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.upgrade-modal-text {
    color: var(--slate-600);
    margin-bottom: var(--space-6);
}

.upgrade-modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    text-align: left;
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--slate-50);
    border-radius: var(--radius-lg);
}

.feature-item {
    color: var(--slate-700);
    font-size: 0.9375rem;
    padding: var(--space-1) 0;
}

.upgrade-modal-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.price-option {
    text-align: center;
    position: relative;
}

.price-option.featured {
    padding: var(--space-3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-500);
}

.save-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-500);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.price-option .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
}

.price-option .period {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.price-divider {
    color: var(--slate-400);
    font-size: 0.875rem;
}

.upgrade-modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.upgrade-cta {
    width: 100%;
    padding: var(--space-4);
    font-size: 1rem;
}

/* Plan selection buttons */
.price-option-btn {
    background: var(--surface);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    text-align: center;
    position: relative;
}

.price-option-btn:hover {
    border-color: var(--slate-300);
}

.price-option-btn.selected {
    border-color: var(--primary-500);
    background: rgba(26, 79, 255, 0.05);
}

.price-option-btn.featured {
    border-color: var(--accent-500);
}

.price-option-btn.featured.selected {
    border-color: var(--accent-500);
    background: rgba(245, 158, 11, 0.1);
}

.upgrade-modal-error {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--danger-500);
    font-size: 0.875rem;
    text-align: center;
}

/* ============================================
   Eyebrow / Labels
   ============================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-600);
    padding: var(--space-2) var(--space-3);
    background: rgba(26, 79, 255, 0.08);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.eyebrow.subtle {
    background: var(--slate-100);
    color: var(--slate-600);
}

.eyebrow.subtle::before {
    background: var(--slate-400);
}

/* ============================================
   Mark / Highlight
   ============================================ */
mark {
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.15) 100%);
    padding: 0 var(--space-1);
    border-radius: var(--radius-sm);
}

/* ============================================
   Auth Card
   ============================================ */
.auth-card {
    margin: var(--space-6) 0 var(--space-8);
    padding: var(--space-6);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--surface) 0%, var(--slate-50) 100%);
    box-shadow: var(--shadow-card);
}

.auth-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.auth-card__body h2 {
    margin: var(--space-1) 0 var(--space-2) 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.auth-card__body p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.9375rem;
}

.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 200px;
}

.btn-icon {
    font-size: 1.125rem;
}

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] .search-container::before {
    left: auto;
    right: var(--space-5);
}

[dir="rtl"] #search-input {
    padding: 0 56px 0 var(--space-6);
}

[dir="rtl"] .search-result img,
[dir="rtl"] .podcast-artwork {
    margin-right: 0;
    margin-left: var(--space-4);
}

[dir="rtl"] .topbar-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-minimal,
[dir="rtl"] #episode-list-container,
[dir="rtl"] .podcast-summary {
    text-align: right;
}

[dir="rtl"] .episode-item h3,
[dir="rtl"] .episode-meta,
[dir="rtl"] .summary-section {
    text-align: right;
}

[dir="rtl"] .episode-item,
[dir="rtl"] .summary-section {
    direction: rtl;
}

[dir="rtl"] .section-content li {
    padding-left: 0;
    padding-right: var(--space-6);
}

[dir="rtl"] .section-content li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .section-content blockquote {
    border-left: none;
    border-right: 4px solid var(--primary-500);
}

[dir="rtl"] #podcast-title::before {
    order: 1;
}

[dir="rtl"] .summary-section h3::before {
    order: 1;
}

[dir="rtl"] .progress-steps {
    text-align: right;
}

[dir="rtl"] .progress-step {
    flex-direction: row-reverse;
}

[dir="rtl"] .summary-footer {
    justify-content: flex-start;
}

[dir="rtl"] .auth-status::before {
    order: 1;
}

[dir="rtl"] .eyebrow::before {
    order: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .page {
        padding: var(--space-4) var(--space-4) var(--space-12);
    }
    
    .topbar {
        position: relative;
        top: 0;
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-xl);
        margin-bottom: var(--space-6);
    }
    
    .brand {
        font-size: 1rem;
    }
    
    .hero-minimal {
        padding: var(--space-8) var(--space-6);
    }
    
    .hero-minimal h1 {
        font-size: 2rem;
    }
    
    #episode-list-container {
        padding: var(--space-6);
    }
    
    .episode-item {
        padding: var(--space-5);
    }
    
    .podcast-summary {
        padding: var(--space-6);
    }
    
    .summary-section {
        padding: var(--space-5);
    }
    
    #search-input {
        height: 56px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    
    .topbar-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .topbar-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .hero-minimal {
        padding: var(--space-6) var(--space-5);
    }
    
    .hero-minimal h1 {
        font-size: 1.75rem;
    }
    
    .hero-minimal p {
        font-size: 1rem;
    }
    
    .summarize-btn {
        width: 100%;
    }
    
    .summary-footer {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: var(--space-3);
        padding: var(--space-6);
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .brand-dot {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: var(--primary-600);
        border-right-color: var(--primary-600);
    }
}

/* ============================================
   Focus Within for Search
   ============================================ */
.search-container:focus-within::before {
    opacity: 0.7;
}

/* ============================================
   Skeleton Loading Animation
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--slate-100) 25%,
        var(--slate-200) 50%,
        var(--slate-100) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
}

/* ============================================
   App Footer
   ============================================ */
.app-footer {
    margin-top: var(--space-16);
    padding: var(--space-10) 0 var(--space-6);
    border-top: 1px solid var(--slate-200);
}

.app-footer .footer-brand {
    margin-bottom: var(--space-8);
}

.app-footer .footer-brand .brand {
    text-decoration: none;
    margin-bottom: var(--space-2);
    display: inline-flex;
}

.app-footer .footer-brand p {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin: var(--space-2) 0 0;
}

.app-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.app-footer .footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-900);
    margin: 0 0 var(--space-4) 0;
}

.app-footer .footer-col a {
    display: block;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: var(--space-1) 0;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.app-footer .footer-col a:hover {
    color: var(--primary-600);
}

.app-footer .footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--slate-200);
}

.app-footer .footer-bottom p {
    color: var(--slate-500);
    font-size: 0.8125rem;
    margin: 0;
}

@media (max-width: 480px) {
    .app-footer .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .app-footer .footer-links {
        grid-template-columns: 1fr;
    }
}
