/* Podcast Learning Platform - Dark Theme CSS */
/* Developed by Kalviyogi Nagarajan Edunivra Pvt Ltd */

:root {
    /* Dark Theme Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e2e;
    --bg-hover: #2a2a3e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --text-accent: #6366f1;
    
    /* Blue Accent Colors for Buttons and UI */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #1d4ed8;
    --accent: #0ea5e9;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    
    /* Blue Gradients for Buttons and UI Elements */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo i {
    color: var(--primary);
    font-size: 2rem;
}

.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 var(--spacing-xl);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) 3rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

.search-box i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.admin-link {
    color: var(--accent);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.user-dropdown a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.podcast-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.audio-wave {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.wave-bar {
    width: 4px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    animation: wave 2s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }
.wave-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { height: 60px; }
    50% { height: 120px; }
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-subjects,
.featured-podcasts,
.statistics {
    padding: var(--spacing-2xl) 0;
}

/* Subject Cards - Enhanced Design */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.subject-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
}

.subject-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.subject-card:hover::after {
    opacity: 1;
}

.subject-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--subject-color, var(--primary));
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--subject-color, var(--primary));
}

.subject-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.subject-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.subject-card:hover .subject-icon::before {
    transform: translateX(100%);
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.subject-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.subject-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--spacing-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.subject-stats span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Podcast Cards */
.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.podcast-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.podcast-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-thumbnail img {
    transform: scale(1.05);
}

.podcast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.podcast-card:hover .podcast-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.play-btn i {
    font-size: 1.5rem;
    margin-left: 2px;
}

.podcast-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.podcast-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    flex-grow: 1;
}

.podcast-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.subject-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.podcast-stats {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.podcast-stats span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
}

/* Statistics */
.statistics {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General mobile improvements */
    body {
        font-size: 14px;
    }
    
    /* Improved touch targets */
    .nav-item, .action-btn, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .spotify-main {
        padding: 1rem;
    }
    
    /* Improved mobile navigation */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        color: white;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .spotify-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .spotify-sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Improved mobile cards */
    .podcast-card, .result-card {
        margin-bottom: 1rem;
    }
    
    /* Better mobile forms */
    .form-input, .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    /* Improved mobile buttons */
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Original responsive styles */
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-search {
        margin: var(--spacing-md) 0;
        max-width: 100%;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .subjects-grid,
    .podcasts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
    }
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin: var(--spacing-xl);
    max-width: 500px;
    align-self: center;
    justify-self: center;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.auth-logo i {
    color: var(--primary);
    font-size: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-muted);
    z-index: 1;
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.password-toggle {
    position: absolute;
    right: var(--spacing-md);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
}

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

.password-strength {
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
}

.strength-very-weak { color: var(--danger); }
.strength-weak { color: #ff6b6b; }
.strength-fair { color: var(--warning); }
.strength-good { color: #51cf66; }
.strength-strong { color: var(--success); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
}

.auth-divider {
    text-align: center;
    margin: var(--spacing-xl) 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-google:hover {
    border-color: #ea4335;
}

.btn-facebook:hover {
    border-color: #1877f2;
}

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

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

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

.auth-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.illustration-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.illustration-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.illustration-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    opacity: 0.9;
}

.illustration-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1rem;
    font-weight: 500;
}

.feature i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Fixed Audio Player */
.fixed-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 200px;
}

.player-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.player-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.player-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.125rem;
}

.play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
}

.time-display {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-sm);
    width: 0%;
    transition: width 0.1s ease;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 120px;
}

.player-volume i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.player-volume input[type="range"] {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.player-volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Add bottom margin to body to account for fixed player */
body {
    margin-bottom: 100px;
}

/* Responsive Audio Player */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .player-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .player-controls {
        order: 2;
    }
    
    .player-progress {
        order: 3;
        min-width: auto;
        width: 100%;
    }
    
    .player-volume {
        order: 4;
        min-width: auto;
        width: 100%;
    }
    
    .player-details h4 {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .fixed-audio-player {
        padding: var(--spacing-sm);
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .player-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .player-details h4 {
        max-width: 150px;
        font-size: 0.75rem;
    }
    
    .player-details p {
        font-size: 0.625rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* Dashboard Styles */
.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-stats .stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.quick-actions {
    margin-bottom: var(--spacing-xl);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.action-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.action-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.action-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.progress-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.progress-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.progress-icon i {
    font-size: 1.5rem;
    color: white;
}

.progress-info h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.progress-number {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.subject-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.subject-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.subject-info {
    flex: 1;
}

.subject-info h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.subject-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.subject-stats {
    display: flex;
    gap: var(--spacing-md);
}

.subject-stats span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.subject-link {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-link {
    transform: translateX(3px);
}

/* Login Options Styles */
.login-options {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.login-option {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.login-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-option:hover::before {
    opacity: 1;
}

.login-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.admin-option:hover {
    border-color: #ef4444;
}

.admin-option:hover .option-icon {
    background: #ef4444;
}

.student-option:hover {
    border-color: #3b82f6;
}

.student-option:hover .option-icon {
    background: #3b82f6;
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.option-icon i {
    font-size: 2rem;
    color: white;
}

.option-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.option-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.option-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.option-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.option-arrow i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.login-option:hover .option-arrow {
    transform: translateX(5px);
}

/* Responsive Design for Login Options */
@media (max-width: 768px) {
    .login-options {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .login-option {
        min-width: auto;
        padding: var(--spacing-lg);
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
    }
    
    .option-icon i {
        font-size: 1.5rem;
    }
    
    .option-content h3 {
        font-size: 1.25rem;
    }
}

/* Library Page Styles */
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.search-filters {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-muted);
    z-index: 1;
}

.search-input-group input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input-group button {
    margin-left: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
}

.filter-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-group select {
    flex: 1;
    min-width: 150px;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.results-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.podcast-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 2;
}

.podcast-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--bg-tertiary);
}

.favorite-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.favorite-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.unit-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

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

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .search-filters {
        padding: var(--spacing-lg);
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .results-summary {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .podcast-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
}

/* Modern Header Styles */
.modern-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.main-nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

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

.user-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.logout-btn:hover {
    background: var(--danger);
}

/* Enhanced Page Header */
.page-header-modern {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--bg-tertiary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    flex: 1;
}

.page-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title i {
    font-size: 2rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.header-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
}

.header-stats .stat-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Enhanced Search and Filters */
.search-filters-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--bg-tertiary);
}

.search-section {
    margin-bottom: var(--spacing-lg);
}

.search-form-modern {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-secondary);
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: var(--spacing-sm);
    background: var(--primary);
    border: none;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.filters-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.filter-group-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-label i {
    color: var(--primary);
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Enhanced Results Summary */
.results-summary-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.results-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.results-count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.clear-filters-btn:hover {
    background: var(--danger);
    color: white;
}

/* Enhanced Podcast Grid */
.podcast-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.podcast-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-tertiary);
    display: flex;
    flex-direction: column;
}

.podcast-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.card-header {
    position: relative;
}

.podcast-thumbnail-modern {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.podcast-thumbnail-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card-modern:hover .podcast-thumbnail-modern img {
    transform: scale(1.1);
}

.play-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-card-modern:hover .play-overlay-modern {
    opacity: 1;
}

.play-btn-modern {
    background: var(--primary);
    border: none;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.play-btn-modern:hover {
    background: var(--primary-hover);
    transform: scale(1.2);
}

.play-btn-modern i {
    font-size: 1.8rem;
    margin-left: 3px;
}

.podcast-badge-modern {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
}

.subject-badge {
    background: var(--primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-meta-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.unit-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.duration-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.duration-badge i {
    color: var(--primary);
}

.podcast-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.podcast-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.podcast-stats-modern {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.podcast-stats-modern .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.podcast-stats-modern .stat-item i {
    color: var(--primary);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--bg-tertiary);
}

.favorite-btn-modern {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn-modern:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.favorite-btn-modern.active {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.details-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.details-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced No Results */
.no-results-modern {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.no-results-modern h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.no-results-modern p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Enhanced Pagination */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info-modern {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced Audio Player */
.fixed-audio-player-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-tertiary);
    padding: var(--spacing-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.player-container-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.player-info-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
}

.player-thumbnail-modern {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.player-details-modern h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    font-weight: 600;
}

.player-details-modern p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.player-controls-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.control-btn-modern {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn-modern:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.play-btn-modern {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.play-btn-modern:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.player-progress-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    max-width: 400px;
}

.time-display-modern {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
}

.progress-bar-modern {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill-modern {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

.player-volume-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 120px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

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

/* Responsive Design for Modern Components */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filters-section {
        grid-template-columns: 1fr;
    }
    
    .podcast-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .player-container-modern {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .player-info-modern {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .player-controls-modern {
        order: -1;
    }
    
    .player-progress-modern {
        max-width: none;
        width: 100%;
    }
}

/* Spotify-inspired Theme */
.spotify-theme {
    background: #121212;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Spotify Container Layout */
.spotify-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    background: #121212;
}

/* Sidebar Styles */
.spotify-sidebar {
    background: #000000;
    border-right: 1px solid #282828;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #282828;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    color: var(--primary);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-title {
    font-size: 12px;
    font-weight: 700;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.subject-item {
    padding: 8px 24px;
}

.subject-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid #282828;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 14px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 12px;
    color: #b3b3b3;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #b3b3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Main Content Area */
.spotify-main {
    background: linear-gradient(180deg, #404040 0%, #121212 100%);
    overflow-y: auto;
    position: relative;
}

/* Top Bar */
.top-bar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    border-bottom: 1px solid #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #b3b3b3;
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: #242424;
    border: none;
    border-radius: 24px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: #2a2a2a;
    box-shadow: 0 0 0 2px var(--primary);
}

.search-input::placeholder {
    color: #b3b3b3;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: var(--primary);
    border: none;
    color: #000000;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #535353;
    border-radius: 20px;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: #ffffff;
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
}

.sort-select {
    padding: 8px 16px;
    background: #242424;
    border: 1px solid #535353;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Content Area */
.content-area {
    padding: 32px;
}

/* Page Header */
.page-header-spotify {
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-text {
    flex: 1;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.page-title i {
    font-size: 40px;
    color: var(--primary);
}

.page-subtitle {
    font-size: 16px;
    color: #b3b3b3;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-card i {
    font-size: 24px;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 12px;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Summary */
.results-summary-spotify {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--primary);
    color: #000000;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #242424;
    color: #b3b3b3;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #535353;
    color: #ffffff;
}

/* Podcast Grid */
.podcast-grid-spotify {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.podcast-card-spotify {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.podcast-card-spotify:hover {
    background: #282828;
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card-spotify:hover .card-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-card-spotify:hover .play-overlay {
    opacity: 1;
}

.play-btn-spotify {
    background: var(--primary);
    border: none;
    color: #000000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(29, 185, 84, 0.3);
}

.play-btn-spotify:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.subject-badge {
    background: var(--primary);
    color: #000000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.unit-badge {
    background: #535353;
    color: #b3b3b3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.duration-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b3b3b3;
    font-size: 12px;
}

.duration-badge i {
    color: var(--primary);
}

.podcast-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-description {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.podcast-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b3b3b3;
    font-size: 12px;
}

.podcast-stats .stat-item i {
    color: var(--primary);
}

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

.favorite-btn-spotify {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn-spotify:hover {
    color: var(--primary);
    background: rgba(29, 185, 84, 0.1);
}

.favorite-btn-spotify.active {
    color: var(--primary);
}

.details-btn-spotify {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #535353;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.details-btn-spotify:hover {
    background: var(--primary);
    color: #000000;
}

/* No Results */
.no-results-spotify {
    text-align: center;
    padding: 64px 32px;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 64px;
    color: #535353;
    margin-bottom: 24px;
}

.no-results-spotify h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.no-results-spotify p {
    color: #b3b3b3;
    margin: 0 0 24px 0;
}

/* Pagination */
.pagination-spotify {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #242424;
    border: 1px solid #535353;
    color: #b3b3b3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    padding: 12px 20px;
    background: #242424;
    border-radius: 8px;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
}

/* Spotify Player */
.spotify-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 1px solid #282828;
    padding: 16px 24px;
    z-index: 1000;
}

.player-container {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.player-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.player-details p {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.favorite-btn-player {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn-player:hover {
    color: var(--primary);
    background: rgba(29, 185, 84, 0.1);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.play-btn-player {
    background: #ffffff;
    color: #000000;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.play-btn-player:hover {
    background: #f2f2f2;
    transform: scale(1.05);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.time-display {
    font-size: 12px;
    color: #b3b3b3;
    font-weight: 500;
    min-width: 32px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #535353;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 2px;
}

.player-options {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: #535353;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

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

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

/* Dashboard Specific Styles */
.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.welcome-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.welcome-subtitle {
    font-size: 16px;
    color: #b3b3b3;
    margin: 0;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.action-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: #000000;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.action-btn-primary svg {
    width: 16px;
    height: 16px;
}

.action-btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-card-primary .stat-icon {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.stat-card .stat-icon {
    color: var(--primary);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress {
    margin-top: 12px;
}

.stat-progress .progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.stat-progress .progress-bar .progress-fill {
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: #b3b3b3;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #666666;
}

.activity-status {
    display: flex;
    align-items: center;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #b3b3b3;
}

.empty-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.empty-state p {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: var(--primary);
    color: #000000;
}

/* Podcast List */
.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.podcast-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.podcast-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.podcast-image {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.podcast-item:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--primary);
    border: none;
    color: #000000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.play-btn svg {
    width: 16px;
    height: 16px;
}

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

.podcast-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-subject {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0 0 8px 0;
}

.podcast-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #b3b3b3;
}

.duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-btn:hover {
    color: var(--primary);
    background: rgba(29, 185, 84, 0.1);
}

.favorite-btn.active {
    color: var(--primary);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: #535353;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #b3b3b3;
    margin: 0 0 24px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #000000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.subject-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subject-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.subject-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.subject-icon svg {
    width: 24px;
    height: 24px;
}

.subject-info {
    flex: 1;
}

.subject-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.subject-count {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0;
}

.subject-progress {
    flex: 1;
    max-width: 200px;
}

.subject-progress .progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.subject-progress .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #b3b3b3;
}

.subject-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.subject-link:hover {
    background: var(--primary);
    color: #000000;
    transform: scale(1.1);
}

.subject-link svg {
    width: 20px;
    height: 20px;
}

/* Navigation Icons */
.nav-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .spotify-container {
        grid-template-columns: 240px 1fr;
    }
    
    .sidebar-nav {
        padding: 12px 0;
    }
    
    .nav-item {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .content-area {
        padding: 24px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .podcast-grid-spotify {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-card-primary {
        grid-column: 1 / -1;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .spotify-container {
        grid-template-columns: 1fr;
    }
    
    .spotify-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background: #000000;
        border-right: 1px solid #282828;
    }
    
    .spotify-sidebar.mobile-open {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--primary);
        border: none;
        color: #000000;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    }
    
    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .top-bar {
        padding: 12px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .search-container {
        max-width: none;
        width: 100%;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .top-bar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-tab {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .sort-select {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .page-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .header-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .podcast-grid-spotify {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .podcast-card-spotify {
        margin: 0;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .podcast-title {
        font-size: 14px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .podcast-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .podcast-stats {
        gap: 12px;
    }
    
    .podcast-stats .stat-item {
        font-size: 10px;
    }
    
    .card-actions {
        gap: 8px;
    }
    
    .favorite-btn-spotify {
        width: 32px;
        height: 32px;
    }
    
    .details-btn-spotify {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .player-container {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
    
    .player-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .player-thumbnail {
        width: 48px;
        height: 48px;
    }
    
    .player-details h4 {
        font-size: 14px;
    }
    
    .player-details p {
        font-size: 12px;
    }
    
    .player-controls {
        order: -1;
        gap: 8px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-btn-player {
        width: 44px;
        height: 44px;
    }
    
    .player-progress {
        max-width: none;
        width: 100%;
    }
    
    .time-display {
        font-size: 12px;
    }
    
    .player-options {
        gap: 8px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .welcome-text {
        font-size: 24px;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn-primary,
    .action-btn-secondary {
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .podcast-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px;
    }
    
    .podcast-image {
        width: 80px;
        height: 80px;
    }
    
    .podcast-info {
        text-align: center;
    }
    
    .podcast-title {
        font-size: 14px;
    }
    
    .podcast-subject {
        font-size: 12px;
    }
    
    .podcast-meta {
        justify-content: center;
        gap: 16px;
    }
    
    .subject-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }
    
    .subject-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .subject-icon {
        width: 60px;
        height: 60px;
    }
    
    .subject-name {
        font-size: 16px;
    }
    
    .subject-count {
        font-size: 12px;
    }
    
    .subject-progress {
        max-width: none;
        width: 100%;
    }
    
    .subject-link {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    /* Results summary responsive */
    .results-summary-spotify {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .results-count {
        font-size: 14px;
    }
    
    .active-filters {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .clear-filters-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* No results responsive */
    .no-results-spotify {
        padding: 40px 20px;
        text-align: center;
    }
    
    .no-results-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .no-results-spotify h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .no-results-spotify p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Pagination responsive */
    .pagination-spotify {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .pagination-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .page-info {
        font-size: 12px;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .spotify-container {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 8px 12px;
        gap: 12px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .top-bar-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
        gap: 4px;
    }
    
    .filter-tab {
        font-size: 11px;
        padding: 6px 8px;
        flex: 1;
        text-align: center;
    }
    
    .sort-select {
        font-size: 13px;
        padding: 6px 8px;
        width: 100%;
    }
    
    .content-area {
        padding: 12px;
    }
    
    .page-title {
        font-size: 24px;
        line-height: 1.1;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
        min-width: auto;
        width: 100%;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .podcast-grid-spotify {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .podcast-card-spotify {
        margin: 0;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .podcast-title {
        font-size: 13px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }
    
    .podcast-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .unit-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .duration-badge {
        font-size: 10px;
    }
    
    .podcast-stats {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .podcast-stats .stat-item {
        font-size: 9px;
        flex: 1;
        min-width: 0;
    }
    
    .card-actions {
        gap: 6px;
        flex-direction: column;
    }
    
    .favorite-btn-spotify {
        width: 28px;
        height: 28px;
        align-self: flex-end;
    }
    
    .details-btn-spotify {
        font-size: 11px;
        padding: 6px 10px;
        width: 100%;
        justify-content: center;
    }
    
    .player-container {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }
    
    .player-info {
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .player-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .player-details h4 {
        font-size: 12px;
    }
    
    .player-details p {
        font-size: 10px;
    }
    
    .player-controls {
        gap: 6px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .play-btn-player {
        width: 40px;
        height: 40px;
    }
    
    .time-display {
        font-size: 10px;
    }
    
    .player-options {
        gap: 6px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .results-summary-spotify {
        gap: 8px;
    }
    
    .results-count {
        font-size: 12px;
    }
    
    .active-filters {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .clear-filters-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .no-results-spotify {
        padding: 30px 15px;
    }
    
    .no-results-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .no-results-spotify h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .no-results-spotify p {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .pagination-spotify {
        gap: 8px;
    }
    
    .pagination-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .page-info {
        font-size: 11px;
    }
    
    /* Subject cards on mobile */
    .subject-card {
        padding: 12px;
    }
    
    .subject-icon {
        width: 50px;
        height: 50px;
    }
    
    .subject-name {
        font-size: 14px;
    }
    
    .subject-count {
        font-size: 11px;
    }
    
    .subject-link {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    /* Podcast items on mobile */
    .podcast-item {
        padding: 10px;
    }
    
    .podcast-image {
        width: 60px;
        height: 60px;
    }
    
    .podcast-title {
        font-size: 12px;
    }
    
    .podcast-subject {
        font-size: 10px;
    }
    
    .podcast-meta {
        gap: 12px;
    }
    
    .duration {
        font-size: 10px;
    }
    
    .views {
        font-size: 10px;
    }
}

/* Playlist Page Styles */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.playlist-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.playlist-card:hover::before {
    opacity: 1;
}

.playlist-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.playlist-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

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

.playlist-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.playlist-description {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #71717a;
}

.podcast-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.podcast-count::before {
    content: '🎵';
    font-size: 0.875rem;
}

.playlist-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.playlist-date::before {
    content: '📅';
    font-size: 0.875rem;
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.playlist-actions .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.playlist-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

.playlist-actions .action-btn svg {
    width: 16px;
    height: 16px;
}

.playlist-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Empty State for Playlists */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.empty-state .empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.empty-state .empty-icon svg {
    width: 60px;
    height: 60px;
    color: #ffffff;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    position: relative;
    z-index: 1;
}

/* Modal Styles for Playlist Creation */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #71717a;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.flash-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .playlist-card {
        padding: 1rem;
    }
    
    .playlist-header {
        gap: 0.75rem;
    }
    
    .playlist-icon {
        width: 40px;
        height: 40px;
    }
    
    .playlist-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .playlist-name {
        font-size: 1.125rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
} 

/* Playlist Detail Page Styles */
.playlist-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.playlist-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-icon-large svg {
    width: 40px;
    height: 40px;
    color: white;
}

.playlist-details {
    flex: 1;
    min-width: 0;
}

.playlist-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.playlist-subtitle {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.playlist-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #71717a;
}

.podcast-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    flex-shrink: 0;
}

.podcasts-section {
    padding: 1rem 0;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.podcast-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.podcast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.podcast-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.2);
}

.podcast-item:hover::before {
    opacity: 1;
}

.podcast-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.podcast-item:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.play-btn svg {
    width: 16px;
    height: 16px;
    color: #000000;
}

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

.podcast-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.podcast-subject {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.podcast-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #71717a;
}

.duration::before {
    content: '⏱️';
    margin-right: 0.25rem;
}

.file-size::before {
    content: '📁';
    margin-right: 0.25rem;
}

.podcast-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.podcast-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.podcast-actions .action-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.podcast-actions .action-btn svg {
    width: 14px;
    height: 14px;
}

/* Responsive Design for Playlist Detail */
@media (max-width: 768px) {
    .playlist-header-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .playlist-icon-large {
        width: 64px;
        height: 64px;
    }
    
    .playlist-icon-large svg {
        width: 32px;
        height: 32px;
    }
    
    .playlist-title {
        font-size: 1.5rem;
    }
    
    .playlist-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .podcast-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .podcast-image {
        width: 48px;
        height: 48px;
    }
    
    .podcast-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .podcast-title {
        font-size: 1rem;
    }
    
    .podcast-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

/* Podcast Detail Page Styles */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-bottom: 1rem;
}

.back-btn:hover {
    color: #ffffff;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.podcast-detail-container {
    padding: 1rem 0;
}

.podcast-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.podcast-image-large {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.play-overlay-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-image-large:hover .play-overlay-large {
    opacity: 1;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn-large:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.play-btn-large svg {
    width: 32px;
    height: 32px;
    color: #000000;
}

.podcast-info-large {
    flex: 1;
    min-width: 0;
}

.podcast-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.subject-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
}

.unit-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
}

.podcast-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.podcast-description {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.podcast-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #71717a;
    font-size: 0.875rem;
}

.stat-item svg {
    width: 16px;
    height: 16px;
}

.podcast-actions-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.podcast-actions-large .action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.podcast-actions-large .action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.podcast-actions-large .action-btn.favorited {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.podcast-actions-large .action-btn svg {
    width: 16px;
    height: 16px;
}

.progress-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.progress-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.75rem;
    color: #71717a;
}

/* Add to Playlist Modal Styles */
.playlist-selection {
    padding: 1rem 0;
}

.playlist-selection p {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.empty-playlists {
    text-align: center;
    padding: 2rem;
}

.empty-playlists p {
    color: #71717a;
    margin-bottom: 1rem;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.playlist-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.playlist-option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-option-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.playlist-option-info {
    flex: 1;
    min-width: 0;
}

.playlist-option-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.playlist-option-info p {
    font-size: 0.75rem;
    color: #71717a;
    margin: 0;
}

/* Responsive Design for Podcast Detail */
@media (max-width: 768px) {
    .podcast-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .podcast-image-large {
        width: 100%;
        height: 250px;
    }
    
    .podcast-title-large {
        font-size: 1.75rem;
    }
    
    .podcast-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .podcast-actions-large {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .podcast-actions-large .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .progress-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Podcast Link Styles */
.podcast-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.podcast-link:hover {
    color: #3b82f6;
}

/* Podcast Hero Section Styles */
.podcast-hero {
    position: relative;
    margin: -1rem -2rem 2rem -2rem;
    overflow: hidden;
}

.hero-background {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-image:hover .hero-play-overlay {
    opacity: 1;
}

.hero-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-play-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-play-btn svg {
    width: 32px;
    height: 32px;
    color: #000000;
    margin-left: 2px;
}

.hero-info {
    flex: 1;
    min-width: 0;
    padding-top: 1rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-type {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-subject {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-unit {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-stats .stat-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-action-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-action-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.hero-action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.hero-action-btn.favorited {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.hero-action-btn.favorited:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.hero-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #60a5fa;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
}

/* Related Section */
.related-section {
    margin-top: 3rem;
}

.related-podcasts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-related {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.empty-related::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.empty-related p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Responsive Design for Hero */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-image {
        width: 240px;
        height: 240px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .podcast-hero {
        margin: -1rem -1rem 2rem -1rem;
    }
    
    .hero-background {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-action-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .related-podcasts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Simple Add to Playlist Dropdown */
.simple-playlist-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    margin-top: 5px;
    min-width: 250px;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.simple-playlist-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.dropdown-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-close {
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.dropdown-close:hover {
    color: #ffffff;
}

.dropdown-close svg {
    width: 20px;
    height: 20px;
}

.dropdown-content {
    padding: 0.25rem 0;
}

.dropdown-content .empty-playlists-simple {
    text-align: center;
    padding: 1rem;
}

.dropdown-content .empty-playlists-simple p {
    color: #71717a;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.btn-create-playlist {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-create-playlist:hover {
    background: #2563eb;
}

.playlist-list-simple {
    max-height: 150px;
    overflow-y: auto;
}

.playlist-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.playlist-btn:hover {
    background: #333;
}

.playlist-btn.create-new {
    color: #3b82f6;
    font-weight: 500;
}

.playlist-btn.create-new:hover {
    background: rgba(59, 130, 246, 0.1);
}

.playlist-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.playlist-count {
    font-size: 0.8rem;
    color: #71717a;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 0.5rem 0;
}

.dropdown-content .playlist-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-content .playlist-option:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.dropdown-content .playlist-option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-content .playlist-option-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.dropdown-content .playlist-option-info {
    flex: 1;
    min-width: 0;
}

.dropdown-content .playlist-option-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.dropdown-content .playlist-option-info p {
    font-size: 0.75rem;
    color: #71717a;
    margin: 0;
}

/* Position the dropdown relative to the button */
.hero-action-btn {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .simple-playlist-dropdown {
        position: fixed;
        top: 50%;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%) translateY(-10px);
        max-height: 50vh;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .simple-playlist-dropdown.active {
        transform: translateY(-50%) translateY(0);
    }
    
    .dropdown-content .empty-playlists-simple {
        padding: 0.75rem;
    }
    
    .playlist-btn {
        padding: 0.6rem 1rem;
    }
}

/* Create New Playlist Option */
.playlist-option.create-new {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.playlist-option.create-new:hover {
    background: rgba(59, 130, 246, 0.2);
}

.playlist-option-icon.create-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.playlist-option.create-new .playlist-option-info h4 {
    color: #10b981;
}

/* Additional utility classes */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

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

.credentials-info {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.credentials-info p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.credentials-info strong {
    color: var(--text-primary);
}