:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #b9b1a1;
  --line: rgba(247, 243, 232, 0.14);
  --panel: rgba(17, 18, 22, 0.86);
  --panel-strong: rgba(10, 11, 14, 0.95);
  --gold: #d7aa43;
  --gold-soft: #f4d47e;
  --red: #b4141f;
  --red-deep: #640910;
  --blue: #536e8d;
  --green: #607a48;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #090a0d;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(100, 9, 16, 0.44), transparent 34%),
    linear-gradient(180deg, rgba(215, 170, 67, 0.13), transparent 30%),
    radial-gradient(circle at 70% 20%, rgba(83, 110, 141, 0.16), transparent 28%),
    #090a0d;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 12, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.brand-kicker,
.eyebrow,
.meta,
.video-meta,
.pill,
.small-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.72rem;
}

.brand-kicker {
  color: var(--gold-soft);
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav a[aria-current="page"],
.btn-primary {
  color: #150f05;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: rgba(255, 225, 135, 0.62);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 78px) 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.rank-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.hero-copy,
.rank-copy,
.panel {
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.94), rgba(10, 11, 14, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.rank-copy {
  padding: clamp(24px, 4vw, 42px);
}

.hero h1,
.rank-hero h1 {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.rank-hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.7rem);
}

.lead {
  max-width: 68ch;
  margin: 0;
  color: #ddd4c4;
  font-size: clamp(1.02rem, 2.1vw, 1.25rem);
  line-height: 1.62;
}

.hero-actions,
.rank-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-board {
  display: grid;
  gap: 12px;
}

.rank-link {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(215, 170, 67, 0.17), rgba(180, 20, 31, 0.1)), rgba(10, 11, 14, 0.86);
  box-shadow: var(--shadow);
}

.rank-link:hover,
.nav a:hover,
.btn:hover {
  border-color: rgba(244, 212, 126, 0.7);
}

.rank-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3.5vw, 2.35rem);
  line-height: 1;
}

.rank-link span {
  color: var(--muted);
  line-height: 1.35;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stat b {
  display: block;
  font-size: 1.45rem;
  color: var(--gold-soft);
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-card,
.note-card,
.rank-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    var(--poster, linear-gradient(135deg, rgba(215, 170, 67, 0.18), rgba(180, 20, 31, 0.2))) center / cover no-repeat,
    linear-gradient(135deg, rgba(215, 170, 67, 0.18), rgba(180, 20, 31, 0.2)),
    #111216;
  border-bottom: 1px solid var(--line);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.pending-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.pending-frame b {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.pending-frame span,
.muted {
  color: var(--muted);
}

.video-body,
.note-card,
.rank-card {
  padding: 16px;
}

.video-body h3,
.note-card h3,
.rank-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.video-body p,
.note-card p,
.rank-card p {
  margin: 0;
  color: #d7cfbf;
  line-height: 1.5;
}

.video-meta,
.meta {
  color: var(--gold-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #eadfc8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.66rem;
}

.rank-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .topbar-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .rank-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .grid,
  .rank-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .hero,
  .rank-hero,
  .main,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand img {
    width: 44px;
    height: 58px;
  }

  .nav {
    width: 100%;
    justify-content: stretch;
  }

  .nav a {
    flex: 1 1 44%;
  }

  .stats,
  .grid,
  .rank-card-grid {
    grid-template-columns: 1fr;
  }
}
