/* ==========================================================================
   Things I Love — Curated Editorial Archive
   Distinct medium-native layouts: cinema posters, vinyl sleeves, tracklist,
   editorial diptych, book shelf, widescreen stills, and serif pull-quotes.
   ========================================================================== */

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.archive-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 0 11px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.archive-tab:hover {
  color: var(--text);
}

.archive-tab.active {
  color: var(--text);
  font-weight: 400;
  border-bottom-color: var(--text);
}

.archive-tab .tab-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--text-muted);
}

/* Section container */
.archive-section {
  margin-bottom: 64px;
}

.archive-section:last-child {
  margin-bottom: 0;
}

.archive-section.is-hidden {
  display: none;
}

.archive-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.archive-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.archive-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
}

.archive-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Poster Grid (Films, Anime, Books & Manga) — 4-col borderless 2:3 frames
   -------------------------------------------------------------------------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.media-item {
  display: flex;
  flex-direction: column;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: border-color 0.25s ease;
}

.media-frame.square {
  aspect-ratio: 1 / 1;
}

.media-frame.wide {
  aspect-ratio: 16 / 10;
}

.media-frame.book::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08) 50%, transparent);
  pointer-events: none;
}

.media-item:hover .media-frame {
  border-color: var(--border-strong);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-item:hover .media-frame img {
  transform: scale(1.035);
}

.media-title {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 2px;
}

.media-sub {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Vinyl Grid (Albums) — 4-col 1:1 sleeves
   -------------------------------------------------------------------------- */
.vinyl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

/* --------------------------------------------------------------------------
   Tracklist Table (On Repeat Right Now) — Clean editorial hairline rows
   -------------------------------------------------------------------------- */
.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.track-row {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .tracklist:hover .track-row {
    opacity: 0.45;
  }

  .tracklist .track-row:hover {
    opacity: 1;
  }
}

.track-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
}

.track-thumb {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.track-name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.track-artist {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Soccer Diptych — Clean 2-column horizontal editorial feature
   -------------------------------------------------------------------------- */
.diptych-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diptych-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.22s ease;
}

.diptych-item:hover {
  border-color: var(--border-strong);
}

.diptych-img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}

.diptych-img.contain {
  object-fit: contain;
  padding: 8px;
}

.diptych-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.diptych-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 4px;
}

.diptych-note {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Games — 3-column widescreen stills
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
}

/* --------------------------------------------------------------------------
   Quotes — Large thin Instrument Serif italic pull-quotes
   -------------------------------------------------------------------------- */
.quotes-stack {
  display: flex;
  flex-direction: column;
}

.quote-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.quote-item:first-child {
  padding-top: 8px;
}

.quote-item blockquote {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: var(--text);
}

.quote-item figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
  .archive-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 0;
  }

  .archive-filters::-webkit-scrollbar {
    display: none;
  }

  .archive-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .archive-section {
    margin-bottom: 48px;
  }

  .poster-grid,
  .vinyl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .games-grid,
  .diptych-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .diptych-item {
    padding: 14px;
    gap: 14px;
  }

  .diptych-img {
    width: 60px;
    height: 60px;
  }

  .track-row {
    grid-template-columns: 22px 38px 1fr;
    gap: 4px 12px;
  }

  .track-num {
    grid-row: 1 / span 2;
  }

  .track-thumb {
    width: 38px;
    height: 38px;
    grid-row: 1 / span 2;
  }

  .track-artist {
    grid-column: 3;
    text-align: left;
  }

  .quote-item {
    padding: 22px 0;
  }

  .quote-item blockquote {
    font-size: 18px;
  }
}
