/*
Theme Name: LURID
Theme URI: https://example.com/lurid
Author: LURID
Description: 18+ catalog. Games, videos, and anime are separate sections. Characters are adults.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lurid
*/

:root {
  --bg: #0c0c0e;
  --card: #17171c;
  --ink: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --rose: #ff3b8d;
  --gold: #e4c27a;
  --green: #3dff7a;
  --sans: "Outfit", sans-serif;
  --display: "Syne", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--bg);
}
body.admin-bar .bar-sticky { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .bar-sticky { top: 46px; }
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, .logo span, .logo-mark, .age-title { font-family: var(--display); font-weight: 750; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.95; margin: 0.2rem 0 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
p { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
.kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.lede, .prose p, .sub { color: var(--muted); line-height: 1.6; }
.lede { max-width: 40rem; margin-top: 1rem; }
.lede a { color: var(--gold); text-decoration: underline; }
.lede a:hover { color: #fff; }
.gold { color: var(--gold); }
.site-main { padding-bottom: 3rem; }

.site-header { background: transparent; }
.bar-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 3.25rem;
  padding: 0.3rem 0;
}
.logo { display: flex; align-items: center; line-height: 1; flex: 0 0 auto; }
.logo-word { font-size: 1.45rem; color: #fff; letter-spacing: -0.04em; }
.logo .logo-accent, .logo-mark .logo-accent { color: var(--rose); }
.desktop-nav { display: flex; align-items: center; gap: 1.15rem; }
.nav-item > a { font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.88); }
.nav-item > a:hover { color: #fff; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.65);
  transform: translateY(-1px);
}
.nav-item { position: relative; }
.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  min-width: 14.5rem;
  z-index: 60;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub > div {
  background: #16161c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.nav-sub a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 7px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
}
.nav-sub a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.icon-search { position: relative; display: flex; align-items: center; width: 2.25rem; }
.icon-search:focus-within,
.icon-search:has(input:not(:placeholder-shown)) { width: 11.5rem; }
.icon-search input {
  width: 100%;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  padding: 0 0.55rem 0 2rem;
  outline: none;
}
.icon-search:focus-within input,
.icon-search input:not(:placeholder-shown) {
  color: #fff;
  background: #1b1b22;
  border: 1px solid rgba(255,255,255,0.1);
}
.search-glyph {
  position: absolute;
  left: 0.5rem;
  width: 1.15rem;
  height: 1.15rem;
  pointer-events: none;
  color: rgba(255,255,255,0.88);
}
.saved-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
}
.saved-link svg { width: 1.1rem; height: 1.1rem; }
.menu-toggle, .mobile-nav { display: none; }
.promo-line {
  margin: 0.5rem 1rem 0.35rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.2rem 0 0.85rem;
  scrollbar-width: none;
}
.tag-row::-webkit-scrollbar { display: none; }
.tag-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 1.85rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #1c1c22;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  white-space: nowrap;
}
.tag-pill:hover { background: #26262e; color: #fff; border-color: rgba(255, 59, 141, 0.55); }
.search-page input {
  flex: 1;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 0 0.9rem;
}

.hero, .keyword-panel, .shelf-tile, .fact, .empty, .card, .game-cover {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.hero { display: grid; gap: 1.5rem; padding: 1.4rem; margin-top: 1.5rem; }
.hero-actions, .chips, .sortbar, .card-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hero-actions { margin-top: 1.2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  background: var(--rose);
  color: white;
  border: 0;
  cursor: pointer;
}
.btn-ghost { background: transparent; border: 1px solid var(--line); color: white; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; align-self: end; }
.stats div { border: 1px solid var(--line); text-align: center; padding: 0.7rem 0.3rem; }
.stats dt { font-family: var(--display); font-size: 1.6rem; }
.stats dd { margin: 0.25rem 0 0; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.block { margin-top: 2.4rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 0.9rem; }
.sub { margin: 0.35rem 0 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.block .grid { margin-top: 1rem; }
.card { display: flex; flex-direction: column; background: rgba(22, 22, 26, 0.92); transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: rgba(255, 59, 141, 0.7); transform: translateY(-2px); }
.card-media { position: relative; }
.card-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: black; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a1020, #8c1d4a);
  color: rgba(255,255,255,0.35);
  font-family: var(--display);
  font-size: 5rem;
}
.game-video { width: 100%; }
.game-video video, .game-video iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: black; }
.bunny-frame { position: relative; width: 100%; height: 0; padding-top: 56.25%; background: #000; }
.bunny-frame iframe,
.game-video .bunny-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
}
.card-shade {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: var(--rose); color: white; font-size: 0.72rem; padding: 0.15rem 0.45rem;
}
.save {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 2rem; height: 2rem; border: 1px solid var(--line);
  background: rgba(0,0,0,0.55); color: white; cursor: pointer;
}
.save::before { content: "☆"; }
.save.is-on { background: var(--rose); }
.save.is-on::before { content: "★"; }
.save-labeled { position: static; width: auto; min-height: 2.5rem; padding: 0 1rem; }
.save-labeled::before { content: ""; }
.card-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem; flex: 1; }
.card-body .meta, .meta { color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-top: 0.2rem; }
.excerpt { margin-top: 0.45rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature .excerpt { -webkit-line-clamp: 4; }
.card-foot { margin-top: auto; padding-top: 0.45rem; font-size: 0.78rem; color: rgba(255,255,255,0.7); justify-content: space-between; }
.card-foot.wide { justify-content: flex-start; gap: 1rem; margin: 1rem 0; }
.shelf-tile { display: block; padding: 1rem; }
.shelf-tile h3 { margin: 0.4rem 0; font-size: 1.7rem; }
.shelf-tile p:last-child { color: var(--muted); line-height: 1.5; font-size: 0.92rem; }
.keyword-panel { margin-top: 2.5rem; padding: 1.2rem; }
.keyword-panel p { margin: 0.8rem 0; color: var(--muted); max-width: 46rem; line-height: 1.6; }
.chips a, .chip {
  border: 1px solid var(--line); padding: 0.35rem 0.7rem; font-size: 0.88rem; color: rgba(255,255,255,0.8);
}
.chips { margin-top: 0.8rem; }
.chip.is-on, .chips a:hover, .chip:hover { border-color: var(--rose); color: white; }
.sortbar { margin: 1rem 0; }
.sortbar .count { margin-left: auto; color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.page-copy { padding-top: 1.6rem; }
.narrow { width: min(44rem, calc(100% - 2rem)); margin: 0 auto; padding-top: 1.6rem; }
.center { text-align: center; }
.center .btn { margin-top: 1rem; }
.prose { margin-top: 1rem; display: grid; gap: 0.9rem; }
.crumbs { color: rgba(255,255,255,0.55); font-size: 0.88rem; display: flex; gap: 0.45rem; }
.game-layout, .game-detail { display: grid; gap: 1.2rem; margin-top: 1rem; }
.game-cover { background: black; }
.fine { color: rgba(255,255,255,0.48); font-size: 0.78rem; line-height: 1.5; margin-top: 0.7rem; }
.fact { padding: 1rem; }
.fact dl { margin: 0.8rem 0; display: grid; gap: 0.45rem; }
.fact div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.fact dt { color: rgba(255,255,255,0.5); }
.search-page { display: flex; gap: 0.5rem; max-width: 36rem; margin: 1rem 0; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.display { font-family: var(--display); color: white; font-size: 1.8rem; margin-bottom: 0.4rem; }
.empty a { color: var(--gold); text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,0.3); margin-top: 3rem; }
.footer-grid { display: grid; gap: 1.5rem; padding: 2rem 0; }
.logo-mark { font-size: 1.8rem; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.55; }
.footer-grid ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.legal-bar { border-top: 1px solid var(--line); text-align: center; color: rgba(255,255,255,0.45); font-size: 0.75rem; padding: 0.9rem; }
.legal-bar a:hover { color: white; }

.game-videos { display: grid; gap: 0.8rem; }
.game-files ul { margin: 0.7rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.game-files a { color: var(--gold); text-decoration: underline; }
.game-shots { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.game-shots h3 { font-size: 1.2rem; }
.game-shot { width: 100%; height: auto; display: block; background: black; }
.sheet h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.sheet-line { margin-top: 0.75rem; color: var(--gold); font-size: 0.95rem; }
.sheet-line a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.sheet-rating { margin-top: 0.45rem; font-size: 1.05rem; }
.sheet-section { margin-top: 1.8rem; }
.sheet-section h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.sheet-copy p { color: var(--muted); line-height: 1.6; margin: 0 0 0.7rem; }
.sheet .game-shots { margin-top: 0; }
.sheet-facts { margin-top: 1.6rem; display: grid; gap: 0.65rem; }
.sheet-facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.6rem; }
.sheet-facts dt { color: rgba(255,255,255,0.5); }
.sheet-facts dd { margin: 0; }
.sheet-facts a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.12em; }
.video-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

.age-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 59, 141, 0.22), transparent 46%),
    #0c0c0e;
}
html.age-ok .age-gate { display: none; }
.age-card, .age-blocked {
  width: min(34rem, 100%);
  border: 1px solid var(--line);
  background: rgba(16, 16, 20, 0.96);
  padding: 1.5rem;
}
.age-card .age-title { font-size: 2.4rem; line-height: 0.95; margin: 0.2rem 0 0; }
.home-intro { padding: 0.85rem 0 0.2rem; }
.home-intro h1 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.05; }
.home-intro .lede { margin-top: 0.6rem; max-width: 46rem; }
.age-card p, .age-blocked { color: rgba(255,255,255,0.78); line-height: 1.55; margin-top: 0.8rem; }
.age-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.2rem; }
.age-actions .btn { flex: 1; }

dialog {
  width: min(34rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  background: #121216;
  color: var(--ink);
  padding: 1.2rem;
}
dialog::backdrop { background: rgba(0,0,0,0.72); }
dialog h2 { font-size: 1.8rem; margin: 0.4rem 0 0.8rem; }
dialog p { line-height: 1.6; color: rgba(255,255,255,0.8); }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; padding: 2rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .card--feature { flex-direction: row; }
  .card--feature .card-media { width: 58%; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
  .age-actions { flex-direction: row; }
  .game-detail { grid-template-columns: 1.4fr 0.6fr; }
}
@media (min-width: 1040px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .sheet-facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .icon-search:focus-within,
  .icon-search:has(input:not(:placeholder-shown)) {
    flex: 1 0 100%;
    width: 100%;
    order: 5;
  }
  .mobile-nav {
    display: block;
    padding: 0.35rem 1rem 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-parent, .mobile-child { display: block; padding: 0.4rem 0; }
  .mobile-parent { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-top: 0.45rem; }
  .mobile-child { color: rgba(255,255,255,0.72); padding-left: 0.75rem; font-size: 0.92rem; }
}
h2.section-title {
  margin: 0;
  color: var(--green);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.2;
}
.view-more { color: rgba(255,255,255,0.72); font-size: 0.86rem; white-space: nowrap; }
.view-more:hover { color: #fff; }
.home-catalog { padding-top: 0.15rem; }
.home-section { margin-top: 1.45rem; }
.home-section:first-child { margin-top: 0.15rem; }
.menu-toggle {
  align-items: center;
  height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
}
.featured-main { min-width: 0; display: flex; }
.featured-main .feature-card { flex: 1; }
.featured-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 420px;
}
.feature-card {
  position: relative;
  display: block;
  min-height: 420px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #141418;
  color: inherit;
}
.feature-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.feature-media .cover,
.feature-media .cover-fallback,
.cover-tile .cover,
.cover-tile .cover-fallback,
.compact-cover .cover,
.compact-cover .cover-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.4rem 1.15rem 1.05rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 58%, transparent 100%);
}
.feature-copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-copy p {
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 40rem;
}
.cover-tile {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #17171c;
  color: inherit;
}
.cover-tile .cover,
.cover-tile .cover-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.cover-tile h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.6rem 0.65rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.cover-tile .cover-fallback,
.compact-cover .cover,
.compact-cover .cover-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  font-size: 2rem;
}
.feature-media .cover-fallback { font-size: 4.2rem; }
.ph-media,
.cover-tile.is-placeholder,
.compact-card.is-placeholder .compact-cover {
  background: linear-gradient(160deg, #1c1c22 0%, #121216 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.card-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem 0.7rem;
}
.compact-card { min-width: 0; }
.compact-card a { display: block; color: inherit; }
.compact-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1f;
}
.compact-card h3 {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.compact-version { margin: 0.15rem 0 0; color: rgba(255,255,255,0.45); font-size: 0.72rem; }
.shelf-badge {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  z-index: 1;
  max-width: calc(100% - 0.8rem);
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: var(--rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-line {
  display: block;
  height: 0.5rem;
  width: 78%;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.ph-line.is-short { width: 40%; }
.series-cover { margin-top: 1.2rem; background: #000; }
.series-cover .cover,
.series-cover img { width: 100%; max-height: 32rem; object-fit: cover; display: block; }
.series-cover .cover-fallback { min-height: 16rem; position: relative; }
.episode-list { display: grid; gap: 1.5rem; }
.episode-list h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.nav-links a, .nav-links span { color: var(--gold); }
.nav-item > a[aria-current="page"] { color: #fff; }

@media (max-width: 1100px) {
  .card-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { min-height: 240px; }
  .feature-card { min-height: 280px; }
}
@media (max-width: 720px) {
  .tag-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tag-row::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
