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

:root {
  --bg: #120235;
  --card: transparent;
  --header: #120235;
  --accent: #c0392b;
  --text: #ffffff;
  --muted: #ffffff;
  --border: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.banner-img {
  width: 445px;
  max-width: 100%;
  display: block;
}

.controls {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

#search {
  flex: 1;
  min-width: 180px;
  padding: 8px 13px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: background 0.15s;
}
#search::placeholder { color: #777; }
#search:focus { background: rgba(255,255,255,0.16); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }

.selects { display: flex; gap: 8px; }

select {
  padding: 8px 11px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}
select option { background: #2a2a2a; }

.result-bar {
  max-width: 1400px;
  margin: 7px auto 0;
  font-size: 0.72rem;
  color: #666;
  min-height: 16px;
}

/* ── Grid ── */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

#grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

/* ── Card ── */
.card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* Cover */
.cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ddd;
  overflow: hidden;
}
.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-badge {
  display: none;
}

/* Body */
.card-body {
  padding: 4px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.ep-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ep-date {
  font-size: 0.76rem;
  color: var(--muted);
}

.year-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ep-guests {
  font-size: 0.76rem;
  color: #ffffff;
  font-style: italic;
}

.ep-topfive {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

.ep-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.audio-row {
  margin-top: auto;
  padding-top: 9px;
}

.header-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 6px 0 4px;
}

.header-icons a img {
  height: 32px;
  width: 32px;
  display: block;
}

.play-btn {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s;
}
.play-btn:hover { background: #a93226; }

.play-btn.soon {
  background: #e8e8e8;
  color: #aaa;
  cursor: default;
  font-weight: 400;
}

/* Empty state */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  header { padding: 10px 14px 8px; }
  main { padding: 8px; }
  #grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .card-body { padding: 4px 8px 8px; gap: 2px; }
  .ep-title { font-size: 0.72rem; line-height: 1.2; }
  .ep-date { font-size: 0.62rem; }
  .ep-guests, .ep-topfive { font-size: 0.6rem; line-height: 1.2; }
  .ep-desc { font-size: 0.62rem; line-height: 1.3; }
  .audio-row { padding-top: 5px; }
  .play-btn { font-size: 0.65rem; padding: 4px 8px; }
  .banner-img { width: 100%; }
  .selects { flex: 1; }
  .selects select { flex: 1; }
}
