/* ═══════════════════════════════════════════════════════════════════════
   Home page — full-screen video hero + "What's new" carousel
   ═══════════════════════════════════════════════════════════════════════ */

/* Handwriting face for the hero's "You are" note (Caveat, SIL OFL). */
@font-face {
  font-family: 'Caveat';
  src: url('../assets/fonts/Caveat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--banner-h, 0px) + clamp(3rem, 12vh, 9rem));
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Shows if the video and poster are both missing. */
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(254, 204, 47, 0.14), transparent 60%),
    linear-gradient(160deg, #1b1c1b, var(--bg));
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Scrims: keep the copy legible and melt the bottom into the page. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8, 9, 8, 0.72) 0%, rgba(8, 9, 8, 0.25) 55%, rgba(8, 9, 8, 0.1) 100%),
    linear-gradient(to bottom, rgba(8, 9, 8, 0.35) 0%, rgba(8, 9, 8, 0) 30%, rgba(8, 9, 8, 0.55) 70%, var(--bg) 100%);
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: initial;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
/* "You are" — scribbled in gold, tilted, with a hand-drawn underline. */
.hero-note {
  position: relative;
  display: inline-block;
  font-family: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  font-weight: 700;
  font-size: 0.72em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--gold);
  transform: rotate(-7deg);
  transform-origin: left bottom;
  margin: 0 0 0.12em 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-note__line {
  position: absolute;
  left: -4%;
  bottom: -0.32em;
  width: 108%;
  height: 0.38em;
  overflow: visible;
}
.hero-note__line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: note-draw 0.9s 0.35s var(--ease) forwards;
}
@keyframes note-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-note__line path { animation: none; stroke-dashoffset: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}

/* Pause / play for the background video (WCAG 2.2.2). */
.hero-toggle {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + var(--banner-h, 0px) + 1rem);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-toggle:hover { opacity: 1; border-color: var(--gold); }
.hero-toggle svg { width: 14px; height: 14px; }
.hero-toggle .i-play { display: none; }
.hero-toggle[aria-pressed='true'] .i-play { display: block; }
.hero-toggle[aria-pressed='true'] .i-pause { display: none; }
.hero-toggle[hidden] { display: none; }

/* ── Carousel (scroll-snap track + dots + arrows) ─────────────────────── */
.carousel { margin-top: clamp(2.5rem, 7vh, 4.5rem); }
.carousel[hidden] { display: none; }

.carousel-track {
  --edge: max(var(--gutter), (100% - var(--wrap-wide)) / 2);
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 6px var(--edge) 10px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -2px; border-radius: 0; }
.carousel-track > li { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-track > li[hidden] { display: none; }

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}
.carousel-controls[hidden] { display: none; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.carousel-dots button[aria-current='true'] { width: 28px; border-radius: 4px; background: var(--gold); }
.carousel-arrows { display: flex; gap: 12px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: var(--fg);
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover:not(:disabled) { background: var(--gold); color: #111; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

/* ── Tiles ────────────────────────────────────────────────────────────── */
.tile {
  --tile-accent: var(--gold);
  width: min(340px, 80vw);
}
.tile-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 430px;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  background: rgba(22, 23, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tile-link:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tile-accent) 55%, transparent);
  background: rgba(26, 27, 26, 0.75);
}
.tile-link:focus-visible { outline-offset: 2px; border-radius: var(--radius-lg); }

.tile-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tile-accent);
}
.tile-title {
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
}
.tile-body {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--fg-muted);
}
.tile-media {
  margin-top: auto;
  padding-top: 20px;
}
.tile-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: #222;
}
/* Live cards (Latest Teaching, News): title over a gradient on the image. */
.tile-media--teaching, .tile-media--live { position: relative; }
.tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
  /* Clear of the round + button in the corner. */
  padding: 2.75rem 4rem 0.9rem 1rem;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  animation: fade-in 0.5s var(--ease);
}
.tile-cap__series {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tile-accent);
}
.tile-cap__series:empty { display: none; }
.tile-cap__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.3rem; line-height: 1.08; letter-spacing: -0.01em;
  text-wrap: balance;
  /* Long titles (newsletter subjects) stop at two lines. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.tile-cap__meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.tile-cap__meta:empty { display: none; }
@keyframes fade-in { from { opacity: 0; } }

/* Series album cover: a small rounded square in the image's top-left
   corner, the same size and inset as the round + button opposite it. */
.teaching-album {
  position: absolute;
  top: calc(20px + 10px); /* figure padding-top + inset */
  left: 10px;
  width: 36px;
  height: 36px;
  animation: fade-in 0.5s var(--ease);
}
.teaching-album img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #222;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* The round "+" in the corner of the picture, as on the Slipity tiles. */
.tile-more {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tile-accent);
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}
.tile-more svg { width: 14px; height: 14px; }
.tile-link:hover .tile-more { transform: scale(1.1) rotate(90deg); }

/* Cover tile: the picture fills the whole card. Eyebrow stays on top;
   the caption sits on a 15°-tilted gradient that spans the card. */
.tile--cover .tile-link {
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.tile--cover .tile-link::before { /* soft top scrim so the eyebrow reads */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* Eyebrow on a small dark chip so the accent color reads on any picture. */
.tile--cover .tile-eyebrow,
.tile--upcoming .tile-eyebrow {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 20px 0 0 20px;
  padding: 0.4rem 0.7rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tile--cover .tile-media {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 0;
}
.tile--cover .tile-media > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  transition: transform 0.6s var(--ease);
}
.tile--cover .tile-link:hover .tile-media > img { transform: scale(1.04); }

/* Loading: a faint, breathing tint of the card's accent color, then the
   picture fades in over it (js/home.js → reveal). Caption and album wait. */
.tile--cover .tile-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--tile-accent) 22%, var(--bg));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tile--cover .tile-media.is-loading::before { animation: tile-pulse 1.6s ease-in-out infinite; }
@keyframes tile-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.tile--cover .tile-media > img {
  position: relative; /* paints above the tint */
  opacity: 1;
  transition: opacity 0.7s var(--ease), transform 0.6s var(--ease);
}
.tile--cover .tile-media.is-loading > img { opacity: 0; }
/* No picture at all: just the accent color, steady and a little brighter. */
.tile--cover .tile-media.no-image::before {
  background: color-mix(in srgb, var(--tile-accent) 32%, var(--bg));
  opacity: 1;
}
.tile--cover .tile-media.no-image > img { display: none; }
.tile--cover .tile-cap,
.tile--cover .teaching-album { transition: opacity 0.7s var(--ease); }
.tile-media.is-loading .tile-cap,
.tile-media.is-loading .teaching-album { opacity: 0; }
.tile-cap.is-waiting { opacity: 0; } /* live caption on a static picture, until its feed answers */
@media (prefers-reduced-motion: reduce) {
  .tile--cover .tile-media.is-loading::before { animation: none; opacity: 0.6; }
}
.tile--cover .tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 32%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}
.tile--cover .tile-cap {
  z-index: 2;
  padding: 0 4.5rem 24px 24px;
  border-radius: 0;
  background: none;
}
.tile--cover .tile-cap__title { font-size: 1.55rem; }
.tile--cover .tile-cap__meta { font-size: 0.88rem; line-height: 1.4; margin-top: 0.2rem; }
.tile--cover .teaching-album { z-index: 2; top: 20px; left: auto; right: 22px; }
.tile--cover .tile-more { z-index: 2; right: 22px; bottom: 22px; }
@media (prefers-reduced-motion: reduce) {
  .tile--cover .tile-media > img { transition: none; }
  .tile--cover .tile-link:hover .tile-media > img { transform: none; }
}

/* Upcoming card: a short list of next events instead of a picture.
   The card itself isn't a link; each row is, plus "See all events". */
.tile--upcoming .tile-link {
  padding: 0 20px 20px;
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--tile-accent) 26%, transparent), transparent 70%),
    rgba(22, 23, 22, 0.62);
}
.tile--upcoming .tile-link:hover { transform: none; }
.tile--upcoming .tile-eyebrow { margin-left: 0; } /* card padding already insets it */
.up-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.up-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.up-row:hover, .up-row:focus-visible { background: rgba(255, 255, 255, 0.07); }
/* Event with a picture (first image link in its description), like /events. */
.up-row.has-img {
  background:
    linear-gradient(90deg, rgba(20, 21, 20, 0.92) 0%, rgba(20, 21, 20, 0.78) 50%, rgba(20, 21, 20, 0.4) 100%),
    var(--img) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.up-row.has-img:hover, .up-row.has-img:focus-visible {
  background:
    linear-gradient(90deg, rgba(20, 21, 20, 0.85) 0%, rgba(20, 21, 20, 0.65) 50%, rgba(20, 21, 20, 0.25) 100%),
    var(--img) center / cover no-repeat;
}
.up-row.has-img .up-date { background: color-mix(in srgb, var(--cal, var(--tile-accent)) 22%, rgba(10, 10, 10, 0.55)); }
.up-row.has-img .up-meta { color: rgba(255, 255, 255, 0.78); }
/* Date tile, tinted with the event's calendar color (All-Church, Teens…). */
.up-date {
  flex: 0 0 auto;
  width: 48px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cal, var(--tile-accent)) 18%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cal, var(--tile-accent)) 40%, transparent);
}
.up-mon {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cal, var(--tile-accent));
}
.up-day { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; line-height: 1; }
.up-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up-name, .up-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.up-meta { font-size: 0.8rem; color: var(--fg-muted); }
/* Loading rows: same breathing tint as the picture cards. */
.up-ghost {
  height: 72px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tile-accent) 14%, transparent);
  animation: tile-pulse 1.6s ease-in-out infinite;
}
.up-ghost:nth-child(2) { animation-delay: 0.15s; }
.up-ghost:nth-child(3) { animation-delay: 0.3s; }
.up-ghost:nth-child(4) { animation-delay: 0.45s; }
.up-row { animation: fade-in 0.5s var(--ease); }
.up-empty { padding: 10px 4px; font-size: 1.05rem; color: var(--fg-muted); }
.up-all {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 0 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--fg);
  text-decoration: none;
}
.up-all .tile-more { position: static; }
.up-all:hover .tile-more { transform: scale(1.1) rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .up-ghost { animation: none; opacity: 0.6; }
}

.tile[data-accent='blue'] { --tile-accent: var(--accent-blue); }
.tile[data-accent='green'] { --tile-accent: var(--accent-green); }
.tile[data-accent='purple'] { --tile-accent: var(--accent-purple); }
.tile[data-accent='orange'] { --tile-accent: var(--accent-orange); }
.tile[data-accent='red'] { --tile-accent: var(--accent-red); }

/* ── Blocks (TBD) ─────────────────────────────────────────────────────── */
.blocks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.blocks__grid .ph { min-height: 280px; }

/* Promo block (e.g. the Renovation app): picture on top, words below,
   whole card is the link. */
.promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.promo:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.promo:focus-visible { outline-offset: 3px; }
/* Block graphics are 16:9 (e.g. 1920×1080). A square graphic can use
   class="promo promo--square" until a 16:9 version exists. */
.promo__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.promo:hover .promo__img { transform: scale(1.03); }
.promo--square .promo__img { aspect-ratio: 1; }
.promo__body {
  position: relative; /* stays above the zooming picture */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
  background: var(--bg-card);
}
.promo__title { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
.promo__note { font-size: 0.88rem; line-height: 1.45; color: var(--fg-muted); }
.promo__note b { color: var(--fg); font-weight: 700; }
.promo__btn { align-self: flex-start; margin-top: auto; } /* buttons line up across a row */
@media (prefers-reduced-motion: reduce) {
  .promo, .promo__img { transition: none; }
  .promo:hover, .promo:hover .promo__img { transform: none; }
}

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .tile-link { min-height: 400px; }
  .carousel-arrows { display: none; }
}

/* ── Build-in on load ─────────────────────────────────────────────────
   "You are" → "Made for More" → buttons → cards one by one, left to right.
   Uses the `translate` property so it doesn't fight the note's rotate or
   the cards' hover lift. Cards get --i (their visible position) from
   js/home.js. */
@keyframes build-up { from { opacity: 0; translate: 0 18px; } }
@keyframes build-in { from { opacity: 0; } } /* cards: fade only — moving the frosted cards stuttered */
.hero-note,
.hero-line,
.hero-actions .btn { animation: build-up 0.8s var(--ease) both; }
.hero-line { display: inline-block; }
.hero-note { animation-delay: 0.1s; }
.hero-line { animation-delay: 0.25s; }
.hero-actions .btn:nth-child(1) { animation-delay: 0.45s; }
.hero-actions .btn:nth-child(2) { animation-delay: 0.55s; }
.hero-note__line path { animation-delay: 0.6s; }
.carousel-track > .tile {
  animation: build-in 0.7s ease-out both;
  animation-delay: calc(0.7s + var(--i, 0) * 0.12s);
}
.carousel-controls { animation: build-up 0.6s var(--ease) 1.1s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-note, .hero-line, .hero-actions .btn,
  .carousel-track > .tile, .carousel-controls { animation: none; }
  .tile-link, .tile-more, .carousel-dots button { transition: none; }
  .tile-link:hover { transform: none; }
}

/* ── Livestream in the hero (js/live.js) ──────────────────────────────
   Closed until we're live; then it opens above the headline, pushing
   "You are Made for More" down and making it a bit smaller. */
.hero-live {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  max-width: 880px;
  transition: grid-template-rows 0.9s var(--ease), opacity 0.6s ease 0.15s, margin 0.9s var(--ease);
}
.hero-live__inner { min-height: 0; overflow: hidden; }
.hero.is-live .hero-live { grid-template-rows: 1fr; opacity: 1; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.hero.is-live { padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 1.5rem); }
.hero { transition: padding-top 0.9s var(--ease); }
.hero-copy h1 { transition: font-size 0.9s var(--ease); }
.hero.is-live .hero-copy h1 { font-size: clamp(2.4rem, 6vw, 5rem); }

.hero-live__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.hero-live__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e5322d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-live__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live-dot 1.4s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: 0.25; } }
.hero-live__title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-live__yt { font-size: 0.88rem; font-weight: 700; color: var(--fg-muted); }
.hero-live__yt:hover { color: var(--fg); }

.hero-live__player { position: relative; }
.hero-live__frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-live__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hero-live__sound {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.hero-live__sound:hover { background: rgba(10, 10, 10, 0.9); }
.hero-live__sound[hidden] { display: none; }
.hero-live__sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .hero-live, .hero, .hero-copy h1 { transition: none; }
  .hero-live__tag::before { animation: none; }
}
