:root {
  --red: #e8312f;
  --orange: #ff7a1a;
  --yellow: #ffd21f;
  --label: #ffe14d;
  --ink: #161616;
  --paper: #fff6dc;
  --sky: #7cd0ff;
  --slime: #3aff9a;
  --pink: #ff4fae;
  --muted: #5c5346;
  --display: "Bangers", "Impact", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: var(--ink); color: #fff;
}
.brand { text-decoration: none; }
.brand span {
  display: inline-block; font: 26px/1 var(--display); letter-spacing: .04em; color: var(--label);
  padding: 8px 14px 6px; border-radius: 10px; background: #000; box-shadow: 4px 4px 0 var(--red);
}
.top nav { display: flex; gap: clamp(10px, 2.4vw, 28px); font-weight: 800; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; color: var(--label); }

/* ---------- rings (the title card background) ---------- */
.rings {
  position: absolute; inset: -50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    var(--yellow) 0 60px, var(--orange) 60px 120px, var(--red) 120px 180px, var(--orange) 180px 240px);
  animation: pulse 6s ease-in-out infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .rings, .burst, .cursor { animation: none !important; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 72px);
  border-bottom: 6px solid var(--ink);
}
.hero .rings { z-index: -1; }
.hero-inner {
  background: rgba(255, 246, 220, .94); border: 4px solid var(--ink); border-radius: 22px;
  padding: clamp(20px, 3.4vw, 40px); box-shadow: 10px 10px 0 var(--ink);
}
.brings { margin: 0 0 6px; font: 22px/1.2 var(--display); letter-spacing: .05em; color: var(--red); }
.brings span:nth-child(2) { color: var(--ink); }
.hero h1 { margin: 0 0 14px; font: clamp(44px, 6.6vw, 88px)/.92 var(--display); letter-spacing: .02em; transform: rotate(-2deg); }
.hero h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.lede { margin: 0 0 22px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 24px/1 var(--display); letter-spacing: .05em; padding: 13px 20px 11px;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-play { background: var(--label); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }

.hero-poster {
  margin: 0; position: relative; cursor: pointer;
  border: 5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink);
  box-shadow: 12px 12px 0 var(--ink); transform: rotate(2deg); transition: transform .2s;
}
.hero-poster:hover { transform: rotate(0deg) scale(1.02); }
.hero-poster img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-poster figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px;
  font-weight: 800; font-size: 15px;
}
.hero-poster figcaption b { font: 13px/1 var(--display); letter-spacing: .06em; color: var(--label); background: var(--ink); padding: 5px 8px 3px; border-radius: 6px; }
.burst {
  position: absolute; bottom: clamp(12px, 2vw, 28px); right: clamp(12px, 3vw, 44px);
  font: clamp(22px, 3vw, 36px)/1 var(--display); color: var(--red); letter-spacing: .04em;
  background: var(--sky); padding: 26px 30px;
  clip-path: polygon(50% 0, 61% 22%, 86% 8%, 79% 34%, 100% 42%, 80% 56%, 94% 82%, 66% 74%, 56% 100%, 44% 76%, 16% 92%, 22% 64%, 0 52%, 20% 38%, 10% 12%, 38% 22%);
  transform: rotate(8deg); animation: boing 2.4s ease-in-out infinite;
}
@keyframes boing { 0%, 100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(4deg) scale(1.1); } }

/* ---------- sections ---------- */
.band { padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 72px); }
.band-paper { background: #fffaf0; border-block: 6px solid var(--ink); }
.section-title {
  display: inline-block; margin: 0 0 28px; font: clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: .04em;
  color: var(--label); background: var(--ink); padding: 10px 20px 6px; border-radius: 14px;
  box-shadow: 6px 6px 0 var(--red); transform: rotate(-1.5deg);
}
.section-lede { margin: -10px 0 28px; font-size: 19px; color: var(--muted); }

/* series cards */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.series-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 7px 7px 0 var(--ink); transition: transform .15s;
}
.series-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); }
.series-card img { aspect-ratio: 16/9; object-fit: cover; border-bottom: 4px solid var(--ink); }
.series-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.series-card h3 { margin: 0; font: 30px/1 var(--display); letter-spacing: .03em; }
.series-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.series-card .meta { margin-top: auto; padding-top: 8px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.series-card .tag {
  position: absolute; top: 12px; left: 12px; font: 16px/1 var(--display); letter-spacing: .06em;
  padding: 6px 10px 4px; border: 3px solid var(--ink); border-radius: 8px; background: var(--slime);
}
.series-card.soon .tag { background: var(--pink); color: #fff; }

/* episode filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-weight: 900; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
}
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--label); }
.episode-search { display: block; width: min(100%, 480px); margin-bottom: 26px; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.musical-title { font: 36px/1.2 var(--display); margin: 0 0 26px; }

/* episode grid */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ep {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.ep:hover, .ep:focus-visible { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.ep:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.ep .thumb { position: relative; aspect-ratio: 16/9; border-bottom: 3px solid var(--ink); background: var(--ink); }
.ep .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.ep .thumb img.still { opacity: 0; }
.ep .thumb.title-thumb { background: repeating-radial-gradient(circle at 50% 50%, var(--yellow) 0 24px, var(--orange) 24px 48px, var(--red) 48px 72px, var(--orange) 72px 96px); }
.title-art { position: absolute; inset: 12px 62px 12px 14px; display: flex; align-items: center; justify-content: center; text-align: center; font: 24px/1.1 var(--display); color: var(--yellow); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.ep .thumb img.title-character { inset: auto 8px 10px auto; width: 46px; height: 100px; object-fit: contain; }
.ep:hover .thumb img.still, .ep:focus-visible .thumb img.still { opacity: 1; }
.ep .dur { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.ep .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ep .label { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.ep h3 { margin: 0; font: 24px/1.02 var(--display); letter-spacing: .03em; }
.ep p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- Darren Does ---------- */
.darren {
  background: radial-gradient(1200px 600px at 85% 0%, #1f3a2c, transparent 60%), #0e1512;
  color: #e9f3ee; padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 72px);
}
.darren-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1280px; margin: 0 auto; }
.kicker { margin: 0 0 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--slime); }
.kicker a { color: inherit; }
.darren h2 { margin: 0 0 10px; font: clamp(56px, 8vw, 104px)/.9 var(--display); letter-spacing: .03em; color: var(--slime); }
.darren .big { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 14px; }
.darren p { color: #bcd0c6; max-width: 60ch; }
.topics { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { font-family: var(--mono); font-size: 14px; padding: 6px 12px; border: 1.5px solid #2f5a45; border-radius: 8px; background: #132019; color: #d6f5e4; }
.whiteboard {
  position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  border: 10px solid #c9ccd1; box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.wb-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #20242a; color: #9aa4b0; font: 12px var(--mono); }
.wb-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.wb-bar span:nth-child(2) { background: #febc2e; }
.wb-bar span:nth-child(3) { background: #28c840; }
.wb-bar b { font-weight: 500; margin-left: 8px; }
.wb-code { margin: 0; padding: 18px 20px; background: #181b20; color: #e6e6e6; font: 14.5px/1.6 var(--mono); overflow-x: auto; }
.wb-code .c { color: #7d8b99; } .wb-code .k { color: #ff7ab2; } .wb-code .f { color: #7cd0ff; }
.wb-code .s { color: #a5e07a; } .wb-code .p { color: var(--slime); }
.cursor { color: var(--slime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.whiteboard img { position: absolute; right: 12px; bottom: 12px; width: 38%; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.45); }

/* ---------- universe ---------- */
.domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.domain {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 18px 20px;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--orange);
}
.domain:hover { box-shadow: 5px 5px 0 var(--red); }
.domain b { font-family: var(--mono); font-size: 16px; }
.domain span { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 64px 16px 40px; border-top: 6px solid var(--ink); }
.foot .rings { z-index: -1; opacity: .9; }
.foot p { margin: 6px auto; max-width: 60ch; font-weight: 800; background: rgba(255,246,220,.92); display: table; padding: 4px 12px; border-radius: 8px; }
.foot .thats { font: clamp(36px, 6vw, 64px)/1 var(--display); letter-spacing: .03em; color: var(--label); background: var(--ink); padding: 12px 22px 8px; border-radius: 14px; transform: rotate(-2deg); margin-bottom: 18px; }
.foot .small { font-size: 13px; font-weight: 700; }

/* ---------- player ---------- */
.player {
  width: min(1100px, calc(100vw - 24px)); padding: 0; border: 5px solid var(--ink); border-radius: 18px;
  background: var(--paper); box-shadow: 12px 12px 0 var(--red); overflow: hidden;
}
.player::backdrop { background: rgba(10, 10, 10, .78); }
.player-media { background: #000; aspect-ratio: 16/9; position: relative; }
.player-media video, .player-media img { width: 100%; height: 100%; object-fit: contain; }
.player-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-media .pending {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 800; white-space: nowrap;
}
.player-info { padding: 18px 22px 22px; }
.player-info .label { font-weight: 900; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.player-info h3 { margin: 4px 0 6px; font: 34px/1 var(--display); letter-spacing: .03em; }
.player-info p { margin: 4px 0; color: var(--muted); }
.player-info .cast { font-size: 14px; }
.player-info .disc { font-style: italic; font-size: 14px; }
.close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--label); font-weight: 900; font-size: 18px;
}

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 860px) {
  .hero, .darren-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-poster { transform: rotate(1deg); }
  .burst { display: none; }
}
@media (max-width: 480px) {
  .brand span { font-size: 20px; }
  .top nav { font-size: 14px; gap: 12px; }
  .whiteboard img { display: none; }
}

/* ---------- brand images (Facebook banner + profile) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--label); background: var(--label); }
.masthead {
  grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 1600 / 655; object-fit: cover;
  border: 5px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink);
}
.foot-gull { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid var(--ink); background: #fff; transform: rotate(-6deg); }
@media (max-width: 480px) { .avatar { width: 34px; height: 34px; } .masthead { border-width: 3px; border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); } }
@media (max-width: 420px) {
  .top { padding: 8px 12px; gap: 8px; }
  .brand { gap: 6px; }
  .brand span { font-size: 16px; padding: 6px 9px 4px; box-shadow: 3px 3px 0 var(--red); }
  .avatar { width: 30px; height: 30px; border-width: 2px; }
  .top nav { font-size: 13px; gap: 10px; }
}
