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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;
  --accent: #e8ff47;
  --text: #f0f0f0;
  --muted: #888;
  --border: #2a2a2a;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.week-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Featured ── */
#featured {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.featured-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.featured-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.featured-no-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
}

.featured-no-video svg {
  opacity: 0.3;
}

.featured-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-titles h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.featured-titles .artist {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 400;
}

.featured-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  max-width: 500px;
}

.featured-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.5rem;
}

/* ── Archive ── */
#archive {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

#archive h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.archive-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  object-fit: cover;
  display: block;
}

.archive-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.archive-info {
  padding: 0.85rem 1rem 1rem;
}

.archive-info .title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-info .artist {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.archive-info .date {
  font-size: 0.72rem;
  color: var(--border);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ── States ── */
#loading, #error {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}

#error {
  color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  header { padding: 1rem; }
  #featured { padding: 2rem 1rem 3rem; }
  #archive { padding: 2rem 1rem 4rem; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
