:root {
  --bg-color: #08101a;
  --bg-color-deep: #050a11;
  --card-bg: rgba(16, 22, 32, 0.84);
  --card-bg-soft: rgba(18, 24, 35, 0.78);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-active: rgba(214, 197, 146, 0.24);
  --text-primary: #f3efe7;
  --text-secondary: #a2aab6;
  --text-tertiary: #7e8794;
  --accent-color: #d8c189;
  --accent-soft: rgba(216, 193, 137, 0.12);
  --accent-mid: rgba(216, 193, 137, 0.2);
  --accent-glow: rgba(216, 193, 137, 0.12);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.2);
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 560px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 193, 137, 0.08) 0%, transparent 24%),
    radial-gradient(circle at 50% 16%, rgba(36, 57, 89, 0.1) 0%, transparent 32%),
    linear-gradient(180deg, #101722 0%, #0b121c 28%, #070d15 62%, #050911 100%);
}

button {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 16px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0%,
      rgba(255, 255, 255, 0) 18%
    );
}

.site-header {
  position: relative;
  text-align: center;
  padding-top: 2.2vh;
  padding-bottom: 2.6vh;
}

.brand-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 1.6px;
  color: var(--accent-color);
  text-shadow: 0 0 14px rgba(216, 193, 137, 0.06);
}

.brand-subtitle {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 4px;
  color: #b3bbc6;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(23, 29, 40, 0.9) 0%, rgba(16, 21, 31, 0.88) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 22px 18px 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.audio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(255, 255, 255, 0.008) 18%,
      rgba(255, 255, 255, 0) 100%
    );
}

.audio-card.active {
  border-color: var(--card-border-active);
  box-shadow:
    0 0 0 1px rgba(216, 193, 137, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(216, 193, 137, 0.05);
  transform: translateY(-1px);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-copy {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 21px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 12px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 92%;
}

.play-btn {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(216, 193, 137, 0.14) 0%, rgba(216, 193, 137, 0.08) 100%);
  border: 1px solid rgba(216, 193, 137, 0.08);
  color: var(--accent-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.play-btn:active {
  transform: scale(0.97);
}

.audio-card.active .play-btn {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(216, 193, 137, 0.92) 0%, rgba(193, 167, 104, 0.92) 100%);
  color: #10141b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(216, 193, 137, 0.1);
}

.icon {
  width: 20px;
  height: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.icon-pause {
  display: none;
}

.audio-card.active.is-playing .icon-play {
  display: none;
}

.audio-card.active.is-playing .icon-pause {
  display: inline-flex;
}

.card-bottom {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  margin-bottom: 10px;
}

.status-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
  letter-spacing: 0.7px;
}

.progress-container {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(216, 193, 137, 0.9) 0%, rgba(241, 225, 186, 0.96) 100%);
  box-shadow: 0 0 12px rgba(216, 193, 137, 0.14);
  transition: width 0.12s linear;
}

.control-panel {
  margin-top: 2px;
}

.stop-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.035) 100%);
  color: #dce2ea;
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease;
}

.stop-btn:active {
  transform: scale(0.992);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.045) 100%);
}

.site-footer {
  padding-top: 22px;
  padding-bottom: 4px;
  text-align: center;
}

.footer-text {
  font-size: 11px;
  line-height: 1.85;
  color: #88919d;
  font-weight: 300;
  letter-spacing: 0.5px;
}

@media (max-width: 420px) {
  .page-shell {
    padding: 26px 14px 20px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 11px;
    letter-spacing: 3.5px;
  }

  .audio-card {
    padding: 20px 16px 15px;
    border-radius: 22px;
  }

  .card-title {
    font-size: 19px;
    margin-bottom: 9px;
  }

  .card-desc {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.72;
  }

  .play-btn {
    width: 58px;
    height: 58px;
  }

  .icon {
    font-size: 18px;
  }
}