/* Bitcoin Seinfeld — episode guide. A brick wall, a neon sign, a TV, a 90s sitcom listing. */
:root {
  --ink: #f6ecd2;
  --dim: #c4b08f;
  --bg: #170e0b;
  --panel: #231612;
  --line: #3b2a22;
  --paper: #f6ecd2;
  --paper-ink: #2a1a12;
  --mustard: #f2b632;
  --neon-red: #ff4f6a;
  --neon-orange: #ff9a1f;
  --brick: #7b2f22;
  --mortar: #4a1b13;
  --display: "Bungee", Impact, "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--mustard); }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- the wall ---------- */
.wall {
  position: relative;
  background-color: var(--brick);
  /* two staggered rows of bricks per 80x56 tile: mortar lines, and joints that alternate row to row */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='56'%3E%3Cg fill='%234a1b13'%3E%3Crect y='0' width='80' height='3'/%3E%3Crect y='28' width='80' height='3'/%3E%3Crect x='0' y='3' width='3' height='25'/%3E%3Crect x='40' y='31' width='3' height='25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 56px;
  border-bottom: 6px solid #000;
  overflow: hidden;
}
.wall::before { /* a warm pool of light behind the sign, darker at the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 140, 60, 0.18), rgba(0, 0, 0, 0.72) 78%);
}
.top {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem;
}
.top a { color: var(--ink); text-decoration: none; background: rgba(0, 0, 0, 0.45); padding: 6px 12px; border-radius: 99px; }
.top a:hover { color: var(--mustard); }

.sign { position: relative; z-index: 1; text-align: center; padding: 28px 20px 52px; }
.neon { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.95; text-transform: uppercase; }
.neon span { display: block; }
.neon .a { font-size: clamp(2.2rem, 8vw, 4.8rem); color: #fff1dc; text-shadow: 0 0 6px #fff1dc, 0 0 14px var(--neon-orange), 0 0 30px var(--neon-orange), 0 0 60px var(--neon-orange); }
.neon .b { font-size: clamp(2.8rem, 11.5vw, 7rem); color: #ffe4e8; text-shadow: 0 0 6px #ffe4e8, 0 0 16px var(--neon-red), 0 0 36px var(--neon-red), 0 0 72px var(--neon-red); }
.neon .b { animation: flicker 7s infinite; }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.72; } 21% { opacity: 0.95; } }
.tag { margin: 22px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 600; text-shadow: 0 2px 10px #000; }
.tag em { color: var(--neon-orange); font-style: normal; }
.onair { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 6px 14px; background: rgba(0, 0, 0, 0.6); border: 1px solid #000; border-radius: 99px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.onair i { width: 10px; height: 10px; border-radius: 50%; background: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.tipcta-wrap { margin: 22px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tipcta-wrap span { font-size: 0.85rem; color: var(--dim); text-shadow: 0 2px 8px #000; }
.tipcta { display: inline-block; font-family: var(--display); font-size: clamp(1rem, 3vw, 1.3rem); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: #1b0d02; background: var(--neon-orange); border: 3px solid #000; border-radius: 99px; padding: 13px 28px; box-shadow: 0 0 22px rgba(255, 154, 31, 0.65), 4px 4px 0 #000; animation: glow 3s ease-in-out infinite; }
.tipcta:hover { background: #ffb04a; transform: translateY(-1px); }
@keyframes glow { 50% { box-shadow: 0 0 36px rgba(255, 154, 31, 0.95), 4px 4px 0 #000; } }
.btn.tip { background: var(--neon-orange); border-color: #000; color: #1b0d02; }
.btn.tip:hover { background: #ffb04a; color: #1b0d02; }
html { scroll-behavior: smooth; }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- the TV ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; margin-top: -30px; position: relative; z-index: 3; align-items: start; }
.tv { background: linear-gradient(160deg, #2e2a28, #0e0d0c 60%); border-radius: 26px; padding: 16px 16px 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #3d3835, inset 0 2px 0 #5a534e; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px / 18px; overflow: hidden; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), 0 0 0 3px #000; }
.screen iframe, .screen #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facade::after { /* scanlines */ content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px); }
.play { position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(64px, 12vw, 104px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--neon-orange); color: #1b0d02; display: grid; place-items: center; font-size: clamp(1.6rem, 4vw, 2.6rem); padding-left: 0.12em; box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.35), 0 8px 30px rgba(0, 0, 0, 0.6); transition: transform 0.15s; }
.facade:hover .play, .facade:focus-visible .play { transform: translate(-50%, -50%) scale(1.08); }
.tv-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 0; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.12em; color: #8d847c; }
.tv-foot .led { color: var(--neon-red); }

.now { padding: 20px 4px 6px; }
.eyebrow { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon-orange); font-weight: 700; }
.now h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.1; text-transform: uppercase; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.btn:hover { border-color: var(--mustard); color: var(--mustard); }
.btn.primary { background: var(--neon-orange); border-color: var(--neon-orange); color: #1b0d02; }
.btn.primary:hover { background: #ffb04a; color: #1b0d02; }
.auto { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--dim); margin-left: 6px; cursor: pointer; }
.auto input { accent-color: var(--neon-orange); width: 16px; height: 16px; }

/* ---------- up next ---------- */
.upnext { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; }
.upnext h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.upnext ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.mini:hover { background: #33231c; }
.mini .thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini b { display: block; font-size: 0.9rem; line-height: 1.25; }
.mini small { color: var(--dim); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0, 0, 0, 0.85); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

/* ---------- the guide ---------- */
.guide { padding: 54px 0 26px; }
.guide h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4.4vw, 2.6rem); text-transform: uppercase; }
.guide .sub { margin: 0 0 22px; color: var(--dim); }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.bar input[type="search"] { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.bar input[type="search"]::placeholder { color: #8a7660; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.chip:hover { border-color: var(--mustard); }
.chip[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: #241503; }
.bar select { font: inherit; font-size: 0.85rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.found { margin: 0 0 16px; color: var(--dim); font-size: 0.85rem; min-height: 1.3em; }

.eps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ep { display: block; height: 100%; background: var(--paper); color: var(--paper-ink); text-decoration: none; border-radius: 6px; border: 3px solid #000; box-shadow: 5px 5px 0 var(--neon-orange); overflow: hidden; transition: transform 0.12s, box-shadow 0.12s; }
.ep:hover, .ep:focus-visible { transform: translate(-2px, -2px) rotate(-0.4deg); box-shadow: 8px 8px 0 var(--neon-red); }
.ep .thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-bottom: 3px solid #000; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep .num { white-space: nowrap; position: absolute; left: 8px; top: 8px; background: var(--mustard); color: #241503; font-family: var(--display); font-size: 0.72rem; padding: 3px 8px; border: 2px solid #000; border-radius: 4px; }
.ep .go { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.38); color: #fff; font-size: 2.4rem; opacity: 0; transition: opacity 0.15s; }
.ep:hover .go, .ep:focus-visible .go { opacity: 1; }
.ep .meta { display: block; padding: 11px 13px 14px; }
.ep h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.ep p { margin: 5px 0 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7a6048; font-weight: 700; }
.ep.is-now { box-shadow: 5px 5px 0 var(--neon-red); }
.ep .num { display: none; text-transform: uppercase; } /* only the episode that is on shows a badge */
.ep.is-now .num { display: block; }
.none { padding: 30px 6px; color: var(--dim); font-size: 1.05rem; }

/* ---------- header links ---------- */
.top-right { display: flex; gap: 8px; flex-wrap: wrap; }
/* the tip jar is styled by tip-jar.css; this just gives it this page's heading font */
.tips { --tj-display: var(--display); }

/* ---------- from the creators ---------- */
.creators { margin: 40px 0 60px; padding: 28px; text-align: center; background: var(--panel); border: 1px dashed #5b4333; border-radius: 14px; }
.creators .eyebrow { color: var(--dim); }
.creators h2 { margin: 6px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 2.1rem); text-transform: uppercase; }
.creators p { margin: 0 auto 18px; max-width: 520px; color: var(--dim); }

footer { background: #0e0806; border-top: 6px solid #000; padding: 30px 20px 44px; text-align: center; font-size: 0.85rem; color: var(--dim); }
footer p { max-width: 620px; margin: 0 auto 10px; }

/* ---------- small screens ---------- */
@media (max-width: 920px) {
  .stage { grid-template-columns: 1fr; margin-top: -24px; }
  .upnext ol { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 560px) {
  main { padding: 0 12px; }
  .tv { padding: 10px 10px 8px; border-radius: 18px; }
  .eps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ep { box-shadow: 3px 3px 0 var(--neon-orange); }
  .ep h3 { font-size: 0.92rem; }
  .ep .meta { padding: 8px 9px 11px; }
  .mini { grid-template-columns: 96px 1fr; }
}
@media (max-width: 380px) { .eps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tipcta { animation: none; }
  .neon .b, .onair i { animation: none; }
  .ep, .play { transition: none; }
}
