:root {
  --page-bg: #f6efe5;
  --page-wash: rgba(198, 127, 59, 0.18);
  --panel: rgba(255, 251, 245, 0.9);
  --panel-solid: #fffdf9;
  --line: #d9cabc;
  --line-strong: #b79d87;
  --text: #201814;
  --muted: #6f6157;
  --accent: #b56b34;
  --accent-strong: #8c4f24;
  --shadow: 0 22px 50px rgba(46, 28, 15, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--page-wash), transparent 34rem),
    linear-gradient(180deg, #fdf9f3 0%, var(--page-bg) 100%);
}

.page-shell,
.player-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero-card,
.preview-shell,
.player-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
}

.eyebrow,
.preview-kicker,
.player-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-card h1,
.player-title,
.preview-meta h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 0.96;
}

.hero-text,
.preview-copy {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.95rem;
  color: var(--muted);
}

select,
.ghost-link {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  font: inherit;
}

select {
  width: 100%;
  padding: 0 16px;
  cursor: pointer;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--accent-strong);
  text-decoration: none;
  white-space: nowrap;
}

.preview-shell,
.player-card {
  overflow: hidden;
}

.preview-meta,
.player-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.preview-stage,
.player-host {
  padding: 22px;
}

.preview-frame {
  width: 100%;
  min-height: 880px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffefb 0%, #fff8ee 100%);
}

.player-body {
  background:
    radial-gradient(circle at top left, rgba(181, 107, 52, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #f8efe1 100%);
}

.player-card {
  min-height: calc(100vh - 56px);
}

.player-host {
  min-height: 720px;
}

.player-loading,
.player-error {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}

.widget-surface {
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fff9f0 100%);
  padding: 18px;
}

.widget-surface--plain {
  padding: 8px;
}

.widget-meta-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.listening-shell {
  font-family: Archia, Inter, Arial, sans-serif;
  color: #111;
}

.listening-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.listening-progress {
  min-width: 180px;
}

.listening-progress .wasdas-progress-track {
  width: 100%;
  height: 10px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}

.listening-progress .wasdas-progress-fill {
  width: 0;
  height: 100%;
  background: #f7941d;
  border-radius: 999px;
}

.listening-stage {
  min-height: 560px;
}

.listening-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.listening-btn {
  min-width: 110px;
  min-height: 48px;
  border: 1px solid #111;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

  .preview-meta,
  .player-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-link {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .player-shell {
    width: min(100% - 20px, 1260px);
    padding-top: 16px;
  }

  .hero-card,
  .preview-meta,
  .preview-stage,
  .player-heading,
  .player-host {
    padding-left: 16px;
    padding-right: 16px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .preview-frame {
    min-height: 760px;
  }

  .player-host {
    min-height: 620px;
  }
}
