/**
 * FreeMusiers Visualizer Studio CSS
 * High-performance Cybernetic DAW / VFX Studio Theme
 */

:root {
    --accent: #ff4d6d;
    --accent-hover: #ff6b84;
    --accent-glow: rgba(255, 77, 109, 0.45);
    --accent-dim: rgba(255, 77, 109, 0.22);
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.35);
    --bg-deep: #08080d;
    --bg-card: #101118;
    --bg-card-hover: #171822;
    --bg-panel: #0d0e14;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 59, 77, 0.6);
    --text-main: #f0f1f6;
    --text-muted: #8b8d9e;
    --text-dim: #555768;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Space Mono", "JetBrains Mono", "Courier New", monospace;
    --topbar-height: 54px;
    --bottom-height: 52px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 13px;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL ────────────────────────────────────────── */
#studio-app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ── TOPBAR ───────────────────────────────────────────── */
.studio-topbar {
    height: var(--topbar-height);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
    z-index: 100;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 14px;
}

.brand-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), #ff7b00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.studio-title-badge {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: 1px solid rgba(228, 45, 61, 0.3);
}

.title-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-title-input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    width: 170px;
    transition: all 0.15s;
}

.studio-title-input:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.studio-title-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

/* Center Preset & Transport Controls */
.topbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.selector-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
}

.selector-label {
    color: var(--text-muted);
    font-size: 11px;
    padding-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.studio-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12px;
    padding: 4px 6px;
    outline: none;
    cursor: pointer;
}

.studio-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Action Buttons */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-cyan {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--cyan);
}

.btn-cyan:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.btn-record {
    border-color: rgba(228, 45, 61, 0.45);
    color: #ff5e6c;
    background: rgba(228, 45, 61, 0.08);
}

.btn-record:hover {
    background: rgba(228, 45, 61, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    color: #fff;
}

.btn-record.recording {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
    animation: rec-pulse 1.2s infinite;
}

@keyframes rec-pulse {
    0% { opacity: 1; box-shadow: 0 0 8px rgba(228, 45, 61, 0.5); }
    50% { opacity: 0.75; box-shadow: 0 0 20px rgba(228, 45, 61, 0.9); }
    100% { opacity: 1; box-shadow: 0 0 8px rgba(228, 45, 61, 0.5); }
}

.rec-dot-pulsing {
    animation: rec-pulse 1s infinite;
}

.btn-icon {
    padding: 6px 8px;
}

/* ── WORKSPACE LAYOUT ─────────────────────────────────── */
.studio-workspace {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--topbar-height) - var(--bottom-height));
    overflow: hidden;
}

/* ── LEFT SIDEBAR: LAYER DECK ─────────────────────────── */
.studio-deck {
    width: 280px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.deck-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deck-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.add-component-menu {
    position: relative;
}

.deck-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deck-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 8px 4px 4px 4px;
}

.layer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.layer-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.layer-card.active {
    border-color: var(--accent);
    background: rgba(228, 45, 61, 0.08);
    box-shadow: 0 0 10px rgba(228, 45, 61, 0.2);
}

.layer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.layer-icon {
    font-size: 14px;
    opacity: 0.9;
}

.layer-info {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layer-name {
    font-weight: 500;
    font-size: 12px;
}

.layer-type {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.layer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.layer-card:hover .layer-actions,
.layer-card.active .layer-actions {
    opacity: 1;
}

.layer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.layer-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.layer-btn.delete:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
}

.layer-card.hidden {
    opacity: 0.45;
}

/* ── CENTER: STAGE & CANVAS VIEWPORT ──────────────────── */
.studio-stage {
    flex: 1;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.stage-toolbar {
    height: 40px;
    background: rgba(13, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.meter-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background-color 0.08s, transform 0.08s;
}

.meter-dot.active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 6px var(--accent);
}

.stage-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: radial-gradient(circle at center, #12131d 0%, #08080d 100%);
    overflow: hidden;
}

.canvas-container {
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

#studio-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3C!-- Outer black shadow for contrast on bright surfaces --%3E%3Ccircle cx='16' cy='16' r='6' fill='none' stroke='%23000000' stroke-width='3.5'/%3E%3Cline x1='16' y1='2' x2='16' y2='10' stroke='%23000000' stroke-width='3.5' stroke-linecap='round'/%3E%3Cline x1='16' y1='22' x2='16' y2='30' stroke='%23000000' stroke-width='3.5' stroke-linecap='round'/%3E%3Cline x1='2' y1='16' x2='10' y2='16' stroke='%23000000' stroke-width='3.5' stroke-linecap='round'/%3E%3Cline x1='22' y1='16' x2='30' y2='16' stroke='%23000000' stroke-width='3.5' stroke-linecap='round'/%3E%3C!-- Bright neon cyan inner reticle for contrast on dark backgrounds --%3E%3Ccircle cx='16' cy='16' r='6' fill='none' stroke='%2300e5ff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ffffff'/%3E%3Cline x1='16' y1='3' x2='16' y2='9' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='16' y1='23' x2='16' y2='29' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='3' y1='16' x2='9' y2='16' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='23' y1='16' x2='29' y2='16' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, crosshair;
}

#studio-canvas.dragging {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3C!-- Outer black shadow --%3E%3Ccircle cx='16' cy='16' r='9' fill='rgba(0,0,0,0.6)' stroke='%23000000' stroke-width='3.5'/%3E%3Cline x1='16' y1='0' x2='16' y2='32' stroke='%23000000' stroke-width='3' stroke-dasharray='4 2'/%3E%3Cline x1='0' y1='16' x2='32' y2='16' stroke='%23000000' stroke-width='3' stroke-dasharray='4 2'/%3E%3C!-- Neon coral grab reticle --%3E%3Ccircle cx='16' cy='16' r='9' fill='rgba(228,45,61,0.25)' stroke='%23e42d3d' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23ffffff'/%3E%3Cline x1='16' y1='1' x2='16' y2='31' stroke='%23ff5566' stroke-width='1.5' stroke-dasharray='4 2'/%3E%3Cline x1='1' y1='16' x2='31' y2='16' stroke='%23ff5566' stroke-width='1.5' stroke-dasharray='4 2'/%3E%3C/svg%3E") 16 16, move;
}

/* Interactive selection box on canvas */
.canvas-selection-overlay {
    position: absolute;
    border: 1px dashed var(--accent);
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-glow);
    display: none;
}

/* ── RIGHT SIDEBAR: INSPECTOR ─────────────────────────── */
.studio-inspector {
    width: 330px;
    background: var(--bg-panel);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inspector-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inspector-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.inspector-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 2px;
}

.prop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.prop-label {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 80px;
}

.prop-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.prop-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-glow);
    transition: transform 0.1s;
}

.prop-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.prop-val {
    font-family: var(--font-mono);
    font-size: 11px;
    width: 54px;
    height: 22px;
    padding: 1px 5px;
    text-align: right;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.prop-val:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.65);
}

.prop-val:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    background: rgba(15, 17, 26, 0.95);
    color: #fff;
}

.prop-val::-webkit-inner-spin-button,
.prop-val::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prop-color {
    -webkit-appearance: none;
    border: none;
    width: 28px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.prop-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.prop-color::-webkit-color-swatch {
    border: 1px solid var(--border);
    border-radius: 4px;
}

.prop-text-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--text-main);
    font-size: 12px;
}

.prop-text-input:focus {
    outline: none;
    border-color: var(--accent);
}

.prop-toggle {
    cursor: pointer;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* ── BOTTOM AUDIO PLAYHEAD & TRANSPORT ────────────────── */
.studio-bottom {
    height: var(--bottom-height);
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
    z-index: 100;
}

.transport-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: all 0.15s;
}

.play-btn:hover {
    transform: scale(1.06);
    background: var(--accent-hover);
}

.transport-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
}

.time-display {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    min-width: 85px;
}

.timeline-scrubber {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.timeline-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.transport-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── MODALS & DIALOGS ─────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Toast alert notification */
.studio-toast {
    position: fixed;
    bottom: 64px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2000;
}

.studio-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── FREEMUSIERS TRACK BROWSER MODAL ───────────────────── */
.track-browser-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.track-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.track-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 229, 255, 0.15);
}

.track-card.active-selected {
    border-color: var(--accent);
    background: rgba(228, 45, 61, 0.08);
    box-shadow: 0 0 15px rgba(228, 45, 61, 0.25);
}

.track-card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.track-card-thumb-fallback {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.track-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.track-card-title {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-family: var(--font-mono);
}

.badge-lrc {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.badge-plain {
    background: rgba(180, 70, 255, 0.15);
    color: #c87aff;
    border: 1px solid rgba(180, 70, 255, 0.35);
}

.badge-none {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-pill.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

