/* ============================================================
   Karaoke.io — Platform Design System
   ============================================================ */

/* Fonts loaded via <link> in HTML head for non-blocking rendering */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(22, 22, 35, 0.8);
    --bg-glass: rgba(18, 18, 26, 0.65);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #666680;

    --accent-primary: #8b5cf6;
    --accent-secondary: #6366f1;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-green: #10b981;

    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 30%, #0f172a 60%, #0a0a0f 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.04));

    --border-subtle: rgba(139, 92, 246, 0.12);
    --border-hover: rgba(139, 92, 246, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);

    --nav-height: 64px;
    --max-width: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--accent-pink);
}

/* --- Navigation --- */
.platform-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    overflow: visible;
    transition: background 0.3s ease;
}

.platform-nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-logo .dot {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 240px;
    background: rgba(18, 18, 30, 0.95);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.1);
    z-index: 1001;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text-primary);
}

.nav-dropdown-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.nav-dropdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.nav-dropdown-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 24px) clamp(16px, 4vw, 40px) 32px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    bottom: -10%;
    left: -5%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 40%;
    left: 50%;
    opacity: 0.15;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 15px) scale(0.95); }
    75% { transform: translate(15px, 25px) scale(1.02); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

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

/* --- Section Common --- */
.platform-section {
    padding: 48px clamp(16px, 4vw, 40px);
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title .emoji {
    margin-right: 8px;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: 8px;
}

/* --- Song Card Grid --- */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Horizontal double-row layout for browse grid */
.browse-grid-horizontal {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 900px) {
    .browse-grid-horizontal {
        grid-template-columns: 1fr !important;
    }
}

.browse-grid-horizontal .song-card {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 16px;
    height: 104px;
    background: #0e0e0e;
}

.browse-grid-horizontal .song-card-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.browse-grid-horizontal .song-card-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.browse-grid-horizontal .song-card-play {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(0.9);
}

.browse-grid-horizontal .song-card:hover .song-card-play {
    transform: translate(50%, 50%) scale(1);
}

/* Horizontal Scrolling Carousel */
.browse-scroller {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
}
.browse-scroller::-webkit-scrollbar { height: 6px; }
.browse-scroller::-webkit-scrollbar-track { background: transparent; }
.browse-scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.browse-scroller::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.browse-scroller .song-card {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 16px;
    height: 104px;
    background: #0e0e0e;
    min-width: 320px;
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.browse-scroller .song-card-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.browse-scroller .song-card-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.browse-scroller .song-card-play {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(0.9);
}
.browse-scroller .song-card:hover .song-card-play {
    transform: translate(50%, 50%) scale(1);
}


.song-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.song-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.song-card:hover .song-card-cover img {
    transform: scale(1.08);
}

.song-card-play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.song-card:hover .song-card-play {
    opacity: 1;
    transform: translateY(0);
}

.song-card-info {
    padding: 16px;
}

.song-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.song-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.song-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 500;
}

/* --- AI Models 3-Column Layout --- */
.models-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 1024px) {
    .models-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.model-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.model-column-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.model-column-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.song-card-wide {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.song-card-wide:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

.song-card-wide-cover {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a2e;
}

.song-card-wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-card-wide-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.song-card-wide:hover .song-card-wide-play {
    opacity: 1;
}

.song-card-wide-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-card-wide-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-card-wide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.song-card-wide-artist {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gradient cover fallbacks */
.cover-gradient-1 {
    background: linear-gradient(135deg, #1a0533, #2d1b69, #4a1a8a);
}

.cover-gradient-2 {
    background: linear-gradient(135deg, #1a0a00, #8b3a00, #ff6b00);
}

.cover-gradient-3 {
    background: linear-gradient(135deg, #1a0022, #6b0040, #ec4899);
}

/* --- Studio Section (Embedded) --- */
.studio-section {
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.studio-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.studio-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.now-playing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s ease;
}

.now-playing-dot.active {
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

.studio-frame-wrap {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: #000;
}

.studio-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Browse Section --- */
.browse-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.browse-search {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.browse-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

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

.browse-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    overflow-x: auto;
}

.browse-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
}

.browse-tab:hover {
    color: var(--text-secondary);
}

.browse-tab.active {
    background: var(--accent-primary);
    color: #fff;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    text-align: center;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.8;
    z-index: 0;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Footer --- */
.platform-footer {
    padding: 40px clamp(16px, 4vw, 40px);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.footer-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px;
        gap: 4px;
        z-index: 1002;
        pointer-events: auto;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .nav-dropdown > .nav-link {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: calc(var(--nav-height) + 20px);
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .song-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .song-card-info {
        padding: 12px;
    }

    .song-card-title {
        font-size: 0.85rem;
    }

    .song-card-meta {
        display: none;
    }

    .browse-bar {
        flex-direction: column;
    }

    .platform-section {
        padding: 48px clamp(12px, 3vw, 24px);
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .song-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton loader for future API content */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-secondary), var(--bg-tertiary));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Music Generation Form --- */
.music-gen-form {
    max-width: 700px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.gen-form-inner {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    backdrop-filter: blur(10px);
}

.gen-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gen-input {
    flex: 2;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #000;
    border: 1px solid rgba(75, 75, 100, 0.4);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease;
}

.gen-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.gen-select {
    padding: 12px 12px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #000;
    border: 1px solid rgba(75, 75, 100, 0.4);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    min-width: 110px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 28px;
}

.gen-select:focus {
    border-color: var(--accent-primary);
}

.gen-btn-create {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gen-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.gen-btn-create:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gen-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-top: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.gen-status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.gen-error {
    padding: 10px 14px;
    margin-top: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 0.85rem;
}

.gen-sub-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.gen-sub-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

.gen-sub-divider {
    color: var(--text-muted);
    opacity: 0.4;
}

/* --- Import Modal --- */
.import-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.import-modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    margin: 16px;
}

.import-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.import-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.import-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.import-modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.import-modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* Responsive gen form */
@media (max-width: 768px) {
    .gen-form-row {
        flex-direction: column;
    }

    .gen-input {
        width: 100%;
        min-width: auto;
    }

    .gen-select {
        width: 100%;
    }

    .gen-btn-create {
        width: 100%;
    }

    .gen-sub-actions {
        flex-wrap: wrap;
    }
}

/* ============================================================
   Studio Section (Embedded Visualizer)
   ============================================================ */
.studio-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 40px;
}

.studio-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.08);
}

.studio-frame-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   Premium Music Player Bar
   ============================================================ */
.player-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(22, 22, 40, 0.95), rgba(12, 12, 20, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.06);
}

/* Track Info */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.player-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    flex-shrink: 0;
}

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

.player-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.player-meta {
    overflow: hidden;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
}

.player-title:hover {
    text-decoration: underline;
    color: var(--accent-primary);
}

.player-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

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

.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.player-btn:hover {
    color: var(--text-primary);
    transform: scale(1.15);
}

.player-btn-play {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff !important;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35);
}

.player-btn-play:hover {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

.player-btn-action {
    font-size: 0.85rem;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
}

.player-btn-action:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Progress */
.player-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.player-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.player-progress-wrap {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.player-progress-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    transition: height 0.15s ease;
}

.player-progress-wrap:hover .player-progress-bg {
    height: 6px;
}

.player-progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.player-progress-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.player-progress-wrap:hover .player-progress-thumb {
    opacity: 1;
}

/* Channel Switching Group */
.player-channel-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.player-channel-name {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-channel-name:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* Full-Width Lyrics Preview Bar */
.lyrics-preview-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.lyrics-preview-bar:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(139, 92, 246, 0.18));
    border-color: rgba(236, 72, 153, 0.3);
}

.lyrics-preview-mode {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lyrics-preview-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Extras (right side) */
.player-extras {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-vol-icon {
    font-size: 0.85rem;
    cursor: pointer;
}

.player-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

/* Player responsive */
@media (max-width: 768px) {
    .player-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }

    .player-track-info {
        min-width: 140px;
        flex: 1;
    }

    .player-controls {
        order: 3;
        width: 100%;
    }

    .player-extras {
        margin-left: auto;
    }

    .player-volume-wrap {
        display: none;
    }
}

/* ===== JUMP BACK IN ===== */
.jump-back-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.jump-back-grid::-webkit-scrollbar { display: none; }

.jump-back-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 220px;
    max-width: 280px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.jump-back-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.jump-back-info { min-width: 0; flex: 1; }
.jump-back-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jump-back-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BEST OF — GENRE CARDS ===== */
.genre-cards-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.genre-cards-scroll::-webkit-scrollbar { display: none; }

.genre-card {
    position: relative;
    min-width: 155px;
    width: 155px;
    height: 155px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gc-from), var(--gc-to));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.genre-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}
.genre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}
.genre-card:hover::after {
    background: rgba(0,0,0,0.12);
}
.genre-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--gc-from);
    color: #fff;
}
.genre-card-label {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}
.genre-card-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.genre-card-active {
    box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-4px) scale(1.02);
}
.genre-card {
    border: none;
    font-family: inherit;
}

/* ===== TRENDING THIS WEEK ===== */
.trending-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.trending-item:hover {
    background: rgba(139, 92, 246, 0.06);
    transform: translateX(4px);
    color: var(--text-primary);
}

.trending-rank {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.trending-item:nth-child(1) .trending-rank { color: #ffd700; }
.trending-item:nth-child(2) .trending-rank { color: #c0c0c0; }
.trending-item:nth-child(3) .trending-rank { color: #cd7f32; }

.trending-cover {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}
.trending-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2a1b41, #120b1f);
}

.trending-info {
    flex: 1;
    min-width: 0;
}
.trending-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.trending-stats span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .genre-card {
        min-width: 130px;
        width: 130px;
        height: 130px;
    }
    .trending-stats { display: none; }
    .trending-rank { width: 22px; font-size: 0.9rem; }
    .trending-cover { width: 44px; height: 44px; }
}
/* ===== FOOTER ===== */
.platform-footer {
    background: #08080c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-inner { padding: 0 20px; }
    .footer-links { gap: 20px; }
}

/* ===== Processing / Import Modal (from Dashboard) ===== */
.proc-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: radial-gradient(ellipse at center, rgba(15,5,40,0.95), rgba(0,0,0,0.98)); align-items: center; justify-content: center; overflow: hidden; }
.proc-overlay.visible { display: flex; }

.proc-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.proc-particle { position: absolute; font-size: 1.2rem; opacity: 0; animation: particle-float linear infinite; filter: drop-shadow(0 0 6px rgba(139,92,246,0.4)); }
@keyframes particle-float { 0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.3; } 100% { transform: translateY(-10vh) rotate(360deg) scale(1.2); opacity: 0; } }

.proc-waveform { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; opacity: 0.15; pointer-events: none; }
.proc-wave-bar { width: 4px; background: linear-gradient(to top, #8b5cf6, #ec4899); border-radius: 4px 4px 0 0; animation: wave-dance 0.8s ease-in-out infinite alternate; }
@keyframes wave-dance { 0% { height: 8px; } 100% { height: var(--wave-h, 60px); } }

.proc-orbit { position: relative; width: 100px; height: 100px; margin: 0 auto 16px; }
.proc-orbit::before, .proc-orbit::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid transparent; border-top-color: #8b5cf6; border-right-color: rgba(236,72,153,0.5); animation: orbit-spin 3s linear infinite; }
.proc-orbit::after { inset: -16px; border-top-color: rgba(236,72,153,0.3); border-right-color: rgba(139,92,246,0.2); animation-duration: 5s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.proc-card { max-width: 480px; width: 90%; background: rgba(10, 8, 25, 0.9); backdrop-filter: blur(24px); border: 1px solid rgba(139, 92, 246, 0.15); border-radius: 24px; padding: 44px 36px 36px; box-shadow: 0 0 80px rgba(139,92,246,0.08), 0 0 200px rgba(236,72,153,0.04), 0 20px 60px rgba(0,0,0,0.6); position: relative; z-index: 1; animation: card-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes card-entrance { 0% { opacity: 0; transform: scale(0.9) translateY(30px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.proc-card::before { content: ''; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 40%, #8b5cf6, #ec4899, #8b5cf6, transparent 60%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-rotate 4s linear infinite; pointer-events: none; }
@keyframes border-rotate { to { --angle: 360deg; } }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.proc-header { text-align: center; margin-bottom: 28px; }
.proc-icon { font-size: 2.8rem; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.proc-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #ec4899 70%, #fff 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: holo-text 4s ease-in-out infinite; }
@keyframes holo-text { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.proc-song-name { font-size: 0.82rem; color: rgba(139,92,246,0.8); font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.proc-steps { display: flex; flex-direction: column; gap: 2px; }
.proc-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; position: relative; overflow: hidden; }
.proc-step.waiting { opacity: 0.25; }
.proc-step.active { background: rgba(139,92,246,0.06); border-color: rgba(139,92,246,0.2); opacity: 1; }
.proc-step.active::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(139,92,246,0.06), transparent); animation: step-shimmer 2s ease-in-out infinite; }
@keyframes step-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.proc-step.done { background: rgba(34,197,94,0.04); opacity: 1; }
.proc-step-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: all 0.4s ease; }
.proc-step.waiting .proc-step-icon { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }
.proc-step.active .proc-step-icon { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.35); box-shadow: 0 0 12px rgba(139,92,246,0.2), 0 0 24px rgba(139,92,246,0.1); animation: icon-neon 1.5s ease-in-out infinite; }
@keyframes icon-neon { 0%, 100% { box-shadow: 0 0 8px rgba(139,92,246,0.2), 0 0 16px rgba(139,92,246,0.05); } 50% { box-shadow: 0 0 16px rgba(139,92,246,0.4), 0 0 32px rgba(139,92,246,0.15); } }
.proc-step.done .proc-step-icon { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35); box-shadow: 0 0 8px rgba(34,197,94,0.15); }
.proc-step-text { flex: 1; }
.proc-step-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); transition: color 0.4s ease; }
.proc-step-detail { font-size: 0.68rem; color: rgba(255,255,255,0.25); margin-top: 1px; }
.proc-step.active .proc-step-detail { color: rgba(139,92,246,0.5); }
.proc-step.waiting .proc-step-label { color: rgba(255,255,255,0.3); }
.proc-step.done .proc-step-label { color: rgba(34,197,94,0.9); }
.proc-step-status { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; flex-shrink: 0; transition: all 0.4s ease; }
.proc-step.waiting .proc-step-status { color: rgba(255,255,255,0.1); }
.proc-step.active .proc-step-status { color: #8b5cf6; }
.proc-step.done .proc-step-status { color: #22c55e; font-size: 1rem; }

.proc-progress { margin-top: 28px; position: relative; height: 28px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.proc-progress-bar { width: 3px; background: rgba(139,92,246,0.15); border-radius: 2px; transition: height 0.3s ease, background 0.3s ease; }
.proc-progress-bar.filled { background: linear-gradient(to top, #8b5cf6, #ec4899); box-shadow: 0 0 4px rgba(139,92,246,0.3); }
.proc-progress-text { text-align: center; margin-top: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.3); font-weight: 500; }
.proc-error { display: none; margin-top: 16px; padding: 14px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); border-radius: 12px; color: #ef4444; font-size: 0.8rem; text-align: center; }
.proc-error.visible { display: block; }

.proc-confetti { position: fixed; pointer-events: none; z-index: 10000; width: 8px; height: 14px; border-radius: 2px; }
@keyframes confetti-burst { 0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; } }
.proc-overlay.done .proc-card { border-color: rgba(34,197,94,0.3); box-shadow: 0 0 80px rgba(34,197,94,0.1), 0 0 200px rgba(34,197,94,0.05); }

/* Dashboard Buttons (Global for Modals) */
.dash-btn { padding: 10px 20px; font-size: 0.85rem; font-weight: 700; font-family: 'Inter', sans-serif; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
.dash-btn-primary { background: var(--gradient-accent); color: #fff; }
.dash-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.dash-btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.dash-btn-secondary:hover { border-color: var(--accent-primary); color: #fff; }
.dash-btn-circle { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.dash-btn-circle:hover { background: rgba(255,255,255,0.1); color: #fff; }
