/* ==========================================================================
   SoundScope - Vercel-Inspired Monochrome Design System
   Pure Grayscale - Deep Black Canvas - Linear & Radial Gradients - Spotlight
   ========================================================================== */

:root {
    /* Ableton Live & Logic Pro Inspired Deep Dark Slate Palette */
    --black-base: #121214;
    --black-surface: #151518;
    --black-sidebar: #18181b;
    --black-card: #1c1c1f;
    --black-elevated: #232328;
    --black-hover: #28282f;
    --black-active: #31313a;

    /* Single Vibrant Pro Accent: Warm Sunset Orange with Gradient */
    --accent-orange: #ff7a29;
    --accent-orange-hover: #ff9147;
    --accent-orange-dim: rgba(255, 122, 41, 0.14);
    --accent-orange-glow: rgba(255, 122, 41, 0.28);
    --accent-orange-border: rgba(255, 122, 41, 0.45);

    /* Compatibility aliases */
    --accent-cyan: #ff7a29;
    --accent-cyan-hover: #ff9147;
    --accent-cyan-dim: rgba(255, 122, 41, 0.14);
    --accent-cyan-glow: rgba(255, 122, 41, 0.28);
    --accent-cyan-border: rgba(255, 122, 41, 0.45);

    /* Semi-transparent Glassmorphic Hairline Borders */
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);
    --border-highlight: rgba(255, 122, 41, 0.45);

    /* Professional Audio Typography Hierarchy (90% Values / 40% Labels) */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.48);
    --text-faint: rgba(255, 255, 255, 0.40);
    --text-pure-white: #ffffff;
    --text-on-light: #050505;

    /* Linear & Radial Gradients */
    --gradient-orange: linear-gradient(135deg, #ff8533 0%, #ff4b1f 100%);
    --gradient-orange-hover: linear-gradient(135deg, #ff944d 0%, #ff5e36 100%);
    --gradient-radial-ambient: radial-gradient(1200px circle at 50% -20%, rgba(255, 122, 41, 0.045), transparent 70%);
    --gradient-card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%), #1c1c1f;
    --gradient-btn-primary: linear-gradient(180deg, #ff8533 0%, #e64a00 100%);
    --gradient-btn-secondary: linear-gradient(180deg, #242429 0%, #1a1a1e 100%);
    --gradient-btn-hover: linear-gradient(180deg, #2d2d34 0%, #202025 100%);
    --gradient-meter: linear-gradient(90deg, #22c55e 0%, #ff9800 65%, #ff0055 100%);
    --gradient-hairline-top: linear-gradient(90deg, transparent 0%, rgba(255, 122, 41, 0.4) 50%, transparent 100%);

    /* Typography: Plus Jakarta Sans for clean UI, Syne for titles, JetBrains Mono exclusively for technical data */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;

    /* Dynamic Resizable Layout Dimensions */
    --sidebar-w: 330px;
    --vinyl-dock-h: 275px;
    --transport-h: 78px;
    --vinyl-size: 195px;

    /* Density & Row Heights (Customizable via Settings) */
    --folder-item-height: 28px;
    --folder-track-height: 26px;
    --folder-font-size: 12.5px;
    --spotify-row-height: 48px;

    /* Dynamic cursor spotlight coordinates */
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

body.density-compact {
    --folder-item-height: 23px;
    --folder-track-height: 22px;
    --folder-font-size: 11.5px;
    --spotify-row-height: 38px;
}

body.density-comfortable {
    --folder-item-height: 34px;
    --folder-track-height: 30px;
    --folder-font-size: 13.5px;
    --spotify-row-height: 56px;
}

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

/* Pro-Audio Iconography Standard (Phosphor / Lucide 1.5px uniform weight) */
svg:not([data-keep-stroke]) {
    stroke-width: 1.5;
}
svg:not([data-keep-stroke]) path,
svg:not([data-keep-stroke]) circle,
svg:not([data-keep-stroke]) line,
svg:not([data-keep-stroke]) polyline,
svg:not([data-keep-stroke]) polygon,
svg:not([data-keep-stroke]) rect {
    stroke-width: 1.5;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--black-base);
}

body {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--black-base);
    background-image: var(--gradient-radial-ambient);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

body.is-resizing {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* ==========================================================================
   Display & Heading Typography (Characterful Grotesque for Titles)
   ========================================================================== */
h1, h2, h3, h4,
.spotify-hero-title,
.folder-hero-title-input,
.track-title,
.welcome-inner h2,
.analysis-modal-title,
.settings-modal-title,
.auth-title,
.empty-title,
.logo-text,
.vinyl-track-title,
.vinyl-dock-title-wrap h3,
.modal-header h3,
.panel-title {
    font-family: var(--font-title);
    letter-spacing: -0.015em;
}

/* Global Spotlight Illumination overlay */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(220px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.022) 35%, rgba(255, 255, 255, 0.007) 65%, transparent 100%);
    transition: background 0.04s ease-out;
}

/* Card-level spotlight interactive illumination */
.spotlight-card {
    position: relative;
    background: var(--gradient-card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(160px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.006) 70%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.spotlight-card:hover {
    border-color: var(--border-subtle);
}

.mono {
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' on, 'zero' on;
}

/* Technical Audio Data Hierarchy: 90% opacity values / 40% opacity labels */
.tech-label, .meta-label, .pro-eq-label {
    color: var(--text-faint);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.tech-value, .meta-value, .pro-eq-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.v-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease, color 0.15s ease;
    outline: none;
    white-space: nowrap;
    text-decoration: none;
}

.v-btn-primary {
    background: var(--gradient-btn-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 122, 41, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.v-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.v-btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.96);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.v-btn-secondary {
    background: var(--gradient-btn-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.v-btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-pure-white);
    filter: brightness(1.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.v-btn-secondary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.v-btn-danger {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.85);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.v-btn-danger:hover {
    filter: brightness(1.12);
    box-shadow: 0 2px 14px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.v-btn-danger:active {
    transform: translateY(0);
    filter: brightness(0.94);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.v-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--black-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease, color 0.15s ease;
}

.v-btn-icon:hover {
    border-color: var(--border-hover);
    color: var(--text-pure-white);
    filter: brightness(1.35);
    transform: scale(1.05);
}

.v-btn-icon:active {
    transform: scale(0.96);
}

/* Badges */
.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.v-badge-highlight {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan-border);
    color: var(--accent-cyan);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ==========================================================================
   App Shell Layout
   ========================================================================== */
.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   Sidebar (File Explorer + Folders Directory + Vinyl Dock)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-w);
    min-width: 250px;
    max-width: 650px;
    height: 100vh;
    background: var(--black-sidebar);
    border-right: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
}

.sidebar-header {
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 var(--sp-4);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #2a2a2a 0%, #111111 100%);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-text-group {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-pure-white);
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    border-radius: 4px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.sidebar-actions {
    padding: var(--sp-3) var(--sp-4);
}

.sidebar-actions .v-btn-primary {
    width: 100%;
}

/* Search Input */
.sidebar-search {
    padding: 0 var(--sp-4) var(--sp-3);
}

.search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    height: 32px;
    padding: 0 12px 0 32px;
    background: var(--black-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    outline: none;
    transition: all 0.15s ease;
}

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

.search-input:focus {
    border-color: var(--border-hover);
    background: var(--black-surface);
    box-shadow: 0 0 0 1px var(--border-subtle);
}

/* ==========================================================================
   Folders Directory Section (Interactive Crates & Drop Target)
   ========================================================================== */
.sidebar-folders-section {
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.015);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.folders-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 3px 6px;
    margin: -3px -6px;
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}

.folders-title-wrap:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.section-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.sidebar-folders-section.collapsed .section-chevron,
.sidebar-tags-section.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.sidebar-folders-section.collapsed .folders-tree,
.sidebar-tags-section.collapsed .tags-list {
    display: none !important;
}

.sidebar-folders-section.collapsed .folders-header,
.sidebar-tags-section.collapsed .tags-header {
    margin-bottom: 0 !important;
}

.folders-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.add-folder-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
}

.add-folder-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hairline);
    color: #ffffff;
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.folders-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 3px 4px;
}

/* Nested Tracks inside Folders & Playlists */
.folder-node {
    display: flex;
    flex-direction: column;
    margin-bottom: 2px;
}

.folder-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 4px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.folder-track-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 7px;
    height: var(--folder-track-height, 26px);
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    font-size: calc(var(--folder-font-size, 12.5px) - 0.5px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
    overflow: hidden;
}

.folder-track-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-pure-white);
}

.folder-track-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-pure-white);
    font-weight: 500;
}

.folder-track-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-track-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.folder-track-item:hover .folder-track-actions {
    opacity: 1;
}

.folder-track-analysis-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: var(--text-muted);
    padding: 2px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}

.folder-track-analysis-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.folder-track-duration {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    height: var(--folder-item-height, 28px);
    font-size: var(--folder-font-size, 12.5px);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: background-color 0.12s ease, border-color 0.12s ease;
    user-select: none;
    overflow: hidden;
}

.folder-item:hover {
    background: var(--black-hover);
    border-color: var(--border-hairline);
    transform: none !important;
}

.folder-item[draggable="true"] {
    cursor: grab;
}

.folder-item[draggable="true"]:active {
    cursor: grabbing;
}

.folder-item button {
    cursor: pointer !important;
}

.folder-item.dragging {
    opacity: 0.35 !important;
    border: 1px dashed rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.folder-item:hover {
    background: var(--black-hover);
    border-color: var(--border-hairline);
}

.folder-item.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-cyan-border);
}

.folder-item.active .folder-name {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Drag-over indicator with responsive scaling and cyan accent */
.folder-item.drag-over {
    background: var(--accent-cyan-dim) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: inset 0 0 0 1px var(--accent-cyan), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.02) !important;
}

.folder-item-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.folder-chevron-btn {
    width: 14px;
    height: 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.14s ease, color 0.12s ease;
    flex-shrink: 0;
    border-radius: 2px;
}

.folder-chevron-btn:hover {
    color: var(--text-pure-white);
}

.folder-chevron-btn.expanded {
    transform: rotate(90deg);
}

.folder-chevron-placeholder {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.folder-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.folder-name {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.folder-item-right {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.folder-menu-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: opacity 0.12s ease, color 0.12s ease, background-color 0.12s ease;
    flex-shrink: 0;
}

.folder-item:hover .folder-menu-btn,
.folder-item.active .folder-menu-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.folder-menu-btn:hover {
    color: var(--text-pure-white);
    background: rgba(255, 255, 255, 0.12);
}

.folder-cover-thumb {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.track-cover-thumb {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 4px;
}

.folder-rename-input {
    background: #000000;
    color: #ffffff;
    border: 1px solid var(--border-highlight);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    height: calc(var(--folder-item-height, 28px) - 8px);
}

.folders-empty-hint {
    padding: 18px 12px;
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.5;
    text-align: center;
    user-select: none;
}

.active-folder-indicator {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.active-folder-indicator:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

@media (hover: none) {
    .folder-menu-btn {
        display: flex !important;
    }
}

/* ==========================================================================
   Tags / Etiquetas Section (Fast Chip Badges)
   ========================================================================== */
.sidebar-tags-section {
    padding: var(--sp-2) var(--sp-4);
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.01);
}

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

.tags-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 3px 6px;
    margin: -3px -6px;
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}

.tags-title-wrap:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.tags-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.add-tag-btn {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.add-tag-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 64px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 12px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    font-size: 10px;
    font-family: var(--font-mono);
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease;
}

.tag-chip:hover {
    background: var(--black-hover);
    border-color: var(--border-subtle);
    color: var(--text-pure-white);
}

.tag-chip.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tag-chip.drag-over {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05);
}

.tag-chip-count {
    font-size: 9px;
    opacity: 0.7;
}

.track-tag-pill {
    display: inline-block;
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 4px;
    border-radius: 3px;
    margin-left: 2px;
}

.tags-empty-label {
    font-size: 11px;
    color: var(--text-faint);
    padding: 4px 6px;
    display: inline-block;
    user-select: none;
}

/* Loose Tracks Section Hidden from Sidebar (tracks now live inside folders/playlists) */
.file-list-header {
    display: none !important;
}

.file-list {
    display: none !important;
}

.file-list::-webkit-scrollbar {
    width: 4px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--black-elevated);
    border-radius: 2px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 7px var(--sp-3);
    margin: 2px 0;
    border-radius: var(--radius-sm);
    cursor: grab;
    border: 1px solid transparent;
    transition: all 0.12s ease;
    min-height: 42px;
}

.file-item:active {
    cursor: grabbing;
}

.file-item:hover {
    background: var(--black-hover);
    border-color: var(--border-hairline);
}

.file-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%), #121212;
    border-color: var(--border-subtle);
}

.file-item.active .file-item-name {
    color: var(--text-pure-white);
    font-weight: 500;
}

.file-item-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-item-name {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.file-item-meta {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-duration {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-faint);
    flex-shrink: 0;
}

/* Empty State in File / Folder List */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 16px;
    margin: 12px 6px;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.015);
    list-style: none;
    box-sizing: border-box;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.empty-state:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.025);
}

.empty-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black-card);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.empty-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.empty-sub {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.45;
    max-width: 200px;
}

/* ==========================================================================
   Draggable Splitters / Resizers
   ========================================================================== */
/* Vertical divider between Sidebar & Main */
.resizer-col {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.resizer-col:hover,
.resizer-col.is-dragging {
    background: rgba(255, 255, 255, 0.08);
}

.resizer-col-line {
    width: 1px;
    height: 100%;
    background: transparent;
    transition: background 0.15s ease;
}

.resizer-col:hover .resizer-col-line,
.resizer-col.is-dragging .resizer-col-line {
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Horizontal divider between Track List & Vinyl Dock */
.resizer-row {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: -4px;
    margin-bottom: -4px;
    cursor: row-resize;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.resizer-row:hover,
.resizer-row.is-dragging {
    background: rgba(255, 255, 255, 0.08);
}

.resizer-row-line {
    width: 100%;
    height: 1px;
    background: var(--border-hairline);
    transition: background 0.15s ease;
}

.resizer-row:hover .resizer-row-line,
.resizer-row.is-dragging .resizer-row-line {
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Horizontal resizer for Bottom Transport Bar */
.resizer-transport {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    z-index: 120;
}

/* ==========================================================================
   Bottom-Left Scalable Vinyl Player Section (Static Play Button)
   ========================================================================== */
.sidebar-vinyl-dock {
    height: var(--vinyl-dock-h);
    min-height: 170px;
    max-height: 480px;
    width: 100%;
    background: linear-gradient(180deg, #101010 0%, #060606 100%);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 14px 12px;
    flex-shrink: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 60;
    overflow: hidden;
}

.vinyl-dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.vinyl-dock-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.vinyl-dock-badge {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.vinyl-file-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-pure-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.vinyl-dock-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.vinyl-tag {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
}

/* Vinyl Player Row */
.vinyl-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex: 1;
    margin-top: 2px;
}

.vinyl-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--black-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.vinyl-nav-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: #181818;
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.vinyl-nav-btn:active {
    transform: scale(0.94);
}

/* Interactive Scalable Vinyl Disc */
.turntable-vinyl-btn {
    width: var(--vinyl-size, 195px);
    height: var(--vinyl-size, 195px);
    border-radius: 50%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
}

.turntable-vinyl-btn:hover {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.turntable-vinyl-btn:active {
    transform: scale(0.97);
}

/* Rotating Vinyl Body */
.turntable-vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at center, #252525 0%, #111111 20%, #171717 28%, #090909 44%, #191919 62%, #0c0c0c 80%, #010101 100%);
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 12px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.04s linear;
}

.vinyl-groove-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.vinyl-groove-ring.ring-outer {
    inset: 4%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vinyl-groove-ring.ring-mid-outer {
    inset: 11%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vinyl-groove-ring.ring-mid {
    inset: 20%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vinyl-groove-ring.ring-inner {
    inset: 28%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.vinyl-sheen-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 45deg, 
        rgba(255, 255, 255, 0.18) 0deg, 
        transparent 35deg, 
        transparent 55deg, 
        rgba(255, 255, 255, 0.18) 90deg, 
        transparent 125deg, 
        transparent 145deg, 
        rgba(255, 255, 255, 0.18) 180deg, 
        transparent 215deg, 
        transparent 235deg, 
        rgba(255, 255, 255, 0.18) 270deg, 
        transparent 305deg, 
        transparent 325deg, 
        rgba(255, 255, 255, 0.18) 360deg
    );
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Picture-Disc Full Cover: Fused over the entire vinyl disc with groove sheen */
.vinyl-full-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    display: none;
    opacity: 0.88;
    filter: contrast(1.08) brightness(0.92);
    transition: opacity 0.3s ease;
}

.vinyl-grooves-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.95), inset 0 0 45px rgba(0, 0, 0, 0.7);
}

.vinyl-center-spindle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000000;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
    z-index: 3;
    pointer-events: none;
}

/* Vinyl Dock Inline Rename Input */
.vinyl-dock-rename-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.header-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   STATIC Play/Pause Button in Center of Vinyl (Enlarged & Glassmorphism)
   ========================================================================== */
.static-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--vinyl-size, 195px) * 0.32);
    height: calc(var(--vinyl-size, 195px) * 0.32);
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.82);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
}

.static-play-indicator svg {
    margin-left: 2px; /* Optical center for triangle play icon */
    transition: transform 0.15s ease;
}

.static-play-indicator.is-playing svg {
    margin-left: 0; /* Perfectly centered for pause bars */
}

.turntable-vinyl-btn:hover .static-play-indicator {
    opacity: 1;
    background: rgba(14, 14, 14, 0.92);
    transform: translate(-50%, -50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.static-play-indicator.is-playing {
    opacity: 0.96;
}

/* ==========================================================================
   Main Content Area & Top Navigation Bar
   ========================================================================== */
.main {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--black-base);
    background-image: var(--gradient-radial-ambient);
    position: relative;
    min-width: 0;
}

.main-top-bar {
    height: 52px;
    min-height: 52px;
    padding: 0 var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 40;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.top-bar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.cloud-sync-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-secondary);
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.cloud-sync-status:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.cloud-sync-status.active {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.cloud-sync-status.syncing {
    color: #ff7a29;
    border-color: rgba(255, 122, 41, 0.4);
    background: rgba(255, 122, 41, 0.1);
}

/* Auth Navigation Buttons in Top Bar */
.top-bar-auth {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.auth-logged-out-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-nav-btn {
    padding: 6px 13px;
    font-size: 12px;
}

.auth-logged-in-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-session-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.user-session-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.user-avatar-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    color: #000000;
    font-weight: 700;
    font-size: 10.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-name-text {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.user-cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 6px;
}

.nav-logout-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.nav-logout-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scrollable Main Workspace */
.main-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--transport-h) + 24px);
    scrollbar-width: thin;
    scrollbar-color: var(--black-elevated) transparent;
}

.main-content-scroll::-webkit-scrollbar {
    width: 5px;
}

.main-content-scroll::-webkit-scrollbar-thumb {
    background: var(--black-elevated);
    border-radius: 2px;
}

/* Welcome Screen */
.welcome-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: var(--sp-6);
}

.welcome-state.hidden {
    display: none;
}

.welcome-inner {
    max-width: 500px;
    padding: var(--sp-10) var(--sp-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.005) 100%), #080808;
}

.welcome-radial-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 200px;
    background: radial-gradient(ellipse 160px 100px at 50% 65px, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 75%);
    pointer-events: none;
}

.welcome-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #222222 0%, #111111 100%);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--sp-4);
}

.welcome-inner h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-pure-white);
    margin-bottom: var(--sp-2);
}

.welcome-inner p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--sp-6);
    max-width: 380px;
}

.welcome-buttons {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.welcome-features {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: center;
}

.feat-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
}

/* Detail Pane */
.detail-pane {
    display: none;
    padding: var(--sp-6);
    flex-direction: column;
    gap: var(--sp-4);
    max-width: 1200px;
    margin: 0 auto;
}

.detail-pane.visible {
    display: flex;
}

/* Spotify-Style Track / Album Hero Banner */
.spotify-hero {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.spotify-hero-cover-wrap {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    user-select: none;
}

.spotify-hero-cover {
    width: 170px;
    height: 170px;
    border-radius: var(--radius-md);
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotify-hero-cover-wrap:hover .spotify-hero-cover {
    transform: scale(1.02);
}

.spotify-hero-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    border-radius: var(--radius-md);
}

.spotify-hero-cover-wrap:hover .spotify-hero-cover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.spotify-hero-cover img,
.folder-hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-hero-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.spotify-hero-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotify-tag-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.folder-hero-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.spotify-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-pure-white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 2px 0 6px 0;
    word-break: break-word;
    cursor: default;
}

.spotify-hero-title:hover {
    color: #ffffff;
}

.folder-hero-title-edit-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.folder-hero-title-edit-btn:hover {
    color: var(--text-pure-white);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-medium);
}

.folder-hero-title-input {
    background: #000000;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 2px 10px;
    width: 100%;
    max-width: 440px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.spotify-hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.spotify-hero-artist {
    font-weight: 600;
    color: var(--text-pure-white);
}

.spotify-dot {
    color: var(--text-muted);
    opacity: 0.6;
}

.spotify-hero-duration,
.spotify-hero-quality {
    color: var(--text-muted);
    font-size: 12px;
}

.spotify-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/* Spotify Action Bar */
.spotify-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0 10px 0;
    flex-wrap: wrap;
}

.spotify-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.spotify-play-btn:hover {
    transform: scale(1.06);
    background: var(--gradient-orange-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.spotify-play-btn:active {
    transform: scale(0.95);
}

.spotify-play-icon {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.spotify-action-pill {
    height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Spotify-style Tracklist Section */
.spotify-tracklist-section {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: #0d0d0d;
    border: 1px solid var(--border-hairline);
    margin-top: 4px;
}

.spotify-table-header {
    display: grid;
    grid-template-columns: 34px 1fr 140px 75px 160px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.spotify-table-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.spotify-row {
    display: grid;
    grid-template-columns: 34px 1fr 140px 75px 160px;
    align-items: center;
    min-height: var(--spotify-row-height, 48px);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.spotify-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.spotify-row.active {
    background: rgba(0, 240, 255, 0.08);
    border-left: 2px solid var(--accent-cyan);
}

.spotify-row.active .spotify-col-num {
    color: var(--accent-cyan);
    font-weight: 700;
}

.spotify-col-num {
    font-size: 12px;
    color: var(--text-muted);
}

.spotify-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 12px;
}

.spotify-title-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.spotify-row-art {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotify-row-art-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.spotify-row-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-pure-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-row-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-col-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.spotify-col-duration {
    font-size: 12px;
    color: var(--text-muted);
}

.spotify-col-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.spotify-quick-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s ease;
}

.spotify-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Track Item Analyze Button */
.file-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 8px;
}

.file-item-analysis-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 7px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.file-item-analysis-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Legacy Track Header Card (kept for compatibility) */
.track-header-card {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-5);
}

.track-cover-frame {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--black-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.track-header-content {
    flex: 1;
    min-width: 0;
}

.track-title-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.track-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-pure-white);
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-badges {
    display: flex;
    gap: var(--sp-2);
}

.track-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.track-album {
    font-size: 12px;
    color: var(--text-muted);
}

/* Analysis Meter Banner */
.analysis-meter-card {
    padding: var(--sp-3) var(--sp-4);
    background: linear-gradient(180deg, #101010 0%, #080808 100%);
    border: 1px solid var(--border-hairline);
}

.meter-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meter-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.meter-label {
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.meter-status {
    color: var(--text-muted);
}

.meter-track {
    width: 100%;
    height: 3px;
    background: var(--black-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-meter);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Waveform Inspector Panel */
.waveform-panel {
    padding: var(--sp-4) var(--sp-5);
}

.waveform-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border-hairline);
}

.waveform-legend {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.legend-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.legend-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.waveform-timers {
    font-size: 12px;
    color: var(--text-secondary);
}

.time-divider {
    color: var(--text-faint);
    margin: 0 4px;
}

.waveform-body {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

#waveform {
    width: 100%;
    height: 96px;
    cursor: pointer;
}

/* Section Headings */
.section-heading {
    margin-top: var(--sp-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Metadata Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
}

.meta-card {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 86px;
}

.full-width-card {
    grid-column: 1 / -1;
    min-height: auto;
}

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

.meta-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.meta-value-row {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    margin: 4px 0 2px;
}

.meta-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.meta-value.highlight {
    color: var(--text-pure-white);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.meta-sub-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: 4px;
    color: var(--text-secondary);
}

.meta-footnote {
    font-size: 10.5px;
    color: var(--text-faint);
}

.file-name-val {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    word-break: break-all;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

/* ==========================================================================
   Bottom Transport Dock for Main Workstation
   ========================================================================== */
.transport {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--transport-h);
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, rgba(4, 4, 4, 0.99) 100%);
    border-top: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-6);
    gap: var(--sp-5);
    z-index: 100;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.transport-mode-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.transport-btn {
    width: 34px;
    height: 34px;
    transition: transform 0.15s ease, filter 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.transport-btn:hover {
    transform: scale(1.08);
}

.transport-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

/* Soundwave Progress Scrubber */
.transport-wave-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
}

.transport-time {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 32px;
}

.soundwave-progress-bar {
    flex: 1;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.soundwave-progress-bar:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.transport-wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.soundwave-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0%;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s linear;
}

/* Right Section: Volume & Tools */
.transport-volume-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
    flex-shrink: 0;
}

.mute-btn {
    width: 34px;
    height: 34px;
}

.volume-slider-wrap {
    width: 120px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #1c1c1c;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    outline: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.volume-slider:hover {
    background: #252525;
    border-color: var(--border-hover);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.12s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.transport-util-btn {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.15s ease;
}

.transport-util-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
}

/* ==========================================================================
   Drag & Drop Overlay
   ========================================================================== */
.drag-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.drag-overlay.visible {
    display: flex;
    pointer-events: auto;
}

.drag-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-10) var(--sp-10);
    border: 1.5px dashed var(--accent-cyan);
    border-radius: var(--radius-lg);
    background: rgba(24, 24, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    color: var(--text-pure-white);
    font-size: 16px;
    font-weight: 500;
    transform: scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.drag-overlay.visible .drag-overlay-inner {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.drag-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   Dedicated Acoustic & Spectral Analysis Modal
   ========================================================================== */
.analysis-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.analysis-modal-backdrop.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.analysis-modal {
    width: 780px;
    max-width: calc(100vw - 32px);
    max-height: 88vh;
    background: rgba(22, 22, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.97);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.analysis-modal-backdrop.open .analysis-modal {
    transform: scale(1);
}

.analysis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #111111;
    flex-shrink: 0;
}

.analysis-modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.analysis-modal-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.analysis-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-pure-white);
    letter-spacing: -0.02em;
    margin: 0;
}

.analysis-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
}

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

.analysis-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analysis-modal-scroll .waveform-panel {
    background: #090909;
    border: 1px solid var(--border-hairline);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
}

.analysis-modal-scroll #waveform {
    width: 100%;
    min-height: 110px;
}

.analysis-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #111111;
    flex-shrink: 0;
}

/* ==========================================================================
   Authentication & Cloud Sync Modal
   ========================================================================== */
.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.auth-modal {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: rgba(22, 22, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.96);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.open .auth-modal {
    transform: scale(1);
}

.auth-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.auth-logo-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.auth-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-pure-white);
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-close-btn {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

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

/* Tabs inside Auth Modal */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--black-elevated);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
}

.auth-tab-btn {
    flex: 1;
    padding: 7px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-tab-btn:hover {
    color: var(--text-primary);
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Google Sign-In Button */
.google-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.google-auth-btn:hover {
    background: #f2f2f2;
    transform: scale(1.01);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    text-align: center;
    color: var(--text-faint);
    font-size: 11px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-hairline);
}

.auth-divider span {
    padding: 0 10px;
}

.email-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--black-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: all 0.15s ease;
}

.form-input:focus {
    border-color: var(--border-hover);
    background: #141414;
    box-shadow: 0 0 0 1px var(--border-subtle);
}

.auth-submit-btn {
    width: 100%;
    height: 38px;
    margin-top: 4px;
}

.modal-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.modal-actions-row .v-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Logged-in profile view in modal */
.auth-logged-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--sp-2) 0;
}

.auth-user-info-row {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.auth-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    color: #000000;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-pure-white);
}

.auth-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #22c55e;
    margin-top: 4px;
}

.auth-cloud-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border-hairline);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Firebase Alert & Feedback Box */
.auth-alert-box {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 14px;
    animation: authFadeIn 0.2s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-alert-box.error {
    display: flex;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.auth-alert-box.success {
    display: flex;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.auth-alert-box.info {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

/* Firebase Status Banner */
.firebase-setup-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-hairline);
    margin-bottom: 14px;
    font-size: 11px;
}

.firebase-banner-left {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
}

.firebase-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #eab308; /* yellow pending by default */
}

.firebase-status-dot.connected {
    background: #22c55e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.firebase-banner-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
}

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

.auth-text-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.auth-text-link:hover {
    color: var(--text-pure-white);
}

.auth-submit-btn:disabled,
.google-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Custom Track Context Menu & Inline Rename Input
   ========================================================================== */
.custom-context-menu {
    position: fixed;
    z-index: 4000;
    min-width: 190px;
    background: rgba(24, 24, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: ctxPopIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

@keyframes ctxPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(-2px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.context-menu-header {
    padding: 5px 8px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

.context-menu-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.12s ease;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-pure-white);
}

.context-menu-item:hover svg {
    color: var(--text-pure-white);
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.context-menu-item.danger:hover svg {
    color: #f87171;
}

.context-menu-divider {
    height: 1px;
    background: var(--border-hairline);
    margin: 3px 0;
}

/* Inline Rename Input in Track Item */
.file-item-rename-input {
    width: 100%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive Mobile Architecture (100% Mobile Optimized)
   ========================================================================== */

/* Hide mobile toggle on desktop screens */
.mobile-logo-brand,
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --transport-h: 76px;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }

    .app {
        flex-direction: column !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100vw !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Disable desktop drag resizers on mobile touch devices */
    .resizer-col,
    .resizer-row,
    .resizer-transport,
    #sidebarResizer,
    #vinylDockResizer {
        display: none !important;
        pointer-events: none !important;
    }

    /* Top Bar Mobile Layout - ALWAYS VISIBLE AT THE TOP */
    .main-top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 52px !important;
        width: 100vw !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 100 !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid var(--border-hairline) !important;
    }

    .top-bar-left {
        gap: 8px !important;
        display: flex !important;
        align-items: center !important;
    }

    .top-bar-title {
        display: none !important;
    }

    .mobile-logo-brand {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-logo-brand .logo-icon {
        width: 28px;
        height: 28px;
        background: #111111;
        border: 1px solid var(--border-hairline);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-pill);
        padding: 2px;
        gap: 2px;
    }

    .mobile-nav-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 13px !important;
        font-size: 12px !important;
        font-weight: 500;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        border-radius: var(--radius-pill);
        cursor: pointer;
        transition: all 0.15s ease;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        min-height: 32px !important;
    }

    #openSettingsBtn.settings-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: var(--radius-sm) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #openSettingsBtn.settings-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .mobile-nav-pill.active {
        color: #000000 !important;
        background: #ffffff !important;
        font-weight: 600;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .top-bar-auth {
        gap: 6px !important;
        flex-shrink: 0;
    }

    #registerNavBtn {
        display: none !important; /* Hide Sign Up on mobile so everything fits comfortably */
    }

    #loginNavBtn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        height: 28px !important;
        border-radius: var(--radius-pill) !important;
    }

    .user-session-pill {
        padding: 3px 8px !important;
        height: 30px !important;
    }

    .user-session-pill .user-cloud-badge {
        display: none !important;
    }

    /* Main Container on Mobile - NEVER hidden */
    .main {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        position: relative !important;
    }

    /* By default on mobile, Sidebar (Library) is shown */
    .sidebar {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        position: fixed !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: var(--transport-h) !important;
        height: calc(100dvh - 52px - var(--transport-h)) !important;
        border-right: none !important;
        z-index: 50 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: var(--black-sidebar) !important;
    }

    .main-content-scroll {
        display: none !important;
    }

    /* When switched to Inspector (Waveform & Spectral analysis) */
    body.mobile-view-inspector .sidebar {
        display: none !important;
    }

    body.mobile-view-inspector .main-content-scroll {
        display: block !important;
        width: 100% !important;
        position: fixed !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: var(--transport-h) !important;
        height: calc(100dvh - 52px - var(--transport-h)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 12px !important;
        padding-bottom: 24px !important;
        z-index: 50 !important;
    }

    /* Sidebar Components on Mobile */
    .sidebar-header {
        display: none !important; /* Top bar already has logo */
    }

    .sidebar-actions {
        padding: 8px 12px !important;
        flex-shrink: 0 !important;
    }

    .sidebar-actions .v-btn {
        width: 100% !important;
        height: 36px !important;
        justify-content: center !important;
        font-size: 13px !important;
    }

    .sidebar-search {
        padding: 0 12px 8px 12px !important;
        flex-shrink: 0 !important;
    }

    .search-input {
        font-size: 14px !important;
        height: 36px !important;
    }

    .sidebar-folders-section,
    .sidebar-tags-section {
        padding: 6px 12px !important;
        flex-shrink: 0 !important;
    }

    .file-list-header {
        padding: 6px 12px !important;
        flex-shrink: 0 !important;
    }

    /* Generous touch scrolling for tracks on mobile */
    .file-list {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding: 0 6px 16px 6px !important;
        min-height: 160px !important;
    }

    .folder-item {
        min-height: 44px !important;
        padding: 8px 10px !important;
        font-size: 13.5px !important;
    }

    .folder-menu-btn {
        width: 38px !important;
        height: 38px !important;
        opacity: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: var(--radius-sm) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        margin-left: 2px !important;
    }

    .folder-menu-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .folder-expand-icon {
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .file-item {
        min-height: 48px !important;
        padding: 8px 12px !important;
    }

    .file-item-name {
        font-size: 13px !important;
    }

    /* Vinyl Dock inside Sidebar on Mobile */
    .sidebar-vinyl-dock {
        height: auto !important;
        min-height: auto !important;
        padding: 16px 12px !important;
        border-top: 1px solid var(--border-hairline) !important;
        background: #000000 !important;
    }

    .turntable-vinyl-btn {
        width: 130px !important;
        height: 130px !important;
    }

    /* Spotify Layout on Mobile */
    .spotify-hero {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 18px 14px !important;
        gap: 14px !important;
    }

    .spotify-hero-cover {
        width: 140px !important;
        height: 140px !important;
    }

    .spotify-hero-details {
        align-items: center !important;
    }

    .spotify-hero-title {
        font-size: 22px !important;
        margin: 2px 0 4px 0 !important;
    }

    .spotify-hero-meta-row {
        justify-content: center !important;
        font-size: 12px !important;
        gap: 6px !important;
    }

    .spotify-hero-tags {
        justify-content: center !important;
    }

    .spotify-action-bar {
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .folder-hero-play-pill {
        height: 46px !important;
        padding: 0 22px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .folder-hero-play-pill svg {
        width: 16px !important;
        height: 16px !important;
    }

    .folder-hero-action-pill,
    .spotify-action-pill {
        height: 40px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }

    .spotify-table-header {
        grid-template-columns: 28px 1fr 50px 88px !important;
        font-size: 10px !important;
        padding: 8px 10px !important;
    }

    .spotify-th-meta {
        display: none !important;
    }

    .spotify-row {
        grid-template-columns: 28px 1fr 50px 88px !important;
        padding: 8px 10px !important;
        min-height: 56px !important;
    }

    .spotify-col-meta {
        display: none !important;
    }

    .spotify-row-art,
    .spotify-row-art-placeholder {
        width: 36px !important;
        height: 36px !important;
    }

    .spotify-row-title {
        font-size: 13.5px !important;
    }

    .spotify-col-actions {
        gap: 6px !important;
    }

    .spotify-quick-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: var(--radius-sm) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .spotify-quick-btn svg {
        width: 15px !important;
        height: 15px !important;
    }

    .spotify-quick-btn span {
        display: none !important; /* Icon-only on mobile */
    }

    /* Analysis Modal on Mobile */
    .analysis-modal {
        width: calc(100vw - 16px) !important;
        max-width: 100vw !important;
        max-height: 94dvh !important;
    }

    .analysis-modal-header,
    .analysis-modal-footer {
        padding: 12px 14px !important;
    }

    .analysis-modal-scroll {
        padding: 14px 14px !important;
    }

    /* Waveform & Inspector Cards on Mobile */
    .track-header-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .track-cover-frame {
        width: 54px !important;
        height: 54px !important;
    }

    .track-title {
        font-size: 17px !important;
    }

    .header-actions {
        width: 100% !important;
    }

    .header-actions .v-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 38px !important;
    }

    .analysis-meter-card {
        padding: 12px !important;
    }

    .waveform-panel {
        padding: 12px !important;
    }

    #waveform {
        min-height: 110px !important;
    }

    /* Acoustic Characteristics Grid on Mobile: 2 columns */
    .meta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .meta-card {
        padding: 10px !important;
    }

    .meta-value-highlight {
        font-size: 16px !important;
    }

    /* Bottom Transport Player on Mobile */
    .transport {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: var(--transport-h) !important;
        padding: 0 10px !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        z-index: 60 !important;
        border-top: 1px solid var(--border-hairline) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .transport-volume-section {
        display: none !important; /* Mobile OS has physical volume keys */
    }

    .transport-controls-main {
        gap: 8px !important;
    }

    .transport-mode-controls {
        gap: 6px !important;
    }

    .transport-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
    }

    .transport-btn svg {
        width: 17px !important;
        height: 17px !important;
    }

    .transport-btn-play {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.22) !important;
    }

    .transport-btn-play svg {
        width: 20px !important;
        height: 20px !important;
    }

    .transport-mode-controls .v-btn-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .transport-wave-progress-container {
        margin: 0 8px !important;
        gap: 6px !important;
    }

    .transport-time {
        font-size: 10px !important;
        min-width: 28px !important;
    }

    /* Modals Responsive Layout */
    .auth-modal {
        width: calc(100vw - 20px) !important;
        max-width: 420px !important;
        margin: 10px !important;
        max-height: 90dvh !important;
        padding: 18px 14px !important;
    }

    .form-input {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    }

    .auth-tabs .auth-tab-btn {
        height: 40px !important;
        font-size: 13.5px !important;
    }

    .google-auth-btn {
        height: 44px !important;
        font-size: 13.5px !important;
    }

    .v-btn {
        min-height: 40px !important;
        font-size: 13.5px !important;
    }

    .confirm-dialog-btn {
        min-height: 44px !important;
        font-size: 14px !important;
        padding: 0 18px !important;
    }

    /* Track & Folder Context Menu on Mobile */
    .track-context-menu {
        max-width: calc(100vw - 24px) !important;
    }

    .context-menu-item {
        min-height: 46px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    .context-menu-item svg {
        width: 17px !important;
        height: 17px !important;
    }
}

/* Extra small mobile screens (iPhone SE, 320px - 400px) */
@media (max-width: 480px) {
    .cloud-sync-status span#cloudStatusText {
        display: none !important; /* Icon-only status pill to save room */
    }

    .mobile-nav-pill span {
        font-size: 10px;
    }

    .meta-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .track-badges {
        margin-top: 4px;
    }
}

/* ==========================================================================
   SoundScope Preferences & Settings Modal (Vercel Monochrome Dark)
   ========================================================================== */
.settings-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.settings-btn:hover {
    color: var(--text-pure-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-subtle);
}

.settings-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.settings-modal {
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    background: rgba(22, 22, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(12px);
    opacity: 0;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-backdrop.open .settings-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-hairline);
}

.settings-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-pure-white);
    letter-spacing: -0.01em;
    margin: 0;
}

.settings-modal-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-modal-scroll {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-section-title {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.settings-card {
    background: #111111;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Density Segmented Control */
.segmented-control {
    display: inline-flex;
    background: #050505;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}

.segmented-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.segmented-btn:hover {
    color: var(--text-primary);
}

.segmented-btn.active {
    background: #242424;
    color: var(--text-pure-white);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* V-Switch Toggle */
.v-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.v-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.v-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #222222;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: 0.15s;
}

.v-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #777777;
    border-radius: 50%;
    transition: 0.15s;
}

.v-switch input:checked + .v-slider {
    background-color: #ffffff;
    border-color: #ffffff;
}

.v-switch input:checked + .v-slider:before {
    transform: translateX(16px);
    background-color: #000000;
}

.spotify-hero-cover-wrap.no-cover-edit {
    cursor: default !important;
}

.spotify-hero-cover-wrap.no-cover-edit:hover .spotify-hero-cover {
    transform: none !important;
}

.spotify-hero-cover-wrap.no-cover-edit .spotify-hero-cover-overlay {
    display: none !important;
}

/* Visual Parametric EQ Container */
.visual-parametric-eq-container {
    width: 100%;
    height: 175px;
    background: #060606;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    margin: 4px 0 8px 0;
    user-select: none;
    touch-action: none;
}

.visual-eq-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Professional Parametric EQ Strip */
.pro-eq-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.pro-eq-band-card {
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pro-eq-band-card:hover,
.pro-eq-band-card.active-band {
    border-color: rgba(255, 255, 255, 0.22);
    background: #101010;
}

.pro-eq-band-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pro-eq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pro-eq-band-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-pure-white);
    letter-spacing: 0.05em;
    flex: 1;
}

.pro-eq-type-select,
.pro-eq-slope-select {
    background: #000000;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 10px;
    padding: 2px 4px;
    outline: none;
    cursor: pointer;
    max-width: 112px;
}

.pro-eq-type-select:hover,
.pro-eq-slope-select:hover {
    color: #ffffff;
    border-color: var(--border-medium);
}

.pro-eq-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-eq-ctrl {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pro-eq-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pro-eq-val {
    font-size: 10px;
    color: var(--text-pure-white);
    text-align: right;
    margin-top: -1px;
}

.pro-eq-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.pro-eq-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s ease;
}

.pro-eq-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.folder-system-badge {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    pointer-events: none;
    line-height: 1;
}

/* EQ Sliders */
.eq-band-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eq-band-label {
    width: 90px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.eq-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eq-range-input {
    flex: 1;
    accent-color: #ffffff;
    cursor: pointer;
    height: 4px;
    background: #262626;
    border-radius: 2px;
}

.eq-val-badge {
    width: 52px;
    text-align: right;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.settings-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-hairline);
    background: #080808;
}
