:root {
  --bg: #000000;
  --panel: #060606;
  --panel-2: #101010;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f4f1;
  --muted: #9c9b96;
  --accent: #ffffff;
  --accent-2: #dedede;
  --overlay: linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.7) 70%, rgba(5, 5, 5, 0.94) 100%);
  --hero: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.14) 74%, rgba(0, 0, 0, 0.08) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: "Barlow", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1920px, 100%);
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 12px 28px;
  background: #070707;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #f8bd46 0%, #d9982d 100%);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.topnav a {
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 500;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--text);
}

.language-select-wrap {
  display: inline-flex;
  min-width: 82px;
}

.language-select {
  width: 100%;
  min-height: 36px;
  padding: 6px 32px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.language-select:focus-visible {
  outline: 2px solid rgba(255, 138, 61, 0.45);
  outline-offset: 2px;
}

.bookmark-login,
.primary-cta,
.secondary-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #f0efeb;
  padding: 0;
}

.topbar-avatar span {
  font-size: 1rem;
  line-height: 1;
}

.primary-cta {
  border-color: transparent;
  background: #ffffff;
  color: #111111;
  font-weight: 600;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  background: #ece9e4;
  color: #111111;
}

.secondary-cta:hover,
.secondary-cta:focus-visible,
.bookmark-login:hover,
.bookmark-login:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.secondary-cta:disabled,
.bookmark-login:disabled {
  cursor: default;
  opacity: 0.55;
}

.page {
  display: grid;
  gap: 34px;
  padding: 0 28px 40px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #b8b5ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.hero,
.detail-hero {
  position: relative;
  min-height: 64vh;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  margin-left: -28px;
  margin-right: -28px;
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-color: #131415;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero);
}

.hero-copy,
.detail-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 16px;
  width: min(520px, calc(100% - 56px));
  min-height: 64vh;
  padding: 100px 32px 46px;
}

.hero-copy h1,
.detail-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 3.8vw, 4.65rem);
  line-height: 0.92;
}

.hero-copy p,
.detail-description {
  margin: 0;
  max-width: 52ch;
  color: #d7d5cf;
  font-size: 1.3rem;
  line-height: 1.5;
  white-space: pre-line;
}

#hero-eyebrow {
  display: none;
}

.hero-meta,
.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.detail-tags span {
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #e5dfd7;
  font-size: 0.8rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rail-section {
  display: grid;
  gap: 12px;
}

.section-copy {
  display: grid;
  gap: 2px;
}

.section-copy .eyebrow {
  display: none;
}

.section-copy h2 {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(332px, 332px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.card-grid::-webkit-scrollbar {
  display: none;
}

.media-grid-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.media-card {
  min-width: 0;
}

.media-card-link {
  display: block;
}

.media-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-2);
}

.media-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease, filter 240ms ease;
}

.media-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.16) 100%);
  transition: background 240ms ease;
}

.media-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 16px;
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease, background 220ms ease;
}

.media-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.media-card-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
}

.media-card-overlay-copy {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 12px 18px;
  text-align: center;
}

.media-card-overlay h3 {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.22;
  max-width: 18ch;
}

.media-card-overlay-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.35;
  max-width: 24ch;
}

.bookmark-pill {
  justify-self: end;
  align-self: start;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 0.78rem;
}

.media-card-link:hover .media-card-media img,
.media-card-link:focus-visible .media-card-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.media-card-link:hover .media-card-shade,
.media-card-link:focus-visible .media-card-shade {
  background: linear-gradient(180deg, rgba(11, 16, 27, 0.14) 0%, rgba(11, 16, 27, 0.54) 42%, rgba(11, 16, 27, 0.84) 100%);
}

.media-card-link:hover .media-card-overlay,
.media-card-link:focus-visible .media-card-overlay {
  opacity: 1;
}

.hero--loading .hero-backdrop,
.hero--loading .detail-backdrop,
.media-card-media.is-loading {
  background-image: linear-gradient(110deg, rgba(255,255,255,0.06) 8%, rgba(255,255,255,0.12) 18%, rgba(255,255,255,0.06) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

.detail-back-link {
  color: #e0d8cc;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 1180px) {
  .hero,
  .detail-hero {
    min-height: 58vh;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 16px;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .topnav {
    justify-content: flex-start;
    overflow: auto;
  }

  .hero,
  .detail-hero {
    min-height: 58vh;
    border-radius: 0;
  }

  .hero-copy,
  .detail-copy {
    width: calc(100% - 24px);
    padding: 72px 18px 24px;
    min-height: 58vh;
  }

  .card-grid {
    grid-auto-columns: minmax(280px, 280px);
  }
}

@media (max-width: 560px) {
  .hero-copy h1,
  .detail-copy h1 {
    font-size: 2.1rem;
  }

  .page {
    padding: 0 14px 28px;
  }

  .card-grid {
    grid-auto-columns: minmax(232px, 232px);
  }

  .section-copy h2 {
    font-size: 1.9rem;
  }
}
