:root {
  --bg: #08111f;
  --panel: #11203a;
  --panel-soft: #172843;
  --panel-border: rgba(245, 201, 109, 0.22);
  --text: #edf3ff;
  --muted: #b9c7e7;
  --accent: #f5c96d;
  --accent-strong: #ffd785;
  --accent-dark: #33260c;
  --success: #91d5a0;
  --shadow: 0 22px 60px rgba(2, 7, 18, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(245, 201, 109, 0.12), transparent 30%),
    linear-gradient(180deg, #08111f 0%, #0e1730 38%, #111c34 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-text,
.site-nav a,
.footer-inner a {
  color: var(--muted);
}

.site-nav,
.footer-inner nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-inner a,
.text-link {
  text-decoration: none;
}

.site-nav a:hover,
.footer-inner a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero-grid,
.player-layout,
.info-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: center;
}

.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.95;
  margin-bottom: 0.8rem;
}

.subtitle {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
}

.hero-summary {
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-meta div,
.player-panel,
.status-card,
.info-card {
  background: rgba(17, 32, 58, 0.88);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-meta div {
  padding: 1rem;
}

.hero-meta dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--panel-border);
}

.button-primary {
  background: var(--accent);
  color: #1a1509;
  font-weight: 700;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.section {
  padding: 1.5rem 0 2rem;
}

.player-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.player-panel,
.status-card,
.info-card {
  padding: 1.5rem;
}

.language-switcher {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.language-option,
.transport-button,
.track-play-button {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.language-option,
.transport-button {
  min-height: 46px;
  padding: 0.8rem 1rem;
}

.language-option.is-active,
.transport-button-primary,
.track-play-button:hover {
  background: var(--accent);
  color: #1a1509;
  font-weight: 700;
}

.now-playing {
  padding: 1.15rem 1.2rem;
  background: var(--panel-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.transport {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.transport-button {
  flex: 1;
}

.timeline-wrap,
.player-tools {
  margin-bottom: 1.25rem;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
}

.time-readout {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.player-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.tool-group select,
.tool-group input {
  width: 100%;
}

select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.7rem 0.9rem;
}

.player-sidebar {
  display: grid;
  gap: 1rem;
}

.status-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1rem;
}

.track-list {
  display: grid;
  gap: 0.9rem;
}

.track-group-label {
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.track-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(17, 32, 58, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-row.is-active {
  border-color: var(--accent);
  background: rgba(245, 201, 109, 0.12);
}

.track-number {
  font-size: 1rem;
  color: var(--accent);
  min-width: 3rem;
}

.track-title {
  font-size: 1.02rem;
}

.track-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.track-play-button,
.track-transcript-link {
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
}

.track-transcript-link {
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--muted);
}

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

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .player-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(var(--shell), calc(100% - 1rem));
  }

  .header-inner,
  .footer-inner,
  .transport,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta,
  .player-tools,
  .track-row {
    grid-template-columns: 1fr;
  }

  .track-row {
    gap: 0.75rem;
  }

  .track-play-button,
  .track-transcript-link,
  .transport-button,
  .language-option,
  .button {
    width: 100%;
    justify-content: center;
  }
}
