@import url('https://fonts.googleapis.com/css2?family=Bungee&family=JetBrains+Mono:wght@300;400;500;700;800&family=Press+Start+2P&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #081110;
  --bg-card: rgba(15, 31, 28, 0.94);
  --bg-inner: #0a1715;
  
  --fep-teal-light: #A5E5DC;
  --fep-teal: #68BDB2;
  --fep-teal-dark: #3F7C74;
  --fep-teal-dim: #21443f;
  
  --fep-screen: #C8F2EB;
  --fep-screen-glow: rgba(165, 229, 220, 0.35);
  
  --accent-gold: #FFD269;
  --accent-gold-bright: #FFE08F;
  --accent-coral: #FF7B7B;
  --accent-cyan: #5DE2E7;
  
  --text-main: #E8F8F5;
  --text-dim: #8BAFA9;
  --text-dark: #122421;
  --dead: #4A6B66;
  
  --border-faint: rgba(104, 189, 178, 0.2);
  --border-lit: rgba(104, 189, 178, 0.55);
  --border-gold: rgba(255, 210, 105, 0.45);
  
  --shadow-glow: 0 0 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(104, 189, 178, 0.18);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vh, 2rem);
}

/* Background Scene & Pixel Star Grid */
#sceneBg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 35%, #152c28 0%, #0a1413 70%, #050a09 100%);
  overflow: hidden;
}

#starsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
}

/* CRT Scanline & Grain Overlay */
#crtOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.7;
}

body.no-crt #crtOverlay {
  display: none;
}

/* ═══════════ UNIFIED CONSOLE MAIN WRAPPER ═══════════ */
.site-layout {
  width: min(1290px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 920px) minmax(300px, 350px);
  gap: 1rem;
  align-items: stretch;
}

.fep-console {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-lit);
  border-radius: 22px;
  padding: clamp(1.1rem, 2.2vh, 1.6rem) clamp(1.2rem, 2.5vw, 1.8rem) clamp(0.9rem, 1.8vh, 1.3rem);
  box-shadow: var(--shadow-glow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.8vh, 1.15rem);
}

/* Retro Corner Brackets */
.fep-console::before, .fep-console::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.fep-console::before {
  top: -2px; left: -2px;
  border-top: 3.5px solid var(--accent-gold);
  border-left: 3.5px solid var(--accent-gold);
  border-top-left-radius: 4px;
}
.fep-console::after {
  bottom: -2px; right: -2px;
  border-bottom: 3.5px solid var(--accent-gold);
  border-right: 3.5px solid var(--accent-gold);
  border-bottom-right-radius: 4px;
}

/* ═══════════ TOP MASTHEAD ═══════════ */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-faint);
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: var(--fep-teal);
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--text-dark);
  box-shadow: 0 0 12px rgba(104, 189, 178, 0.45);
}

.brand-text h1 {
  font-family: 'Bungee', cursive;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  line-height: 1;
  color: var(--fep-teal-light);
  letter-spacing: 0.05em;
}

.brand-text h1 span {
  color: var(--accent-gold);
}

.brand-text .sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.listener-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(8, 17, 16, 0.85);
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fep-teal-light);
}

.listener-pill .dot {
  width: 7px;
  height: 7px;
  background: #5DE2E7;
  border-radius: 50%;
  box-shadow: 0 0 7px #5DE2E7;
  animation: pulseDot 2s infinite ease-in-out;
}

.on-air-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(8, 17, 16, 0.85);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dead);
}

.on-air-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dead);
}

body[data-playing="1"] .on-air-pill {
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

body[data-playing="1"] .on-air-pill .dot {
  background: var(--accent-coral);
  box-shadow: 0 0 10px var(--accent-coral);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.action-btn {
  background: rgba(18, 36, 33, 0.85);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.action-btn:hover {
  border-color: var(--fep-teal);
  color: var(--fep-teal-light);
}

.action-btn.admin-active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 210, 105, 0.15);
}

.action-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ═══════════ CENTER MEDIA STAGE (FEP DJ + COMPACT VIDEO TV) ═══════════ */
.media-stage {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--bg-inner);
  border: 1px solid var(--border-faint);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
}

/* FEP Interactive DJ Character */
.fep-dj-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fep-character {
  width: clamp(140px, 18vh, 165px);
  height: clamp(140px, 18vh, 165px);
  position: relative;
  cursor: pointer;
  user-select: none;
  transform-origin: bottom center;
  transition: transform 0.15s ease;
}

body[data-playing="1"] .fep-character {
  animation: djBob 0.65s infinite alternate ease-in-out;
}

@keyframes djBob {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-6px) rotate(1.5deg); }
}

.fep-bubble {
  position: absolute;
  top: -18px;
  right: -24px;
  background: var(--fep-screen);
  color: var(--text-dark);
  border: 1.5px solid var(--fep-teal-dark);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  animation: popBubble 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.fep-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--fep-screen);
}

@keyframes popBubble {
  0% { transform: scale(0.5) translateY(6px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.fep-svg-body {
  width: 100%;
  height: 100%;
  display: block;
}

.headphones {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 88px;
  pointer-events: none;
  z-index: 4;
}

body[data-playing="1"] .headphones {
  animation: headphoneVibe 0.65s infinite alternate ease-in-out;
}

@keyframes headphoneVibe {
  0% { transform: translateX(-50%) rotate(-2deg); }
  100% { transform: translateX(-50%) rotate(2deg) scale(1.02); }
}

.fep-screen-face {
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  font-weight: bold;
  fill: #15322E;
  text-anchor: middle;
}

/* DJ Mixer Deck under FEP */
.dj-desk {
  width: 100%;
  max-width: 320px;
  margin-top: -6px;
  background: #112421;
  border: 1.5px solid var(--fep-teal-dark);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  z-index: 3;
}

.deck-platter {
  width: 46px;
  height: 46px;
  background: #091312;
  border-radius: 50%;
  border: 2px solid #1e3a35;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 88%;
  height: 88%;
  display: block;
}

body[data-playing="1"] .vinyl-disc.spinning {
  animation: spinVinyl 3.2s linear infinite;
}

body[data-playing="1"] .deck-right .vinyl-disc.spinning {
  animation: spinVinyl 3.6s linear infinite reverse;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mixer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 24px;
  width: 100%;
  padding: 2px;
  background: #081211;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
}

.eq-bar {
  flex: 1;
  max-width: 7px;
  background: var(--fep-teal-dim);
  border-radius: 1.5px;
  height: 15%;
}

body[data-playing="1"] .eq-bar:nth-child(1) { animation: eqBounce1 0.4s infinite alternate ease-in-out; }
body[data-playing="1"] .eq-bar:nth-child(2) { animation: eqBounce2 0.5s infinite alternate ease-in-out 0.1s; }
body[data-playing="1"] .eq-bar:nth-child(3) { animation: eqBounce3 0.45s infinite alternate ease-in-out 0.05s; }
body[data-playing="1"] .eq-bar:nth-child(4) { animation: eqBounce1 0.6s infinite alternate ease-in-out 0.2s; }
body[data-playing="1"] .eq-bar:nth-child(5) { animation: eqBounce2 0.38s infinite alternate ease-in-out 0.15s; }
body[data-playing="1"] .eq-bar:nth-child(6) { animation: eqBounce3 0.52s infinite alternate ease-in-out 0.08s; }

@keyframes eqBounce1 { 0% { height: 15%; background: var(--fep-teal-dim); } 100% { height: 90%; background: var(--accent-gold); } }
@keyframes eqBounce2 { 0% { height: 25%; background: var(--fep-teal); } 100% { height: 100%; background: var(--accent-coral); } }
@keyframes eqBounce3 { 0% { height: 10%; background: var(--fep-teal-dark); } 100% { height: 75%; background: var(--accent-cyan); } }

.crossfader-track {
  width: 65px;
  height: 4px;
  background: #081110;
  border: 1px solid var(--border-faint);
  border-radius: 2px;
  position: relative;
}

.crossfader-knob {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 12px;
  background: var(--accent-gold);
  border: 1px solid #000;
  border-radius: 2px;
}

/* Compact YouTube TV Screen */
.video-tv-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.video-tv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.video-tv-bar .yt-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ff6b6b;
  font-weight: 700;
}

#ytwrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  min-height: 180px;
  background: #000;
  border: 2px solid var(--fep-teal-dark);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

#ytwrap iframe, #ytplayer {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* ═══════════ TRACK INFO CARD ═══════════ */
.track-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-inner);
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.track-cover-badge {
  width: 50px;
  height: 50px;
  background: #152b27;
  border: 1.5px solid var(--border-lit);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.track-cover-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-info-body {
  flex: 1;
  min-width: 0;
}

.track-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-marquee {
  overflow: hidden;
  white-space: nowrap;
  height: 1.45rem;
  display: flex;
  align-items: center;
}

.track-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.track-marquee.scroll .track-title {
  padding-right: 3rem;
  animation: marqueeSlide 16s linear infinite;
}

@keyframes marqueeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.track-artist-line {
  font-size: 0.72rem;
  color: var(--fep-teal-light);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.track-artist-line .tag {
  background: rgba(104, 189, 178, 0.15);
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  font-size: 0.6rem;
  color: var(--accent-gold);
}

/* Timeline Progress Bar */
.timeline-wrap {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.time-text {
  font-size: 0.68rem;
  color: var(--text-dim);
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}

.progress-bar-container {
  flex: 1;
  height: 5px;
  background: #112421;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fep-teal), var(--accent-gold));
  border-radius: 3px;
  transition: width 0.2s linear;
}

/* ═══════════ PLAYER CONTROLS DECK ═══════════ */
.control-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.transport-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 36, 33, 0.9);
  border: 1.5px solid var(--border-lit);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-circle:hover {
  background: var(--fep-teal-dim);
  border-color: var(--fep-teal);
  color: var(--accent-gold);
}

.btn-circle.btn-play {
  width: 52px;
  height: 52px;
  background: var(--fep-teal);
  border: 2px solid var(--accent-gold);
  color: var(--text-dark);
  box-shadow: 0 0 16px rgba(104, 189, 178, 0.45);
}

.btn-admin-only {
  display: none !important;
}

body.is-admin .btn-admin-only {
  display: grid !important;
}

.live-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--accent-gold);
  background: rgba(255, 210, 105, 0.1);
  border: 1px solid rgba(255, 210, 105, 0.25);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
}

.live-stream-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-coral);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-coral);
  animation: pulseDot 1.5s infinite ease-in-out;
}

.btn-play svg {
  width: 22px;
  height: 22px;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(8, 17, 16, 0.8);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  flex: 0 1 220px;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: #18332f;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 1.5px solid var(--text-dark);
  cursor: pointer;
}

.vol-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fep-teal-light);
  min-width: 2.5ch;
  text-align: right;
}

.mode-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-btn {
  background: rgba(18, 36, 33, 0.8);
  border: 1px solid var(--border-faint);
  border-radius: 7px;
  color: var(--text-dim);
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: rgba(104, 189, 178, 0.18);
  border-color: var(--fep-teal);
  color: var(--accent-gold);
}

.mode-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ═══════════ COMPACT FOOTER ═══════════ */
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-faint);
  padding-top: 0.65rem;
}

.console-footer a {
  color: var(--fep-teal-light);
  text-decoration: none;
}

/* ═══════════ GATE & MODALS ═══════════ */
#gateOverlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background:
    radial-gradient(circle at 50% 22%, rgba(54, 122, 112, 0.22), transparent 38%),
    rgba(4, 10, 9, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#gateOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: min(860px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(145deg, rgba(15, 33, 30, 0.98), rgba(8, 20, 18, 0.98));
  border: 1px solid var(--border-lit);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7), 0 0 45px rgba(104, 189, 178, 0.16);
  position: relative;
}

.gate-card::before,
.gate-card::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--accent-gold);
  opacity: 0.75;
}

.gate-card::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.gate-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.gate-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--accent-gold);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  margin-bottom: 1.5rem;
}

.gate-kicker span {
  width: 42px;
  height: 1px;
  background: var(--border-gold);
}

.gate-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.gate-fep-icon {
  width: 88px;
  height: 88px;
  background: var(--fep-teal);
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 24px rgba(104, 189, 178, 0.32);
  flex-shrink: 0;
}

.gate-title {
  font-family: 'Bungee', cursive;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--fep-teal-light);
  margin-bottom: 0.45rem;
  letter-spacing: 0.025em;
}

.gate-sub {
  font-size: clamp(0.72rem, 1.5vw, 0.86rem);
  color: var(--text-dim);
  line-height: 1.6;
}

.gate-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.destination-card {
  min-height: 245px;
  border: 1px solid var(--border-faint);
  border-radius: 18px;
  padding: 1.35rem;
  background: rgba(7, 18, 16, 0.8);
  color: var(--text-main);
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.destination-card:hover,
.destination-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  background: rgba(16, 38, 34, 0.96);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 210, 105, 0.1);
  outline: none;
}

.destination-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.destination-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fep-teal);
  box-shadow: 0 0 8px var(--fep-teal);
  animation: pulseDot 1.7s infinite ease-in-out;
}

.destination-radio .destination-status i {
  background: var(--accent-coral);
  box-shadow: 0 0 8px var(--accent-coral);
}

.destination-arcade .destination-status i {
  background: #bf8cff;
  box-shadow: 0 0 8px #bf8cff;
}

.destination-yusuf .destination-status i {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.destination-arcade .destination-icon {
  color: #d7b5ff;
  border-color: rgba(191, 140, 255, 0.45);
  background: rgba(191, 140, 255, 0.08);
}

.destination-yusuf .destination-icon {
  color: var(--text-dark);
  background: linear-gradient(145deg, var(--accent-gold), #e7ad43);
  border-color: var(--accent-gold);
  font-size: 0.78rem;
}

.destination-icon {
  width: 52px;
  height: 52px;
  margin: 1.2rem 0 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-lit);
  border-radius: 14px;
  color: var(--accent-gold);
  background: rgba(104, 189, 178, 0.1);
  font-family: 'Bungee', cursive;
  font-size: 1.45rem;
}

.destination-card strong {
  font-family: 'Bungee', cursive;
  font-size: 1rem;
  color: var(--fep-teal-light);
  letter-spacing: 0.06em;
}

.destination-card small {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.55;
}

.destination-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.destination-cta b {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.destination-card:hover .destination-cta b {
  transform: translateX(4px);
}

.gate-profile {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-faint);
  border-radius: 16px;
  background: rgba(6, 16, 14, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.profile-monogram {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-gold);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--fep-teal), var(--fep-teal-dark));
  color: var(--text-dark);
  font-family: 'Bungee', cursive;
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(104, 189, 178, 0.2);
}

.profile-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-label {
  color: var(--accent-gold);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.profile-copy strong {
  color: var(--fep-teal-light);
  font-family: 'Bungee', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.profile-copy small {
  color: var(--text-dim);
  font-size: 0.55rem;
  line-height: 1.5;
  margin-top: 0.18rem;
}

.profile-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.profile-links a {
  min-height: 30px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.profile-links a span {
  color: var(--accent-gold);
  font-weight: 800;
  letter-spacing: 0;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  color: var(--fep-teal-light);
  border-color: var(--accent-gold);
  background: rgba(255, 210, 105, 0.07);
  transform: translateY(-2px);
  outline: none;
}

.gate-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  color: var(--dead);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
}

.gate-footer-line {
  height: 1px;
  background: var(--border-faint);
  flex: 1;
}

@media (max-width: 640px) {
  #gateOverlay {
    padding: 0.75rem;
  }

  .gate-card {
    border-radius: 18px;
    padding: 1.2rem;
  }

  .gate-kicker {
    margin-bottom: 1rem;
  }

  .gate-hero {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .gate-fep-icon {
    width: 68px;
    height: 68px;
    border-radius: 17px;
  }

  .gate-fep-icon svg {
    width: 54px;
    height: 54px;
  }

  .gate-destinations {
    grid-template-columns: 1fr;
  }

  .destination-card {
    min-height: 170px;
    padding: 1rem;
  }

  .destination-icon {
    width: 42px;
    height: 42px;
    margin: 0.75rem 0;
  }

  .gate-profile {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .profile-links {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-links a {
    flex: 1 1 calc(33.333% - 0.42rem);
    justify-content: center;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 10, 9, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.modal-window {
  width: min(580px, 100%);
  max-height: 85vh;
  background: #0f211e;
  border: 1.5px solid var(--border-lit);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.modal-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a1715;
}

.modal-header h3 {
  font-family: 'Bungee', cursive;
  font-size: 0.95rem;
  color: var(--fep-teal-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.2rem;
  overflow-y: auto;
  flex: 1;
}

.admin-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #091715;
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
}

.admin-badge-bar.unlocked {
  border-color: var(--accent-gold);
  background: rgba(255, 210, 105, 0.1);
  color: var(--accent-gold);
}

.admin-action-link {
  color: var(--fep-teal-light);
  text-decoration: underline;
  cursor: pointer;
}

.admin-panel-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tab-btn {
  flex: 1;
  background: #091715;
  border: 1px solid var(--border-faint);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 0.45rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--fep-teal-dim);
  border-color: var(--fep-teal);
  color: var(--accent-gold);
}

.add-song-box {
  background: #142c27;
  border: 1px solid var(--border-faint);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.yt-input {
  flex: 1;
  background: #091413;
  border: 1px solid var(--border-faint);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
}

.add-btn {
  background: var(--fep-teal);
  color: var(--text-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.76rem;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.add-btn.btn-gold {
  background: var(--accent-gold);
}

.feature-modal-intro {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.feature-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-form .gate-btn {
  margin-top: 0.25rem;
  width: 100%;
}

.feature-hint {
  color: var(--text-dim);
  font-size: 0.62rem;
  line-height: 1.45;
  margin-top: 0.75rem;
  text-align: center;
}

.request-queue-panel {
  border: 1px solid rgba(255, 210, 105, 0.28);
  background: rgba(255, 210, 105, 0.06);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.9rem;
}

.request-queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.request-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.request-empty,
.chat-empty {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.8rem;
}

.request-queue-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(8, 17, 16, 0.72);
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.request-queue-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.request-queue-info strong {
  color: var(--text-main);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-queue-info span,
.request-queue-info small {
  color: var(--text-dim);
  font-size: 0.62rem;
}

.request-queue-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.request-queue-actions a {
  color: var(--fep-teal-light);
  font-size: 0.6rem;
  text-decoration: none;
}

.request-queue-actions button {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
}

.request-approve {
  color: var(--fep-teal-light);
  border: 1px solid var(--fep-teal);
  background: rgba(104, 189, 178, 0.15);
}

.request-reject {
  color: var(--accent-coral);
  border: 1px solid rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.1);
}

.chat-panel {
  min-width: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border-lit);
  border-radius: 18px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chat-panel-header {
  flex: 0 0 auto;
  padding: 1rem 1rem 0.85rem;
  background: #0a1715;
  border-bottom: 1px solid var(--border-faint);
}

.chat-panel-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.chat-panel-header h2 {
  color: var(--fep-teal-light);
  font-family: 'Bungee', cursive;
  font-size: 0.82rem;
  line-height: 1.3;
}

.chat-panel-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-gold);
  font-size: 0.56rem;
  white-space: nowrap;
}

.chat-panel-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 7px var(--accent-cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

.chat-panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
}

.chat-messages {
  flex: 1;
  min-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.2rem 0.25rem 0.75rem;
}

.chat-message {
  background: rgba(8, 17, 16, 0.72);
  border: 1px solid var(--border-faint);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
}

.chat-message-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.chat-message-head strong {
  color: var(--accent-gold);
  font-size: 0.7rem;
}

.chat-message-head span {
  color: var(--text-dim);
  font-size: 0.58rem;
}

.chat-message-head button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-coral);
  cursor: pointer;
  font-size: 1rem;
}

.chat-message p {
  color: var(--text-main);
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-faint);
}

.chat-nickname {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .request-queue-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-queue-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 1050px) {
  body {
    justify-content: flex-start;
  }

  .site-layout {
    width: min(920px, 95vw);
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-panel {
    min-height: 480px;
    height: min(560px, 75vh);
  }
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(8, 17, 16, 0.6);
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.song-item:hover {
  background: rgba(104, 189, 178, 0.12);
  border-color: var(--fep-teal);
}

.song-item.active {
  border-color: var(--accent-gold);
  background: rgba(255, 210, 105, 0.12);
}

.song-item-info {
  flex: 1;
  min-width: 0;
}

.song-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-item.active .song-item-title {
  color: var(--accent-gold);
}

.song-item-artist {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.song-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.song-item-badge {
  font-size: 0.62rem;
  background: #152f2a;
  color: var(--fep-teal-light);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
}

.delete-song-btn {
  background: none;
  border: 1px solid rgba(255, 123, 123, 0.3);
  border-radius: 5px;
  color: var(--accent-coral);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  display: none;
  align-items: center;
  justify-content: center;
}

body.is-admin .delete-song-btn {
  display: inline-flex;
}

.delete-song-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.admin-login-box {
  text-align: center;
  padding: 1rem;
}

.admin-login-box p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.admin-pw-input {
  width: 100%;
  max-width: 300px;
  background: #091413;
  border: 1.5px solid var(--border-lit);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--accent-gold);
  font-family: inherit;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.25em;
  margin-bottom: 1.2rem;
  outline: none;
}

#toastBox {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: #112924;
  border: 1px solid var(--fep-teal);
  color: var(--text-main);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.76rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.55);
  animation: toastFade 3s ease forwards;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(8px); }
  15%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ═══════════ RESPONSIVE MOBILE ═══════════ */
@media (max-width: 650px) {
  .media-stage {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .control-deck {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  
  .transport-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .volume-group {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .control-deck > .live-stream-badge {
    align-self: center;
  }
  
  .mode-toggles {
    justify-content: center;
  }
}
