:root {
  --bg1: #050014;
  --bg2: #1a0038;
  --panel: #fff3b5;
  --panel2: #fffde7;
  --ink: #24004f;
  --accent: #ff007a;
  --accent2: #06d6ff;
  --good: #0a8f08;
  --edge: #12001f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, #00000055 1px, transparent 1px),
    linear-gradient(#00000055 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, #ffffff66 0 2px, transparent 3px),
    radial-gradient(circle at 80% 80%, #ffffff55 0 2px, transparent 3px),
    radial-gradient(circle at 50% 10%, #ff00aa44, transparent 32vw),
    repeating-linear-gradient(45deg, #080026 0 16px, #1a0042 16px 32px),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto, auto;
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(#ff0 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 24px;
  opacity: 0.25;
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: min(1240px, 94vw);
  margin: 20px auto 28px;
}

.box {
  border: 3px ridge #ffd400;
  background: var(--panel);
  box-shadow: 0 0 0 2px #000, 10px 10px 0 #00000070, 0 0 24px #00f7ff55;
}

.top-banner {
  margin-bottom: 16px;
  padding: 14px;
  text-align: center;
  border: 4px double #00ffea;
  background:
    linear-gradient(180deg, #ffffff80, transparent 42%),
    linear-gradient(90deg, #ffeb3b, #ff7b00 45%, #ff00aa 75%, #7a00ff);
  color: #24004a;
  box-shadow: 0 0 0 3px #000, 0 0 34px #ff00aa88;
}

h1,
h2 {
  margin: 0.2em 0;
  font-family: "Impact", "Haettenschweiler", sans-serif;
  letter-spacing: 1px;
}

h1 {
  margin: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

.site-title {
  display: inline-grid;
  gap: 2px;
  margin: 2px auto 6px;
  padding: 6px 18px 12px;
  border: 3px ridge #fff200;
  background:
    linear-gradient(180deg, #ffffff99 0 16%, transparent 16%),
    repeating-linear-gradient(-8deg, #2b0058 0 10px, #3b006f 10px 20px);
  box-shadow: 7px 7px 0 #00f0ff, 11px 11px 0 #000;
}

.title-kicker,
.title-main {
  display: block;
}

.title-kicker {
  color: #fff200;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  text-shadow: 3px 3px 0 #000;
}

.title-main {
  color: #ff3b9d;
  font-size: clamp(3.2rem, 12vw, 8.4rem);
  letter-spacing: 0.03em;
  text-shadow: 3px 3px 0 #fff, 7px 7px 0 #00f0ff, 10px 10px 0 #000;
}

h2 {
  font-size: 1.35rem;
  color: #9f0045;
  text-shadow: 1px 1px 0 #fff;
}

.tagline {
  max-width: 760px;
  margin: 10px auto 12px;
  padding: 7px 12px;
  border: 2px dashed #001aa0;
  background: #ffffffe0;
  font-weight: 900;
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.left-rail,
.right-rail,
.content,
.footer {
  padding: 12px;
}

.chrome {
  background:
    linear-gradient(135deg, #ffffffbb, transparent 38%),
    repeating-linear-gradient(180deg, #fff8c9, #fff8c9 14px, #ffef9a 14px, #ffef9a 28px);
}

.left-rail ul {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.left-rail li {
  margin-bottom: 8px;
}

.left-rail a,
.platform-links a {
  display: block;
  padding: 7px 9px;
  border: 2px outset #fff;
  background: linear-gradient(180deg, #fff, #ffd7f0);
  box-shadow: 3px 3px 0 #00000055;
  text-decoration: none;
}

.platform-links {
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}

.platform-links li {
  margin-bottom: 6px;
}

a {
  color: #001f9f;
  font-weight: 700;
}

a:hover {
  color: var(--accent);
  transform: translate(1px, 1px);
}

.content {
  min-height: 420px;
  background:
    linear-gradient(180deg, #fffbe6, #ffeaa0),
    var(--panel);
}

.status {
  display: inline-block;
  margin: 4px 0 6px;
  padding: 5px 9px;
  border: 2px inset #fff;
  background: #050505;
  font-weight: 700;
  color: #39ff14;
  font-family: "Courier New", monospace;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 3px double #ff8d00;
}

.section-header .tiny {
  margin: 0;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.feed-list {
  counter-reset: episode;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.feed-list li {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px;
  border: 3px ridge #ff8d00;
  background:
    linear-gradient(180deg, #ffffff, #fff7d1 55%, #ffe6fb),
    #ffffef;
  box-shadow: 5px 5px 0 #4a005f55;
  counter-increment: episode;
}

.feed-list li::before {
  content: "EP " counter(episode);
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 2px 8px;
  border: 2px solid #000;
  background: #00f0ff;
  color: #000;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.episode-image {
  flex: 0 0 auto;
  width: 288px;
  height: 288px;
  border: 3px outset #c0c0c0;
  background:
    linear-gradient(45deg, #c0c0c0 25%, transparent 25%),
    linear-gradient(-45deg, #c0c0c0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c0c0c0 75%),
    linear-gradient(-45deg, transparent 75%, #c0c0c0 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  image-rendering: pixelated;
  opacity: 0;
  filter: drop-shadow(5px 5px 0 #00000070);
}

.episode-image.loaded {
  opacity: 1;
}

.episode-body {
  min-width: 0;
  padding: 6px 4px 0;
}

.feed-title {
  display: block;
  margin: 0 44px 6px 0;
  color: #000a9f;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.feed-title.youtube-link::after {
  content: "  ▶ YOUTUBE";
  color: #f00;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  text-shadow: none;
}

.feed-date {
  display: block;
  margin-bottom: 6px;
  color: #75004f;
  font-size: 0.92rem;
}

.feed-desc {
  margin: 0;
  line-height: 1.45;
  font-size: 1.02rem;
}

.counter-wrap {
  margin: 12px 0;
  padding: 8px;
  border: 2px solid #000;
  background: #000;
  color: #39ff14;
  text-align: center;
}

.counter {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.tiny {
  margin: 0.3em 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.mood {
  margin-top: 2px;
  font-weight: 900;
  color: var(--accent2);
  text-shadow: 1px 1px 0 #000;
}

.signal-box {
  padding: 8px;
  border: 2px inset #fff;
  background: #27003e;
}

.signal-box .mood {
  margin: 0;
}

.copyright {
  text-align: center;
}

.footer {
  margin-top: 16px;
  background: #050505;
  color: #39ff14;
  font-family: "Courier New", monospace;
}

.blink {
  animation: blink 0.8s steps(1, end) infinite;
  font-weight: 900;
  color: #f00;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .right-rail {
    order: 2;
  }

  .content {
    order: 1;
  }
}

@media (max-width: 560px) {
  .feed-list li {
    display: block;
  }

  .episode-image {
    display: block;
    float: none;
    width: min(100%, 288px);
    height: auto;
    margin: 0 0 10px;
  }
}
