@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Outfit:wght@100..900&family=Stack+Sans+Notch:wght@200..700&display=swap');


:root {
    /* Jerarquías Editoriales Tipográficas */
    --font-display: 'Stack Sans Notch';
    --font-body:  'Outfit';
    --font-mono: 'DM Mono', monospace;

    --bg-color: rgba(15, 15, 15, 0.9);
    --bg-darker: #050505; /* Específico para el Dashboard */
    --text-muted: #888888; /* Específico para el Dashboard */
    --bg-noise: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.12"/%3E%3C/svg%3E');
    --text-main: #ffffff;
    --glass-bg: rgba(30, 30, 30, 0.5);
    --glass-blur: blur(25px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --accent: mistyrose;
    /* Actualización de Marca: Rosa Salmón */
    --vj-accent: #FF8C8C; 
    --vj-glow: rgba(255, 140, 140, 0.6);
    --hw-panel: #222;
    --hw-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-color); background-image: var(--bg-noise);
    color: var(--text-main); font-family: var(--font-body);
    overflow: hidden; height: 100vh; width: 100vw;
    display: flex; flex-direction: column; position: relative;
}

/* Títulos Globales */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
}

/* --- BACKGROUND LAYERS --- */
.bg-video {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3;
    background-image: url(https://lost-cities.space/media/static-noise.gif);
    mix-blend-mode: lighten; background-size: 12%; background-repeat: repeat;
    transition: opacity 1s, filter 1s; opacity: 1; filter: blur(0px);
}
.bg-video video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: color-burn; }
body.internal-view .bg-video { opacity: 0.25; filter: blur(12px) grayscale(30%); }

/* P5 Generative Background */
#vj-bg-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    pointer-events: none; opacity: 0; transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
    mix-blend-mode: screen;
}
body.vj-active #vj-bg-layer { opacity: 1; }
body.vj-active .bg-video { opacity: 0.05; filter: blur(20px) grayscale(100%); }

/* Header */
.top-bar { position: fixed; top: 0; left: 0; right: 0; padding: 24px; display: flex; justify-content: space-between; z-index: 50; pointer-events: none; }
.brand { pointer-events: auto; }
.live-tag { pointer-events: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid white; padding: 4px 12px; border-radius: 20px; background: rgba(0,0,0,0.1); backdrop-filter: blur(4px); display: flex; align-items: center; gap: 6px; transition: all 0.3s; cursor: pointer;}
.live-tag:hover { background: rgba(255,255,255,0.1); }
.status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); transition: all 0.3s; }
body.vj-view .live-tag { border-color: var(--vj-accent); color: var(--vj-accent); }
body.vj-view .status-dot { background: var(--vj-accent); box-shadow: 0 0 10px var(--vj-accent); }

/* Canvas General */
#main-canvas { flex: 1; width: 100%; height: 100%; position: relative; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
#main-canvas.rooms-mode { overflow: hidden; } 

/* Salas */
#infinite-wall { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: center center; will-change: transform; }
.wall-item { position: absolute; width: 320px; transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0.3; transform: scale(0.9); }
.wall-item.active-frame { opacity: 1; transform: scale(1); z-index: 10; }
.event-meta { display: flex; justify-content: space-between; }
.wall-img { width: 100%; display: block; filter: grayscale(100%); transition: filter 0.8s; }
.wall-item.active-frame .wall-img { filter: grayscale(0%); }
.wall-meta { margin-top: 0; background: rgba(0,0,0,0.0); padding: 16px; border-left: 2px solid var(--accent); opacity: 0; transform: translateY(10px); transition: all 0.5s 0.2s; }
.wall-item.active-frame .wall-meta { opacity: 1; transform: translateY(0); }
.wall-title { font-family: var(--font-display); font-size: 20px; line-height: 1.1; margin-bottom: 6px; font-weight: 400; letter-spacing: 1px; }
.wall-desc { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }

/* General Content */
.page-container { width: 85%; max-width: 800px; margin: 0 auto; padding: 25vh 0 150px; }
.section-header { font-family: var(--font-mono); font-size: 12px;  letter-spacing: 0.2em; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 12px; margin-bottom: 32px; opacity: 0.7; }
.manifesto-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 40px; font-weight: 400; letter-spacing: -0.02em; }
.manifesto-text p { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; margin-bottom: 24px; opacity: 0.9; text-align: justify; }
.manifesto-text strong { color: var(--accent); font-weight: 400; }

.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.show-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px; position: relative; transition: all 0.3s ease; cursor: pointer; }
.show-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: var(--accent); }
.show-time { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; display: block; }
.show-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.show-dj { font-family: var(--font-mono); font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }

.agenda-grid { display: grid; gap: 40px; }
.agenda-item { color: #fff; text-decoration: none; display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: opacity 0.3s; }
.agenda-item:hover { opacity: 0.7; }
.date-block { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12px; }
.day { font-size: 24px; font-weight: 700; margin-bottom: -4px; font-family: var(--font-display); }
.month { text-transform: uppercase; opacity: 0.6; }
.event-info h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.1; margin-bottom: 8px; }
.tag { border: 1px solid rgba(255,255,255,0.4); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }

/* --- DRAGGABLE UI (Vue Handled) --- */
.draggable {
    position: fixed; background: var(--glass-bg);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border); z-index: 1000; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), height 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.5s ease;
}
#morph-menu.horizontal { width: 420px; height: 70px; border-radius: 100px; bottom: 20px; flex-direction: row; padding: 0 10px; justify-content: space-evenly; }
#morph-menu.vertical { width: 70px; height: 420px; border-radius: 100px; flex-direction: column; padding: 20px 0; justify-content: space-evenly; }
.menu-item { color: white; opacity: 0.6; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; flex: 1; }
.menu-item.active { opacity: 1; transform: scale(1.1); color: var(--accent); }
.menu-item.vj-btn.active { color: var(--vj-accent); }
.menu-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; white-space: nowrap; }
.menu-item i { font-size: 24px; margin-bottom: 2px; }
.vertical .menu-label { display: none; }

/* --- PLAYER --- */
#player-organism { border-radius: 50px; z-index: 1100; padding: 0; overflow: hidden; width: 64px; height: 64px; }
.vinyl-disk { width: 48px; height: 48px; left: 30px !important; border-radius: 50%; background: url('https://lost-cities.space/media/radio/covers/vinyl-rep.png') center/cover; border: 2px solid #111; box-shadow: 0 0 0 2px rgba(255,255,255,0.15); animation: spin 5s linear infinite; animation-play-state: paused; position: absolute; z-index: 5; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events:none;}
.vinyl-disk.spinning { animation-play-state: running; }
.player-content { opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 16px; transition: opacity 0.3s ease; white-space: nowrap; }
.player-info { display: flex; flex-direction: column; }
.track-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.track-status { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; opacity: 0.7; letter-spacing: 0.05em; max-width: 120px; overflow: hidden; text-overflow: ellipsis;}
.btn-play-mini { width: 32px; height: 32px; background: white; color: black; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex-shrink: 0; pointer-events:auto;}
.btn-play-mini i { font-size: 18px; color: #000; }
.close-fs-btn { display: none; position: absolute; top: 30px; right: 30px; background: none; border: none; color: white; cursor: pointer; z-index: 20; opacity: 0.6; }


#player-organism.horizontal .vinyl-disk { left: 50%; top: 50%; transform: translate(-50%, -50%); }
#player-organism.horizontal.expanded { width: 300px; justify-content: space-evenly; padding-left: 48px; }
#player-organism.horizontal.expanded .player-content { opacity: 1; pointer-events: auto; transition-delay: 0.1s; flex-direction: row; }
#player-organism.vertical .vinyl-disk { left: 50%; top: 50%; transform: translate(-50%, -50%); }
#player-organism.vertical.expanded  .vinyl-disk { left: 50%; top: 15%; transform: translate(-50%, -50%); }
#player-organism.vertical.expanded { height: 300px; flex-direction: column; justify-content: center; align-items: center; padding-top: 48px; }
#player-organism.vertical.expanded .player-content { opacity: 1; pointer-events: auto; transition-delay: 0.1s; flex-direction: row-reverse; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); height: 180px; width: 100%; justify-content: space-evenly; align-items: center; margin: 0; }
#player-organism.vertical.expanded .btn-play-mini { transform: rotate(90deg); }

/* --- VJ SIMULATOR HARDWARE UI --- */
#vj-trigger { position: fixed; bottom: 10px; right: 10px; width: 34px; height: 34px; background: rgba(255, 140, 140, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 140, 140, 0.3); border-radius: 50%; color: var(--vj-accent); font-size: 16px; cursor: pointer; z-index: 2000; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(255, 140, 140, 0.2); }
#vj-trigger:hover, #vj-trigger.active { background: var(--vj-accent); color: black; transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 140, 140, 0.6); }

#vj-console-overlay { position: fixed; bottom: 0; left: 0; width: 100vw; z-index: 1950; transform: translateY(120%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); display: flex; justify-content: center; padding-bottom: 90px; pointer-events: none; }
#vj-console-overlay.visible { transform: translateY(0); pointer-events: auto; }

.hw-console { background: var(--hw-panel); border-radius: 12px; padding: 30px; box-shadow: var(--hw-shadow); border: 2px solid #333; border-top-color: #444; border-bottom-color: #111; display: flex; gap: 40px; max-width: 900px; width: 100%; position: relative; }
.hw-screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #555, #222); box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.2); }
.hw-screw::after { content: ''; position: absolute; top: 50%; left: 50%; width: 60%; height: 2px; background: #111; transform: translate(-50%, -50%) rotate(45deg); }
.hw-screw.tl { top: 10px; left: 10px; } .hw-screw.tr { top: 10px; right: 10px; }
.hw-screw.bl { bottom: 10px; left: 10px; } .hw-screw.br { bottom: 10px; right: 10px; }

.hw-section { display: flex; flex-direction: column; gap: 20px; }
.hw-label { font-family: var(--font-mono); font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 2px; text-align: center; background: #111; padding: 2px 8px; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.8); border-bottom: 1px solid rgba(255,255,255,0.1); display: inline-block; margin: 0 auto; }

.pad-matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: #1a1a1a; padding: 15px; border-radius: 8px; box-shadow: inset 0 5px 15px rgba(0,0,0,0.8); border-bottom: 1px solid rgba(255,255,255,0.1); }
.hw-pad { width: 60px; height: 60px; background: linear-gradient(180deg, #333 0%, #222 100%); border: 2px solid #111; border-top-color: #444; border-radius: 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.5); cursor: pointer; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; color: #555; font-family: var(--font-display); font-size: 10px; font-weight: bold; transition: all 0.1s; }
.hw-pad:active { transform: translateY(2px); box-shadow: 0 1px 2px rgba(0,0,0,0.5); border-top-color: #222; }
.hw-pad.active { background: linear-gradient(180deg, rgba(255,140,140,0.3) 0%, rgba(255,100,100,0.1) 100%); border-color: var(--vj-accent); color: #fff; text-shadow: 0 0 5px var(--vj-accent); box-shadow: 0 0 15px var(--vj-glow), inset 0 0 10px var(--vj-glow); }

.lcd-screen { background: #051505; border: 4px solid #111; border-radius: 4px; padding: 12px; height: 120px; box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.lcd-screen::after { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); pointer-events: none; }
#vj-code-view { font-family: var(--font-mono); font-size: 11px; color: #0f0; text-shadow: 0 0 4px rgba(0, 255, 0, 0.5); white-space: pre-wrap; position: relative; z-index: 2; height: 100%; overflow-y: auto; }

.fader-group { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #1a1a1a; padding: 15px 10px; border-radius: 8px; box-shadow: inset 0 5px 15px rgba(0,0,0,0.8); }
.fader-track { position: relative; width: 30px; height: 150px; background: #000; border-radius: 4px; box-shadow: inset 0 0 10px rgba(0,0,0,0.9); display: flex; justify-content: center; }
.fader-slit { width: 4px; height: 100%; background: #0a0a0a; border-left: 1px solid #000; border-right: 1px solid #222; }
.fader-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 5; -webkit-appearance: slider-vertical;}
.fader-cap { position: absolute; bottom: 50%; left: 50%; transform: translate(-50%, 50%); width: 28px; height: 40px; background: linear-gradient(90deg, #333, #555, #333); border-radius: 2px; box-shadow: 0 5px 10px rgba(0,0,0,0.8), inset 0 2px 2px rgba(255,255,255,0.4); pointer-events: none; transition: bottom 0.1s; }

.knobs-container { display: flex; gap: 20px; background: #1a1a1a; padding: 15px; border-radius: 8px; box-shadow: inset 0 5px 15px rgba(0,0,0,0.8); justify-content: space-around;}
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.knob-base { width: 50px; height: 50px; border-radius: 50%; background: #111; box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.1); position: relative; display: flex; justify-content: center; align-items: center;}
.knob-dial { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #444, #222); box-shadow: 0 4px 5px rgba(0,0,0,0.5), inset 0 2px 2px rgba(255,255,255,0.2); cursor: grab; position: relative; transform: rotate(-135deg); }
.knob-indicator { position: absolute; top: 4px; left: 50%; width: 4px; height: 10px; background: var(--vj-accent); transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 5px var(--vj-glow); }

/* --- MODALES Y AUTENTICACIÓN --- */
.glass-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); z-index: 2500; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.glass-overlay.visible { opacity: 1; pointer-events: auto; }
.modal-glass-panel { background: rgba(30, 30, 30, 0.6); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; width: 90%; max-width: 600px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.glass-overlay.visible .modal-glass-panel { transform: translateY(0); }
.modal-header { padding: 30px 30px 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; opacity: 0.6; transition: 0.2s; }
.modal-close:hover { opacity: 1; }
.modal-title { font-family: var(--font-display); font-size: 28px; margin-bottom: 5px; font-weight: 700;}
.modal-subtitle { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-bottom: 15px; }
.modal-desc { font-size: 14px; line-height: 1.5; opacity: 0.8; }
.modal-body { padding: 0; overflow-y: auto; flex: 1; }

.episode-list { list-style: none; }
.episode-item { display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.episode-item:hover { background: rgba(255,255,255,0.03); }
.ep-info { display: flex; flex-direction: column; gap: 4px; }
.ep-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.ep-date { font-family: var(--font-mono); font-size: 11px; opacity: 0.5; }
.ep-actions { display: flex; gap: 10px; align-items: center; }
.ep-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 50px; padding: 8px 16px; font-size: 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px;}
.ep-btn:hover { background: white; color: black; }
.ep-btn.play-btn { background: var(--accent); border-color: var(--accent); color: black; font-weight: bold;}
.like-btn.liked i { color: var(--vj-accent); }
.like-btn.liked { border-color: var(--vj-accent); background: rgba(255,140,140,0.1); }

/* Auth Form specific styles */
.auth-panel { max-width: 450px; padding: 40px; }
.auth-title { font-family: var(--font-display); }
.form-group { margin-bottom: 20px; }
.form-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px 16px; border-radius: 8px; font-family: var(--font-mono); font-size: 14px; transition: border-color 0.3s; }
.form-input:focus { outline: none; border-color: var(--accent); }
.btn-primary { width: 100%; background: var(--accent); color: black; border: none; padding: 14px; border-radius: 8px; font-family: var(--font-display); font-weight: bold; font-size: 14px; cursor: pointer; transition: transform 0.2s; }
.btn-primary:active { transform: scale(0.98); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 12px; color: #888; }
.auth-switch a { color: white; text-decoration: none; border-bottom: 1px solid var(--accent); cursor: pointer; }

/* --- FOOTER DINÁMICO --- */
#footer-trigger { position: fixed; bottom: 10px; left: 10px; width: 30px; height: 30px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: white; font-family: var(--font-mono); font-size: 18px; font-weight: bold; cursor: pointer; z-index: 2000; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
#footer-trigger:hover, #footer-trigger.active { background: var(--accent); color: black; transform: scale(1.1); border-color: var(--accent); }
#hidden-footer { position: fixed; bottom: 0; left: 0; width: 100vw; background: #111; border-top: 1px solid rgba(255,255,255,0.1); padding: 60px 40px 40px; z-index: 1900; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); font-family: var(--font-mono); }
#hidden-footer.visible { transform: translateY(0); }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr 1.5fr 0.5fr; gap: 40px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #999; text-decoration: none; font-size: 11px; letter-spacing: 0.05em; transition: color 0.2s; line-height: 1.4; }
.footer-col a:hover { color: white; text-decoration: underline; }
.social-col { align-items: flex-start; } .footer-icons { display: flex; gap: 15px; margin-bottom: 10px; } .footer-icons i { font-size: 20px; color: white; }
.brand-col { align-items: flex-end; justify-content: flex-end; height: 100%; }

/* =========================================================
   NUEVO LAYOUT: DASHBOARD NATIVO (Usuarios y Curator)
   ========================================================= */

body.dashboard-body {
    background: var(--bg-darker); /* Fondo más oscuro para apps */
    overflow: hidden;
}

.modern-dashboard {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    background: radial-gradient(circle at top left, rgba(255,140,140,0.03), transparent 40%);
}

/* Sidebar Nav (Desktop Collapsible) */
.dash-sidebar {
    width: 80px; /* Cerrado por defecto */
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    overflow: hidden;
    white-space: nowrap;
}

.dash-sidebar:hover { width: 240px; } /* Se expande en Desktop */

.sidebar-logo {
    padding: 0 20px;
    margin-bottom: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}
.sidebar-logo img { width: 36px; flex-shrink: 0; }

.sidebar-nav, .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 28px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.nav-link i { font-size: 24px; flex-shrink: 0; }
.nav-text { opacity: 0; transition: opacity 0.3s 0.1s; }
.dash-sidebar:hover .nav-text { opacity: 1; }

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.02); }
.nav-link.active { color: var(--vj-accent); border-left-color: var(--vj-accent); background: linear-gradient(90deg, rgba(255,140,140,0.1) 0%, transparent 100%); }
.logout-link:hover { color: #ff5555; }

/* Main Dashboard Area */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header Top */
.dash-header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.search-box {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border-radius: 50px;
    padding: 10px 20px; width: 350px;
    border: 1px solid transparent; transition: 0.3s;
}
.search-box:focus-within { border-color: rgba(255,140,140,0.3); background: rgba(0,0,0,0.5); }
.search-box i { color: var(--text-muted); font-size: 18px; }
.search-box input { background: transparent; border: none; color: #fff; outline: none; width: 100%; font-family: var(--font-body); }

.header-profile { display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.header-profile:hover { opacity: 0.8; }
.user-role-badge { font-family: var(--font-mono); font-size: 10px; background: rgba(255,140,140,0.1); color: var(--vj-accent); padding: 5px 12px; border-radius: 20px; letter-spacing: 1px; }
.user-avatar-mini { width: 44px; height: 44px; border-radius: 50%; background: #222; border: 2px solid var(--vj-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; overflow: hidden; cursor: pointer; box-shadow: 0 0 15px rgba(255,140,140,0.2); }
.user-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

/* Scrollable Content Area */
.dash-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
}

/* Promo Banner (Hero) */
.promo-banner {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 24px;
    background: url('https://lost-cities.space/media/radio/covers/vinyl-rep.png') center/cover;
    overflow: hidden;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.banner-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); }
.banner-content { position: relative; z-index: 2; max-width: 600px; }
.banner-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--vj-accent); letter-spacing: 2px; margin-bottom: 10px; display: block; }
.banner-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 15px; }
.banner-desc { font-size: 14px; opacity: 0.8; margin-bottom: 24px; line-height: 1.6; }

.banner-actions { display: flex; gap: 15px; }
.btn-primary-dash { background: var(--vj-accent); color: #000; border: none; border-radius: 50px; padding: 12px 32px; font-family: var(--font-display); font-weight: bold; font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-primary-dash:hover { transform: scale(1.05); }
.btn-secondary-dash { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50px; padding: 12px 32px; font-family: var(--font-display); font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-secondary-dash:hover { background: rgba(255,255,255,0.2); }

/* Horizontal Scroll Section (Cards) */
.dash-section { margin-bottom: 50px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-title { font-size: 22px; margin-bottom: 0; }
.view-more { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; text-decoration: none; transition: 0.2s; }
.view-more:hover { color: var(--vj-accent); }

.cards-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.cards-row::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.track-card {
    min-width: 180px;
    width: 180px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s;
}
.track-card:hover { transform: translateY(-5px); }
.card-cover {
    width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.play-overlay { position: absolute; right: 10px; bottom: 10px; background: var(--vj-accent); color: #000; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(255,140,140,0.4); }
.track-card:hover .card-cover img { filter: brightness(0.7); }
.track-card:hover .play-overlay { opacity: 1; transform: translateY(0); }

.card-title { font-family: var(--font-body); font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-artist { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* List View (Guardados) */
.track-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px;}
.list-item {
    display: flex; align-items: center; padding: 12px 20px;
    background: rgba(255,255,255,0.02); border-radius: 12px;
    transition: 0.2s; cursor: pointer; border: 1px solid transparent;
}
.list-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.list-number { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); width: 40px; }
.list-cover { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; margin-right: 15px; }
.list-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.list-title { font-size: 15px; font-weight: 500; }
.list-artist { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.list-duration { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-right: 20px; }
.list-action { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: 0.2s; }
.list-action:hover { color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; opacity: 0.5; }
.empty-state i { font-size: 48px; margin-bottom: 10px; color: var(--text-muted); }

/* =========================================================
   CURATOR DASHBOARD SPECIFIC STYLES
   ========================================================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
.mini-stat { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 30px; border-radius: 24px; transition: transform 0.3s; }
.mini-stat:hover { transform: translateY(-5px); border-color: var(--vj-accent); background: linear-gradient(145deg, rgba(255,140,140,0.05) 0%, transparent 100%); }
.mini-stat h4 { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; letter-spacing: 1px; }
.mini-stat .value { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -1px; }


/* Editor de Perfil UI */
.curator-form { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 24px; margin-bottom: 30px; }
.form-group-dash { margin-bottom: 24px; }
.form-group-dash label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; margin-bottom: 10px; color: var(--text-muted); letter-spacing: 1px; }
.form-group-dash input, .form-group-dash textarea, .form-group-dash select { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 16px; border-radius: 12px; font-family: var(--font-body); font-size: 14px; transition: 0.3s; }
.form-group-dash input:focus, .form-group-dash textarea:focus { border-color: var(--vj-accent); outline: none; background: rgba(0,0,0,0.6); }
.profile-edit-avatar { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.profile-edit-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vj-accent); box-shadow: 0 0 20px rgba(255,140,140,0.2); }
.btn-upload { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 50px; font-family: var(--font-mono); font-size: 11px; cursor: pointer; transition: 0.3s; }
.btn-upload:hover { background: white; color: black; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    
    #morph-menu { width: 100vw !important; height: 75px !important; border-radius: 24px 24px 0 0 !important; bottom: 0 !important; top: auto !important; left: 0 !important; transform: none !important; flex-direction: row !important; padding: 0 10px !important; background: rgba(15, 15, 15, 0.95) !important; border: none !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
    .hw-console { flex-direction: column; gap: 20px; padding: 20px; border-radius: 20px; max-height: 75vh; overflow-y: auto;}
    .pad-matrix { grid-template-columns: repeat(5, 1fr); gap: 8px;}
    .hw-pad { width: 100%; height: 50px; font-size: 9px;}
    #vj-console-overlay { padding-bottom: 120px; }
    #vj-trigger { display:block; bottom: 90px !important; right: 20px !important; }
    #footer-trigger { bottom: 90px !important; left: 20px !important; }
    .page-container { padding: 20vh 0 150px; width: 90%; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; padding-bottom: 60px; }
    
    /* Main Layout */
    .modern-dashboard { flex-direction: column; }
    
    /* Bottom Navigation Bar */
    .dash-sidebar {
        width: 100%; height: 70px;
        position: fixed; bottom: 0; left: 0; top: auto;
        flex-direction: row; justify-content: space-around; align-items: center;
        padding: 0; border-right: none; border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
    }
    .dash-sidebar:hover { width: 100%; }
    .sidebar-logo, .sidebar-bottom, .nav-text { display: none; } /* Ocultar texto y logo */
    
    .sidebar-nav { flex-direction: row; width: 100%; justify-content: space-evenly; }
    .nav-link { padding: 10px; border-left: none; border-top: 3px solid transparent; flex-direction: column; gap: 4px; }
    .nav-link.active { border-left: none; border-top-color: var(--vj-accent); background: linear-gradient(180deg, rgba(255,140,140,0.15) 0%, transparent 100%); }
    
    /* Content Area Adjustment */
    .dash-main { margin-left: 0; padding-bottom: 70px; } /* Dejar espacio para la barra inferor */
    .dash-header { padding: 0 20px; height: 70px; }
    .search-box { width: 180px; }
    
    .dash-scrollable { padding: 20px; }
    
    /* Promos & Cards Mobile */
    .promo-banner { padding: 25px; height: auto; min-height: 280px; }
    .banner-title { font-size: 28px; }
    .banner-actions { flex-direction: column; width: 100%; }
    .btn-primary-dash, .btn-secondary-dash { width: 100%; }
    
    .track-card { min-width: 140px; width: 140px; }
    .list-item { padding: 10px; }
    .list-number { width: 25px; font-size: 12px; }
    
    /* Curator Mobile specifics */
    .curator-form { padding: 20px; }
    .mini-stat { padding: 20px; }
    .control-buttons{
        display:none;
    }
}

/* --- CORRECCIONES REPRODUCTOR HOMOLOGADO (Backlog 7 y 8 + Bug Z-Index) --- */
#player-organism.mobile-fullscreen {
    position: fixed !important;
    width: 100vw !important; height: 100vh !important;
    right: 0 !important; bottom: 0 !important; top: 0 !important; left: 0 !important;
    border-radius: 0 !important; flex-direction: column; justify-content: center;
    background: rgba(10, 10, 10, 0.98); cursor: default; padding: 40px;
    z-index: 9999 !important; /* Solución BUG-04: Siempre encima de todo */
}
#player-organism.mobile-fullscreen .close-fs-btn { display: block; }
#player-organism.mobile-fullscreen .vinyl-disk {
    position: relative; width: 250px; height: 250px; left: auto !important; top: auto !important; transform: none; margin-bottom: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); border: 4px solid #111; animation-name: spinMobile;
}
#player-organism.mobile-fullscreen .player-content { flex-direction: column; gap: 30px; justify-content: center; padding: 0; opacity: 1; pointer-events: auto; width: 100%; text-align: center; }
#player-organism.mobile-fullscreen .player-info { text-align: center; align-items: center; }
#player-organism.mobile-fullscreen .track-title { font-size: 20px; margin-bottom: 5px; max-width: 100%;}
#player-organism.mobile-fullscreen .extended-controls { display: flex; flex-direction: column; width: 100%; gap: 20px; }
#player-organism.mobile-fullscreen .btn-play-mini { width: 60px; height: 60px; font-size: 24px; transform: none;}

/* Solución BUG-04: Ocultar el morph-menu cuando el reproductor está a pantalla completa */
body:has(#player-organism.mobile-fullscreen) #morph-menu {
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}