@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;700&family=Oswald:wght@700&family=Syne:wght@800&display=swap');

:root {
  --bg-absolute: #030303;
  --bg-card: #0a0a0a;
  --text-primary: #f5f5f5;
  --text-muted: #555555;
  --accent-wdr: #dfb235;    
  --accent-ct: #6d4aff;     
  --accent-fd: #ff2a2a;     
  --font-terminal: 'JetBrains Mono', monospace;
  --font-display-moody: 'Syne', sans-serif;
  --font-display-raw: 'Oswald', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { background-color: var(--bg-absolute); color: var(--text-primary); font-family: var(--font-terminal); overflow-x: hidden; min-height: 100vh; width: 100vw; }

.crt-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05)); background-size: 100% 4px, 6px 100%; z-index: 9999; pointer-events: none; }

#admin-trigger-zone { position: fixed; bottom: 15px; right: 15px; background: rgba(10,10,10,0.9); border: 1px solid #222; font-size: 0.65rem; color: #444; padding: 6px 12px; cursor: pointer; z-index: 9995; font-family: var(--font-terminal); letter-spacing: 1px; transition: all 0.2s; }
#admin-trigger-zone:hover { color: var(--accent-wdr); border-color: var(--accent-wdr); }

#auth-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; justify-content: center; align-items: center; }
.modal-content { background: #0c0c0c; border: 1px solid #333; padding: 2rem; width: 90%; max-width: 380px; text-align: center; }
.modal-content h3 { font-size: 0.9rem; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 1.5rem; }
.modal-content input { width: 100%; background: #000; border: 1px solid #222; color: var(--accent-wdr); padding: 0.75rem; font-family: var(--font-terminal); text-align: center; font-size: 1.2rem; margin-bottom: 1.5rem; letter-spacing: 4px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; background: transparent; border: 1px solid #444; color: #aaa; padding: 0.5rem; font-family: var(--font-terminal); cursor: pointer; }
.modal-actions button:first-child { border-color: var(--accent-wdr); color: var(--accent-wdr); }
.modal-hidden { display: none !important; }

.admin-inline-btn { display: none; background: #111; border: 1px solid #333; color: var(--accent-wdr); font-size: 0.65rem; padding: 4px 8px; font-family: var(--font-terminal); cursor: pointer; margin-top: 10px; }
.admin-inline-btn:hover { background: var(--accent-wdr); color: #000; }
.admin-mode-active .admin-inline-btn { display: inline-block; }
.admin-mode-active .editable-field { border: 1px dashed var(--accent-wdr); padding: 10px; background: #050505; cursor: text; user-select: text !important; }
.admin-action-bar { width: 100%; display: flex; justify-content: flex-start; }

#bootloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-absolute); z-index: 1000; display: flex; justify-content: center; align-items: center; transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); }
.boot-matrix { width: 90%; max-width: 450px; background-color: var(--bg-card); border: 1px solid #151515; padding: 1.5rem; box-shadow: 0 30px 60px rgba(0,0,0,0.9); }
.terminal-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #151515; padding-bottom: 0.75rem; margin-bottom: 1.25rem; color: var(--text-muted); font-size: 0.7rem; }
.status-indicator.online { width: 6px; height: 6px; background-color: var(--accent-wdr); border-radius: 50%; box-shadow: 0 0 8px var(--accent-wdr); }
.art-signal-wrapper { position: relative; width: 100%; max-width: 320px; margin: 0 auto 1.25rem auto; overflow: hidden; background: #000; border: 1px solid #111; }
.boot-logo-art { width: 100%; height: auto; display: block; animation: signalPulse 3s infinite ease-in-out; }
.terminal-body { margin-bottom: 1.5rem; }
.matrix-line { font-size: 0.7rem; color: #666; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.action-btn { background: transparent; border: 1px solid var(--accent-wdr); color: var(--accent-wdr); padding: 1rem; font-family: var(--font-terminal); font-weight: bold; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; width: 100%; letter-spacing: 1px; }
.action-btn:hover { background-color: var(--accent-wdr); color: #000; box-shadow: 0 0 15px rgba(223, 178, 53, 0.3); }

#site-wrapper { width: 100%; min-height: 100vh; position: relative; transition: opacity 0.4s ease; }
.system-hidden { opacity: 0; pointer-events: none; }
.view-layer { position: absolute; top: 0; left: 0; width: 100%; min-height: 100vh; transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s ease; overflow-y: auto; padding-bottom: 60px; }
.hidden-layer { opacity: 0; pointer-events: none; transform: scale(0.98); }
.active-layer { opacity: 1; pointer-events: all; transform: scale(1); }

.gateways-wrapper { display: flex; width: 100%; min-height: 100vh; }
.division-gate { flex: 1; position: relative; display: flex; align-items: flex-end; padding: 3rem; cursor: pointer; transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.division-gate:hover { flex: 1.1; }
.gate-ct { background: linear-gradient(180deg, #050505 30%, rgba(20, 10, 35, 0.9) 100%); border-right: 1px solid #111; }
.gate-fd { background: linear-gradient(180deg, #050505 30%, rgba(35, 10, 10, 0.9) 100%); }
.gate-core { position: relative; z-index: 5; }
.gate-serial { font-size: 0.7rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.gate-headline { font-size: 2.5rem; line-height: 1; margin-bottom: 0.25rem; }
.font-moody { font-family: var(--font-display-moody); color: #fff; text-shadow: 0 0 15px rgba(109, 74, 255, 0.3); }
.font-raw { font-family: var(--font-display-raw); text-transform: uppercase; letter-spacing: 0.5px; }
.gate-subtext { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 1.25rem; }
.gate-status-bar { font-size: 0.65rem; color: #fff; display: flex; align-items: center; gap: 6px; letter-spacing: 0.5px; }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; }
.gate-ct .pulse-dot { background-color: var(--accent-ct); box-shadow: 0 0 8px var(--accent-ct); }
.gate-fd .pulse-dot { background-color: var(--accent-fd); box-shadow: 0 0 8px var(--accent-fd); }

.room-nav { height: 60px; border-bottom: 1px solid #111; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; background-color: #050505; }
.nav-back-btn { background: transparent; border: none; color: var(--text-muted); font-family: var(--font-terminal); cursor: pointer; font-size: 0.75rem; }
.nav-back-btn:hover { color: var(--text-primary); }
.room-indicator { font-size: 0.7rem; color: var(--text-muted); }
.room-grid { padding: 3rem; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.hero-marquee h1 { font-size: 3.5rem; line-height: 0.9; margin-bottom: 1rem; }
#room-ct .hero-marquee h1 { font-family: var(--font-display-moody); }
#room-fd .hero-marquee h1 { font-family: var(--font-display-raw); text-transform: uppercase; }
.manifesto { color: #888; font-size: 0.85rem; line-height: 1.6; max-width: 420px; outline: none; transition: border 0.2s; }

.social-row { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; flex-wrap: wrap; }
.social-icon { font-size: 0.65rem; font-weight: bold; padding: 6px 10px; border: 1px solid #222; text-decoration: none; color: #888; transition: all 0.2s; }
.social-icon:hover { color: #fff; border-color: var(--accent-wdr); background: rgba(223,178,53,0.05); }

.content-panel { background-color: var(--bg-card); border: 1px solid #111; padding: 1.25rem; height: max-content; }
.panel-header { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1rem; border-bottom: 1px solid #111; padding-bottom: 0.4rem; letter-spacing: 1px; }
.media-deck-target { width: 100%; background: #020202; overflow: hidden; }
.media-deck-target iframe { width: 100% !important; display: block; }
.mock-player { border: 1px solid #151515; padding: 1rem; }
.track-info { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.75rem; }
.waveform-placeholder { height: 30px; background: repeating-linear-gradient(90deg, #151515, #151515 2px, transparent 2px, transparent 6px); }

.image-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 1rem; }
.gallery-block { position: relative; width: 100%; aspect-ratio: 1; border: 1px solid #111; overflow: hidden; background: #000; }
.gallery-block img { width: 100%; height: 100%; object-fit: cover; filter: contrast(110%) brightness(90%); transition: all 0.4s ease; animation: signalPulse 4s infinite ease-in-out; }
.gallery-block:hover img { transform: scale(1.03); filter: contrast(125%) brightness(110%); }
.admin-delete-tag { position: absolute; top: 5px; right: 5px; background: rgba(255,42,42,0.9); color: #fff; font-size: 0.6rem; padding: 2px 6px; cursor: pointer; z-index: 10; font-family: var(--font-terminal); font-weight: bold; }

.gig-list { list-style: none; }
.gig-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid #111; gap: 10px; }
.gig-date { color: var(--accent-fd); font-weight: bold; white-space: nowrap; }
.gig-venue { color: #aaa; flex-grow: 1; }
.gig-status { color: #555; white-space: nowrap; }
.delete-row-btn { background: transparent; border: none; color: #ff2a2a; font-family: var(--font-terminal); font-size: 0.7rem; cursor: pointer; display: none; }
.admin-mode-active .delete-row-btn { display: inline-block; }

/* STRICT MOBILE SCALING AND BREAKPOINTS */
@media (max-width: 768px) {
  body { overflow-y: auto; overflow-x: hidden; height: auto; }
  .boot-matrix.mobile-optimized { width: 92%; padding: 1.25rem; }
  .gateways-wrapper { flex-direction: column; min-height: 100vh; }
  .division-gate { padding: 3rem 1.5rem; min-height: 50vh; flex: none; }
  .division-gate:hover { flex: none; }
  .room-grid { grid-template-columns: 1fr; padding: 1.25rem; gap: 2rem; }
  .hero-marquee h1 { font-size: 2.3rem; }
  .image-showcase-grid { grid-template-columns: 1fr; }
}

@keyframes signalPulse {
  0% { filter: contrast(105%) brightness(95%); }
  50% { filter: contrast(120%) brightness(105%); }
  100% { filter: contrast(105%) brightness(95%); }
}