:root {
  color-scheme: dark;
  --bg: #090d14;
  --surface: #111722;
  --surface-2: #171f2c;
  --surface-3: #202a39;
  --border: #2a3444;
  --text: #f4f7fb;
  --muted: #8f9bad;
  --accent: #ef3340;
  --accent-soft: rgba(239, 51, 64, 0.14);
  --gold: #f4bd50;
  --blue: #67a8ff;
  --green: #5dcc82;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; }
.archive-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9, 13, 20, .92);
  backdrop-filter: blur(18px);
}
.nav-links { display: flex; gap: 7px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-item {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.nav-item.special { color: var(--bg); border-color: var(--text); background: var(--text); }
.nav-label { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.search-container { position: relative; }
.search-icon { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; }
.search-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 42px 8px 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
}
.search-input::placeholder { color: var(--muted); }
.search-kbd { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 28px));
  max-height: min(560px, 70vh);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); text-decoration: none; }
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: var(--surface-2); }
.si-title { font-size: 13px; font-weight: 750; }
.si-title mark { border-radius: 3px; background: var(--accent-soft); color: #ff7a84; }
.si-date { color: var(--muted); font-size: 11px; }
.search-empty { padding: 18px; color: var(--muted); text-align: center; }

.header {
  position: relative;
  margin: 20px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.15), transparent 34%),
    linear-gradient(135deg, #8f101a, #ef3340 58%, #b41320);
  box-shadow: var(--shadow);
}
.header::after { content: "IGN"; position: absolute; right: -8px; bottom: -42px; color: rgba(255,255,255,.08); font-size: 150px; font-weight: 950; line-height: 1; }
.header-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.header h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.header .subtitle { margin-top: 7px; font-size: 14px; opacity: .86; }
.stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.stat-badge { padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(0,0,0,.15); font-size: 12px; font-weight: 750; backdrop-filter: blur(8px); }

.filter-bar { display: flex; gap: 8px; margin: 0 20px 22px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.filter-button:hover, .filter-button.active { border-color: var(--accent); background: var(--accent-soft); color: #ff7781; }

.content-shell { padding: 0 20px 34px; }
.video-section { margin-top: 28px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.section-note { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section-count { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; }
.section-reviews .section-heading { color: var(--gold); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  scroll-margin-top: 78px;
}
.card:hover { border-color: #46536a; background: var(--surface-2); transform: translateY(-1px); }
.card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-inner { display: grid; grid-template-columns: 150px minmax(0, 1fr); height: 100%; }
.thumb-wrap { position: relative; min-height: 96px; overflow: hidden; background: linear-gradient(135deg, var(--surface-3), var(--surface)); }
.card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #526076; font-size: 18px; font-weight: 950; letter-spacing: .08em; }
.card-body { display: flex; min-width: 0; flex-direction: column; padding: 14px; }
.title-link { display: -webkit-box; overflow: hidden; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 800; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.title-link:hover { color: #ff7580; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.tag-duration { color: var(--blue); }
.tag-short { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.btn { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 800; }
.btn:hover { color: var(--text); border-color: #526078; }
.btn-primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.btn-read { color: var(--green); border-color: rgba(93,204,130,.35); }

.featured-grid .card-inner { grid-template-columns: minmax(180px, 42%) minmax(0, 1fr); }
.featured-grid .thumb-wrap { min-height: 175px; }
.featured-grid .title-link { font-size: 17px; }
.compact-grid .card-inner { grid-template-columns: 112px minmax(0, 1fr); }
.compact-grid .thumb-wrap { min-height: 78px; }
.compact-grid .card-body { padding: 11px 12px; }
.compact-grid .title-link { font-size: 13px; -webkit-line-clamp: 2; }
.compact-grid .actions { padding-top: 8px; }

.short-section { margin-top: 28px; border-top: 1px solid var(--border); }
.short-section > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; cursor: pointer; list-style: none; }
.short-section > summary::-webkit-details-marker { display: none; }
.short-summary-title { font-size: 16px; font-weight: 850; }
.short-summary-note { color: var(--muted); font-size: 12px; }
.short-section[open] .short-summary-note { display: none; }
.collapse-button { display: block; margin: 16px auto 0; padding: 8px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 750; }
.overflow-card { display: none; }
[data-expanded="true"] .overflow-card { display: block; }
.is-filtered, .section-empty { display: none !important; }

/* Compatibility while the seven-day archive window rolls onto the new markup. */
.container > .section-header { display: flex; align-items: center; gap: 9px; margin: 28px 20px 12px; }
.container > .section-header .section-title { font-size: 17px; font-weight: 850; }
.container > .card { margin: 0 20px 12px; }

.footer { margin-top: 36px; padding: 24px 20px 34px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: 12px; }
.footer p { margin: 4px; }
.footer a { color: var(--text); }

@media (max-width: 820px) {
  .archive-nav { grid-template-columns: 1fr; padding: 10px 14px; }
  .nav-links { order: 1; }
  .search-container { order: 2; }
  .header { margin: 14px; padding: 24px 20px; border-radius: 17px; }
  .filter-bar { margin: 0 14px 18px; }
  .content-shell { padding: 0 14px 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .card-inner { grid-template-columns: 1fr; }
  .featured-grid .thumb-wrap { min-height: 150px; }
}

@media (max-width: 560px) {
  .nav-label { display: none; }
  .header::after { font-size: 100px; }
  .stats { gap: 6px; }
  .stat-badge { padding: 6px 9px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card-inner { grid-template-columns: 1fr; }
  .featured-grid .thumb-wrap { min-height: 190px; }
  .card-inner, .compact-grid .card-inner { grid-template-columns: 112px minmax(0, 1fr); }
  .thumb-wrap, .compact-grid .thumb-wrap { min-height: 84px; }
  .card-body, .compact-grid .card-body { padding: 11px; }
  .title-link { font-size: 13px; -webkit-line-clamp: 2; }
  .actions .btn:not(.btn-primary):not(.btn-read) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
