.news-audio {
  --news-audio-progress: 0%;
  position: relative;
  margin: 0 0 clamp(32px, 5vw, 54px);
  padding: clamp(18px, 2.4vw, 22px);
  border: 1px solid color-mix(in srgb, var(--navy-deep) 16%, transparent);
  /* Approved WilliPedia editorial motif: the gold edge identifies the audio
     medium without adding a second card color or decorative illustration. */
  border-left: 4px solid var(--gold-deep);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(10, 30, 63, 0.09);
}

.news-audio__heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px 78px;
}

.news-audio__heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.1;
}

.news-audio__heading > span,
.news-audio__active-label,
.news-audio__track-menu-label {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-audio__player {
  display: none;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.news-audio.is-enhanced .news-audio__player {
  display: grid;
}

.news-audio__play {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 30, 63, 0.2);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.news-audio__play:hover {
  box-shadow: 0 10px 24px rgba(10, 30, 63, 0.28);
  transform: translateY(-1px);
}

.news-audio__play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.news-audio__pause-icon,
.news-audio.is-playing .news-audio__play-icon {
  display: none;
}

.news-audio.is-playing .news-audio__pause-icon {
  display: block;
}

.news-audio__controls {
  display: none;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.news-audio.is-enhanced .news-audio__controls {
  display: grid;
}

.news-audio__skip,
.news-audio__rate,
.news-audio__tracks-toggle {
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--navy-deep) 18%, transparent);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  font: 700 12px/1 var(--f-sans);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.news-audio__skip:hover,
.news-audio__rate:hover,
.news-audio__tracks-toggle:hover {
  border-color: var(--gold-deep);
  background: var(--cream);
}

.news-audio__timeline {
  position: relative;
  min-width: 0;
}

.news-audio__timeline::before {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 0;
  width: var(--news-audio-progress);
  height: 4px;
  border-radius: 999px;
  background: var(--gold-deep);
  content: '';
  pointer-events: none;
}

.news-audio__timeline input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.news-audio__timeline input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(10, 30, 63, 0.14);
}

.news-audio__timeline input::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 30, 63, 0.14);
}

.news-audio__timeline input::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--gold-deep);
}

.news-audio__timeline input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 0 1px rgba(10, 30, 63, 0.16);
}

.news-audio__timeline input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 0 1px rgba(10, 30, 63, 0.16);
}

.news-audio__times {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: var(--ink-soft);
  font: 500 10px/1 var(--f-sans);
  font-variant-numeric: tabular-nums;
}

.news-audio__tracks {
  position: relative;
}

.news-audio__tracks-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 17px;
  white-space: nowrap;
}

.news-audio__tracks-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.news-audio__track-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--navy-deep) 16%, transparent);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(10, 30, 63, 0.16);
}

.news-audio__track-menu-label {
  margin: 2px 4px 10px;
}

.news-audio__track-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-audio__track {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy-deep);
  font: 600 13px/1.35 var(--f-sans);
  text-align: left;
  cursor: pointer;
}

.news-audio__track:hover,
.news-audio__track.is-active {
  background: var(--cream);
}

.news-audio__track-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 30, 63, 0.08);
  font-size: 11px;
}

.news-audio__track.is-active .news-audio__track-number {
  background: var(--navy-deep);
  color: #fff;
}

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

.news-audio__native {
  width: 100%;
  margin-top: 16px;
}

.news-audio.is-enhanced .news-audio__native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.news-audio button:focus-visible,
.news-audio input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 76%, white);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .news-audio {
    padding: 18px;
    border-radius: 12px;
  }

  .news-audio__heading {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 7px 10px;
  }

  .news-audio__player {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .news-audio__play {
    width: 54px;
    height: 54px;
  }

  .news-audio__controls {
    grid-template-columns: auto minmax(90px, 1fr) auto;
    gap: 8px;
  }

  .news-audio__rate {
    grid-column: 2;
    justify-self: end;
    min-height: 34px;
  }

  .news-audio__tracks {
    grid-column: 1 / -1;
  }

  .news-audio__tracks-toggle {
    width: 100%;
    justify-content: center;
  }

  .news-audio__track-menu {
    right: auto;
    left: 0;
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .news-audio__play,
  .news-audio__skip,
  .news-audio__rate,
  .news-audio__tracks-toggle {
    transition: none;
  }
}
