:root {
  --bg: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(12, 12, 14, 0.82);
  --glass-border: rgba(255, 215, 0, 0.18);
  --gold: #FFD700;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(135deg, #FFD700, #B8860B);
  --text: #f0ece4;
  --text-muted: #998e7a;
  --text-dim: #6b6558;
  --white-glass: rgba(255, 255, 255, 0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html { font-size: 18px; scrollbar-width: thin; scrollbar-color: var(--gold-dark) var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(30, 27, 20, 0.6) 0%, var(--bg) 70%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.logo span { color: var(--gold); }

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
nav a:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  border-color: var(--glass-border);
  text-decoration: none;
}
nav a.active {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
  font-weight: 700;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #12100e 0%, #1a1713 50%, #0f0e0c 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 64px 0 54px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}
.hero h1 span { color: var(--gold); text-shadow: 0 0 25px rgba(255, 215, 0, 0.2); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* Sections */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-dark);
  display: inline-block;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.08);
}

/* Episode grid */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.episode-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
  cursor: pointer;
}
.episode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.06);
}
.episode-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--white-glass);
}
.episode-info { padding: 22px; }
.episode-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text);
}
.episode-info .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.episode-info p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 16px; line-height: 1.65; }
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
  text-decoration: none;
}

/* Player page */
.player-wrapper {
  max-width: 820px;
  margin: 40px auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}
.player-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--glass-border);
}
.player-body { padding: 36px; }
.player-body h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.player-body .meta {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.player-body .description {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.player-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.player-nav a {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}
.player-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  text-decoration: none;
}

audio {
  width: 100%;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
}
audio::-webkit-media-controls-panel { background: #1a1a1e; }
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: var(--text-muted);
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
  filter: brightness(1.2);
}

/* Episode list page */
.list-section { margin: 40px 0; }
.episode-list-item {
  display: flex;
  gap: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  align-items: center;
  transition: all 0.25s ease;
}
.episode-list-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(2px);
}
.episode-list-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--white-glass);
}
.episode-list-item .info { flex: 1; }
.episode-list-item .info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.episode-list-item .info .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.episode-list-item .info p { font-size: 0.85rem; color: var(--text-dim); }
.btn-sm {
  padding: 10px 24px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
  text-decoration: none;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--white-glass);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* Ads */
.ad-container {
  background: var(--glass);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 28px 0;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.6rem; }
  .episode-grid { grid-template-columns: 1fr; }
  .episode-list-item { flex-direction: column; text-align: center; }
  .episode-list-item img { width: 100%; height: 200px; }
  .player-cover { height: 260px; }
  .header-inner { flex-direction: column; text-align: center; }
  .player-body { padding: 24px; }
}
