:root {
  color-scheme: dark;
  --black: #000000;
  --white: #ffffff;
  --screen: #11100d;
  --panel-dark: #1b1b1b;
  --muted: #737373;
  --line: #3a4350;
  --blue: #0166ff;
  --link: #0000ee;
  --red: #fe3824;
  --serif: "Times New Roman", Times, serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
}

[hidden] {
  display: none !important;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  gap: 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 11px;
  transition: opacity 240ms steps(3, end), visibility 240ms steps(3, end);
}

.loader-stage {
  display: grid;
  place-items: center;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.loader-logo {
  width: min(220px, 44vw);
  transform-style: preserve-3d;
  animation: logo-spin 2600ms cubic-bezier(0.55, 0.06, 0.45, 0.94) infinite;
  filter: drop-shadow(3px 0 0 var(--blue)) drop-shadow(-3px 0 0 var(--red));
}

.site-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes logo-spin {
  0% {
    transform: rotateY(0deg) rotateX(9deg) scale(1);
  }

  25% {
    transform: rotateY(90deg) rotateX(-6deg) scale(0.9);
  }

  50% {
    transform: rotateY(180deg) rotateX(9deg) scale(1);
  }

  75% {
    transform: rotateY(270deg) rotateX(-6deg) scale(0.9);
  }

  100% {
    transform: rotateY(360deg) rotateX(9deg) scale(1);
  }
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-field,
.music-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.static-field {
  z-index: 0;
  opacity: 0.72;
}

.music-backdrop {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.9) brightness(0.44);
  mix-blend-mode: screen;
  transition: opacity 120ms steps(2, end);
}

.music-backdrop.is-visible {
  opacity: 0.28;
}

.crt {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(12px, 2vw, 26px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 50%, transparent 50%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0.95) 100%);
  background-size: 2px 100%, auto;
}

.tv-set {
  display: grid;
  width: min(1180px, 100%);
  justify-items: center;
  perspective: 1600px;
  animation: set-drop 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes set-drop {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(6deg) scale(0.96);
  }
}

.tv-body {
  position: relative;
  display: grid;
  width: 100%;
  padding: clamp(16px, 2.4vw, 34px) clamp(16px, 2.4vw, 34px) clamp(52px, 6vw, 82px);
  border-radius: clamp(22px, 3vw, 42px) clamp(22px, 3vw, 42px) clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 12%),
    linear-gradient(180deg, #6f6f5c 0%, #55554a 46%, #3a3a34 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 12px rgba(0, 0, 0, 0.6),
    0 32px 60px rgba(0, 0, 0, 0.75);
}

.tube {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: clamp(10px, 1.4vw, 20px);
  border-radius: clamp(30px, 4vw, 56px);
  background: linear-gradient(160deg, #1c1c18, #050505 60%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.9),
    inset 0 0 26px rgba(0, 0, 0, 0.95),
    0 0 0 clamp(6px, 0.9vw, 12px) #2b2b26;
}

.tube-glass {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 22% / 16%;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(120, 255, 190, 0.07), transparent 62%),
    var(--screen);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.9),
    inset 0 0 120px rgba(0, 0, 0, 0.65);
}

.tube-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.3) 50%),
    linear-gradient(90deg, rgba(255, 0, 60, 0.05), rgba(0, 255, 120, 0.04), rgba(40, 90, 255, 0.05));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
}

.tube-glass::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 6;
  background: linear-gradient(102deg, transparent 42%, rgba(255, 255, 255, 0.11) 50%, transparent 58%);
  pointer-events: none;
  animation: glass-glare 9s ease-in-out infinite;
}

@keyframes glass-glare {
  0%, 100% {
    transform: translateX(-14%);
  }

  50% {
    transform: translateX(14%);
  }
}

.tube-flash {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: var(--white);
  pointer-events: none;
  animation: tube-power 760ms steps(8, end) both;
}

@keyframes tube-power {
  0% {
    clip-path: inset(49% 0 49% 0);
    opacity: 1;
  }

  55% {
    clip-path: inset(0 0 0 0);
    opacity: 0.55;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

.tv-controls {
  position: absolute;
  right: clamp(20px, 3vw, 42px);
  bottom: clamp(14px, 1.8vw, 26px);
  left: clamp(20px, 3vw, 42px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.tv-brand {
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--pixel);
  font-size: clamp(7px, 0.85vw, 10px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.tv-grille {
  flex: 1;
  height: clamp(14px, 1.8vw, 22px);
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0 2px,
    rgba(255, 255, 255, 0.08) 2px 5px
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.65);
}

.tv-knobs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-knob {
  display: block;
  width: clamp(20px, 2.4vw, 30px);
  height: clamp(20px, 2.4vw, 30px);
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, rgba(255, 255, 255, 0.35), transparent 30%, rgba(0, 0, 0, 0.5) 70%),
    radial-gradient(circle at 34% 30%, #dad6c8, #55534a 70%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tv-knob.small {
  width: clamp(14px, 1.7vw, 21px);
  height: clamp(14px, 1.7vw, 21px);
}

.tv-led {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4b2f;
  box-shadow: 0 0 8px #ff4b2f, 0 0 20px rgba(255, 75, 47, 0.6);
  animation: led-pulse 2.6s ease-in-out infinite;
}

@keyframes led-pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 4px #ff4b2f;
  }
}

.tv-led.is-offline {
  background: #6b5a1f;
  box-shadow: none;
  animation: none;
}

.tv-stand {
  display: grid;
  justify-items: center;
}

.tv-neck {
  width: clamp(90px, 12vw, 150px);
  height: clamp(14px, 1.8vw, 24px);
  background: linear-gradient(180deg, #4b4b42, #26261f);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.tv-foot {
  width: clamp(170px, 24vw, 300px);
  height: clamp(9px, 1.2vw, 15px);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #3c3c34, #16160f);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8);
}

.broadcast {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 1.8vh, 22px);
  width: min(760px, 86%);
  min-height: min(430px, 62%);
  padding: clamp(10px, 1.6vw, 18px);
  color: #d8ffb8;
  text-shadow: 0 0 8px rgba(122, 255, 106, 0.5);
  animation: broadcast-in 620ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes broadcast-in {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(6px);
  }
}

.broadcast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(146, 255, 128, 0.28);
}

.broadcast-ch,
.broadcast-live {
  font-family: var(--pixel);
  font-size: clamp(7px, 0.85vw, 10px);
  letter-spacing: 1px;
  color: rgba(216, 255, 184, 0.72);
}

.broadcast-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff6a4d;
  text-shadow: 0 0 8px rgba(255, 106, 77, 0.6);
}

.broadcast-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b1f;
  box-shadow: 0 0 8px #ff3b1f;
  animation: live-blink 1.8s steps(1, end) infinite;
}

@keyframes live-blink {
  50% {
    opacity: 0.15;
  }
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  align-content: center;
}

.channel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  min-width: 0;
  padding: clamp(11px, 1.6vw, 19px) clamp(12px, 1.8vw, 20px);
  overflow: hidden;
  border: 1px solid rgba(146, 255, 128, 0.3);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(122, 255, 106, 0.09), rgba(122, 255, 106, 0.02));
  color: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: channel-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.channel::after {
  content: "";
  position: absolute;
  inset: 3px 3px auto auto;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(190, 255, 170, 0.5);
  border-right: 1px solid rgba(190, 255, 170, 0.5);
}

.channel:nth-child(1) { animation-delay: 520ms; }
.channel:nth-child(2) { animation-delay: 590ms; }
.channel:nth-child(3) { animation-delay: 660ms; }
.channel:nth-child(4) { animation-delay: 730ms; }

@keyframes channel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.channel-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 35%,
    rgba(200, 255, 180, 0.16) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.channel:hover,
.channel:focus-visible {
  outline: none;
  border-color: rgba(190, 255, 170, 0.9);
  background: linear-gradient(180deg, rgba(122, 255, 106, 0.2), rgba(122, 255, 106, 0.06));
  transform: translateY(-2px);
}

.channel:hover .channel-sweep,
.channel:focus-visible .channel-sweep {
  transform: translateX(120%);
}

.channel:active {
  transform: translateY(1px);
}

.channel-glyph {
  position: relative;
  flex: none;
  width: clamp(26px, 3vw, 34px);
  height: clamp(26px, 3vw, 34px);
  border: 1px solid rgba(146, 255, 128, 0.45);
  border-radius: 2px;
  background: rgba(6, 22, 8, 0.55);
  box-shadow: inset 0 0 10px rgba(122, 255, 106, 0.16);
}

.channel-glyph::before,
.channel-glyph::after {
  content: "";
  position: absolute;
  background: rgba(174, 255, 156, 0.92);
}

.glyph-status::before {
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(122, 255, 106, 0.9);
}

.glyph-status::after {
  inset: 50% auto auto 50%;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(174, 255, 156, 0.6);
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
}

.channel:hover .glyph-status::after {
  animation: glyph-ping 1.4s ease-out infinite;
}

@keyframes glyph-ping {
  from { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.glyph-work::before {
  inset: auto 5px 6px 5px;
  height: 6px;
  clip-path: polygon(0 100%, 26% 34%, 48% 100%, 66% 12%, 100% 100%);
}

.glyph-work::after {
  inset: 6px 5px auto 5px;
  height: 1px;
  opacity: 0.45;
}

.channel:hover .glyph-work::before {
  animation: glyph-rise 1.6s ease-in-out infinite alternate;
}

@keyframes glyph-rise {
  to { height: 13px; }
}

.glyph-files::before {
  inset: 6px 6px 6px 6px;
  background: repeating-linear-gradient(
    180deg,
    rgba(174, 255, 156, 0.92) 0 2px,
    transparent 2px 5px
  );
}

.glyph-files::after {
  inset: 6px 6px auto 6px;
  height: 2px;
  box-shadow: 0 0 6px rgba(122, 255, 106, 0.8);
}

.channel:hover .glyph-files::after {
  animation: glyph-scan 1.5s linear infinite;
}

@keyframes glyph-scan {
  to { transform: translateY(13px); }
}

.glyph-contact::before {
  inset: 8px 5px 8px 5px;
  border: 1px solid rgba(174, 255, 156, 0.9);
  background: none;
}

.glyph-contact::after {
  inset: 8px 5px auto 5px;
  height: 8px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  opacity: 0.85;
}

.channel:hover .glyph-contact::after {
  animation: glyph-blink 1.2s steps(2, end) infinite;
}

@keyframes glyph-blink {
  50% { opacity: 0.2; }
}

.channel-name {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.channel-name strong {
  font-family: var(--pixel);
  font-size: clamp(10px, 1.3vw, 15px);
  line-height: 1.3;
}

.channel-name em {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(10px, 1.15vw, 13px);
  letter-spacing: 0.4px;
  color: rgba(216, 255, 184, 0.58);
}

.channel-lock {
  position: absolute;
  right: clamp(12px, 1.8vw, 20px);
  bottom: clamp(8px, 1.1vw, 12px);
  font-family: var(--pixel);
  font-size: clamp(6px, 0.8vw, 8px);
  letter-spacing: 1px;
  color: #ff6a4d;
  opacity: 0;
}

.channel.is-locked {
  border-color: rgba(255, 106, 77, 0.5);
  background: linear-gradient(180deg, rgba(255, 106, 77, 0.12), rgba(255, 106, 77, 0.03));
  color: rgba(255, 178, 160, 0.85);
  cursor: not-allowed;
}

.channel.is-locked::after {
  border-color: rgba(255, 138, 112, 0.6);
}

.channel.is-locked .channel-glyph {
  border-color: rgba(255, 106, 77, 0.5);
  box-shadow: inset 0 0 10px rgba(255, 106, 77, 0.16);
}

.channel.is-locked .channel-glyph::before,
.channel.is-locked .channel-glyph::after {
  background: rgba(255, 168, 148, 0.9);
}

.channel.is-locked .channel-name em {
  color: rgba(255, 178, 160, 0.6);
}

.channel.is-locked:hover,
.channel.is-locked:focus-visible {
  transform: none;
  border-color: rgba(255, 106, 77, 0.7);
  background: linear-gradient(180deg, rgba(255, 106, 77, 0.18), rgba(255, 106, 77, 0.05));
}

.channel.is-locked:hover .channel-sweep {
  transform: translateX(-120%);
}

.channel.is-locked .channel-lock {
  opacity: 1;
}

.broadcast-ticker {
  margin: 0;
  min-height: 1.2em;
  font-family: var(--pixel);
  font-size: clamp(7px, 0.85vw, 9px);
  letter-spacing: 1px;
  color: #ff8a70;
  opacity: 0;
  transition: opacity 220ms ease;
}

.broadcast-ticker.is-visible {
  opacity: 1;
}

.tube-logo-watermark {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  width: clamp(68px, 10vw, 132px);
  opacity: 0.22;
  filter: grayscale(1) brightness(1.8);
  pointer-events: none;
}

h1,
h2,
h3,
.set-footer,
.modal-close,
.status-dot,
output {
  font-family: var(--pixel);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 26px);
  line-height: 1;
}

.set-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: clamp(10px, 1.6vh, 20px);
  font-size: clamp(7px, 0.9vw, 10px);
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.58);
}

.set-footer-text {
  color: inherit;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-key {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--pixel);
  font-size: inherit;
  letter-spacing: 1px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-key:hover,
.footer-key:focus-visible {
  outline: none;
  border-color: rgba(122, 255, 106, 0.8);
  background: rgba(122, 255, 106, 0.14);
  color: #d8ffb8;
}

.footer-key.is-locked {
  border-color: rgba(255, 106, 77, 0.55);
  background: rgba(255, 106, 77, 0.12);
  color: rgba(255, 178, 160, 0.9);
  cursor: not-allowed;
}

.player-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%),
    rgba(8, 8, 10, 0.9);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(9px);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 260ms ease;
  animation: dock-in 700ms 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.player-dock:hover,
.player-dock:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(150, 190, 255, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(150, 190, 255, 0.35);
}

.player-dock.is-locked {
  border-color: rgba(255, 106, 77, 0.5);
  color: rgba(255, 178, 160, 0.9);
  cursor: not-allowed;
}

.player-dock.is-locked:hover,
.player-dock.is-locked:focus-visible {
  transform: none;
  border-color: rgba(255, 106, 77, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

.dock-cassette {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  width: 46px;
  height: 30px;
  padding: 0 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #2a2a30, #101014);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dock-reel {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.player-dock.is-playing .dock-reel {
  animation: reel-spin 1.4s linear infinite;
}

@keyframes reel-spin {
  to {
    transform: rotate(360deg);
  }
}

.dock-tape {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.dock-meta {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.dock-label {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dock-track {
  max-width: 148px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.dock-eq i {
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.player-dock.is-playing .dock-eq i {
  background: #8fd0ff;
  animation: eq-bounce 780ms ease-in-out infinite alternate;
}

.player-dock.is-playing .dock-eq i:nth-child(2) { animation-delay: 130ms; }
.player-dock.is-playing .dock-eq i:nth-child(3) { animation-delay: 260ms; }
.player-dock.is-playing .dock-eq i:nth-child(4) { animation-delay: 390ms; }

@keyframes eq-bounce {
  from {
    height: 4px;
  }

  to {
    height: 18px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: grid;
  animation: modal-fade 200ms ease both;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
}

.modal-box {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(540px, 100%);
  max-height: calc(100svh - 40px);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #201f1d, #121110);
  color: var(--white);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 32px 70px rgba(0, 0, 0, 0.8);
}

.modal.is-open .modal-box {
  animation: modal-rise 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

.modal-box.wide {
  width: min(760px, 100%);
}

.modal-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 2vw, 22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #2c2b28, #1c1b19);
}

.modal-chrome h2 {
  flex: 1;
  min-width: 0;
  color: #d8ffb8;
  text-shadow: 0 0 10px rgba(122, 255, 106, 0.35);
}

.modal-chrome-dots {
  display: inline-flex;
  gap: 6px;
}

.modal-chrome-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.modal-chrome-dots i:first-child {
  background: #fe3824;
}

.modal-chrome-dots i:nth-child(2) {
  background: #eb6917;
}

.modal-chrome-dots i:last-child {
  background: #7aff6a;
}

.modal-body {
  display: grid;
  gap: 20px;
  align-content: start;
  overflow: auto;
  padding: clamp(18px, 2.4vw, 30px);
}

.modal-close {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: var(--white);
  font-size: clamp(7px, 0.9vw, 9px);
  letter-spacing: 1px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  outline: none;
  border-color: var(--red);
  background: rgba(254, 56, 36, 0.16);
  color: #ffb0a5;
}

h2 {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 18px);
  line-height: 1.35;
}

.modal p {
  margin: 0;
  color: var(--white);
}

.contact-intro {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  line-height: 1.6;
}

.discord-card {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  margin-inline: auto;
  text-align: left;
}

.discord-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
}

.discord-avatar-wrap {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
}

.discord-avatar {
  width: 84px;
  height: 84px;
  margin: 6px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--black);
}

.discord-decoration {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  pointer-events: none;
}

.discord-presence-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--panel-dark);
  border-radius: 50%;
  background: var(--muted);
}

.discord-presence-dot[data-state="online"] {
  background: #23a55a;
}

.discord-presence-dot[data-state="idle"] {
  background: #f0b232;
}

.discord-presence-dot[data-state="dnd"] {
  background: #f23f43;
}

.discord-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.discord-identity strong {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.1;
}

.discord-tag {
  color: var(--muted);
  font-size: 15px;
}

.discord-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.discord-badges li {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.discord-custom {
  color: var(--white);
  font-size: 15px;
  font-style: italic;
}

.discord-devices,
.discord-note {
  color: var(--muted);
  font-size: 15px;
}

.discord-activities {
  display: grid;
  gap: 14px;
}

.discord-activities:empty {
  display: none;
}

.activity-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
}

.activity-card h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
}

.activity-body {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
}

.activity-body:only-child,
.activity-body:not(:has(.activity-art)) {
  grid-template-columns: 1fr;
}

.activity-art {
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--black);
}

.activity-lines {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-lines strong {
  font-size: 17px;
}

.activity-lines span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
}

code {
  color: var(--white);
  font-family: var(--pixel);
  font-size: 0.7em;
}

.status-dot {
  font-size: 13px;
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  background: var(--muted);
}

.status-dot.is-online::before {
  background: var(--blue);
}

.music-note {
  font-size: 16px;
  line-height: 1.35;
}

.music-note:empty {
  display: none;
}

.player-shell {
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(120, 170, 255, 0.09), transparent 60%),
    linear-gradient(180deg, #14151a, #0a0a0c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, #0d0d10 0 6px, #14141a 6px 12px),
    #0a0a0c;
}

.idle-scan {
  position: absolute;
  inset-inline: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(140, 190, 255, 0.14), transparent);
  animation: idle-sweep 3.4s ease-in-out infinite;
}

@keyframes idle-sweep {
  0%, 100% {
    transform: translateY(-110%);
  }

  50% {
    transform: translateY(310%);
  }
}

.idle-text {
  position: relative;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 2px;
}

.player-console {
  display: grid;
  gap: 16px;
}

.song-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.song-search input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

.song-search input:focus-visible {
  border-color: rgba(150, 200, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.18);
  outline: none;
}

.player-key {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  color: var(--white);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 180ms ease;
}

.player-key:hover {
  border-color: rgba(150, 200, 255, 0.8);
  box-shadow: 0 0 18px rgba(120, 170, 255, 0.28);
  transform: translateY(-2px);
}

.player-key:active {
  transform: translateY(1px);
}

.player-key.ghost {
  background: transparent;
}

.transport {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.transport .player-key {
  min-width: 84px;
}

.track-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 160ms ease;
}

.track-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list button small {
  font-family: var(--pixel);
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

.track-list button:hover,
.track-list button:focus-visible {
  outline: none;
  border-color: rgba(150, 200, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.track-list button.is-active {
  border-color: rgba(150, 255, 170, 0.7);
  background: rgba(122, 255, 106, 0.1);
}

.track-list button.is-active small {
  color: rgba(174, 255, 156, 0.9);
}

.feed-consent {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  display: grid;
  gap: 10px;
  max-width: min(280px, 76vw);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(6, 8, 10, 0.86);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  animation: modal-rise 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feed-consent-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.feed-consent-keys {
  display: flex;
  gap: 8px;
}

.feed-consent-keys .player-key {
  flex: 1;
  padding: 10px 12px;
  font-size: 9px;
}

.now-playing {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  animation: modal-rise 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.now-art-wrap {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
}

.now-art {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--black);
}

.now-spin {
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-top-color: rgba(150, 200, 255, 0.85);
  border-radius: 14px;
  animation: reel-spin 3.2s linear infinite;
}

.now-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.now-meta strong {
  font-size: 17px;
  line-height: 1.25;
}

.now-meta span {
  color: var(--muted);
  font-size: 15px;
}

.now-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.now-bars i {
  width: 3px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(180deg, #9fd4ff, #3f6bd8);
  animation: eq-bounce 900ms ease-in-out infinite alternate;
}

.now-bars i:nth-child(2n) { animation-duration: 640ms; }
.now-bars i:nth-child(3n) { animation-duration: 1080ms; }
.now-bars i:nth-child(4n) { animation-delay: 180ms; }
.now-bars i:nth-child(5n) { animation-delay: 320ms; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
    #000;
  animation: modal-fade 300ms ease both;
}

body.is-locked {
  overflow: hidden;
}

body.has-modal {
  overflow: hidden;
}

html:has(body.has-modal) {
  overflow: hidden;
}

html:has(body.is-locked) {
  overflow: hidden;
}

.lock-screen.is-closing {
  animation: lock-open 460ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes lock-open {
  to {
    clip-path: inset(50% 0 50% 0);
    opacity: 0;
  }
}

.lock-inner {
  display: grid;
  width: min(760px, 100%);
  gap: 20px;
  justify-items: center;
}

.lock-mark-wrap {
  display: grid;
  place-items: center;
  min-height: 130px;
}

.lock-mark {
  width: min(190px, 46vw);
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.28));
  animation: lock-breathe 4.2s ease-in-out infinite;
}

.lock-mark-fallback {
  display: none;
  color: var(--white);
  font-family: var(--pixel);
  font-size: clamp(38px, 9vw, 74px);
  letter-spacing: 6px;
  animation: lock-breathe 4.2s ease-in-out infinite;
}

.lock-mark.is-missing {
  display: none;
}

.lock-mark.is-missing + .lock-mark-fallback {
  display: block;
}

@keyframes lock-breathe {
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.45));
  }
}

.lock-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.lock-form {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  justify-items: center;
}

.lock-field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.lock-field-label {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lock-field input {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 4px;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

.lock-field input:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  outline: none;
}

.lock-submit {
  padding: 13px 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 2px;
  transition: background 200ms ease, transform 160ms ease;
}

.lock-submit:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.lock-output {
  min-height: 1.2em;
  color: var(--red);
  font-family: var(--pixel);
  font-size: 9px;
}

.lock-form.is-wrong {
  animation: lock-shake 380ms ease;
}

@keyframes lock-shake {
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.lock-hint-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 1px;
}

.keyboard {
  display: grid;
  gap: 7px;
  width: min(660px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.key-row {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.key {
  display: grid;
  flex: 0 0 auto;
  min-width: 34px;
  height: 38px;
  place-items: center;
  padding-inline: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--pixel);
  font-size: 9px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  transition: transform 90ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.key.wide {
  min-width: 74px;
}

.key.widest {
  min-width: 190px;
}

.key.is-down {
  transform: translateY(3px);
  background: linear-gradient(180deg, #cfe6ff, #7fa9f5);
  color: #06080f;
  box-shadow: 0 0 22px rgba(140, 190, 255, 0.75);
}

.chat-copy,
.chat-fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.chat-fineprint {
  font-size: 12px;
}

.chat-start,
.chat-room {
  display: grid;
  gap: 16px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.chat-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--pixel);
  font-size: 9px;
  text-transform: uppercase;
}

.chat-form input,
.chat-send input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
}

.chat-output {
  min-height: 1.2em;
  color: var(--blue);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.6;
}

.chat-token-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chat-token {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #9fd4ff;
  font-family: var(--pixel);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 320px;
  margin: 0;
  overflow-y: auto;
  padding: 4px;
  list-style: none;
}

.chat-line {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  animation: chat-pop 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.chat-line.from-visitor {
  justify-self: end;
  background: linear-gradient(180deg, #2f5bd0, #1d3a8f);
  border-bottom-right-radius: 3px;
}

.chat-line.from-admin {
  justify-self: start;
  background: rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: 3px;
}

.chat-line small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--pixel);
  font-size: 8px;
}

.chat-send {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.file-list span,
.file-list small,
figcaption {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.file-list span {
  color: var(--blue);
}

.modal-box a:hover {
  color: var(--blue);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

figure {
  margin: 0;
}

.work-card {
  display: grid;
  gap: 10px;
  color: var(--white);
  text-align: left;
}

.work-card img,
.work-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 180px;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(var(--blue) 1px, transparent 1px),
    #050505;
  background-size: 5px 5px, auto;
  color: var(--white);
  font-family: var(--pixel);
  font-size: 14px;
  object-fit: cover;
}

figcaption {
  margin-top: 10px;
  color: var(--white);
}

.file-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: baseline;
  color: var(--white);
  text-align: left;
}

.file-list strong {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 400;
  line-height: 1;
}

.admin-page {
  min-height: 100svh;
  overflow: auto;
}

.admin-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, 0.055) 50%),
    var(--black);
  background-size: 100% 4px, auto;
}

.admin-login,
.admin-editor {
  display: grid;
  width: min(760px, 100%);
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--panel-dark);
  color: var(--white);
}

.admin-login {
  justify-items: center;
  text-align: center;
}

.admin-login img {
  width: 120px;
  animation: logo-spin 2600ms cubic-bezier(0.55, 0.06, 0.45, 0.94) infinite;
}

.admin-login form,
.admin-editor {
  align-content: start;
}

.admin-login form,
.admin-editor label {
  display: grid;
  gap: 10px;
}

.admin-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-login label,
.admin-editor label {
  color: var(--white);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.admin-login input,
.admin-editor input,
.admin-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  padding: 10px;
}

.admin-login button {
  color: var(--white);
  font-family: var(--pixel);
  font-size: 11px;
}

.admin-editor label.admin-check {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  font-family: var(--serif);
  font-size: 15px;
}

.admin-editor label.admin-check input {
  width: auto;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.admin-hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.admin-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  color: var(--white);
  font-family: var(--pixel);
  font-size: 11px;
}

.admin-actions button:hover {
  color: var(--blue);
}

.admin-group {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.admin-group legend {
  padding-inline: 8px;
  color: var(--white);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 1px;
}

.admin-group button {
  justify-self: start;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--pixel);
  font-size: 9px;
}

.admin-group button:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-inbox {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
  margin-top: 26px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--panel-dark);
  color: var(--white);
}

.admin-inbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--pixel);
  font-size: 11px;
}

.inbox-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inbox-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.inbox-item h3 {
  margin: 0;
  font-family: var(--pixel);
  font-size: 11px;
}

.inbox-meta {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
}

.inbox-meta dt {
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.inbox-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.inbox-log {
  display: grid;
  gap: 6px;
  max-height: 200px;
  margin: 0;
  overflow-y: auto;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.inbox-log .from-admin {
  color: #9fd4ff;
}

.inbox-reply {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.inbox-reply input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
}

.inbox-reply button {
  padding-inline: 14px;
  color: var(--white);
  font-family: var(--pixel);
  font-size: 9px;
}

.inbox-reply button:hover {
  color: var(--blue);
}

output {
  min-height: 1em;
  color: var(--blue);
  font-size: 10px;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .crt {
    min-height: 100svh;
    padding: 10px;
  }

  .tv-body {
    border-radius: 20px;
    padding: 12px 12px 46px;
  }

  .tube {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
  }

  .tube-glass {
    border-radius: 14% / 8%;
  }

  .tv-brand {
    display: none;
  }

  .broadcast {
    width: 92%;
    min-height: 68%;
    gap: 10px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .channel {
    padding: 11px 12px;
    gap: 11px;
  }

  .channel-glyph {
    width: 24px;
    height: 24px;
  }

  .channel-name em {
    display: none;
  }

  .set-footer {
    flex-direction: column;
    gap: 10px;
  }

  .modal-body {
    padding-inline: 18px;
  }

  .discord-head,
  .song-search,
  .now-playing,
  .chat-form,
  .chat-send {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chat-form,
  .chat-send {
    text-align: left;
  }

  .discord-card {
    text-align: center;
  }

  .discord-avatar-wrap,
  .now-art-wrap {
    margin-inline: auto;
  }

  .discord-badges {
    justify-content: center;
  }

  .activity-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .work-grid,
  .file-list a {
    grid-template-columns: 1fr;
  }

  .player-dock {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
  }

  .dock-track {
    max-width: 92px;
  }

  .keyboard {
    padding: 8px;
    gap: 5px;
  }

  .key-row {
    gap: 4px;
  }

  .key {
    min-width: 22px;
    height: 30px;
    padding-inline: 4px;
    font-size: 7px;
  }

  .key.wide {
    min-width: 44px;
  }

  .key.widest {
    min-width: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .tube-glass::after {
    animation: none;
  }
}

