/**
 * Sovereign Terminal — front page sections.
 * Markup: front-page.php, inc/home.php. Player behaviour: assets/js/hero.js.
 * Uses the tokens defined in main.css. The ticker and crypto section keep
 * their own styles.
 */

/* ══ Shared ══════════════════════════════════════════════════════════════════ */

/* Section header: eyebrow + serif title, intro or link on the right. */
.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--gold-hairline-strong);
}

.home-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.home-head__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.home-head__title {
  font-family: var(--font-headline);
  font-size: var(--text-headline-lg);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-head__intro {
  max-width: 44ch;
  font-size: 0.9375rem;
  color: var(--ink-body);
  text-align: right;
}

.home-head__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.home-head__link svg {
  transition: transform 0.2s ease;
}

.home-head__link:hover svg {
  transform: translateX(3px);
}

/* Post artwork, or a gold monogram plate when the post has no image. */
.home-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--deep);
}

.home-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(176, 141, 63, 0.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(227, 201, 131, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #1e1a15, var(--deep));
}

.home-media__ph-mark {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  line-height: 1;
  color: var(--gold-bright);
  opacity: 0.85;
}

.home-media__ph-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(227, 201, 131, 0.6);
}

a:hover .home-media__img,
a:focus-visible .home-media__img {
  transform: scale(1.04);
}

/* ══ Hero — podcast studio ═══════════════════════════════════════════════════ */
.pod {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16) var(--space-16);
  background: var(--deep);
  color: var(--base);
}

.pod__fx,
.pod__fx > span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Background photo: desaturated, sepia-toned towards gold, faded at the edges */
.pod__photo {
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(1) sepia(0.55) brightness(0.75) contrast(1.05);
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(85% 90% at 50% 45%, #000 35%, transparent 85%);
  mask-image: radial-gradient(85% 90% at 50% 45%, #000 35%, transparent 85%);
}

.pod__glow {
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(176, 141, 63, 0.3), transparent 65%),
    radial-gradient(45% 60% at 0% 100%, rgba(176, 141, 63, 0.14), transparent 70%);
}

.pod__grid {
  background-image:
    linear-gradient(rgba(227, 201, 131, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 201, 131, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 90% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 90% at 60% 20%, #000 20%, transparent 75%);
}

.pod__fx > .pod__ring {
  inset: auto;
  right: -180px;
  top: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(227, 201, 131, 0.14);
  box-shadow:
    0 0 0 70px rgba(227, 201, 131, 0.025),
    0 0 0 140px rgba(227, 201, 131, 0.015);
}

.pod__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-12);
  /* Playlist sits on the vertical centre of the episode column */
  align-items: center;
}

/* Kicker */
.pod__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.pod__kicker-rule {
  width: 32px;
  height: 1px;
  background: rgba(227, 201, 131, 0.45);
}

.pod__kicker-meta {
  color: rgba(252, 250, 246, 0.55);
}

/* Title */
.pod__title {
  margin-bottom: var(--space-5);
  font-family: var(--font-headline);
  font-size: clamp(2.125rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--base);
}

.pod__title-lead,
.pod__title-accent {
  display: block;
}

.pod__title-accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #f3dfa6 0%, var(--gold-bright) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pod__sub {
  max-width: 58ch;
  margin-bottom: var(--space-8);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(252, 250, 246, 0.72);
}

/* Episode switch: copy rises back in */
.pod.is-switching .pod__title,
.pod.is-switching .pod__sub,
.pod.is-switching .pod__about {
  animation: pod-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pod.is-switching .pod__sub { animation-delay: 0.05s; }
.pod.is-switching .pod__about { animation-delay: 0.1s; }

@keyframes pod-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Player card */
.pod-player {
  position: relative;
  padding: var(--space-5) var(--space-6) var(--space-4);
  border: 1px solid rgba(227, 201, 131, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(252, 250, 246, 0.06), rgba(252, 250, 246, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(252, 250, 246, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

.pod-player__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 250, 246, 0.6);
}

.pod-player__state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.pod-player.is-playing .pod-player__state {
  color: var(--gold-bright);
}

.pod-player__ep {
  font-variant-numeric: tabular-nums;
}

/* Equaliser */
.pod-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.pod-eq i {
  width: 3px;
  height: 30%;
  border-radius: 1px;
  background: currentColor;
}

.is-playing .pod-eq i,
.pod.is-playing .pod-ep[aria-current="true"] .pod-eq i {
  animation: pod-eq 0.9s ease-in-out infinite alternate;
}

.pod-eq i:nth-child(2) { animation-delay: -0.3s; }
.pod-eq i:nth-child(3) { animation-delay: -0.6s; }
.pod-eq i:nth-child(4) { animation-delay: -0.15s; }

@keyframes pod-eq {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* Waveform scrubber */
.pod-wave {
  position: relative;
  height: 64px;
  container-type: inline-size;
  cursor: pointer;
  touch-action: none;
  border-radius: var(--radius-md);
}

.pod-wave:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.pod-wave__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.pod-wave__bars i {
  flex: 1;
  height: var(--h);
  min-width: 2px;
  border-radius: 2px;
  background: rgba(252, 250, 246, 0.16);
}

/* Buffered range: a hairline under the bars. */
.pod-wave__buffer {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(252, 250, 246, 0.14);
  pointer-events: none;
}

.pod-wave__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* The played copy spans the whole wave, so it must match the wave's width,
   not the fill's — 100cqw is the scrubber's own inline size. */
.pod-wave__bars--played {
  right: auto;
  width: 100cqw;
}

.pod-wave__bars--played i {
  background: linear-gradient(180deg, #f3dfa6, var(--gold));
}

.pod-wave__fill::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  width: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(227, 201, 131, 0.9);
}

.pod-player__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pod-player__time {
  font-size: 0.75rem;
  color: rgba(252, 250, 246, 0.55);
  font-variant-numeric: tabular-nums;
}

.pod-player__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.pod-transport {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pod-transport__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(252, 250, 246, 0.72);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.pod-transport__btn:hover:not(:disabled) {
  color: var(--gold-bright);
  background: rgba(252, 250, 246, 0.06);
}

.pod-transport__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pod-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-inline: var(--space-2);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #f3dfa6, var(--gold-bright) 45%, var(--gold));
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(176, 141, 63, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pod-play:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(176, 141, 63, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pod-play__off,
.pod-play.is-playing .pod-play__on {
  display: none;
}

.pod-play.is-playing .pod-play__off {
  display: block;
}

.pod-play:focus-visible,
.pod-transport__btn:focus-visible,
.pod-rate:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.pod-rate {
  min-width: 40px;
  height: 28px;
  padding: 0 var(--space-2);
  border: 1px solid rgba(252, 250, 246, 0.16);
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(252, 250, 246, 0.72);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
}

.pod-rate:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Unmute prompt — floats on the player's top edge */
.unmute {
  position: absolute;
  top: 0;
  right: var(--space-6);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--gold-bright);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(227, 201, 131, 0.6);
  opacity: 0;
  transform: translateY(-40%) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.unmute.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: pod-ping 2.2s ease-out infinite;
}

.unmute__icon {
  display: inline-flex;
}

@keyframes pod-ping {
  70% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(227, 201, 131, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(227, 201, 131, 0); }
}

/* About */
.pod__about {
  max-width: 64ch;
  margin-top: var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(252, 250, 246, 0.62);
}

.pod__about-label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* Playlist */
.pod__list {
  padding: var(--space-5);
  border: 1px solid rgba(227, 201, 131, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(252, 250, 246, 0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pod__list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-4);
}

.pod__list-title {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--base);
}

.pod__list-count {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 250, 246, 0.5);
}

.pod-eps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pod-ep {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pod-ep:hover {
  background: rgba(252, 250, 246, 0.04);
}

.pod-ep:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.pod-ep[aria-current="true"] {
  border-color: rgba(227, 201, 131, 0.35);
  background: linear-gradient(120deg, rgba(227, 201, 131, 0.12), rgba(227, 201, 131, 0.03));
}

.pod-ep__num {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
  color: rgba(252, 250, 246, 0.3);
}

.pod-ep[aria-current="true"] .pod-ep__num {
  color: var(--gold-bright);
}

.pod-ep__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.pod-ep__meta {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.pod-ep__title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--base);
}

.pod-ep__sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(252, 250, 246, 0.55);
}

.pod-ep__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(252, 250, 246, 0.16);
  border-radius: 50%;
  color: rgba(252, 250, 246, 0.8);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pod-ep:hover .pod-ep__icon,
.pod-ep[aria-current="true"] .pod-ep__icon {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.pod-ep .pod-eq,
.pod.is-playing .pod-ep[aria-current="true"] .pod-ep__icon-play {
  display: none;
}

.pod.is-playing .pod-ep[aria-current="true"] .pod-eq {
  display: inline-flex;
}

.pod-ep__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.pod-ep__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-bright);
}

/* ══ Floating mini player ════════════════════════════════════════════════════ */
.pod-mini {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: min(460px, calc(100vw - 32px));
  padding: 12px 14px 18px;
  border: 1px solid rgba(227, 201, 131, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(176, 141, 63, 0.22), transparent 60%),
    rgba(20, 18, 16, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(252, 250, 246, 0.08);
  color: var(--base);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pod-mini.is-visible {
  opacity: 1;
  transform: none;
}

.pod-mini[hidden] {
  display: none;
}

/* Play button wrapped in a progress ring */
.pod-mini__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(227, 201, 131, 0.12);
  color: var(--gold-bright);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pod-mini__play:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.pod-mini__play .pod-play__off,
.pod-mini__play.is-playing .pod-play__on {
  display: none;
}

.pod-mini__play.is-playing .pod-play__off {
  display: block;
}

.pod-mini__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.pod-mini__ring circle {
  fill: none;
  stroke-width: 3;
}

.pod-mini__ring-track {
  stroke: rgba(252, 250, 246, 0.12);
}

.pod-mini__ring-fill {
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.3s linear;
}

.pod-mini__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
}

.pod-mini__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.pod-mini__title {
  overflow: hidden;
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--base);
}

.pod-mini__info:hover .pod-mini__title {
  color: var(--gold-bright);
}

.pod-mini__time {
  font-size: 0.6875rem;
  color: rgba(252, 250, 246, 0.5);
  font-variant-numeric: tabular-nums;
}

.pod-mini__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pod-mini__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(252, 250, 246, 0.7);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pod-mini__btn:hover:not(:disabled) {
  background: rgba(252, 250, 246, 0.08);
  color: var(--gold-bright);
}

.pod-mini__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pod-mini__play:focus-visible,
.pod-mini__btn:focus-visible,
.pod-mini__info:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* Sound: a gold "Unmute" pill while muted, a plain icon once audible */
.pod-mini__sound-text,
.pod-mini__muted {
  display: none;
}

.pod-mini.is-muted .pod-mini__muted,
.pod-mini.is-muted .pod-mini__sound-text {
  display: inline;
}

.pod-mini.is-muted .pod-mini__loud {
  display: none;
}

.pod-mini.is-muted .pod-mini__btn--sound {
  padding: 0 12px;
  background: var(--gold-bright);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pod-ping 2.2s ease-out infinite;
}

/* Thin seek bar along the bottom edge */
.pod-mini__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: rgba(252, 250, 246, 0.1);
  cursor: pointer;
}

.pod-mini__bar::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.pod-mini__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

/* ══ The Desks — four cards across ═══════════════════════════════════════════ */
.desks2__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--elevated);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dcard::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--space-5);
  right: var(--space-5);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.dcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dcard__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name arrow"
    "num count arrow";
  column-gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}

.dcard__num {
  grid-area: num;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}

.dcard__name {
  grid-area: name;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.dcard__count {
  grid-area: count;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dcard__arrow {
  grid-area: arrow;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}

.dcard__head:hover .dcard__arrow {
  transform: translate(2px, -2px);
}

.dcard__lead {
  display: block;
  margin-bottom: var(--space-4);
}

.dcard__media {
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
}

.dcard__title {
  margin-bottom: var(--space-2);
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
}

.dcard__lead:hover .dcard__title {
  color: var(--gold-deep);
}

.dcard__time {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.dcard__list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.dcard__list li {
  border-top: 1px solid var(--gold-hairline);
}

.dcard__link {
  display: block;
  padding-block: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-body);
  transition: color 0.2s ease;
}

.dcard__link:hover {
  color: var(--gold-deep);
}

/* ══ Top Stories ═════════════════════════════════════════════════════════════ */
.tops__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--space-10);
}

.tops-lead__media-link {
  display: block;
}

.tops-lead__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.tops-lead__body {
  padding-top: var(--space-6);
}

.tops-lead__title {
  margin: var(--space-3) 0 var(--space-4);
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.tops-lead__title a {
  color: var(--ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}

.tops-lead__title a:hover {
  background-size: 100% 1px;
}

.tops-lead__excerpt {
  max-width: 62ch;
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
}

.tops-lead__time,
.tops-item__time,
.tops-line__time,
.mtile__date {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.tops__side {
  display: flex;
  flex-direction: column;
}

.tops-item {
  border-bottom: 1px solid var(--gold-hairline);
}

.tops-item:first-child .tops-item__link {
  padding-top: 0;
}

.tops-item__link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.tops-item__media {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

.tops-item__media .home-media__ph-mark {
  font-size: 2rem;
}

.tops-item__media .home-media__ph-label {
  display: none;
}

.tops-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.tops-item__meta,
.tops-line__cat,
.mtile__cat {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.tops-item__num {
  margin-right: var(--space-2);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-style: italic;
  letter-spacing: 0;
  color: var(--gold);
}

.tops-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
}

.tops-item__link:hover .tops-item__title {
  color: var(--gold-deep);
}

.tops__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
}

.tops-line {
  border-top: 2px solid var(--ink);
}

.tops-line__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
}

.tops-line__num {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}

.tops-line__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s ease;
}

.tops-line__link:hover .tops-line__title {
  color: var(--gold-deep);
}

/* ══ Morning Brief — compact sign-up card ════════════════════════════════════ */
.mbrief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-10);
  margin-top: var(--space-16);
  padding: var(--space-8) var(--space-10);
  overflow: hidden;
  border: 1px solid var(--gold-hairline-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(227, 201, 131, 0.45), transparent 60%),
    linear-gradient(120deg, var(--gold-wash), #fbf6ea);
}

.mbrief::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline-strong);
  box-shadow: 0 0 0 36px rgba(176, 141, 63, 0.05);
  pointer-events: none;
}

.mbrief__copy {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.mbrief__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold-bright);
}

.mbrief__eyebrow {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.mbrief__heading {
  margin-bottom: var(--space-2);
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.mbrief__heading em {
  color: var(--gold-deep);
}

.mbrief__sub {
  font-size: 0.9375rem;
  color: var(--ink-body);
}

.mbrief__action {
  position: relative;
  z-index: 1;
}

/* The shared compact-form base is a 420px flex row; this one stacks. */
.newsletter-form.mbrief__form {
  display: block;
  max-width: none;
}

.mbrief__row {
  display: flex;
  gap: var(--space-2);
  padding: 5px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--gold-hairline-strong);
  border-radius: var(--radius-full);
  background: var(--elevated);
  box-shadow: var(--shadow-md);
}

.mbrief__row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.15), var(--shadow-md);
}

.mbrief__row .newsletter-form__input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-5);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.mbrief__row .newsletter-form__input:focus {
  outline: none;
}

.mbrief__row .newsletter-form__btn {
  flex-shrink: 0;
  border-radius: var(--radius-full);
  padding-inline: var(--space-6);
  background: var(--deep);
  color: var(--gold-bright);
}

.mbrief__row .newsletter-form__btn:hover {
  background: var(--ink);
}

/* ══ More from the Desk — mosaic ═════════════════════════════════════════════ */
.mosaic__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}

.mtile--big {
  grid-column: span 2;
  grid-row: span 2;
}

.mtile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mtile__media {
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
}

.mtile__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mtile__title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
}

.mtile__link:hover .mtile__title {
  color: var(--gold-deep);
}

/* The big tile: artwork fills the cell, copy sits on a scrim. */
.mtile--big .mtile__link {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 420px;
}

.mtile--big .mtile__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.mtile--big .mtile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 18, 16, 0.92));
}

.mtile--big .mtile__body {
  position: relative;
  margin-top: auto;
  padding: var(--space-8);
}

.mtile--big .mtile__cat {
  color: var(--gold-bright);
}

.mtile--big .mtile__title {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  color: var(--base);
}

.mtile--big .mtile__link:hover .mtile__title {
  color: var(--gold-bright);
}

.mtile--big .mtile__date {
  color: rgba(252, 250, 246, 0.6);
}

/* ══ Responsive ══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .desks2__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tops__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pod__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .tops__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tops__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }

  .tops-item:first-child .tops-item__link {
    padding-top: var(--space-5);
  }

  .mbrief {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .mosaic__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mtile--big {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .home-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .home-head__intro {
    text-align: left;
  }

  .tops__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Odd one out on two columns: let it take the full row */
  .tops-line:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .pod {
    padding-block: var(--space-10);
  }

  .pod-player {
    padding: var(--space-5) var(--space-4) var(--space-3);
  }

  .pod-player__foot {
    grid-template-columns: 1fr 1fr;
  }

  .pod-transport {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }

  .pod-transport__btn {
    width: 36px;
    height: 36px;
  }

  .pod-play {
    width: 52px;
    height: 52px;
  }

  .unmute {
    right: var(--space-4);
  }

  /* Mini player docks as a full-width bar */
  .pod-mini {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    gap: var(--space-3);
  }

  .pod-mini__play {
    width: 46px;
    height: 46px;
  }

  .pod-mini__time {
    display: none;
  }

  /* Icon-only unmute so the title keeps its room */
  .pod-mini.is-muted .pod-mini__sound-text {
    display: none;
  }

  .pod-mini.is-muted .pod-mini__btn--sound {
    padding: 0;
    width: 36px;
  }

  .pod__list {
    padding: var(--space-3);
  }

  .pod-ep {
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .desks2__grid,
  .tops__side,
  .tops__row,
  .mosaic__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mtile--big {
    grid-column: auto;
  }

  .mtile--big .mtile__link {
    min-height: 340px;
  }

  .mtile--big .mtile__body {
    padding: var(--space-5);
  }

  .mbrief {
    padding: var(--space-6) var(--space-5);
  }

  .mbrief__copy {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Stacked: the shared pill wrapper goes, field and button stand alone */
  .mbrief__row,
  .mbrief__row:focus-within {
    flex-direction: column;
    gap: var(--space-2);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .mbrief__row .newsletter-form__input {
    min-height: 52px;
    padding: 0 var(--space-5);
    border: 1px solid var(--gold-hairline-strong);
    border-radius: var(--radius-full);
    background: var(--elevated);
    box-shadow: var(--shadow-sm);
  }

  .mbrief__row .newsletter-form__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.15);
  }

  .mbrief__row .newsletter-form__btn {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pod.is-switching .pod__title,
  .pod.is-switching .pod__sub,
  .pod.is-switching .pod__about,
  .unmute.is-visible,
  .is-playing .pod-eq i,
  .pod-mini.is-muted .pod-mini__btn--sound {
    animation: none !important;
  }

  .pod-mini {
    transition: none;
  }

  .home-media__img,
  .dcard {
    transition: none;
  }
}
