/* Comedy Feed: comedy-club look (brick, marquee bulbs, spotlight). Deliberately not YouTube's
   white grid: one-column "set list" on phones, ticket-stub type badges, names as headlines. */
:root {
  --ink: #16110e;
  --ink-2: #211915;
  --ink-3: #2e231d;
  --line: #3d2f27;
  --cream: #f6ecdc;
  --muted: #b9a893;
  --marquee: #ff5a3c;
  --amber: #ffb547;
  --teal: #4fd1b5;
  --violet: #b99cff;
  --radius: 14px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream); font: 15px/1.45 var(--body);
  background-image: radial-gradient(ellipse 90% 380px at 50% -120px, rgba(255, 181, 71, .16), transparent 70%);
  min-height: 100vh;
}
body.locked { overflow: hidden; }
a { color: var(--amber); }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
/* hidden always wins, even over display rules like .day's flex */
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(22, 17, 14, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
/* The logo mark: the Blender-rendered stage mic (art-src/), in a lit circle */
.brand .mic {
  width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(255, 181, 71, .7), 0 0 18px rgba(255, 90, 60, .5);
}
.brand .word { font: 30px/1 var(--display); letter-spacing: 1.5px; }
.brand .word b { color: var(--marquee); font-weight: 400; margin-left: 4px; }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 14px;
}
.tabs a.active { color: var(--ink); background: var(--amber); }
/* Phones: eight sections don't fit, so the tab row scrolls sideways, with a fade on the edge
   that still has more, and the current tab scrolled into view (app.js) */
@media (max-width: 1080px) {
  .top { gap: 8px; }
  .tabs { margin-left: 0; width: calc(100% + 32px); margin-right: -16px; margin-left: -16px; padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    scroll-padding: 0 16px; }
  .tabs.at-end { -webkit-mask-image: none; mask-image: none; }
  .tabs a { padding: 7px 11px; font-size: 14px; flex: none; }
}

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; outline: none; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 { font: clamp(40px, 8vw, 68px)/0.95 var(--display); letter-spacing: 1px; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; max-width: 60ch; }
.hero .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--marquee); font-weight: 700; }
.search {
  margin-top: 14px; width: 100%; max-width: 420px; padding: 11px 14px; border-radius: 10px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--cream); font: inherit;
}

/* ---------- filters ---------- */
.filters { display: grid; gap: 8px; padding: 14px 0 6px; }
.filters .row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters .row::-webkit-scrollbar { display: none; }
.filters .controls { flex-wrap: wrap; align-items: end; overflow: visible; }
.chip {
  border: 1px solid var(--line); background: var(--ink-2); color: var(--cream); padding: 7px 13px;
  border-radius: 999px; white-space: nowrap; cursor: pointer; font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--amber); }
.chip.on { background: var(--marquee); border-color: var(--marquee); color: #fff; }
.field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.field input, .field select {
  background: var(--ink-2); color: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font: 14px var(--body); min-width: 160px; text-transform: none; letter-spacing: 0;
}

/* ---------- feed ---------- */
.results { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 6px; }
@media (min-width: 720px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .results { grid-template-columns: repeat(3, 1fr); } }
.day {
  grid-column: 1 / -1; margin: 18px 0 0; font: 30px/1 var(--display); letter-spacing: 1px; color: var(--amber);
  display: flex; align-items: center; gap: 12px;
}
.day::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 12px); opacity: .45; }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: #5a4536; }
.thumb { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.card.is-short .thumb img { object-fit: cover; object-position: center 30%; }
.play {
  position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.play::after {
  content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--ink);
}
.stub {
  position: absolute; left: 10px; top: 10px; font: 17px/1 var(--display); letter-spacing: 1.2px;
  padding: 6px 12px 5px; border-radius: 4px; color: var(--ink); background: var(--cream);
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.stub-special { background: var(--amber); }
.stub-podcast { background: var(--teal); }
.stub-clip { background: var(--cream); }
.info { padding: 12px 14px 14px; display: grid; gap: 5px; }
.names { font: 22px/1.05 var(--display); letter-spacing: .8px; }
.who { color: var(--amber); text-decoration: none; }
.who:hover { text-decoration: underline; }
.who.muted { color: var(--muted); }
.amp { color: var(--muted); margin: 0 6px; }
.info h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.title { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-weight: 600; }
.title:hover { color: var(--amber); }
.meta { margin: 0; color: var(--muted); font-size: 13px; }
.clean { color: var(--teal); font-weight: 600; }
.styles { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.styles span { font-size: 12px; color: var(--violet); border: 1px solid rgba(185, 156, 255, .35); padding: 1px 8px; border-radius: 999px; }
.loading, .empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; text-align: center; }
.more-wrap { text-align: center; padding: 22px 0; }
.more { background: var(--marquee); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: 20px var(--display); letter-spacing: 1px; cursor: pointer; }

/* ---------- comedians ---------- */
.clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; padding-top: 16px; }
.cbadge {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
}
.cbadge:hover, .cbadge:focus-within { border-color: var(--amber); }
.crow { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--cream); }
.ctext { display: grid; gap: 2px; min-width: 0; }
.cname { font: 24px/1 var(--display); letter-spacing: .8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccount { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbadge .follow { flex: none; padding: 6px 12px; font-size: 13px; }
.face { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--ink-3);
  box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3px var(--line); }
.face.mono { display: grid; place-items: center; font: 22px/1 var(--display); letter-spacing: .5px; color: var(--cream);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h, 20) 70% 52%), hsl(var(--h, 20) 55% 26%)); }
.face.big { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--amber), 0 0 32px rgba(255, 181, 71, .35); }
.face.mono.big { font-size: 40px; }
.c-head { display: flex; align-items: center; gap: 16px; }
.c-head h1 { margin: 0; }
@media (max-width: 560px) { .face.big { width: 76px; height: 76px; } .face.mono.big { font-size: 32px; } }
.subtabs { display: flex; gap: 6px; padding: 16px 0 6px; overflow-x: auto; }
.subtabs button {
  border: 1px solid var(--line); background: var(--ink-2); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; font-weight: 600;
}
.subtabs button span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.subtabs button[aria-selected="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.subtabs button[aria-selected="true"] span { color: var(--ink); }

/* ---------- player sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 4, .82); }
.sheet-card {
  position: relative; width: min(960px, 100% - 24px); max-height: calc(100vh - 24px); overflow: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
}
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.frame.vertical { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; width: auto; height: 70vh; }
.frame iframe, .frame #yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Close lives in its own bar above the frame, never on top of YouTube's controls */
.sheet-bar { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 8px 10px; }
.sheet-bar .grab { position: absolute; left: 50%; top: 50%; width: 40px; height: 4px; margin: -2px 0 0 -20px; border-radius: 2px; background: var(--line); }
.close {
  border: 1px solid var(--line); background: var(--ink-3); color: var(--cream); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.close:hover { border-color: var(--amber); }
.frame + .sheet-body { padding: 14px 18px 18px; }
.sheet-body h2 { margin: 4px 0; font-size: 18px; }
.sheet-names { font: 26px/1 var(--display); letter-spacing: .8px; }
.sheet-meta { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.yt-link { font-weight: 600; font-size: 14px; }
@media (max-width: 640px) {
  .sheet { place-items: end stretch; }
  .sheet-card { width: 100%; border-radius: 18px 18px 0 0; max-height: 100vh; }
  .frame.vertical { height: 62vh; }
}

/* ---------- prose pages + footer ---------- */
.prose { max-width: 720px; padding: 26px 0; }
.prose h1 { font: 52px/1 var(--display); letter-spacing: 1px; margin: 0 0 12px; }
.prose h2 { font: 28px/1.1 var(--display); letter-spacing: .8px; color: var(--amber); margin: 26px 0 6px; }
.prose p, .prose li { color: #e7dccb; }
.foot { border-top: 1px solid var(--line); padding: 20px 16px 34px; text-align: center; color: var(--muted); font-size: 13px; }
.foot p { margin: 4px auto; max-width: 760px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) { .hero { padding-top: 18px; } }

/* ---------- filters: inline on desktop, a bottom sheet on phones ---------- */
.frow .chips { display: contents; }
.fbtn { display: none; }
.fsheet, .fs-card { display: contents; }
.fs-head, .fs-foot, .fs-backdrop, .fs-label { display: none; }
@media (max-width: 760px) {
  .fbtn {
    display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid var(--amber); color: var(--amber);
    background: transparent; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .fbtn::before { content: ""; width: 15px; height: 15px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h11M18 6h3M3 12h4M11 12h10M3 18h13M20 18h1' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='6' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='9' cy='12' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='18' cy='18' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h11M18 6h3M3 12h4M11 12h10M3 18h13M20 18h1' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='6' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='9' cy='12' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='18' cy='18' r='2.4' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
  .fbtn b { background: var(--amber); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 5px; }
  .fbtn.on { background: rgba(255, 181, 71, .12); }
  .fsheet { display: block; position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
  .fsheet.open { visibility: visible; pointer-events: auto; }
  .fs-backdrop { display: block; position: absolute; inset: 0; background: rgba(8, 5, 4, .7); opacity: 0; transition: opacity .2s; }
  .fsheet.open .fs-backdrop { opacity: 1; }
  .fs-card {
    display: grid; gap: 10px; position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto;
    padding: 6px 16px max(16px, env(safe-area-inset-bottom)); background: var(--ink-2); border-top: 1px solid var(--line);
    border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  }
  .fsheet.open .fs-card { transform: none; }
  .fs-head { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 14px 0 2px; }
  .fs-head .grab { position: absolute; left: 50%; top: 4px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
  .fs-head h3 { margin: 0; font: 30px/1 var(--display); letter-spacing: 1px; }
  .fs-label { display: block; margin: 4px 0 -4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .fs-card .row { flex-wrap: wrap; overflow: visible; }
  .fs-card .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .fs-card .field input, .fs-card .field select { min-width: 0; width: 100%; padding: 11px 12px; }
  .fs-card .controls .chip { justify-self: stretch; padding: 10px 13px; }
  .fs-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
  .fs-clear { background: none; border: 0; color: var(--cream); text-decoration: underline; font-weight: 600; padding: 12px 10px; cursor: pointer; }
  .fs-apply { border: 0; border-radius: 999px; background: var(--marquee); color: #fff; font-weight: 700; font-size: 16px; padding: 14px; cursor: pointer; }
  .fs-apply:disabled { background: var(--ink-3); color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .fs-card, .fs-backdrop { transition: none; } }

/* ---------- podcasts by show ---------- */
.show { padding-top: 10px; }
.show-name { font: 30px/1 var(--display); letter-spacing: .8px; margin: 18px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.show-name .new { font: 600 12px var(--body); letter-spacing: 0; color: var(--ink); background: var(--teal); padding: 3px 9px; border-radius: 999px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail .card { scroll-snap-align: start; }

/* ---------- comedian-friendly bits ---------- */
.sub {
  display: inline-flex; align-items: center; gap: 6px; background: var(--marquee); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
}
.sub::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.sub:hover { filter: brightness(1.1); }
.clinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.clink { color: var(--cream); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.clink:hover { border-color: var(--amber); }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#player-subs { display: contents; }
.spotlight { margin-top: 18px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 181, 71, .14), rgba(255, 90, 60, .10)); border: 1px solid rgba(255, 181, 71, .35); }
.spot-title { font: 30px/1 var(--display); letter-spacing: 1px; color: var(--amber); margin: 0 0 10px; }

/* ---------- tour dates + price comparison ---------- */
.tour { margin: 8px 0 18px; }
.gigs { display: grid; gap: 10px; margin-top: 10px; }
.gig {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.gdate {
  display: grid; justify-items: center; background: var(--ink-3); border-radius: 10px; padding: 6px 0;
  border-left: 3px dashed var(--marquee);
}
.gdate b { font: 15px/1 var(--display); letter-spacing: 1.5px; color: var(--marquee); text-transform: uppercase; }
.gdate span { font: 30px/1 var(--display); }
.gdate i { font-style: normal; font-size: 11px; color: var(--muted); }
.ginfo { min-width: 0; }
.ginfo .who { font-weight: 700; }
.gvenue { margin: 0; font-weight: 600; }
.gcity { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.compare { margin-top: 8px; }
.compare summary, .more-dates summary {
  cursor: pointer; display: inline-block; list-style: none; color: var(--ink); background: var(--amber);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px;
}
.compare summary::-webkit-details-marker, .more-dates summary::-webkit-details-marker { display: none; }
.more-dates { margin-top: 10px; }
.more-dates summary { background: var(--ink-3); color: var(--cream); border: 1px solid var(--line); }
.compare ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--ink);
}
.offer.best { border-color: var(--teal); }
.offer .vendor { font-weight: 600; display: grid; }
.offer .vendor small { font-weight: 400; color: var(--muted); font-size: 12px; }
.offer .price { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.offer .badge { background: var(--teal); color: var(--ink); border-radius: 6px; padding: 1px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.offer .trend { font-size: 12px; font-weight: 600; }
.offer .trend.down { color: var(--teal); }
.offer .trend.up { color: var(--marquee); }
.offer .buy { background: var(--marquee); color: #fff; text-decoration: none; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.offer .aff { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.live-pick { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 480px) {
  .offer { grid-template-columns: 1fr auto; }
  .offer .price { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .offer .buy { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- Radio Vault ---------- */
.stub-vault { background: var(--violet); }
.meta .fan { color: var(--violet); font-weight: 600; }
.vault-note { grid-column: 1 / -1; margin: 6px 0 0; color: var(--violet); font-size: 14px; }

/* ---------- audit additions: search, save, follow, watched, My list ---------- */
.qform { margin: 0; }
.qform input {
  width: 100%; max-width: 520px; padding: 10px 14px; border-radius: 10px; background: var(--ink-2);
  border: 1px solid var(--line); color: var(--cream); font: inherit;
}
.qform input:focus, .search:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.card { position: relative; }
.save {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(10, 7, 5, .72); cursor: pointer; display: grid; place-items: center;
}
.save::before {
  content: ""; width: 18px; height: 18px; background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.save.on::before { background: var(--amber); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z' fill='black' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4.5L6 21z' fill='black' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.save.labeled { position: static; width: auto; height: auto; border-radius: 999px; padding: 7px 14px 7px 12px; background: var(--ink-3);
  border: 1px solid var(--line); display: inline-flex; gap: 8px; color: var(--cream); font-weight: 600; font-size: 14px; }
.save.labeled::after { content: "Save"; }
.save.labeled.on::after { content: "Saved"; }
.save.labeled::before { width: 16px; height: 16px; }
.pbtn {
  border: 1px solid var(--line); background: var(--ink-3); color: var(--cream); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.pbtn:hover, .save.labeled:hover { border-color: var(--amber); }
.pbtn.next { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.pbtn[hidden] { display: none; }
#player-save { display: contents; }
.player-actions.subs { margin-top: 10px; }
.player-actions.subs:empty, .player-actions.subs:has(#player-subs:empty) { display: none; }
.watched {
  position: absolute; left: 10px; bottom: 10px; background: rgba(10, 7, 5, .8); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
}
.card.seen .thumb img { filter: saturate(.55) brightness(.8); }
.follow {
  border: 1px solid var(--amber); background: transparent; color: var(--amber); border-radius: 999px;
  padding: 7px 16px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.follow.on { background: var(--amber); color: var(--ink); }
.fstar { font-style: normal; color: var(--amber); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.fchips .chip { text-decoration: none; }
.notice { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); color: var(--cream); }
.mine-link {
  order: 3; text-decoration: none; color: var(--cream); font-weight: 600; font-size: 14px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.mine-link::before { content: "♥ "; color: var(--marquee); }
.mine-link.active { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.mine-link.active::before { color: var(--ink); }
@media (max-width: 1080px) {
  .mine-link { order: 0; margin-left: auto; font-size: 13px; padding: 5px 11px; }
}
.thumb.nothumb { background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); }
.thumb.nothumb img { visibility: hidden; }

/* ---------- comedy club directory ---------- */
.metro-name { font: 26px/1 var(--display); letter-spacing: .8px; color: var(--amber); margin: 18px 0 10px; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.club {
  display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--cream);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  border-top: 3px solid var(--marquee);
}
.club:hover { border-color: var(--amber); }
.club-top { display: flex; gap: 6px; min-height: 0; }
.club-top:empty { display: none; }
.pick { background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; }
.dist { background: var(--ink-3); color: var(--cream); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.club-name { font: 26px/1 var(--display); letter-spacing: .6px; }
.club-where { color: var(--muted); font-size: 14px; }
.club-about { font-size: 14px; color: #e7dccb; }
.club-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; }
.club-tags i { font-style: normal; font-size: 12px; color: var(--violet); border: 1px solid rgba(185, 156, 255, .4); border-radius: 999px; padding: 1px 8px; }
.club-hero .club-where { margin-top: 2px; }
.club-lede { color: var(--cream) !important; font-size: 16px; margin-top: 10px !important; }
.club-addr { margin-top: 10px !important; font-size: 14px; }
.lineup::before { display: none; }
.club-fine { margin: 26px 0 0; }
.meta .era { color: var(--amber); font-weight: 700; }

/* ---------- phones: bottom tab bar (Today, Explore, Comedians, Live, My list) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .tabs, .mine-link { display: none; }
  .top { padding-bottom: 10px; }
  .dock {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: rgba(22, 17, 14, .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .dock a { display: grid; justify-items: center; gap: 3px; padding: 5px 0 3px; text-decoration: none; color: var(--muted);
    font-size: 11px; font-weight: 600; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .dock svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; }
  .dock a.active { color: var(--amber); }
  .dock a.active svg { filter: drop-shadow(0 0 6px rgba(255, 181, 71, .55)); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- Explore: one tile per section ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; padding: 8px 0 20px; }
.tile {
  position: relative; display: grid; align-content: end; min-height: 150px; padding: 16px; border-radius: var(--radius);
  text-decoration: none; color: var(--cream); overflow: hidden; border: 1px solid var(--line);
  background: var(--tile-bg, linear-gradient(135deg, var(--ink-3), var(--ink-2)));
}
.tile .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; opacity: .9; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14, 10, 8, .88)); }
.tile > span { position: relative; z-index: 1; }
.tile .t-name { font: 34px/1 var(--display); letter-spacing: 1px; }
.tile .t-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tile .t-count { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: rgba(22, 17, 14, .75); color: var(--amber); }
.tile:hover, .tile:focus-visible { border-color: var(--amber); }
@media (max-width: 760px) { .tile { min-height: 124px; } }
#clubs, .day { scroll-margin-top: 80px; }
.tile-specials { --tile-bg: linear-gradient(135deg, #5a1f14, #211915 70%); }
.tile-roasts { --tile-bg: linear-gradient(135deg, #6b2a0c, #211915 70%); }
.tile-classics { --tile-bg: linear-gradient(135deg, #3d3524, #211915 70%); }
.tile-podcasts { --tile-bg: linear-gradient(135deg, #2b2346, #211915 70%); }
.tile-vault { --tile-bg: linear-gradient(135deg, #17363a, #211915 70%); }
.tile-clubs { --tile-bg: linear-gradient(135deg, #4a1730, #211915 70%); }

/* ---------- empty states: the stage mic in a spotlight ---------- */
.stage-empty { display: grid; justify-items: center; gap: 10px; padding: 26px 16px 30px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.stage-empty img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 181, 71, .5), 0 0 40px rgba(255, 140, 60, .35); }
.stage-empty p { margin: 0; max-width: 42ch; }

/* ---------- desktop: videos start on the first screen ---------- */
@media (min-width: 761px) {
  .hero { padding: 18px 0 4px; }
  .hero h1 { font-size: clamp(40px, 4.4vw, 50px); margin-bottom: 4px; }
  .spotlight { margin-top: 12px; padding: 12px 14px; }
  .spotlight .rail { grid-auto-columns: 250px; }
  .spotlight .card .styles { display: none; }
  .spotlight .card h3 .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .spotlight .card .info { padding-top: 8px; padding-bottom: 10px; }
  .spotlight .spot-title { margin-bottom: 8px; }
  .hero p { max-width: 90ch; }
  /* search, type chips, length chips and the rest flow together and wrap as space allows */
  .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; }
  .filters .qform { flex: 0 1 340px; }
  .filters .qform input { width: 100%; }
  .filters .row { flex: none; padding-bottom: 0; }
  .filters .controls { align-items: center; }
  .filters .controls .field { display: flex; align-items: center; gap: 6px; }
  .filters .controls .field input, .filters .controls .field select { min-width: 140px; padding: 7px 10px; }
}

/* ---------- club page map (OpenStreetMap embed) ---------- */
.club-map { margin: 16px 0 4px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.club-map iframe { display: block; width: 100%; height: 240px; border: 0; filter: saturate(.85) brightness(.92); }
.club-map figcaption { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.club-map figcaption a { color: var(--muted); }
