/*
Theme Name: Folio Series Theme
Theme URI: https://github.com/chilloh/folio-theme
Author: chilloh on the ink
Author URI: https://chillohontheink.com
Description: A premium, minimal series-based editorial theme featuring dark/light mode, custom DM Sans & Cormorant Garamond typography, and serial episode navigation.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: folio
*/
/* ===== CSS VARIABLES ===== */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --surface: #1e1e2e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8f0;
  --text-muted: #7878a0;
  --text-dim: #4a4a6a;
  --accent: #c8a96e;
  --accent-light: #e4c98a;
  --accent-glow: rgba(200,169,110,0.15);
  --red: #e05c6a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.6);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f5f2ec;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f4;
  --surface: #ede9e0;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.2);
  --text: #1a1a2e;
  --text-muted: #6b6b8a;
  --text-dim: #9a9ab0;
  --accent: #8b5e2a;
  --accent-light: #a07035;
  --accent-glow: rgba(139,94,42,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

/* ===== GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] nav {
  background: rgba(245,242,236,0.85);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 300;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.nav-breadcrumb a:hover { color: var(--accent); }
.nav-breadcrumb .sep { opacity: 0.4; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== MAIN CONTENT ===== */
main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(200,169,110,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* ===== SEARCH ===== */
.search-wrapper {
  max-width: 480px;
  margin: 0 auto 1rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder { color: var(--text-dim); }

.search-icon {
  position: absolute;
  left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ===== ALBUMS GRID ===== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* ===== ALBUM CARD ===== */
.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

.album-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.album-card:hover .album-img {
  transform: scale(1.04);
}

.album-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.album-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-card) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
}

.album-episode-badge {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.album-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.album-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.album-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.album-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.album-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.album-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.album-card:hover .album-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translateX(2px);
}

/* ===== EPISODE LIST ===== */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}

.episode-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.episode-img-wrap {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface);
}

.episode-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.episode-card:hover .episode-img { transform: scale(1.05); }

.episode-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  opacity: 0.2;
}

.episode-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.episode-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.episode-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.episode-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.episode-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.episode-read-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.35rem;
  transition: gap var(--transition);
}

.episode-card:hover .episode-read-btn { gap: 0.6rem; }

/* ===== ALBUM HERO ===== */
.album-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.album-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.album-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,15,0.4) 60%, transparent 100%);
}

.album-hero-content {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  padding: 0 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.album-hero-content .album-label {
  margin-bottom: 0.75rem;
}

.album-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.album-hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}

/* ===== POST PAGE ===== */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  margin-bottom: 0;
}

.post-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 20%, transparent 100%);
}

.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  position: relative;
  z-index: 1;
  margin-top: -160px;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-album-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(200,169,110,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.post-album-link:hover {
  background: var(--accent);
  color: #000;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.post-read-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.post-excerpt-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.post-divider {
  width: 64px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* ===== POST CONTENT ===== */
.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent-glow); }
.post-content a:hover { border-bottom-color: var(--accent); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

.post-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.post-content li { margin-bottom: 0.5rem; }

/* ===== POST NAV ===== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.post-nav-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.post-nav-btn.next { text-align: right; }

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: all var(--transition);
}

.back-btn:hover { color: var(--accent); gap: 0.3rem; }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg-card) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-img {
  aspect-ratio: 16/9;
  background: var(--surface);
  animation: shimmer 1.5s infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, var(--surface) 25%, var(--bg-card-hover) 50%, var(--surface) 75%);
}

.skeleton-body { padding: 1.25rem 1.5rem 1.5rem; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }
.skeleton-title { height: 24px; width: 75%; margin-bottom: 12px; }

/* Episode skeleton */
.skeleton-episode {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  height: 140px;
}

.skeleton-episode-img {
  width: 200px;
  flex-shrink: 0;
  background: var(--surface);
  animation: shimmer 1.5s infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, var(--surface) 25%, var(--bg-card-hover) 50%, var(--surface) 75%);
}

.skeleton-episode-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== ERROR & EMPTY STATES ===== */
.state-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  min-height: 300px;
}

.state-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.state-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.state-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.state-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.state-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

footer a { color: var(--text-dim); transition: color var(--transition); }
footer a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in { animation: fadeIn 0.5s ease; }

/* Stagger children */
.albums-grid .album-card:nth-child(1) { animation-delay: 0.05s; }
.albums-grid .album-card:nth-child(2) { animation-delay: 0.10s; }
.albums-grid .album-card:nth-child(3) { animation-delay: 0.15s; }
.albums-grid .album-card:nth-child(4) { animation-delay: 0.20s; }
.albums-grid .album-card:nth-child(5) { animation-delay: 0.25s; }
.albums-grid .album-card:nth-child(6) { animation-delay: 0.30s; }
.albums-grid .album-card:nth-child(7) { animation-delay: 0.35s; }
.albums-grid .album-card:nth-child(8) { animation-delay: 0.40s; }

.episodes-list .episode-card:nth-child(1) { animation-delay: 0.05s; }
.episodes-list .episode-card:nth-child(2) { animation-delay: 0.10s; }
.episodes-list .episode-card:nth-child(3) { animation-delay: 0.15s; }
.episodes-list .episode-card:nth-child(4) { animation-delay: 0.20s; }
.episodes-list .episode-card:nth-child(5) { animation-delay: 0.25s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .album-hero-content { padding: 0 1.5rem; }
  .post-container { padding: 0 1.5rem 4rem; margin-top: -120px; }
  .post-hero { height: 360px; }
  .episode-img-wrap { width: 140px; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 640px) {
  nav { padding: 1rem; }
  .container { padding: 0 1rem; }
  .hero { padding: 3rem 0 2rem; }
  .albums-grid { grid-template-columns: 1fr; }
  .episode-card { flex-direction: column; }
  .episode-img-wrap { width: 100%; height: 160px; }
  .album-hero { height: 260px; }
  .album-hero-content { padding: 0 1rem; bottom: 1.5rem; }
  .post-hero { height: 280px; }
  .post-container { margin-top: -80px; padding: 0 1rem 3rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-btn.next { text-align: left; }
  .nav-breadcrumb { display: none; }
}

