/* 每晚播客 · 深夜深空蓝 + 暖橙 */
:root {
  --bg: #101018;
  --bg-2: #16161f;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f2ede4;
  --text-dim: rgba(242, 237, 228, 0.62);
  --text-faint: rgba(242, 237, 228, 0.42);
  --amber: #f5a524;
  --amber-soft: #fbbf24;
  --ember: #ff7a3d;
  --radius: 22px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景氛围光 */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 15% -5%, rgba(245, 165, 36, 0.10), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(64, 86, 178, 0.16), transparent 60%),
    radial-gradient(500px 420px at 50% 110%, rgba(255, 122, 61, 0.07), transparent 60%);
}

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 16, 24, 0.72);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 18px rgba(245, 165, 36, 0.35); }
.brand span { font-size: 17px; font-weight: 700; letter-spacing: 0.12em; }
.nav-badge {
  font-size: 12px; color: var(--amber-soft); letter-spacing: 0.08em;
  border: 1px solid rgba(245, 165, 36, 0.35); border-radius: 999px;
  padding: 4px 12px; background: rgba(245, 165, 36, 0.08); white-space: nowrap;
}

/* ---------- 主体 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 8px; }
.hero-main { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-cover { position: relative; flex: 0 0 auto; }
.hero-cover img {
  width: 168px; height: 168px; border-radius: 28px; object-fit: cover;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 44px rgba(245, 165, 36, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.kicker {
  font-size: 13px; letter-spacing: 0.3em; color: var(--amber-soft);
  margin-bottom: 10px; font-weight: 500;
}
.hero-text h1 {
  font-size: clamp(38px, 8vw, 56px); font-weight: 800; letter-spacing: 0.14em;
  line-height: 1.3; margin-bottom: 12px;
  background: linear-gradient(120deg, #fff 30%, var(--amber-soft) 75%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: 17px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }
.hosts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.host-chip {
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-dim);
  background: var(--card); border: 1px solid var(--card-border);
  padding: 5px 13px; border-radius: 999px;
}
.ai-note { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ---------- 毛玻璃卡片 ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- 最新一期 ---------- */
.latest-card { margin-top: 30px; padding: 24px; position: relative; overflow: hidden; }
.latest-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 8% 0%, rgba(245, 165, 36, 0.09), transparent 65%);
}
.latest-tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.24em; font-weight: 700;
  color: #1a1206; background: linear-gradient(120deg, var(--amber-soft), var(--amber));
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.latest-body { display: flex; gap: 20px; align-items: flex-start; position: relative; }
.latest-thumb {
  width: 108px; height: 108px; border-radius: 18px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.latest-info { flex: 1; min-width: 0; }
.latest-info h2 { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; margin-bottom: 6px; }
.latest-meta { font-size: 13px; color: var(--amber-soft); letter-spacing: 0.08em; margin-bottom: 8px; }
.latest-meta .dot { color: var(--text-faint); margin: 0 6px; }
.latest-desc { font-size: 14px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }

.player-row { display: flex; align-items: center; gap: 16px; }
.play-btn {
  flex: 0 0 auto; border: none; cursor: pointer; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-soft), var(--ember));
  color: #221303; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(245, 165, 36, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 8px 30px rgba(245, 165, 36, 0.55); }
.play-btn:active { transform: scale(0.97); }
.play-btn.big { width: 58px; height: 58px; }
.play-btn.small { width: 44px; height: 44px; }
.play-btn svg { width: 46%; height: 46%; fill: currentColor; }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.progress-wrap { flex: 1; min-width: 0; }
.progress {
  height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  cursor: pointer; position: relative; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-soft), var(--ember));
  transition: width 0.25s linear;
}
.time-row {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums;
}

/* ---------- 往期节目 ---------- */
.episodes { padding: 44px 0 8px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section-head h2, .subscribe h2 {
  font-size: 24px; font-weight: 800; letter-spacing: 0.2em;
}
.section-sub { font-size: 13px; color: var(--text-faint); letter-spacing: 0.1em; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.ep-card {
  display: flex; gap: 16px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 165, 36, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 165, 36, 0.08);
}
.ep-card.active { border-color: rgba(245, 165, 36, 0.55); }
.ep-thumb { width: 84px; height: 84px; border-radius: 15px; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.1); }
.ep-info { flex: 1; min-width: 0; }
.ep-info h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.6; margin-bottom: 4px; }
.ep-meta { font-size: 12px; color: var(--amber-soft); letter-spacing: 0.08em; margin-bottom: 6px; }
.ep-meta .dot { color: var(--text-faint); margin: 0 5px; }
.ep-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-play { align-self: center; }

/* ---------- 订阅区 ---------- */
.subscribe { margin-top: 44px; padding: 30px 26px; text-align: center; position: relative; overflow: hidden; }
.subscribe::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 50% -20%, rgba(245, 165, 36, 0.12), transparent 65%);
}
.subscribe h2 { margin-bottom: 10px; position: relative; }
.sub-desc { font-size: 14px; color: var(--text-dim); line-height: 2; max-width: 560px; margin: 0 auto 20px; position: relative; text-wrap: pretty; }
.sub-desc b { color: var(--amber-soft); font-weight: 600; }
.rss-box {
  display: flex; align-items: center; gap: 10px; position: relative;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 10px 10px 10px 18px; max-width: 560px; margin: 0 auto 22px;
}
.rss-box code {
  flex: 1; min-width: 0; text-align: left; font-size: 13px; color: var(--amber-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace;
}
.copy-btn {
  flex: 0 0 auto; border: none; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  color: #221303; padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.copy-btn:hover { filter: brightness(1.08); }
.copy-btn:active { transform: scale(0.96); }
.app-hints { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; position: relative; }
.hint {
  display: flex; gap: 12px; align-items: baseline; text-align: left;
  font-size: 13px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 16px;
}
.hint-name { color: var(--text); font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.hint-tip { color: var(--text-dim); }

/* ---------- 页脚 ---------- */
footer { text-align: center; padding: 36px 20px 110px; color: var(--text-dim); font-size: 13px; letter-spacing: 0.12em; }
.foot-sub { color: var(--text-faint); font-size: 12px; margin-top: 6px; }

/* ---------- 底部 mini 播放条 ---------- */
.mini-player {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: rgba(22, 22, 31, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 165, 36, 0.28); border-radius: 18px;
  padding: 10px 12px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 165, 36, 0.1);
  max-width: 720px; margin: 0 auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-player[hidden] { display: none; }
.mini-player img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.mini-info { flex: 1; min-width: 0; }
.mini-title {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px;
}
.mini-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.mini-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber-soft), var(--ember)); border-radius: 999px; }
.mini-time { font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-close { background: none; border: none; color: var(--text-faint); font-size: 15px; cursor: pointer; padding: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 70;
  background: rgba(22, 22, 31, 0.95); border: 1px solid rgba(245, 165, 36, 0.4);
  color: var(--text); font-size: 13.5px; letter-spacing: 0.06em;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s ease;
}
.toast[hidden] { display: none; }

/* ---------- 桌面端 ---------- */
@media (min-width: 760px) {
  .hero { padding-top: 60px; }
  .hero-cover img { width: 200px; height: 200px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .app-hints { flex-direction: row; }
  .hint { flex: 1; flex-direction: column; gap: 4px; }
  .latest-card { padding: 30px; }
}

/* ---------- 关于 ---------- */
.about { margin-top: 44px; padding: 30px 26px; text-align: center; }
.about h2 { margin-bottom: 10px; text-wrap: balance; }
.about-desc { font-size: 14px; color: var(--text-dim); line-height: 2; max-width: 760px; margin: 0 auto 22px; text-wrap: pretty; }
.about-desc b { color: var(--amber-soft); font-weight: 600; }
.brand-links { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .brand-links { grid-template-columns: 1fr 1fr; } }
.brand-card { display: block; text-align: left; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.brand-card:hover { border-color: rgba(245, 165, 36, 0.45); transform: translateY(-2px); }
.brand-name { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.brand-tip { display: block; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; text-wrap: pretty; }
footer p { text-wrap: pretty; }
footer a { color: var(--amber-soft); text-decoration: none; }
