/* NiaStream - Ultra Premium Streaming Design System 2.0 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Light Theme Tokens */
    --bg-app: #f4f6fb;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-surface-hover: #edf2f7;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --border-subtle: rgba(226, 232, 240, 0.85);
    --border-strong: #cbd5e1;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.12);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --primary-glow: rgba(99, 102, 241, 0.35);

    --youtube-red: #ff0033;
    --youtube-glow: rgba(255, 0, 51, 0.25);
    --personal-emerald: #10b981;
    --personal-glow: rgba(16, 185, 129, 0.25);
    --accent-cyan: #06b6d4;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.22);
    --shadow-player: 0 -8px 32px rgba(15, 23, 42, 0.08);

    --sidebar-width: 270px;
    --mini-player-height: 86px;
    --mobile-nav-height: 66px;
}

/* Sleek Dark Theme Tokens (Deep space midnight aesthetic) */
[data-theme="dark"] {
    --bg-app: #080b11;
    --bg-surface: #0f1420;
    --bg-surface-elevated: #161c2c;
    --bg-surface-hover: #1f273d;
    --bg-glass: rgba(15, 20, 32, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #080b11;

    --primary-light: rgba(99, 102, 241, 0.18);
    --primary-glow: rgba(99, 102, 241, 0.45);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 30px -5px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.35);
    --shadow-player: 0 -8px 40px rgba(0, 0, 0, 0.75);
}

/* Base Resets & Global Smoothness */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Radial Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: calc(var(--mini-player-height) + 16px);
    position: relative;
    z-index: 1;
}

/* Sidebar Navigation */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: var(--mini-player-height);
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.app-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.brand-section {
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px var(--primary-glow);
    transition: transform 0.25s ease;
}

.brand-section:hover .brand-logo-icon {
    transform: rotate(6deg) scale(1.05);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    text-decoration: none !important;
}

.nav-link-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link-item:hover,
.nav-link-item:focus {
    background-color: var(--bg-surface-hover);
    color: var(--primary);
    transform: translateX(3px);
    text-decoration: none !important;
}

.nav-link-item:hover i {
    transform: scale(1.15);
    color: var(--primary);
}

.nav-link-item.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 6px 20px var(--primary-glow);
    font-weight: 700;
}

.nav-link-item.active i {
    color: #ffffff !important;
}

.nav-header-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 18px 18px 6px 18px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
}

/* Header Topbar with Frosted Glass */
.app-header {
    height: 76px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

/* Spotlight Search Quick Trigger */
.header-search-bar {
    max-width: 440px;
    width: 380px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-pill);
    padding: 0 14px 0 16px;
    gap: 12px;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .header-search-bar {
    background: #141a29;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.header-search-bar:hover {
    border-color: var(--primary) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 18px var(--primary-glow) !important;
    transform: translateY(-1px);
}

.header-search-bar .search-icon-inside {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.header-search-placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.search-shortcut-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 2px 8px;
    font-weight: 700;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.header-action-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Source Badges */
.badge-source {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-source-youtube {
    background-color: rgba(255, 0, 51, 0.12);
    color: var(--youtube-red);
    border: 1px solid rgba(255, 0, 51, 0.25);
}

.badge-source-personal {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--personal-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Animated Equalizer Waves inside Cards & Mini-Player */
.equalizer-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.equalizer-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: eqPulse 1s ease-in-out infinite alternate;
}
.equalizer-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.equalizer-bar:nth-child(3) { height: 60%; animation-delay: 0.15s; }
.equalizer-bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes eqPulse {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* Media Cards Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary);
}

.media-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface-elevated);
}

.media-thumbnail-wrap.square {
    aspect-ratio: 1 / 1;
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-card:hover .media-thumbnail {
    transform: scale(1.08);
}

.media-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
}

.media-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-bubble-btn {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 8px 24px var(--primary-glow);
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-card:hover .play-bubble-btn {
    transform: scale(1);
}

.play-bubble-btn:hover {
    transform: scale(1.12) !important;
}

.media-info {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.media-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 12px 0;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 9px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--primary-glow);
    transform: translateY(-2px);
}

/* Buttons & Badges */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 6px 18px var(--primary-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--primary-glow);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    margin-top: 32px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ultra Pro Hero Banner & Ambient Effects */
.hero-premium-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(168, 85, 247, 0.14) 40%, rgba(236, 72, 153, 0.10) 100%), var(--bg-surface);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .hero-premium-banner {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(46, 16, 101, 0.55) 50%, rgba(15, 23, 42, 0.9) 100%), #0c101c;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 40px rgba(99, 102, 241, 0.22);
}

.hero-ambient-glow {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.25) 45%, transparent 70%);
    filter: blur(90px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient-title {
    font-weight: 900;
    letter-spacing: -0.8px;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.15;
    background: linear-gradient(135deg, #0f172a 0%, #4338ca 65%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-gradient-title {
    background: linear-gradient(135deg, #ffffff 15%, #c084fc 65%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pro Showcase Card in Hero */
.pro-showcase-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-showcase-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 24px 48px var(--primary-glow) !important;
}

.badge-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--personal-emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--personal-emerald);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.showcase-art-box {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

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

.showcase-mini-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

/* Pro Audio Quality Badges on Media Cards */
.media-quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.media-quality-badge.personal {
    background: rgba(16, 185, 129, 0.85);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--personal-glow);
}

.media-quality-badge.youtube {
    background: rgba(255, 0, 51, 0.85);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--youtube-glow);
}

/* Pro Audio Quality Pill in Player */
.pro-audio-pill {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
}

.pro-audio-pill.lossless {
    background: rgba(16, 185, 129, 0.15);
    color: var(--personal-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pro-audio-pill.youtube {
    background: rgba(255, 0, 51, 0.12);
    color: var(--youtube-red);
    border: 1px solid rgba(255, 0, 51, 0.25);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid var(--border-subtle);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-nav-item.active i {
    transform: translateY(-2px);
}

/* Responsive Breakpoints & Multi-Resolution Perfection */
@media (min-width: 1600px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 22px;
    }
}

@media (min-width: 2100px) {
    .app-main {
        max-width: 2200px;
        margin-right: auto;
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .app-main {
        margin-left: 0;
        width: 100%;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .app-container {
        padding-bottom: calc(var(--mini-player-height) + var(--mobile-nav-height) + 24px);
    }
    .hero-premium-banner {
        padding: 24px 20px !important;
    }
}

@media (max-width: 576px) {
    .app-header {
        padding: 0 16px;
    }
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .media-title {
        font-size: 0.85rem;
    }
    .media-subtitle {
        font-size: 0.75rem;
    }
    .category-pill {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    .section-header {
        margin-top: 24px;
        margin-bottom: 14px;
    }
    .section-title {
        font-size: 1.15rem;
    }
}
