:root {
  /* Crazy FireBall brand colours (design.md 7.1) */
  --cfb-blaze-orange: #FF6A00;
  --cfb-spray-cyan: #12E8F5;
  --cfb-volt-lime: #D7FF1F;
  --cfb-asphalt: #17171A;
  --cfb-chalk-white: #F4F1EA;
  --cfb-shadow-white: #FFFFFF;
  --cfb-shadow-black: #000000;

  /* Role aliases */
  --cfb-primary: var(--cfb-blaze-orange);
  --cfb-secondary: var(--cfb-spray-cyan);
  --cfb-accent: var(--cfb-volt-lime);
  --cfb-dark: var(--cfb-asphalt);
  --cfb-light: var(--cfb-chalk-white);

  /* Logo colours */
  --cfb-logo-outline: #0f1421;
  --cfb-logo-rim-teal: #69b3b0;
  --cfb-logo-seam-tan: #af8f6c;
  --cfb-logo-ball: #373a45;
  --cfb-logo-flame-brown: #813f2b;
  --cfb-logo-flame-red: #d7441f;
  --cfb-logo-flame-orange: #ee722d;
  --cfb-logo-flame-amber: #fba93b;
  --cfb-logo-cyan-deep: #34c8e1;
  --cfb-logo-cyan: #20e8f1;
  --cfb-logo-cyan-pale: #a0fcfa;
  --cfb-logo-glow-yellow: #fcd671;
  --cfb-logo-glow-white: #fef7dd;

  /* Typography */
  --cfb-font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --cfb-font-condensed: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --cfb-font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cfb-weight-body: 500;
  --cfb-weight-label: 800;

  /* Sticker / shadow system (design.md 7.3a, scaled for screens) */
  --cfb-sticker-radius: 12px;
  --cfb-sticker-border: 3px solid var(--cfb-asphalt);
  --cfb-sticker-shadow: 5px 6px 0 0 #FFFFFF, 5px 6px 0 2px var(--cfb-asphalt);
  --cfb-hard-shadow-orange: 0 4px 0 var(--cfb-blaze-orange);
  --cfb-hard-shadow-cyan: 0 4px 0 var(--cfb-spray-cyan);
  --cfb-radius-sm: 10px;
  --cfb-radius-md: 18px;
}

@font-face { font-family: 'Anton'; src: url('/assets/fonts/anton-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat-latin-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('/assets/fonts/bebasneue-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ===== Crazy FireBall site: mobile-first (base = 360–430px), then 600 / 900 / 1200 breakpoints ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--cfb-asphalt); color: var(--cfb-chalk-white);
  font: var(--cfb-weight-body) 16px/1.55 var(--cfb-font-body);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--cfb-spray-cyan); }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, h2 { font-family: var(--cfb-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cfb-volt-lime); color: var(--cfb-asphalt); padding: 8px 12px; z-index: 100; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cfb-volt-lime); outline-offset: 3px; }

/* ----- sticky compact header ----- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(23, 23, 26, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--cfb-blaze-orange); }
.top-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cfb-chalk-white); min-width: 0; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--cfb-font-display); font-size: 22px; text-transform: uppercase; white-space: nowrap; text-shadow: 0 2px 0 var(--cfb-blaze-orange); }
.nav-top { display: none; margin-left: auto; }
.nav-top ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-top a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--cfb-chalk-white); text-decoration: none; font-weight: 700; }
.nav-top a:hover { background: #26262b; }
.nav-top a[aria-current="page"] { color: var(--cfb-asphalt); background: var(--cfb-spray-cyan); }
.btn-sub-sm { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: #D9002C; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }

/* ----- bottom nav (mobile) ----- */
.nav-bottom { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(23, 23, 26, .97); border-top: 2px solid #2b2b31; padding-bottom: env(safe-area-inset-bottom); }
.nav-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #b9b6af; text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.nav-bottom svg { width: 24px; height: 24px; fill: currentColor; }
.nav-bottom a[aria-current="page"] { color: var(--cfb-volt-lime); }

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; background: var(--cfb-asphalt) url("/assets/img/pattern-split-640.webp") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,26,.35) 0%, rgba(23,23,26,.75) 60%, var(--cfb-asphalt) 100%); }
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px; padding-top: 24px; padding-bottom: 28px; }
.hero-logo { width: 132px; height: 132px; filter: drop-shadow(0 0 18px rgba(244, 241, 234, .35)); }
.kicker { margin: 0; display: inline-block; background: var(--cfb-blaze-orange); color: var(--cfb-asphalt); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; padding: 4px 10px; border-radius: 8px; box-shadow: 3px 4px 0 #000; }
.hero h1 { font-size: clamp(48px, 15vw, 64px); margin-top: 8px; color: var(--cfb-chalk-white); text-shadow: 0 5px 0 var(--cfb-blaze-orange); -webkit-text-stroke: 1px var(--cfb-asphalt); }
.hero h1 span { color: var(--cfb-chalk-white); text-shadow: 0 5px 0 var(--cfb-spray-cyan); }
.lede { margin: 10px 0 0; max-width: 34ch; color: #e4e1da; font-size: 17px; }
.cta { display: grid; gap: 14px; width: 100%; max-width: 420px; margin-top: 18px; }

/* big lime sticker-style Subscribe CTA (white hard shadow + asphalt keyline, design.md 7.3a) */
.btn-sub { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 22px;
  background: var(--cfb-volt-lime); color: var(--cfb-asphalt); border: var(--cfb-sticker-border); border-radius: var(--cfb-sticker-radius);
  box-shadow: var(--cfb-sticker-shadow); font: 400 24px/1 var(--cfb-font-display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease; }
.btn-sub svg { width: 28px; height: 28px; fill: #FF0033; }
.btn-sub:hover { transform: translate(-1px, -1px) rotate(-1deg); }
.btn-sub:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 0 #fff, 1px 1px 0 2px var(--cfb-asphalt); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 2px solid var(--cfb-spray-cyan); border-radius: 12px; color: var(--cfb-chalk-white); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.btn-ghost:hover { background: rgba(18, 232, 245, .12); }
.center { text-align: center; margin: 22px 0 0; }

/* ----- sections ----- */
.sec { padding: 28px 0; }
.sec.alt { background: #1d1d21 url("/assets/img/pattern-hexgrid-640.webp") center / cover; background-blend-mode: soft-light; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 30px; text-shadow: 0 3px 0 var(--cfb-blaze-orange); }
.more { font-weight: 800; font-size: 14px; text-transform: uppercase; white-space: nowrap; padding: 10px 0; }

/* ----- cards ----- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card, .pl { background: #202025; border: 2px solid #2c2c33; border-radius: var(--cfb-radius-md); overflow: hidden; }
.media { position: relative; }
.meta { padding: 12px 14px 14px; }
.card-title { font: 700 16px/1.3 var(--cfb-font-body); text-transform: none; letter-spacing: 0; }
.card-title a { color: var(--cfb-chalk-white); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--cfb-spray-cyan); }
.meta p { margin: 6px 0 0; color: #a9a6a0; font-size: 14px; }
.card-big .card-title { font-size: 19px; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.link { font-weight: 800; font-size: 14px; text-transform: uppercase; padding: 6px 0; }

/* lite-youtube facade */
.yt, .yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; margin: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.yt .play-bg { fill: var(--cfb-volt-lime); }
.yt:hover img { transform: scale(1.03); filter: brightness(1.08); }
.yt:hover .play-bg, .yt:focus-visible .play-bg { fill: #fff; }
.yt-v, .yt-frame.yt-v { aspect-ratio: 9 / 16; }

/* lime score sticker accent (from the title's score) */
.sticker { position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none; transform: rotate(-5deg);
  background: var(--cfb-volt-lime); color: var(--cfb-asphalt); border: var(--cfb-sticker-border); border-radius: 10px;
  box-shadow: var(--cfb-sticker-shadow); font: 400 24px/1 var(--cfb-font-display); padding: 5px 10px 6px; }
.meta .sticker, .sticker.sm { position: static; display: inline-block; font-size: 18px; padding: 3px 8px; margin-right: 8px; box-shadow: 3px 4px 0 0 #fff, 3px 4px 0 2px var(--cfb-asphalt); }
.dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; pointer-events: none; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.pl-badge { position: absolute; left: 10px; top: 10px; pointer-events: none; background: var(--cfb-spray-cyan); color: var(--cfb-asphalt); font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; box-shadow: 3px 4px 0 #000; }

/* Shorts rail: horizontal scroll-snap */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.short { scroll-snap-align: start; }
.short .media { border-radius: 14px; overflow: hidden; border: 2px solid #2c2c33; }
.short .card-title { font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short p { margin: 2px 0 0; color: #a9a6a0; font-size: 13px; }

/* about */
.about { max-width: 70ch; font-size: 17px; }
.about p { margin: 0 0 14px; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; font-weight: 700; }

/* footer */
.foot { border-top: 2px solid var(--cfb-spray-cyan); background: #111114; padding: 28px 0 32px; }
.foot-in { display: grid; gap: 10px; justify-items: start; }
.foot p { margin: 0; color: #c7c4bd; max-width: 70ch; }
.foot .fine { font-size: 13px; color: #8f8c86; }
.foot .btn-sub { margin-top: 12px; font-size: 20px; min-height: 52px; }

/* ===== tablet ===== */
@media (min-width: 600px) {
  .wrap { padding-inline: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .rail { grid-auto-columns: 28%; margin: 0 -24px; padding: 4px 24px 12px; }
  .hero-in { padding-top: 40px; padding-bottom: 44px; }
  .hero-logo { width: 168px; height: 168px; }
  .cta { grid-auto-flow: column; max-width: none; width: auto; }
  .sec { padding: 40px 0; }
  .sec-head h2 { font-size: 36px; }
  .featured .card-big { display: grid; grid-template-columns: 3fr 2fr; align-items: center; }
  .featured .pl { display: grid; grid-template-columns: 3fr 2fr; align-items: center; }
}
/* ===== desktop ===== */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav-bottom { display: none; }
  .nav-top { display: block; }
  .btn-sub-sm { margin-left: 8px; }
  .top-in { height: 68px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 26px; }
  .hero { background-image: url("/assets/img/pattern-split.webp"); }
  .hero-in { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
  .hero-logo { width: 240px; height: 240px; }
  .hero h1 { font-size: 92px; text-shadow: 0 7px 0 var(--cfb-blaze-orange); }
  .hero h1 span { text-shadow: 0 7px 0 var(--cfb-spray-cyan); }
  .lede { font-size: 19px; max-width: 46ch; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .rail { grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; }
  .card-big .card-title { font-size: 24px; }
  .featured .card-big .meta { padding: 22px 28px; }
  .sec.alt { background-image: url("/assets/img/pattern-hexgrid.webp"); }
}
@media (min-width: 1200px) {
  .wrap { padding-inline: 32px; }
  .rail { margin: 0; padding: 4px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.meta .row { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.meta .row .sticker { font-size: 17px; padding: 3px 8px 4px; transform: rotate(-4deg); }
/* keep the play button off the thumbnail's centre score sticker */
.yt:not(.yt-v) .play { left: auto; top: 10px; right: 10px; width: 56px; height: 40px; transform: none; }
