:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --accent: #ff5a24;
  --panel-base: #171c27;
  --panel-dark: #0f131b;
  --steel: #2f3747;
  --steel-soft: #252c39;
  --text: #f2f4f8;
  --muted: rgba(242, 244, 248, 0.7);
  --font-hand: "Permanent Marker", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --font-support: "Oxanium", "Space Grotesk", sans-serif;
  --welcome-font: "Oxanium", "Space Grotesk", sans-serif;
  --console-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-support);
}

body {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  padding-bottom: 30px;
}

.app {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1180px;
  height: 930px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.35rem;
  transform: translate(-50%, -50%) scale(var(--console-scale, 1));
  transform-origin: center center;
  transition: transform 0.2s ease;
  z-index: 1;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.78), rgba(6, 10, 18, 0.92));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-support);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.72);
}

.heroLogo {
  justify-self: center;
  width: clamp(250px, 34vw, 460px);
  pointer-events: none;
}

.console {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 0.8rem 1.25rem 1.1rem;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.04), transparent 45%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.016) 0 1px,
      rgba(0, 0, 0, 0.02) 1px 2px
    ),
    linear-gradient(155deg, #161b25, #0f1219 62%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 10px rgba(0, 0, 0, 0.5),
    0 28px 60px rgba(0, 0, 0, 0.45);
}

.consolePanel {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.03), transparent 42%),
    linear-gradient(165deg, var(--panel-base), var(--panel-dark));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.05rem 1.1rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -12px 30px rgba(0, 0, 0, 0.35),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.consoleHeader,
.consoleRail,
.panelViewport {
  position: relative;
  z-index: 1;
}

.consoleHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
}

.consoleTitle {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-support);
}

.consoleMeta {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-support);
}

.panelViewport {
  min-height: 0;
  height: 100%;
}

.consoleRail {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-support);
}

.panel {
  display: none;
  min-height: 0;
  animation: fadeIn 0.25s ease;
}

.panel.active {
  display: block;
  height: 100%;
  overflow: hidden;
}

.panel h2 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.panel p {
  color: var(--muted);
  margin-bottom: 0.65rem;
  line-height: 1.62;
  font-size: 0.96rem;
  font-family: var(--font-support);
}

.home-panel {
  text-align: center;
  min-height: 100%;
}

.panel.active.home-panel {
  display: grid;
  place-items: center;
}

.home-panel p {
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  max-width: 840px;
  margin-bottom: 0;
  font-family: var(--welcome-font, var(--font-hand));
  font-weight: 600;
}

.home-panel p + p {
  margin-top: 0.65rem;
}

.embed iframe {
  width: 100%;
  height: clamp(190px, calc(420px * var(--console-scale, 1)), 420px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1118;
}

.embed-caption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-support);
}

.embed-caption a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-support);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.merch-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.merch-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #ffffff;
  padding: 0.6rem;
}

.merch-info {
  padding: 0.72rem;
  display: grid;
  gap: 0.32rem;
}

.merch-info h3 {
  font-size: 0.98rem;
  font-weight: 400;
}

.merch-info p {
  margin: 0;
  font-family: var(--font-support);
}

.cta {
  display: inline-flex;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.48rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.25));
  font-weight: 500;
  font-size: 0.86rem;
  font-family: var(--font-support);
}

.request-layout {
  max-width: 880px;
  margin: 0 auto;
  height: 100%;
}

.request-form-card {
  height: 100%;
  padding: 0.24rem 0.28rem 0.2rem;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.request-header h2 {
  margin-bottom: 0.5rem;
}

.request-intro {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.request-form {
  display: grid;
  gap: 0.72rem;
}

.request-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-support);
}

.request-form input,
.request-form select,
.request-form textarea {
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(9, 14, 24, 0.96), rgba(10, 16, 27, 0.86));
  color: var(--text);
  font-size: 0.86rem;
  font-family: var(--font-support);
}

.request-form textarea {
  resize: none;
  min-height: 118px;
  max-height: 118px;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 62%, rgba(255, 255, 255, 0.16));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.request-submit {
  margin-left: auto;
  white-space: nowrap;
  padding: 0.42rem 0.72rem;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(130deg, #ff7a4b, var(--accent));
  color: #120d0b;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-support);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 22px color-mix(in srgb, var(--accent) 36%, transparent);
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.76rem;
}

.channelRack {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.52rem;
  padding: 0.2rem 0;
}

.nav-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.channelStrip {
  width: 98px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.3rem;
  padding: 0.5rem 0.52rem 0.52rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(170deg, #2b3343, #151b28 62%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 18px rgba(0, 0, 0, 0.4),
    0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.channelStrip::before,
.channelStrip::after {
  content: "";
  position: absolute;
}

.stripTop {
  display: grid;
  gap: 0.24rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.onAir {
  display: none;
  justify-self: center;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  color: #1a110b;
  background: linear-gradient(180deg, #ff9b72, var(--accent));
  font-weight: 800;
}

.channelNumber {
  justify-self: center;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
  font-family: var(--font-support);
}

.ssl-leds {
  display: grid;
  grid-auto-flow: column;
  gap: 0.26rem;
  justify-content: center;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #1b212d;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

.stripControls {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.ssl-knob {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 35%),
    radial-gradient(circle at center, #1b202c 35%, #10141d 65%),
    linear-gradient(140deg, #2b3242, #111520);
  border: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.45),
    inset 0 0 12px rgba(0, 0, 0, 0.65),
    0 6px 12px rgba(0, 0, 0, 0.45);
}

.ssl-knob::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  background: linear-gradient(180deg, #f0f2f7, #9aa2b5);
  border-radius: 999px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%) rotate(-22deg);
  transform-origin: 50% 16px;
}

.ssl-knob.small {
  width: 24px;
  height: 24px;
}

.ssl-knob.small::after {
  height: 8px;
  transform: translateX(-50%) rotate(28deg);
  transform-origin: 50% 11px;
}

.ssl-fader {
  width: 42px;
  height: 118px;
  border-radius: 14px;
  background: linear-gradient(180deg, #10131b, #232838);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  align-items: center;
  padding: 0.35rem 0;
  position: relative;
  overflow: hidden;
}

.ssl-fader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #c4c7cf, #4b5160);
  border-radius: 999px;
  opacity: 0.38;
}

.fader-thumb {
  width: 20px;
  height: 34px;
  margin: 0 auto;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0 2px,
      rgba(255, 255, 255, 0.08) 2px 4px
    ),
    linear-gradient(180deg, #f4f5f8, #9aa2b2);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 6px 10px rgba(0, 0, 0, 0.35);
}

.stripLabel {
  justify-self: center;
}

.tape-label {
  padding: 0.2rem 0.46rem;
  background: #f6f3da;
  color: #1a1a1a;
  font-family: "Permanent Marker", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 0.84rem;
  font-weight: 400;
  border-radius: 6px;
  transform: rotate(-1.5deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  min-height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-btn.active .channelStrip,
.nav-btn:hover .channelStrip {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.2));
}

.nav-btn.active .led,
.nav-btn:hover .led {
  background: var(--accent);
  box-shadow: 0 0 7px color-mix(in srgb, var(--accent) 80%, transparent);
}

.nav-btn.active .onAir {
  display: inline-flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .app {
    width: 1180px;
    height: 900px;
  }

  .console {
    padding: 0.7rem 0.85rem 0.9rem;
  }

  .heroLogo {
    width: clamp(170px, 38vw, 300px);
  }

  .consoleHeader {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .embed iframe {
    height: clamp(150px, calc(320px * var(--console-scale, 1)), 320px);
  }

  .merch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-layout {
    max-width: 100%;
  }
}
