.content-hub-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 91, 126, 0.2), transparent 34rem),
    linear-gradient(180deg, #06111f, #030914 62%, #050a12);
}

.hub-shell {
  width: min(1420px, calc(100% - (var(--site-page-gutter) * 2)));
  min-height: 80vh;
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.hub-hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: clamp(460px, 52vw, 650px);
  margin: 0 calc(50% - 50vw) clamp(2rem, 5vw, 4rem);
  padding: clamp(7rem, 10vw, 9rem) var(--site-page-gutter) clamp(3.5rem, 7vw, 5.5rem);
  place-items: end center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(1, 8, 17, 0.26) 0%, rgba(2, 10, 19, 0.46) 42%, #06111f 100%),
    linear-gradient(90deg, rgba(2, 9, 18, 0.5), transparent 32%, transparent 68%, rgba(2, 9, 18, 0.5)),
    url("/static/assets/optimized/images/backgrounds/rome-athens.87c5ddb12a86.webp") center 45% / cover no-repeat;
  text-align: center;
  isolation: isolate;
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 74%, rgba(229, 180, 79, 0.16), transparent 25rem);
  pointer-events: none;
}

.hub-hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.hub-hero-oracle {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 12px rgba(229, 180, 79, 0.2));
}

.hub-hero .site-kicker { justify-content: center; }
.hub-hero h1 {
  margin: 0.7rem 0 0;
  color: #f5d68e;
  font-family: var(--site-font-title);
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.62);
}
.hub-hero-copy > p:last-child {
  max-width: 720px;
  margin: 1.15rem auto 0;
  color: rgba(245, 232, 204, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.hub-browser-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.hub-filter-sidebar {
  position: sticky;
  top: 6.5rem;
  padding: 1.3rem 1.15rem 1.5rem;
  border: 1px solid rgba(222, 184, 96, 0.32);
  background:
    linear-gradient(135deg, rgba(229, 180, 79, 0.08), transparent 48%),
    rgba(4, 15, 27, 0.88);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.34), 0 16px 40px rgba(0, 0, 0, 0.22);
}
.hub-filter-kicker {
  margin: 0;
  color: rgba(232, 190, 96, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hub-filter-sidebar h2 {
  margin: 0.35rem 0 1rem;
  color: #f5d895;
  font-family: var(--site-font-title);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}
.hub-filter-nav {
  border-top: 1px solid rgba(222, 184, 96, 0.22);
}
.hub-filter-nav a {
  position: relative;
  display: block;
  padding: 0.8rem 0.7rem 0.8rem 1rem;
  border-bottom: 1px solid rgba(222, 184, 96, 0.16);
  color: rgba(244, 225, 181, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.hub-filter-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 50%;
  left: 0;
  width: 2px;
  background: #efc768;
  transition: top 160ms ease, bottom 160ms ease;
}
.hub-filter-nav a:hover,
.hub-filter-nav a[aria-current="page"] { color: #fff0bd; background: linear-gradient(90deg, rgba(141, 94, 27, 0.24), transparent); }
.hub-filter-nav a:hover::before,
.hub-filter-nav a[aria-current="page"]::before { top: 18%; bottom: 18%; }
.hub-browser-results { min-width: 0; }

.hub-card-grid,
.hub-creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
}
.hub-card { overflow: hidden; min-width: 0; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.hub-card:hover,
.hub-card:focus-within { transform: translateY(-4px); border-color: rgba(247, 208, 116, 0.7); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42); }
.hub-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #071525; text-decoration: none; }
.hub-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.hub-card:hover .hub-card-media img { transform: scale(1.035); }
.hub-card-media-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: #eec76e; background: radial-gradient(circle, rgba(225, 174, 75, 0.17), transparent 60%); font-family: var(--site-font-title); text-transform: uppercase; }
.hub-card-duration { position: absolute; right: 0.65rem; bottom: 0.65rem; color: #fff2c9; font-size: 0.7rem; font-weight: 900; text-shadow: 0 2px 5px #000, 0 0 8px #000; }
.hub-card-copy { padding: 1rem 1.05rem 1.2rem; }
.hub-card-meta-row { display: flex; justify-content: space-between; gap: 1rem; color: rgba(238, 204, 126, 0.78); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.hub-card-source { color: #f2ca70; }
.hub-card h3 { margin: 0.65rem 0 0; color: #fff0c2; font-family: var(--site-font-title); font-size: 1.05rem; line-height: 1.22; }
.hub-card h3 a { color: inherit; text-decoration: none; }
.hub-card-creator,
.hub-card-summary,
.hub-card-stats { margin: 0.65rem 0 0; }
.hub-card-creator { color: rgba(255, 241, 207, 0.86); font-weight: 700; }
.hub-card-summary { color: var(--site-text-muted); line-height: 1.45; }
.hub-card-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; color: rgba(235, 196, 108, 0.72); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }

.hub-creator-card { display: flex; gap: 1rem; align-items: center; min-height: 150px; padding: 1.2rem; }
.hub-creator-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hub-creator-card span { color: #eac46e; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hub-creator-card h2 { margin: 0.35rem 0; color: #fff0c4; font-family: var(--site-font-title); font-size: 1.15rem; }
.hub-creator-card p { margin: 0; color: var(--site-text-muted); }
.hub-creator-card a { display: inline-block; margin-top: 0.55rem; color: #edc46a; font-weight: 800; text-decoration: none; }

.hub-curated-section + .hub-curated-section { margin-top: 4rem; }
.hub-section-heading { max-width: 760px; margin-bottom: 1.4rem; }
.hub-section-heading span { color: #e7bc61; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.hub-section-heading h2 { margin: 0.35rem 0 0; color: #f5d895; font-family: var(--site-font-title); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hub-section-heading p { margin: 0.65rem 0 0; color: var(--site-text-muted); line-height: 1.5; }
.hub-empty { grid-column: 1 / -1; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.hub-empty h2 { margin: 0; color: #f5d895; font-family: var(--site-font-title); }
.hub-empty p { margin: 0.8rem 0 0; color: var(--site-text-muted); }
.hub-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; color: var(--site-text-muted); }
.hub-pagination a { color: #f0c86e; font-weight: 850; text-decoration: none; }
.hub-preview-notice {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(232, 190, 96, 0.42);
  border-left: 3px solid #e7bc61;
  color: var(--site-text-muted);
  background: rgba(15, 29, 42, 0.72);
}
.hub-preview-notice strong { color: #f5d895; font-family: var(--site-font-title); text-transform: uppercase; }

@media (max-width: 1180px) { .hub-card-grid, .hub-creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hub-browser-layout { grid-template-columns: 1fr; }
  .hub-filter-sidebar { position: static; }
  .hub-filter-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-filter-nav a:nth-child(odd) { border-right: 1px solid rgba(222, 184, 96, 0.16); }
}
@media (max-width: 640px) {
  .hub-shell { width: min(100% - 2rem, 1420px); }
  .hub-hero { min-height: 520px; padding-top: 6.5rem; background-position: 54% 45%; }
  .hub-hero-oracle { width: 70px; height: 70px; }
  .hub-card-grid, .hub-creator-grid { grid-template-columns: 1fr; }
  .hub-preview-notice { display: block; }
  .hub-preview-notice span { display: block; margin-top: 0.35rem; }
}
@media (max-width: 440px) { .hub-filter-nav { grid-template-columns: 1fr; } .hub-filter-nav a:nth-child(odd) { border-right: 0; } }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-card-media img { transition: none; } .hub-card:hover { transform: none; } }
