/* ==========================================================================
   AROCK SPLIT-SCREEN ARCHITECTURAL MENU & DARKROOM STRUCTURAL GRID SYSTEM
   Layout: Architectural Navigation Drawer on LEFT (38%) · Live Visual Stage on RIGHT (62%)
   Zero Text Kanji (Image Only) · Zero Waveforms · Single-Line Buttons
   ========================================================================== */

:root {
  --arock-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --arock-bg: #070708;
  --arock-surface: #0D0D0F;
  --arock-border: rgba(255, 255, 255, 0.12);
  --arock-accent: #FFFFFF;
  --arock-text: #F5F5F7;
  --arock-muted: rgba(245, 245, 247, 0.45);
}

/* Backdrop behind scaled-down live viewport */
.arock-system-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 72% 50%, #131316 0%, #070708 100%);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--arock-ease), visibility 0.55s;
}

/* Structural grid lines on the backdrop (Darkroom Engineering style) */
.arock-system-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Right-Stage Visual Preview Card (62% right area on desktop when menu open) */
.arock-live-preview-card {
  position: fixed;
  top: 50%;
  left: 69%;
  width: 56vw;
  height: 78vh;
  transform: translate(-50%, -50%) scale(1.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #0B0B0D;
  z-index: 99992;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    transform 0.65s var(--arock-ease),
    opacity 0.5s var(--arock-ease),
    border-color 0.25s ease,
    visibility 0.65s;
}

.arock-live-preview-card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1.015) !important;
}

.arock-preview-bg-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  filter: contrast(1.08) saturate(1.12);
  transition:
    transform 0.8s var(--arock-ease),
    opacity 0.35s ease,
    background-image 0.35s ease;
}

.arock-live-preview-card:hover .arock-preview-bg-visual {
  transform: scale(1.04);
  opacity: 0.62;
}

/* Stroboscopic AROCK echo frame lines inside preview card */
.arock-preview-echo-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.arock-preview-top-hud,
.arock-preview-bottom-hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arock-text);
}

.arock-preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  white-space: nowrap !important;
}

.arock-preview-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.arock-preview-center-monument {
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.arock-preview-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.arock-preview-title {
  font-family: 'Power Grotesk', 'Base Neue Expanded', 'Syne', 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5.5vw, 88px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  transition: transform 0.3s var(--arock-ease);
}

.arock-preview-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap !important;
}

/* Left 38% Architectural Menu Drawer */
.arock-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 38vw;
  min-width: 420px;
  max-width: 580px;
  height: 100dvh;
  background: var(--arock-bg);
  border-right: 1px solid var(--arock-border);
  border-left: none;
  z-index: 99995;
  transform: translate3d(-102%, 0, 0);
  transition: transform 0.6s var(--arock-ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 28px;
  box-sizing: border-box;
  color: var(--arock-text);
  overflow-y: auto;
}

/* Open State */
html.arock-menu-is-open,
body.arock-menu-is-open {
  overflow: hidden !important;
}

body.arock-menu-is-open .arock-system-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.arock-menu-is-open .arock-live-preview-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.arock-menu-is-open .arock-menu-drawer {
  transform: translate3d(0, 0, 0);
}

/* Drawer Top Bar */
.arock-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--arock-border);
  position: relative;
}

/* Darkroom + Crosshair at corner */
.arock-drawer-top::after {
  content: '+';
  position: absolute;
  bottom: -8px;
  right: 0;
  font-family: monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.arock-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
}

.arock-drawer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(1.15);
}

.arock-drawer-brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arock-drawer-close-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.arock-drawer-close-btn:hover {
  background: #FFFFFF;
  color: #000000;
}

/* Stacked Monumental Navigation List */
.arock-drawer-nav {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  padding: 10px 0;
}

/* AROCK Sibling Row Dimming on Hover */
.arock-drawer-nav:hover .arock-nav-row {
  opacity: 0.28;
}

.arock-drawer-nav .arock-nav-row:hover {
  opacity: 1 !important;
}

.arock-nav-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--arock-text);
  transition: opacity 0.28s ease, transform 0.28s var(--arock-ease), border-color 0.28s ease;
}

.arock-nav-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arock-nav-row:hover {
  transform: translateX(8px);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.arock-nav-idx {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--arock-muted);
  font-variant-numeric: tabular-nums;
}

.arock-nav-title {
  font-family: 'Power Grotesk', 'Base Neue Expanded', 'Syne', 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.05vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
}

.arock-nav-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arock-muted);
  white-space: nowrap !important;
}

.arock-nav-row.is-current .arock-nav-idx {
  color: #FFFFFF;
}

.arock-nav-row.is-current .arock-nav-meta {
  color: #FFFFFF;
}

/* Teenage Engineering Studio Monitor Module inside Drawer */
.arock-te-monitor {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arock-te-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.arock-te-led {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arock-te-led i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.arock-te-monitor.is-playing .arock-te-led i {
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.arock-te-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arock-te-track-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arock-te-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.arock-te-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 5px;
  padding: 4px 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.arock-te-btn:hover {
  background: #FFFFFF;
  color: #000000;
}

.arock-te-bar-bg {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.arock-te-bar-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
}

/* Quick Studio Actions in Drawer */
.arock-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.arock-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap !important;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.arock-action-pill.primary {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}

.arock-action-pill.primary:hover {
  background: #E5E5E5;
  transform: translateY(-1px);
}

.arock-action-pill.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.arock-action-pill.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Drawer Telemetry Footer */
.arock-drawer-footer {
  padding-top: 12px;
  border-top: 1px solid var(--arock-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arock-muted);
  font-variant-numeric: tabular-nums;
}

.arock-drawer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arock-drawer-socials a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.arock-drawer-socials a:hover {
  color: #FFFFFF;
}

/* Floating / Injected Header Trigger Button (for pages without a dedicated MENU button) */
.arock-injected-menu-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap !important;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.arock-injected-menu-btn:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.arock-menu-dots {
  display: inline-grid;
  grid-template-columns: repeat(2, 3px);
  gap: 2.5px;
}

.arock-menu-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

/* Darkroom Engineering Section Crosshair Accents */
.darkroom-crosshair-section {
  position: relative;
}

.darkroom-crosshair-mark {
  position: absolute;
  top: -7px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 5;
}

.darkroom-crosshair-mark.left {
  left: 12px;
}

.darkroom-crosshair-mark.right {
  right: 12px;
}

/* Responsive Mobile Drawer */
@media (max-width: 960px) {
  .arock-live-preview-card {
    display: none !important;
  }
  .arock-menu-drawer {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    padding: 18px 18px 24px 18px;
    border-right: none;
  }
  .arock-nav-title {
    font-size: clamp(20px, 5.8vw, 28px);
  }
}

/* ==========================================================================
   GLOBAL TEENAGE ENGINEERING HARDWARE TRANSPORT BAR (#globalTeDock)
   ========================================================================== */
#globalTeDock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(740px, calc(100vw - 28px));
  background: rgba(13, 13, 15, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 16px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

#globalTeDock.is-visible {
  transform: translateX(-50%) translateY(0);
}

.gtd-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gtd-track-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.gtd-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.gtd-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gtd-led-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.gtd-led-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  display: inline-block;
}

.gtd-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtd-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gtd-switch-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.gtd-switch-btn:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.gtd-switch-btn.primary-play {
  background: #FFFFFF;
  color: #070708;
  border-color: #FFFFFF;
}

.gtd-switch-btn.primary-play:hover {
  background: #E4E4E7;
}

.gtd-timecode {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  min-width: 78px;
  text-align: right;
}

.gtd-scrub-rail {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gtd-scrub-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  transition: width 0.1s linear;
}

/* In-Place Release Play Overlay on Cards */
.release-card-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
  transition: background 0.25s ease;
  z-index: 4;
}

.release-card-link:hover .release-card-play-overlay,
.release-card-link.is-playing-card .release-card-play-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88) 100%);
}

.release-inline-play-btn {
  appearance: none;
  pointer-events: auto;
  background: rgba(15, 16, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.release-inline-play-btn:hover {
  transform: scale(1.06);
  background: #FFFFFF;
  color: #000000;
}

.release-card-link.is-playing-card .release-inline-play-btn {
  background: #FFFFFF;
  color: #000000;
}

@media (max-width: 640px) {
  .gtd-timecode {
    display: none;
  }
  .release-card-play-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.78) 100%);
  }
}

