/* Heard It on LOTD. Brand colors only: neon green, neon red, black, white and greys. */
.hi {
  --hi-green: #39ff14;
  --hi-red: #ff2020;
  --hi-ink: #f2f2f2;
  --hi-mute: #9a9a9a;
  --hi-rule: #222;
  --hi-panel: #0b0b0b;
  --hi-marker: 'Permanent Marker', Inter, sans-serif;
  --hi-cond: 'Barlow Condensed', 'Arial Narrow', Inter, sans-serif;
}
.ep-main:has(.hi) { max-width: 1080px; }

/* Header: a cassette J-card insert, ruled lines and a marker-written title */
.hi-head {
  position: relative;
  padding: 32px 20px 30px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(255, 255, 255, 0.05) 31px 32px),
    var(--hi-panel);
  overflow: hidden;
  isolation: isolate;
}
/* The guys, faint on the empty right side of the header, fading into the black so text stays readable */
.hi-head::after {
  content: ''; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 62%;
  background: url('/heard-it/the-guys-bw.jpg') right bottom / auto 90% no-repeat; /* sits on the bottom edge, headroom above */
  filter: brightness(0.32); /* dim the photo itself; opacity would darken its black backdrop below the panel */
  mix-blend-mode: lighten; /* the photo's black backdrop melts into the panel, no visible rectangle */
  -webkit-mask-image: linear-gradient(to right, transparent 10%, #000 70%);
  mask-image: linear-gradient(to right, transparent 10%, #000 70%);
}
.hi-title {
  margin: 0;
  font: 400 clamp(26px, 7.8vw, 60px)/1.05 var(--hi-marker);
  white-space: nowrap; /* one line, so the gradient runs green to red across the whole name */
  color: var(--hi-ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  /* Green to red across the words, like the homepage episode title; fit-content so the sweep spans the text, not the box */
  width: fit-content;
  padding-right: 0.08em; /* the marker font's last stroke overhangs; keep it inside the gradient */
  background-image: linear-gradient(100deg, var(--hi-green) 0%, var(--hi-green) 28%, var(--hi-red) 64%, #ff8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hi-sub { margin: 12px 0 0; color: #d4d4d4; font-size: 16px; line-height: 1.6; max-width: 620px; } /* same as the Spunkworks intro */
.hi-nosponsor { color: #d4d4d4; font-weight: 700; } /* the show's running line */
.hi-disclosure { position: relative; margin: 6px 0 0; color: var(--hi-mute); font-size: 13px; }
.hi-notes { margin-top: 44px; padding-top: 20px; border-top: 1px dashed #333; }
.hi-legend { display: flex; align-items: center; gap: 12px; }
.hi-legend img { width: 56px; height: 56px; border-radius: 3px; flex: none; }
/* Hover (or tap on phones) blows the badge up so you can actually see it */
.hi-legend-badge {
  position: relative; z-index: 3; cursor: zoom-in; transform-origin: left bottom;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hi-legend-badge:hover, .hi-legend-badge:focus {
  transform: scale(3.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); outline: none;
}
@media (prefers-reduced-motion: reduce) { .hi-legend-badge { transition: none; } }
.hi-legend p { margin: 0; color: #cfcfcf; font-size: 14px; }
.hi-legend b { color: var(--hi-red); text-transform: uppercase; letter-spacing: 0.08em; }

/* Category chips scroll sideways on phones rather than wrapping into a wall */
.hi-chips {
  display: flex; gap: 8px; margin: 22px -16px 0; padding: 2px 16px 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hi-chips[hidden] { display: none; }
.hi-chips::-webkit-scrollbar { display: none; }
.hi-filters { margin-top: 22px; display: grid; gap: 10px; }
.hi-filters .hi-chips { margin-top: 0; }
.hi-who-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hi-who-row .hi-chips { flex: 1; min-width: 0; margin-left: 0; padding-left: 0; }
.hi-filter-label { flex: none; color: var(--hi-mute); font: 700 11px/1 Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.hi-chip {
  flex: none; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #333; background: #000; color: #cfcfcf;
  font: 700 13px/1 Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.hi-chip:hover { border-color: #555; color: var(--hi-ink); }
.hi-chip[aria-pressed="true"] { background: var(--hi-green); border-color: var(--hi-green); color: #000; }
.hi-chip:focus-visible { outline: 2px solid var(--hi-green); outline-offset: 2px; }

.hi-section { margin-top: 22px; }
.hi-section[hidden] { display: none; }
.hi-grid { display: grid; grid-template-columns: 1fr; gap: 26px 20px; }
.hi-featured + .hi-grid { margin-top: 26px; }
.hi-empty { color: var(--hi-mute); margin: 8px 0; }

/* Cards stay overflow-visible so the sticker can hang off the corner */
.hi-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid #262626; border-radius: 14px; background: var(--hi-panel);
}
.hi-card[hidden] { display: none; }
.hi-media { position: relative; padding: 12px 12px 0; }
.hi-img {
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #171717;
  container-type: inline-size; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cassette stand-in for a product photo, face-on. Sized in cqw so it scales with the card. */
.hi-tape {
  --tape-ink: var(--hi-green);
  width: 82%; aspect-ratio: 1.6; position: relative;
  display: flex; flex-direction: column;
  padding: 2.6cqw 5cqw 0; border-radius: 2.6cqw;
  background: linear-gradient(#1c1c1c, #0f0f0f);
  border: 1px solid #333;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.hi-screw {
  position: absolute; width: 2.6cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #3a3a3a 0 30%, #0c0c0c 32% 60%, #2a2a2a 62%);
}
.hi-screw:nth-child(1) { top: 1.6cqw; left: 1.6cqw; }
.hi-screw:nth-child(2) { top: 1.6cqw; right: 1.6cqw; }
.hi-screw:nth-child(3) { bottom: 1.6cqw; left: 1.6cqw; }
.hi-screw:nth-child(4) { bottom: 1.6cqw; right: 1.6cqw; }
.hi-tape-top {
  display: flex; justify-content: space-between; gap: 2cqw; padding: 0 1.4cqw 1.4cqw;
  color: #d8d8d8; font: 700 2.6cqw/1 var(--hi-cond); letter-spacing: 0.06em; text-transform: uppercase;
}
.hi-tape-side { color: var(--tape-ink); }
/* Cassette words live in data-label so they're drawn, not read */
.hi-tape [data-label]::after { content: attr(data-label); }
.hi-tape-side::after { content: 'Side A'; }
.hi-tape-dir::after { content: 'Direction'; }
.hi-tape-noise::after { content: 'Noise'; }
.hi-tape-face {
  flex: 1; display: flex; flex-direction: column; border-radius: 1.6cqw;
  border: 1px solid #2c2c2c; background: #121212; overflow: hidden;
}
.hi-tape-name {
  padding: 1.6cqw 3cqw; background: #ebebeb; color: #111; text-align: center;
  font: 700 5.4cqw/1.02 var(--hi-cond); letter-spacing: 0.01em; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hi-tape-window {
  margin: auto 12%; padding: 1.4cqw 2.6cqw; border-radius: 9cqw;
  display: flex; align-items: center; justify-content: space-between;
  background: #0a0a0a; border: 1px solid #2a2a2a; box-shadow: inset 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.8);
}
.hi-reel {
  width: 12cqw; aspect-ratio: 1; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle, #0a0a0a 0 22%, transparent 23%),
    repeating-conic-gradient(#dcdcdc 0 22deg, #8a8a8a 22deg 30deg),
    #dcdcdc;
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23% 58%, transparent 59% 64%, #000 65%);
  mask: radial-gradient(circle, transparent 0 22%, #000 23% 58%, transparent 59% 64%, #000 65%);
}
.hi-tape-gap {
  flex: 1; height: 8cqw; margin: 0 2.4cqw; border-radius: 0.8cqw;
  background: linear-gradient(90deg, #1d1d1d, #2a2a2a 50%, #1d1d1d); border: 1px solid #333;
}
.hi-tape-base {
  align-self: center; width: 76%; height: 9cqw; margin-top: 1.2cqw; padding: 0 5cqw;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  background: linear-gradient(#1f1f1f, #161616);
  display: flex; justify-content: space-between; align-items: center; gap: 1.4cqw;
  color: #cfcfcf; font: 600 1.9cqw/1 var(--hi-cond); letter-spacing: 0.04em; text-transform: uppercase;
}
.hi-tape-base i { width: 2.4cqw; aspect-ratio: 1; border-radius: 50%; background: #050505; flex: none; }
.hi-tape-base b {
  padding: 0.5cqw 1.6cqw; border: 1px solid var(--tape-ink); border-radius: 0.6cqw;
  color: var(--tape-ink); font: 700 3cqw/1 var(--hi-cond); letter-spacing: 0.04em; white-space: nowrap;
}
.hi-tape-dir::before { content: ''; display: inline-block; margin-right: 0.8cqw; border-style: solid; border-width: 0.8cqw 1.2cqw 0.8cqw 0; border-color: transparent #cfcfcf transparent transparent; }
.hi-tape-noise::before { content: ''; display: inline-block; width: 1cqw; height: 1cqw; margin-right: 0.8cqw; border-radius: 50%; background: #cfcfcf; vertical-align: 0.15em; }
@media (prefers-reduced-motion: no-preference) {
  .hi-card:hover .hi-reel { animation: hi-spin 1.6s linear infinite; }
}
@keyframes hi-spin { to { transform: rotate(360deg); } }

.hi-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.hi-cat { margin: 0; color: var(--hi-mute); font: 700 14px/1 var(--hi-cond); letter-spacing: 0.12em; text-transform: uppercase; }
.hi-name { margin: 6px 0 6px; color: var(--hi-ink); font: 700 28px/1.05 var(--hi-cond); letter-spacing: 0.005em; }
.hi-who { margin: 0 0 14px; color: var(--hi-green); font: 700 18px/1.2 var(--hi-cond); letter-spacing: 0.01em; }
.hi-who-heft { color: var(--hi-red); text-transform: uppercase; letter-spacing: 0.06em; } /* red like the sticker */
.hi-credit { margin: 0 0 18px; color: var(--hi-mute); font-size: 14px; }
.hi-credit a { color: var(--hi-green); text-decoration: none; font-weight: 700; }
.hi-quote { margin: 0 0 18px; padding: 0 0 0 16px; border-left: 2px solid var(--hi-green); }
.hi-quote p { margin: 0; color: #e6e6e6; font-size: 16px; line-height: 1.55; }
.hi-quote footer { margin-top: 10px; color: var(--hi-mute); font-size: 14px; }
.hi-quote footer a { color: var(--hi-green); text-decoration: none; font-weight: 700; }
.hi-quote footer a:hover { text-decoration: underline; }
.hi-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hi-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px;
  font: 700 17px/1 var(--hi-cond); letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.hi-btn svg { flex: none; }
.hi-btn-hear { padding: 9px 14px; border: 1.5px solid var(--hi-green); color: var(--hi-green); }
.hi-btn-hear:hover { background: rgba(57, 255, 20, 0.1); }
.hi-btn-amazon { padding: 12px 18px; font-size: 19px; background: var(--hi-green); color: #000; border: 1.5px solid var(--hi-green); }
.hi-btn-amazon:hover { background: #000; color: var(--hi-green); }
.hi-btn:focus-visible { outline: 2px solid var(--hi-ink); outline-offset: 2px; }

.hi-sticker {
  /* Heft, slapped on the photo corner pointing at the product (featured: pointing into the card) */
  position: absolute; z-index: 2; left: 20px; bottom: 10px;
  width: 78px; height: auto; transform: rotate(-6deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* Featured: an inset green frame with a glow, and a filled "most talked about" pill */
.hi-featured {
  border-color: rgba(57, 255, 20, 0.22); border-radius: 18px; background: #070707;
  outline: 2px solid rgba(57, 255, 20, 0.75); outline-offset: -12px;
  box-shadow: 0 0 36px rgba(57, 255, 20, 0.12), inset 0 0 40px rgba(57, 255, 20, 0.05);
  padding: 12px;
}
.hi-flag {
  position: absolute; z-index: 1; top: 34px; left: 34px; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--hi-green); color: #000;
  font: 700 16px/1 var(--hi-cond); letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.hi-featured .hi-name { font-size: 34px; }
.hi-featured .hi-quote p { font-size: 18px; }

@media (max-width: 639px) {
  .hi-actions { align-items: center; } /* Hear it + Amazon centered on phones */
  .hi-who-row { display: block; }
  .hi-who-row .hi-filter-label { display: block; margin-bottom: 8px; }
  .hi-who-row .hi-chips { margin: 0 -16px; padding-left: 16px; }
  .hi-head::after { width: 100%; filter: brightness(0.2); background-position: center bottom; -webkit-mask-image: linear-gradient(to right, transparent 12%, #000 30%, #000 70%, transparent 88%); mask-image: linear-gradient(to right, transparent 12%, #000 30%, #000 70%, transparent 88%); }
  .hi-flag { top: 26px; left: 26px; font-size: 14px; padding: 7px 12px; }
}
@media (min-width: 640px) {
  /* Room for two-line names, text sitting on the bottom, so quotes start level across a row */
  .hi-grid .hi-name { min-height: 2.1em; display: flex; align-items: flex-end; }
  .hi-head { padding: 50px 36px 46px; }
  .hi-grid { grid-template-columns: repeat(2, 1fr); }
  .hi-featured { flex-direction: row; }
  .hi-featured .hi-media { flex: 0 0 46%; display: flex; padding: 14px; }
  .hi-featured .hi-img { flex: 1; aspect-ratio: auto; min-height: 340px; }
  .hi-featured .hi-body { padding: 30px 34px 30px 22px; justify-content: center; }
  .hi-featured .hi-actions { margin-top: 0; }
  .hi-featured .hi-sticker { width: 96px; left: auto; right: -30px; bottom: 18px; }
  .hi-featured .hi-name { font-size: 46px; }
}
@media (min-width: 960px) {
  .hi-grid { grid-template-columns: repeat(3, 1fr); }
  .hi-chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
}
