/* takeKONTROL – Gäste im Podcast
   Look taken from takekontrol.de: charcoal background, maroon gradient, coral red,
   Libre Franklin headings, Work Sans text, and the logo's quarter-circle curve
   repeated as the one big rounded corner on pictures and cards. */

:root {
  --bg: #151518;
  --bg-raise: #1C1B1E;
  --surface: #242225;
  --surface-2: #2E2B2D;
  --line: rgb(255 255 255 / .09);
  --line-strong: rgb(255 255 255 / .22);

  --head: #F4F4F4;
  --text: #D4D4D4;
  --muted: #9C9798;

  --red: #F84247;
  --red-hover: #FF5A5E;
  --maroon: #5E2427;
  --maroon-deep: #2E0A12;
  --cream: #F4ECDD;

  --font-head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --corner: clamp(34px, 6vw, 84px);   /* the logo curve */
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (min-width: 700px)  { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 44px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3 { color: var(--head); font-family: var(--font-head); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Logo ---------- */

.brand { display: inline-flex; color: var(--cream); text-decoration: none; }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lockup-mark { height: 36px; width: auto; }
.lockup-word { height: 16px; width: auto; fill: currentColor; }
.tk-light { fill: var(--cream); }
.tk-red { fill: var(--red); }
.brand--footer .lockup-mark { height: 30px; }
.brand--footer .lockup-word { height: 14px; }
@media (max-width: 480px) {
  .top .lockup-mark { height: 30px; }
  .top .lockup-word { height: 13px; }
}
@media (max-width: 380px) {
  .top { gap: 10px; }
  .top .lockup { gap: 8px; }
  .top .lockup-mark { height: 26px; }
  .top .lockup-word { height: 11px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .875rem/1 var(--font-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 32px -14px rgb(248 66 71 / .8); }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { background: rgb(255 255 255 / .04); border-color: var(--line-strong); color: var(--head); }
.btn--ghost:hover { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .08); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .8125rem; }
@media (max-width: 480px) {
  .top .btn--sm { min-height: 38px; padding: 0 14px; font-size: .75rem; letter-spacing: .06em; }
}
@media (max-width: 380px) {
  .top .btn--sm { min-height: 36px; padding: 0 12px; gap: 6px; font-size: .6875rem; letter-spacing: .04em; }
}
@media (max-width: 340px) {
  .top .btn--sm svg { display: none; }
}

.round {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgb(248 66 71 / .8);
  transition: background-color .15s ease, transform .15s ease;
}
.round:hover { background: var(--red-hover); }
.round:active { transform: scale(.96); }
.round svg { width: 20px; height: 20px; }

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--head);
  cursor: pointer;
}
.icon-btn:hover { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .06); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Seek slider ---------- */

.seek {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.seek:disabled { cursor: default; }
.seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--red) var(--p), rgb(255 255 255 / .16) var(--p));
}
.seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(255 255 255 / .16); }
.seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.seek:disabled::-webkit-slider-thumb { background: transparent; }
.seek:disabled::-moz-range-thumb { background: transparent; }
.seek:focus-visible { outline-offset: 0; }
.times { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Start page ---------- */

.page-index {
  background:
    radial-gradient(90% 60% at 80% 0%, rgb(248 66 71 / .14), transparent 60%),
    linear-gradient(180deg, var(--maroon) 0, #3B171B 38vh, var(--bg) 85vh) no-repeat,
    var(--bg);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.home { display: grid; gap: 20px; padding-bottom: 48px; }
.home-title {
  margin: 4px 0 0;
  max-width: 14ch;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.home-intro {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.5;
}

/* The wall: always three cards per row, so nine guests fill one screen */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .wall { gap: 12px; } }

/* Tablets upright: centred, and small enough that all nine cards fit on the screen */
@media (min-width: 600px) and (max-width: 1023px), (min-width: 1024px) and (orientation: portrait) {
  .home-side { text-align: center; }
  .home-title, .home-intro { margin-left: auto; margin-right: auto; }
  .home-wall, .wall-wrap > .wall { width: min(100%, max(460px, calc((100svh - 450px) / 1.25 + 24px))); margin-inline: auto; }
}
/* Short phones: drop the intro so the cards come first */
@media (max-width: 599px) and (max-height: 720px) {
  .home-intro { display: none !important; }
  .home-title { font-size: 1.75rem; }
  .top { padding-top: 10px; padding-bottom: 10px; }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .home {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(36px, 4vw, 80px);
    padding-top: 8px;
    padding-bottom: 64px;
  }
  .home-side { position: sticky; top: 24px; }
  .wall {
    --gap: 14px;
    --card-h: calc((100svh - 128px - 2 * var(--gap)) / 3);
    gap: var(--gap);
    width: min(calc(var(--card-h) * .8 * 3 + 2 * var(--gap)), 60vw);
  }
}

/* ---------- Cards ---------- */

.card {
  --card-corner: clamp(18px, 5.5vw, 56px);
  --p: 0%;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px var(--card-corner) 8px 8px;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: opacity .35s ease, filter .35s ease, box-shadow .25s ease;
}
.card-link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--head);
  text-decoration: none;
}
.card-link:focus-visible { outline-offset: -3px; border-radius: inherit; }
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform .5s var(--ease);
}
@media (hover: hover) { .card:hover .card-img { transform: scale(1.04); } }

/* Names show on tablets and up; on phones the cards stay image-only */
.card-name { display: none; }
@media (min-width: 700px) {
  .card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(21 21 24 / .92) 0%, rgb(21 21 24 / .5) 26%, rgb(21 21 24 / 0) 50%);
    pointer-events: none;
  }
  .card { container-type: inline-size; }
  .card-name {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 12px 58px 14px 12px;
    font: 700 .875rem/1.12 var(--font-head);
    font-size: clamp(.8125rem, 7.4cqi, 1.125rem);
    padding-right: calc(clamp(36px, 22cqi, 44px) + 18px);
    overflow-wrap: break-word;
  }
}

.card-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgb(0 0 0 / .5);
  transition: transform .15s ease, background-color .15s ease;
}
.card-play svg { width: 15px; height: 15px; }
.card-play:hover { background: var(--red-hover); transform: scale(1.06); }
@media (min-width: 700px) {
  .card-play { right: 10px; bottom: 10px; width: 40px; height: 40px; }
  .card-play { width: clamp(36px, 22cqi, 44px); height: clamp(36px, 22cqi, 44px); right: clamp(8px, 5cqi, 12px); bottom: clamp(8px, 5cqi, 12px); }
  .card-play svg { width: 18px; height: 18px; }
}

/* progress of the clip, along the bottom of the playing card */
.card-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 4px;
  background: rgb(255 255 255 / .18);
  opacity: 0;
  transition: opacity .2s ease;
}
.card-bar span { display: block; height: 100%; width: var(--p); background: var(--red); }
.card.is-current .card-bar { opacity: 1; }
.card.is-current { box-shadow: 0 0 0 3px var(--red), 0 18px 40px -14px rgb(248 66 71 / .55); }

/* "on air" bars on the playing card */
.card-live {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 3;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  padding: 5px 6px;
  border-radius: 999px;
  background: var(--red);
}
.card-live i { display: block; width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.card-live i:nth-child(2) { animation-delay: -.3s; }
.card-live i:nth-child(3) { animation-delay: -.6s; }
.card.is-playing .card-live { display: flex; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* while a clip plays, the other faces step back */
.wall.is-live .card:not(.is-current) { opacity: .42; filter: grayscale(.5); }
@media (hover: hover) { .wall.is-live .card:not(.is-current):hover { opacity: .85; filter: none; } }

.initials {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--muted);
  font: 800 clamp(1.5rem, 6vw, 4rem)/1 var(--font-head);
}
.is-missing .initials { display: grid; }
.is-missing img { visibility: hidden; }

.status { padding: 32px 0; color: var(--muted); max-width: 52ch; }

/* ---------- Now playing ("stage") ---------- */

.stage-mark { width: 120px; margin-bottom: 18px; }
.stage-mark svg { width: 100%; height: auto; overflow: visible; }
.m { transform-box: fill-box; transform-origin: center; }
.m-q, .m-s { fill: var(--cream); }
.m-l, .m-r { fill: var(--red); }
.stage-mark .m { opacity: 0; }
.stage-mark .m-q { transform: translate(-14%, -10%) scale(.92); }
.stage-mark .m-s { transform: scale(.2) rotate(-120deg); }
.stage-mark .m-l { transform: translateY(26%); }
.stage-mark .m-r { transform: translate(18%, 26%) rotate(8deg); }
.stage-mark.is-assembled .m { opacity: 1; transform: none; transition: transform 1s var(--ease), opacity .6s ease; }
.stage-mark.is-assembled .m-s { transition-delay: .18s; transition-duration: 1.2s; }
.stage-mark.is-assembled .m-l { transition-delay: .32s; }
.stage-mark.is-assembled .m-r { transition-delay: .44s; }

.stage-idle, .stage-live, .stage-done { display: none; }
.stage[data-state="idle"] .stage-idle,
.stage[data-state="done"] .stage-done { display: block; }
.stage[data-state="live"] .stage-live { display: grid; }

.stage-text { margin: 0 0 16px; color: var(--text); }
.stage-text strong { color: var(--head); font-weight: 600; }
.stage-label { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font-size: .875rem; }
.stage-label span:first-child { color: var(--head); font-weight: 600; }
.stage-count { font-variant-numeric: tabular-nums; }
.stage-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stage-thumb {
  position: relative;
  flex: none;
  width: 64px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 6px 18px 6px 6px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.stage-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.stage-thumb .initials { font-size: 1rem; }
.stage-names { min-width: 0; }
.stage-name {
  margin: 0;
  overflow: hidden;
  color: var(--head);
  font: 700 1.25rem/1.15 var(--font-head);
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.stage-sub { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: .9375rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stage-controls .round { width: 56px; height: 56px; }
.stage-controls .round svg { width: 22px; height: 22px; }
.stage-points { margin-left: auto; }
.stage-points svg { color: var(--red); width: 14px; height: 14px; }
.stage-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Desktop and landscape tablets: a panel under the headline */
@media (min-width: 1024px) and (orientation: landscape) {
  .stage {
    container: stage / inline-size;
    margin-top: 32px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px 40px 14px 14px;
    background: rgb(28 27 30 / .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .stage-live { gap: 14px; }
  .stage-live .seek { order: 3; }
  .stage-live .stage-who { order: 2; }
  .stage-live .stage-controls { order: 4; }
}
/* A narrow panel puts "Kernpunkte lesen" on its own row */
@container stage (max-width: 459px) {
  .stage-controls { row-gap: 12px; }
  .stage-points { flex: 1 1 100%; margin-left: 0; }
  .stage-name { font-size: 1.125rem; }
  .stage-thumb { width: 56px; }
}

/* Phones and upright tablets: a floating bar at the bottom */
@media (max-width: 1023px), (orientation: portrait) {
  .stage {
    text-align: left;
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 30;
    max-width: 720px;
    margin-inline: auto;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgb(36 34 37 / .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8);
  }
  .stage-mark { display: none; }
  .stage-idle .stage-text, .stage-done .stage-text { display: none; }
  .stage-idle .btn, .stage-done .btn--red { width: 100%; }
  .stage-done .btn--ghost { display: none; }
  .stage-live {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "seek seek seek seek seek" "thumb names toggle next points";
    align-items: center;
    column-gap: 10px;
    padding: 0 4px 2px;
  }
  .stage-live .seek { grid-area: seek; height: 14px; margin: -2px 0 2px; }
  .stage-label { display: none; }
  .stage-who, .stage-controls { display: contents; }
  .stage-thumb { grid-area: thumb; width: 42px; }
  .stage-names { grid-area: names; }
  .stage-name { font-size: .9375rem; line-height: 1.15; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
  .stage-sub { margin-top: 2px; font-size: .8125rem; }
  .stage-prev, .stage-controls .times { display: none; }
  .stage-controls .round { grid-area: toggle; width: 46px; height: 46px; }
  .stage-next { grid-area: next; width: 40px; height: 40px; }
  .stage-points { grid-area: points; min-height: 40px; padding: 0 12px; margin: 0; }
}
@media (max-width: 599px) {
  .stage-points { width: 40px; padding: 0; border-radius: 50%; }
  .stage-points .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* Small phones (320–379px): drop "next" so the name keeps its room */
@media (max-width: 379px) {
  .stage { padding: 6px; border-radius: 18px; }
  .stage-live {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "seek seek seek seek" "thumb names toggle points";
    column-gap: 8px;
  }
  .stage-next { display: none; }
  .stage-thumb { width: 36px; }
  .stage-name { font-size: .875rem; }
  .stage-sub { font-size: .75rem; }
  .stage-controls .round { width: 44px; height: 44px; }
  .stage-idle .btn, .stage-done .btn--red { min-height: 48px; padding: 0 16px; letter-spacing: .06em; }
}

/* ---------- Guest view (person page and quick view) ---------- */

.guest-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r) var(--corner) var(--r) var(--r);
}
.guest-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.guest-photo .initials { font-size: clamp(4rem, 14vw, 8rem); }

.guest-name {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 4.25rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.guest-role {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem);
  line-height: 1.35;
}
.guest-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 22px; }

/* Stacked layout: name on the picture, then the clip, then the key points */
.guest-hero { position: relative; }
.guest-hero .guest-photo { aspect-ratio: 4 / 4.2; max-height: 60vh; width: 100%; }
.guest-hero .guest-id {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 20px 20px;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(to top, rgb(21 21 24 / .95) 10%, rgb(21 21 24 / 0));
}
.guest--sheet .guest-hero .guest-photo { aspect-ratio: 4 / 3; max-height: 42vh; }
.guest--sheet .guest-hero .guest-id { padding: 64px 20px 18px; }
.guest--sheet .guest-name { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.guest--sheet .guest-role { margin-top: 8px; font-size: 1.0625rem; }
.guest--sheet .guest-main { gap: 26px; margin-top: 16px; }
@media (min-width: 900px) {
  .guest--sheet .guest-hero .guest-photo { aspect-ratio: 16 / 9; max-height: 38vh; }
}

/* Wide person page: picture left, everything else right */
@media (min-width: 960px) {
  .guest--page {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "photo id" "photo main";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
  }
  .guest--page .guest-hero { display: contents; }
  .guest--page .guest-photo { grid-area: photo; align-self: start; position: sticky; top: 24px; aspect-ratio: 4 / 5; max-height: none; }
  .guest--page .guest-id { grid-area: id; position: static; padding: 8px 0 0; background: none; }
  .guest--page .guest-main { grid-area: main; align-content: start; max-width: 46rem; }
  .guest--page .guest-name { font-size: clamp(3rem, 1.6rem + 3vw, 5rem); }
}

/* The clip player */
.clip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  padding: 16px 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.clip .round { grid-row: 1 / span 2; width: 60px; height: 60px; }
.clip .round svg { width: 24px; height: 24px; }
.clip-info { min-width: 0; }
.clip-label { margin: 0; color: var(--head); font: 700 1rem/1.25 var(--font-head); }
.clip-ep {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-track { display: flex; align-items: center; gap: 12px; }
.clip-track .seek { flex: 1; }
.clip-error { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }

/* Key points: the reason people come here */
.points-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.points-count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 .9375rem/1 var(--font-head);
}
.point-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.point {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r) 30px var(--r) var(--r);
  background: var(--surface);
}
.point svg { width: 20px; height: 20px; margin-top: .22em; color: var(--red); }
.point p { margin: 0; color: var(--head); font: 500 clamp(1.0625rem, 1rem + .3vw, 1.25rem)/1.5 var(--font-head); overflow-wrap: break-word; hyphens: auto; }

/* After the key points: go to the full episode */
.full {
  padding: 26px 24px;
  border-radius: var(--r) 44px var(--r) var(--r);
  background:
    radial-gradient(120% 120% at 100% 0%, rgb(248 66 71 / .28), transparent 55%),
    linear-gradient(135deg, var(--maroon), #2A1014);
  border: 1px solid rgb(248 66 71 / .25);
}
.full-title { margin: 0; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); font-weight: 700; letter-spacing: -.01em; }
.full-text { margin: 8px 0 20px; max-width: 52ch; color: var(--text); }
.full-text strong { color: var(--head); font-weight: 600; }
.full-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.full-where { color: var(--text); font-size: .9375rem; }
@media (max-width: 480px) {
  .full .btn { width: 100%; padding: 12px 20px; white-space: normal; text-align: center; line-height: 1.25; }
}

/* Small phones: tighter cards so the key points read comfortably at 320px */
@media (max-width: 400px) {
  .points-title { gap: 10px; margin-bottom: 12px; font-size: 1.25rem; }
  .points-count { min-width: 26px; height: 26px; font-size: .8125rem; }
  .point-list { gap: 8px; }
  .point { grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 10px 22px 10px 10px; }
  .point svg { width: 16px; height: 16px; margin-top: .3em; }
  .point p { font-size: 1rem; line-height: 1.45; }
  .clip { gap: 6px 12px; padding: 12px 14px 12px 12px; }
  .clip .round { width: 52px; height: 52px; }
  .clip .round svg { width: 22px; height: 22px; }
  .full { padding: 22px 18px; border-radius: 10px 32px 10px 10px; }
  .full .btn { gap: 8px; padding: 12px 16px; font-size: .8125rem; letter-spacing: .06em; }
  .full .btn svg:last-child { display: none; }
  .guest-hero .guest-id, .guest--sheet .guest-hero .guest-id { padding-left: 16px; padding-right: 16px; }
}

.guest-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--head);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.ext svg { width: 15px; height: 15px; }

/* ---------- Person page ---------- */

.page-person { background: linear-gradient(180deg, #3B171B 0, var(--bg) 560px) no-repeat, var(--bg); }
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.topbar .brand { justify-self: center; }
.topbar .lockup-word { display: none; }
@media (min-width: 600px) { .topbar .lockup-word { display: block; } }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 8px 0;
  color: var(--head);
  font-weight: 500;
  text-decoration: none;
}
.back svg { width: 20px; height: 20px; }
.back:hover span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.share { justify-self: end; }
.share svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .share .label { display: none; } .share { padding: 0 13px; } }

.person { padding-top: 8px; padding-bottom: 80px; }
.more { margin-top: 72px; }
.more-title { margin: 0 0 16px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); font-weight: 700; }
.more .wall { width: auto; }
@media (min-width: 1024px) { .more .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.notfound { padding: 32px 0 0; }
.notfound h1 { margin: 0; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1; }
.notfound p { margin: 16px 0 0; max-width: 48ch; }

/* ---------- Quick view (start page) ---------- */

.sheet {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.sheet::backdrop { background: rgb(8 8 10 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  opacity: 0;
  transform: translateY(28px);
  transition: transform .38s var(--ease), opacity .25s ease;
}
.sheet.is-open .sheet-panel { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .sheet-panel {
    left: auto;
    width: min(720px, 92vw);
    border-left: 1px solid var(--line);
    transform: translateX(40px);
    box-shadow: -30px 0 80px rgb(0 0 0 / .45);
  }
}
.sheet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.sheet-count { margin: 0 auto 0 6px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
@media (min-width: 600px) { .sheet-scroll { padding-left: 32px; padding-right: 32px; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 30px;
  padding-bottom: 34px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--head); font-size: .9375rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-copy { margin: 0; color: var(--muted); font-size: .875rem; }

/* ---------- Pictures that already show the name (site.picturesShowNames) ----------
   Square cards, no name laid over the picture, the full picture in the guest view. */

.pictures-show-names .card { aspect-ratio: 1 / 1; }
.pictures-show-names .card-img { object-position: 50% 50%; }
.pictures-show-names .card-name,
.pictures-show-names .card-link::after { display: none; }
.pictures-show-names .card-live { top: auto; bottom: 8px; left: 8px; }
.pictures-show-names .stage-thumb { aspect-ratio: 1 / 1; }

@media (min-width: 1024px) and (orientation: landscape) {
  .pictures-show-names .wall { width: min(calc(var(--card-h) * 3 + 2 * var(--gap)), 60vw); }
}
@media (min-width: 600px) and (max-width: 1023px), (min-width: 1024px) and (orientation: portrait) {
  .pictures-show-names .wall-wrap > .wall { width: min(100%, max(460px, calc(100svh - 430px))); }
}

/* Guest view: the whole square picture, the name stays for screen readers */
.pictures-show-names .guest-hero .guest-photo {
  aspect-ratio: 1 / 1;
  width: min(100%, 62vh);
  max-height: none;
  margin-inline: auto;
}
.pictures-show-names .guest--sheet .guest-hero .guest-photo { width: min(100%, 46vh); }
.pictures-show-names .guest-photo img { object-position: 50% 50%; }
.pictures-show-names .guest-hero .guest-id {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 960px) {
  /* wide person page: picture left, name and role on the right */
  .pictures-show-names .guest--page .guest-photo { width: 100%; aspect-ratio: 1 / 1; }
  .pictures-show-names .guest--page .guest-id {
    position: static;
    width: auto; height: auto;
    padding: 8px 0 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .stage-mark .m { opacity: 1 !important; transform: none !important; }
}
