/* ============================================================
   X-Rankings — Editorial chart-magazine theme (Billboard-inspired)
   Fonts: Oswald (display) + Libre Franklin (body) + Font Awesome 6
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --red: #e4002b;
  --paper: #ffffff;
  --paper-warm: #f6f4ef;
  --gray: #767676;
  --hairline: #e3e0d8;
  --rule: #0a0a0a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- Masthead ---------- */
.mast-top { background: var(--ink); }
.mast-top-in { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.mast-nav { display: flex; gap: 26px; }
.mast-nav a {
  color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.mast-nav a:hover { color: var(--red); }
.mast-date { color: #8b8b8b; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.mast-word { padding: 26px 22px 18px; }
.wordmark {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  color: var(--ink); display: inline-block;
}
.wordmark .dot { color: var(--red); }
.tagline {
  font-size: 11px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gray); margin-top: 6px;
}
.mast-rule { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); height: 6px; }

/* ---------- Kicker / section titles ---------- */
.kicker {
  color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 3px solid var(--rule); padding-top: 12px; margin: 46px 0 18px;
}
.sec-head h2 {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 26px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.sec-head .see-all { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--red); font-weight: 800; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; padding: 40px 0 8px; align-items: start; }
.hero-main { grid-column: 1 / span 7; }
.hero-side { grid-column: 9 / span 4; border-left: 1px solid var(--hairline); padding-left: 22px; }
.hero h1 {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04; text-transform: uppercase; letter-spacing: 0.5px; margin: 10px 0 14px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { color: var(--gray); font-size: 17px; max-width: 560px; }

/* No.1 feature panel (homepage hero-side) */
.feature-no1 { border-top: 4px solid var(--red); background: var(--paper-warm); padding: 18px 20px 20px; }
.feature-no1 .fno-kicker { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.feature-no1 .fno-name { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1.05; margin: 6px 0 2px; }
.feature-no1 .fno-value { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 16px; color: var(--ink); }
.feature-no1 .fno-value b { font-size: 40px; color: var(--red); line-height: 1; margin-right: 6px; }
.feature-no1 .fno-chart { display: block; text-decoration: none; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; margin-top: 12px; color: var(--ink); }
.feature-no1 .fno-chart i { color: var(--red); margin-left: 6px; }
.feature-no1 + .feature-no1 { margin-top: 14px; }

/* ---------- Chart list (homepage directory / module page) ---------- */
.chart-list { margin: 8px 0 40px; }
.chart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--hairline); text-decoration: none;
}
.chart-item:first-child { border-top: none; }
.chart-item:hover .ci-title { color: var(--red); }
.ci-num {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 52px; line-height: 1;
  color: var(--paper); -webkit-text-stroke: 2px var(--ink); text-align: right;
}
.chart-item:hover .ci-num { color: var(--red); -webkit-text-stroke: 2px var(--red); }
.ci-body { min-width: 0; }
.ci-mod { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.ci-title { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.5px; margin: 2px 0 4px; transition: color 0.12s; }
.ci-desc { color: var(--gray); font-size: 14.5px; max-width: 640px; }
.ci-leader { font-size: 13.5px; margin-top: 6px; }
.ci-leader .lbl { color: var(--red); font-weight: 800; letter-spacing: 1px; }
.ci-leader b { font-weight: 800; }
.ci-go { color: var(--ink); font-size: 20px; padding-right: 6px; transition: transform 0.12s, color 0.12s; }
.chart-item:hover .ci-go { color: var(--red); transform: translateX(4px); }

/* ---------- Ranking page ---------- */
.ranking-head { padding: 34px 0 6px; }
.ranking-head h1 {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase; line-height: 1.05; margin: 10px 0 12px; max-width: 900px;
}
.ranking-head .lede { color: var(--gray); font-size: 17px; max-width: 780px; }
.crumbs { padding-top: 18px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { margin: 0 8px; color: var(--red); }

/* Chart rows */
.chart { border-top: 3px solid var(--rule); margin: 26px 0 8px; }
.chart-row {
  display: grid; grid-template-columns: 120px 1fr 170px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--hairline); position: relative;
}
.cr-rank {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 58px; line-height: 1;
  color: var(--ink); text-align: right; letter-spacing: -1px;
}
.chart-row:nth-child(-n+3) .cr-rank { color: var(--red); }
.cr-name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 25px; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.1; }
.cr-meta { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }
.cr-detail { color: var(--gray); font-size: 14px; margin-top: 8px; max-width: 620px; }
.cr-years { font-size: 13px; color: var(--gray); margin-top: 6px; font-weight: 600; letter-spacing: 0.3px; }
.cr-value { text-align: right; border-left: 1px solid var(--hairline); padding-left: 20px; }
.cr-value .num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 46px; line-height: 1; display: block; }
.cr-value .unit { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.cr-value .sub { display: block; font-size: 12px; color: var(--gray); margin-top: 4px; }

/* #1 inverted feature row */
.chart-row.is-one {
  background: var(--ink); color: #fff; margin: 0 -22px; padding: 26px 22px;
  border-bottom: 3px solid var(--red);
}
.chart-row.is-one .cr-rank { color: var(--red); }
.chart-row.is-one .cr-name { font-size: 30px; }
.chart-row.is-one .cr-meta { color: #ffb3c0; }
.chart-row.is-one .cr-detail, .chart-row.is-one .cr-years { color: #bdbdbd; }
.chart-row.is-one .cr-value { border-left-color: #333; }
.chart-row.is-one .cr-value .num { color: var(--red); }
.chart-row.is-one .cr-value .unit, .chart-row.is-one .cr-value .sub { color: #8b8b8b; }

/* ---------- Notes ---------- */
.notes { border-top: 3px solid var(--rule); margin: 34px 0 8px; padding-top: 14px; }
.notes h2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.notes h2 i { color: var(--red); margin-right: 8px; }
.notes ul { list-style: none; }
.notes li { padding: 10px 0 10px 26px; border-top: 1px solid var(--hairline); color: #444; font-size: 14.5px; position: relative; }
.notes li::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--red); font-size: 9px; position: absolute; left: 4px; top: 16px; }
.disclaimer { font-size: 12px; color: var(--gray); font-style: italic; margin-top: 12px; }
.updated { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin: 18px 0 24px; }

/* ---------- Chips / more rankings ---------- */
.chip-row { margin: 10px 0 46px; font-size: 13px; color: var(--gray); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; text-transform: uppercase; letter-spacing: 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink);
  padding: 8px 16px; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.chip i { color: var(--red); }
.chip:hover { background: var(--ink); color: #fff; }

/* ---------- Ads ---------- */
.ad-slot { margin: 26px 0; text-align: center; }

/* ---------- Coming soon ---------- */
.coming-soon { border-top: 1px solid var(--hairline); color: var(--gray); padding: 20px 0 46px; font-size: 14px; letter-spacing: 0.5px; }
.coming-soon i { color: var(--red); margin-right: 8px; }

/* ---------- 404 / privacy ---------- */
.center-hero { padding: 60px 0 30px; max-width: 720px; }
.center-hero h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 44px; text-transform: uppercase; margin-bottom: 12px; }
.center-hero h1 em { font-style: normal; color: var(--red); }
main h1 { margin: 26px 0 10px; font-size: 32px; }
main h2 { margin: 22px 0 8px; font-size: 20px; }
main p { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #bdbdbd; margin-top: 54px; }
.site-foot .wrap { padding: 34px 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.foot-brand { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; color: #fff; letter-spacing: 1px; }
.foot-brand .dot { color: var(--red); }
.foot-tag { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #8b8b8b; margin-top: 4px; }
.foot-note { font-size: 13px; margin-top: 12px; max-width: 460px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-links a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.foot-links a i { color: var(--red); margin-right: 8px; }
.foot-links a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main, .hero-side { grid-column: auto; border-left: none; padding-left: 0; }
  .hero-side { border-top: 3px solid var(--rule); padding-top: 16px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chart-item { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .ci-num { font-size: 34px; }
  .ci-title { font-size: 19px; }
  .chart-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .cr-rank { font-size: 36px; text-align: left; }
  .cr-value { grid-column: 2; border-left: none; border-top: 1px solid var(--hairline); padding: 10px 0 0; text-align: left; }
  .cr-value .num { display: inline; font-size: 30px; margin-right: 8px; }
  .mast-word { padding: 20px 22px 14px; }
}

/* ---------- Homepage v2: TL;DR / Trending / Categories / Recent ---------- */
.tldr {
  background: #0a0a0a;
  border-left: 6px solid #e4002b;
  padding: 26px 30px 24px;
  margin: 30px 0 10px;
  color: #fff;
}
.tldr-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #e4002b;
  margin: 0 0 14px;
}
.tldr-title i { margin-right: 8px; }
.tldr-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tldr-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #262626;
}
.tldr-item:last-child { border-bottom: 0; }
.tldr-item .ti-icon { width: 22px; color: #e4002b; font-size: 15px; text-align: center; flex: none; }
.tldr-item .ti-name {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 19px;
  letter-spacing: 0.4px; text-transform: uppercase; color: #fff; flex: 1 1 auto;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tldr-item .ti-chart { color: #8a8a8a; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; flex: none; }
.tldr-item .ti-value { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; color: #e4002b; flex: none; }
.tldr-item .ti-unit { color: #767676; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; flex: none; }

.trend-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 18px 0 8px;
}
.trend-card {
  display: block; background: #fff; border: 1px solid #0a0a0a;
  border-top: 6px solid #e4002b; padding: 18px 18px 16px;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.trend-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,10,10,0.14); }
.trend-card .tc-mod {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #767676; font-weight: 800;
}
.trend-card .tc-title {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.4px; color: #0a0a0a; margin: 6px 0 10px;
}
.trend-card .tc-no1 { border-top: 1px solid #e3e0d8; padding-top: 10px; }
.trend-card .tc-no1 .lbl {
  font-size: 10px; letter-spacing: 2px; color: #e4002b; font-weight: 800; margin-right: 6px;
}
.trend-card .tc-no1 b { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; color: #0a0a0a; }
.trend-card .tc-value {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 26px; color: #e4002b; margin-top: 2px;
}
.trend-card .tc-value span { font-size: 11px; letter-spacing: 1.5px; color: #767676; font-weight: 400; margin-left: 4px; text-transform: uppercase; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 18px 0 8px;
}
.cat-card {
  display: block; background: #0a0a0a; color: #fff; text-decoration: none;
  padding: 22px 20px 18px; position: relative; overflow: hidden;
  transition: transform 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 74px; height: 74px;
  background: #e4002b; transform: rotate(45deg);
}
.cat-card .cc-icon { font-size: 22px; color: #e4002b; }
.cat-card .cc-name {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: 0.5px; margin: 8px 0 2px;
}
.cat-card .cc-count { color: #8a8a8a; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.cat-card .cc-preview { border-top: 1px solid #262626; margin-top: 12px; padding-top: 10px; font-size: 13px; color: #cfcabf; }
.cat-card .cc-preview b { color: #fff; }
.cat-card .cc-soon {
  display: inline-block; margin-top: 12px; border: 1px solid #e4002b; color: #e4002b;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 4px 8px; font-weight: 800;
}

.recent-list { margin: 14px 0 8px; border-top: 2px solid #0a0a0a; }
.recent-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 2px; border-bottom: 1px solid #e3e0d8; text-decoration: none;
}
.recent-item:hover { background: #f6f4ef; }
.recent-item .ri-date {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13px;
  color: #e4002b; letter-spacing: 1px; flex: none; width: 96px;
}
.recent-item .ri-mod {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #767676; flex: none;
}
.recent-item .ri-title {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; text-transform: uppercase;
  letter-spacing: 0.4px; color: #0a0a0a; flex: 1 1 auto;
}
.recent-item .ri-go { color: #0a0a0a; font-size: 13px; flex: none; }
