.rhythm-detail-page {
  padding: 32px 0 88px;
}

.rhythm-detail-shell {
  width: min(1320px, 94%);
  margin: 0 auto;
}

.rhythm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rhythm-breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}

.rhythm-breadcrumbs .sep {
  opacity: 0.6;
}

.rhythm-detail-root {
  display: grid;
  gap: 22px;
}

.rhythm-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.rhythm-hero-card,
.rhythm-info-card,
.rhythm-empty-card,
.related-rhythms-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
}

.rhythm-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rhythm-hero > :last-child {
  padding: 14px;
}

.rhythm-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rhythm-title-row h1 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
}

.rhythm-hero-summary,
.rhythm-section-copy,
.rhythm-placeholder-message,
.rhythm-count-pattern {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1rem;
}

.rhythm-large-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

.rhythm-large-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.rhythm-controls-card {
  display: grid;
  gap: 14px;
}

.rhythm-bpm-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.rhythm-bpm-label,
.rhythm-bpm-value {
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.rhythm-bpm-slider {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.rhythm-play-btn {
  appearance: none;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(200,164,90,0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(200,164,90,0.16) 0%, rgba(200,164,90,0.10) 100%);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.24s var(--ease);
}

.rhythm-play-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(200,164,90,0.36);
  box-shadow: 0 10px 22px rgba(200,164,90,0.12);
}

.rhythm-play-btn.is-playing {
  background: linear-gradient(180deg, rgba(123,168,212,0.2) 0%, rgba(123,168,212,0.12) 100%);
  border-color: rgba(123,168,212,0.35);
  color: #d5ebff;
}

.rhythm-audio {
  display: none;
}

.rhythm-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rhythm-info-card h2,
.related-rhythms-card h2 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 900;
}

.rhythm-chip-list,
.rhythm-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rhythm-chip,
.rhythm-time-chip,
.related-rhythm-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.rhythm-example-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-example-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.rhythm-example-title {
  color: var(--gold-light);
  font-weight: 800;
}

.rhythm-example-meta,
.rhythm-example-note {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.related-rhythms-card {
  display: grid;
  gap: 14px;
}

@media (min-width: 1081px) {
  .rhythm-hero {
    grid-template-columns: 1fr;
  }

  .rhythm-hero-single-card {
    width: min(100%, 980px);
    margin: 0 auto;
    gap: 18px;
  }

  .rhythm-hero-visual-block {
    display: block;
  }

  .rhythm-hero-single-card .rhythm-large-image-wrap {
    padding: 16px;
  }

  .rhythm-hero-single-card .rhythm-large-image {
    max-height: 420px;
  }

  .rhythm-hero-single-card .rhythm-controls-card {
    padding-top: 4px;
  }
}

@media (max-width: 1080px) {
  .rhythm-hero {
    grid-template-columns: 1fr;
  }

  .rhythm-sections {
    grid-template-columns: 1fr;
  }

  .rhythm-large-image {
    max-height: 300px;
  }
}

@media (max-width: 720px) {
  .rhythm-detail-page {
    padding-top: 24px;
  }

  .rhythm-detail-shell {
    width: min(100%, 94%);
  }

  .rhythm-hero-card,
  .rhythm-info-card,
  .rhythm-empty-card,
  .related-rhythms-card {
    padding: 18px;
  }

  .rhythm-hero > :last-child {
    padding: 12px;
  }

  .rhythm-large-image-wrap {
    padding: 10px;
  }

  .rhythm-large-image {
    max-height: 240px;
  }
}
