.public-home {
  gap: 1.4rem;
}

.public-hero--home {
  grid-template-columns: 1fr;
}

.home-timer-panel {
  display: grid;
  gap: 0.7rem;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.guild-timer__inner {
  color: #fff1d6;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.65vw, 1.42rem);
  line-height: 1.34;
}

.guild-timer__inner time {
  color: var(--brand-strong);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.home-hero__stats .public-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0.3rem 0.78rem 0.32rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(233, 202, 157, 0.1);
}

.home-hero__stats .public-stat strong {
  margin-top: 0.03rem;
  max-width: none;
  font-size: clamp(0.81rem, 0.9vw, 1.03rem);
  line-height: 0.96;
  text-wrap: pretty;
  word-break: normal;
}

.home-hero__stats .public-stat span {
  color: #e5c99d;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  line-height: 1.15;
}

.home-story-grid {
  display: block;
  min-width: 0;
}

.home-timer-section {
  display: grid;
  min-width: 0;
}

.home-story-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.home-story-card > p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.story-audio-player {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(236, 201, 140, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(19, 14, 11, 0.42);
}

.story-audio-player__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
}

.story-audio-player__intro {
  display: grid;
  gap: 0.16rem;
}

.story-audio-player__eyebrow {
  color: #fff0d7;
  font-size: 0.98rem;
  font-weight: 700;
}

.story-audio-player__status {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.story-audio-player__voice-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.story-audio-player__voice-label {
  color: #d8bf97;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-audio-player__voices {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(236, 201, 140, 0.1);
}

.story-audio-player__voice,
.story-audio-player__transport {
  appearance: none;
  border: 1px solid rgba(233, 202, 157, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.story-audio-player__voice {
  min-height: 38px;
  padding: 0.62rem 0.9rem;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.story-audio-player__voice.is-active {
  background: linear-gradient(135deg, rgba(244, 196, 120, 0.96), rgba(180, 106, 46, 0.92));
  color: var(--text-on-brand);
  border-color: rgba(255, 226, 170, 0.32);
}

.story-audio-player__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.story-audio-player__action-icon,
.story-audio-player__volume-icon {
  position: relative;
  flex: 0 0 auto;
  color: currentColor;
}

.story-audio-player__transport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 16px;
}

.story-audio-player__transport--play {
  background: linear-gradient(135deg, rgba(244, 196, 120, 0.96), rgba(180, 106, 46, 0.92));
  color: var(--text-on-brand);
  border-color: rgba(255, 226, 170, 0.32);
}

.story-audio-player__play-icon {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
}

.story-audio-player__play-icon::before,
.story-audio-player__play-icon::after,
.story-audio-player__action-icon::before,
.story-audio-player__volume-icon::before,
.story-audio-player__volume-icon::after {
  content: '';
}

.story-audio-player__play-icon::before {
  width: 0;
  height: 0;
  border-top: 0.48rem solid transparent;
  border-bottom: 0.48rem solid transparent;
  border-left: 0.74rem solid currentColor;
}

.story-audio-player__action-icon::before,
.story-audio-player__volume-icon::before,
.story-audio-player__volume-icon::after {
  position: absolute;
}

.story-audio-player.is-playing .story-audio-player__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.story-audio-player.is-playing .story-audio-player__play-icon::before {
  width: 0.22rem;
  height: 0.82rem;
  border: 0;
  background: currentColor;
  border-radius: 0.08rem;
}

.story-audio-player.is-playing .story-audio-player__play-icon::after {
  width: 0.22rem;
  height: 0.82rem;
  background: currentColor;
  border-radius: 0.08rem;
}

.story-audio-player__timeline {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.story-audio-player__time-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.story-audio-player__time-divider {
  color: var(--text-muted);
}

.story-audio-player__progress-wrap {
  display: block;
  min-width: 0;
}

.story-audio-player__progress,
.story-audio-player__volume-range {
  width: 100%;
  margin: 0;
  accent-color: var(--brand-strong);
}

.story-audio-player__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.story-audio-player__action-icon {
  width: 0.8rem;
  height: 0.8rem;
}

.story-audio-player__action-icon::before {
  inset: 0;
  background: currentColor;
  border-radius: 0.12rem;
}

.story-audio-player__volume-control {
  display: inline-grid;
  grid-template-columns: auto minmax(90px, 120px) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.1rem 0 0;
}

.story-audio-player__volume-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: #d8bf97;
}

.story-audio-player__volume-icon::before {
  left: 0;
  top: 0.22rem;
  width: 0.34rem;
  height: 0.5rem;
  background: currentColor;
  clip-path: polygon(0 22%, 65% 22%, 100% 0, 100% 100%, 65% 78%, 0 78%);
}

.story-audio-player__volume-icon::after {
  right: 0.05rem;
  top: 0.18rem;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 0.12rem solid currentColor;
  border-right: 0.12rem solid currentColor;
  border-radius: 0 0.35rem 0 0;
  transform: rotate(45deg);
}

.story-audio-player__volume-value {
  color: var(--text-soft);
  font-size: 0.8rem;
  min-width: 2.25rem;
  text-align: right;
}

@media (hover: hover) {
  .story-audio-player__voice:hover,
  .story-audio-player__transport:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 218, 164, 0.28);
    background-color: rgba(255, 255, 255, 0.09);
  }

  .story-audio-player__voice.is-active:hover {
    background: linear-gradient(135deg, rgba(249, 210, 140, 0.98), rgba(193, 118, 58, 0.94));
  }

  .story-audio-player__transport--play:hover {
    background: linear-gradient(135deg, rgba(249, 210, 140, 0.98), rgba(193, 118, 58, 0.94));
  }
}

.story-audio-player__voice:active,
.story-audio-player__transport:active {
  transform: scale(0.98);
}

@media (max-width: 980px) {
  .home-timer-panel {
    width: 100%;
    margin: 0;
  }

  .home-hero__stats {
    grid-template-columns: 1fr;
  }

  .home-hero__stats .public-stat {
    min-height: 0;
  }

  .home-hero__stats .public-stat strong {
    max-width: none;
  }

  .story-audio-player__controls {
    grid-template-columns: 1fr;
  }

  .story-audio-player__tools {
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .public-home {
    gap: 1rem;
  }

  .public-hero--home {
    gap: 0.95rem;
  }

  .home-story-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .home-story-card > h2 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(1.9rem, 10vw, 2.95rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: wrap;
    box-sizing: border-box;
  }

  .home-story-card > p:last-child {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .story-audio-player {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.7rem;
    padding: 0.82rem;
    box-sizing: border-box;
  }

  .story-audio-player__header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    box-sizing: border-box;
  }

  .story-audio-player__voice-bar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
  }

  .story-audio-player__voices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .story-audio-player__voice {
    width: auto;
    min-width: 0;
    justify-content: center;
    box-sizing: border-box;
  }

  .story-audio-player__controls {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      'play stop timeline'
      'volume volume volume';
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.55rem 0.7rem;
    box-sizing: border-box;
  }

  .story-audio-player__tools {
    display: contents;
  }

  .story-audio-player__volume-control {
    grid-area: volume;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    box-sizing: border-box;
  }

  .story-audio-player__intro,
  .story-audio-player__timeline,
  .story-audio-player__progress-wrap,
  .story-audio-player__progress,
  .story-audio-player__volume-range {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .story-audio-player__status {
    display: none;
  }

  .story-audio-player__voice-label {
    display: none;
  }

  .story-audio-player__transport--play {
    grid-area: play;
  }

  .story-audio-player__transport--stop {
    grid-area: stop;
  }

  .story-audio-player__timeline {
    grid-area: timeline;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
  }

  .story-audio-player__time-row {
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .home-hero__stats {
    gap: 0.65rem;
  }

  .home-story-card > h2 {
    font-size: clamp(1.75rem, 12vw, 2.4rem);
    line-height: 1.02;
  }

  .story-audio-player {
    padding: 0.72rem;
    gap: 0.58rem;
  }

  .story-audio-player__header {
    gap: 0.45rem;
  }

  .story-audio-player__eyebrow {
    font-size: 0.84rem;
  }

  .story-audio-player__transport {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 14px;
  }

  .story-audio-player__transport--stop {
    width: 2.2rem;
    height: 2.2rem;
  }

  .story-audio-player__voices {
    gap: 0.18rem;
    padding: 0.16rem;
  }

  .story-audio-player__voice {
    min-height: 32px;
    min-width: 5.6rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.66rem;
    border-radius: 12px;
  }

  .story-audio-player__controls {
    gap: 0.4rem 0.48rem;
  }

  .story-audio-player__timeline {
    gap: 0.28rem;
  }

  .story-audio-player__time-row,
  .story-audio-player__volume-value {
    font-size: 0.66rem;
  }

  .story-audio-player__volume-control {
    gap: 0.32rem;
  }

  .story-audio-player__volume-icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}

@media (max-width: 360px) {
  .story-audio-player__header {
    gap: 0.35rem;
  }

  .story-audio-player__voices {
    width: 100%;
  }

  .story-audio-player__voice {
    width: 100%;
    min-width: 5rem;
    padding: 0.42rem 0.58rem;
    font-size: 0.6rem;
  }

  .story-audio-player__eyebrow {
    font-size: 0.78rem;
  }

  .story-audio-player__timeline {
    gap: 0.22rem;
  }

  .story-audio-player__time-row,
  .story-audio-player__volume-value {
    font-size: 0.62rem;
  }
}
