/* Front-page test (1.99.84): designs A (section colours + Top 10) and B (Top 10 chart first). Built on sau-front.css. */
.sfx {
  --sfx-top: #B45309;
  --sfx-artists: #7C3AED;
  --sfx-themes: #0F766E;
  --sfx-duel: #C026D3;
  --sfx-wau: #1D4ED8;
  --sfx-news: #15803D;
  --sfx-new: var(--sf-ink);
}
html[data-sau-theme="dark"] .sfx {
  --sfx-top: #f2a65a;
  --sfx-artists: #b69cff;
  --sfx-themes: #4fd1c1;
  --sfx-duel: #f08cf5;
  --sfx-wau: #8fb0ff;
  --sfx-news: #6fdc8c;
}
.sfx-c--top { --sfx-c: var(--sfx-top); }
.sfx-c--artists { --sfx-c: var(--sfx-artists); }
.sfx-c--themes { --sfx-c: var(--sfx-themes); }
.sfx-c--duel { --sfx-c: var(--sfx-duel); }
.sfx-c--wau { --sfx-c: var(--sfx-wau); }
.sfx-c--news { --sfx-c: var(--sfx-news); }
.sfx-c--new { --sfx-c: var(--sfx-new); }

/* Coloured section heads */
.sfx-sec .sau-front-head { border-top: 6px solid var(--sfx-c); padding-top: .7rem; }
.sfx-sec .sau-front-head__title,
.sfx-sec .sau-front-head__more { color: var(--sfx-c) !important; }
.sfx .sau-story__kicker { color: var(--sfx-artists) !important; }
.sfx-c--news .sau-front-news__vol { color: var(--sfx-news); }

/* Design A: lead, Top 10 beside it (below it on phones), newest headlines */
.sfx-a-top { display: grid; gap: 1.3rem; margin-bottom: 1.9rem; }
.sfx-a-top__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .85rem; }
.sfx-a-top__side .sau-story--side { display: block; padding: 0; border: 0; }
.sfx-a-top__side .sau-story--side .sau-story__body { padding-top: .55rem; }
.sfx-a-top__side .sau-story--side .sau-story__title { font-size: .98rem; line-height: 1.25; }
.sfx-a-top__list .sau-front-head { margin-bottom: .2rem; }

/* The numbered Top 10 (A's list and B's rows 4–10) */
.sfx-top10 { list-style: none; margin: 0; padding: 0; }
.sfx-top10__item { border-bottom: 1px solid var(--sf-line); }
.sfx-top10__link { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; color: inherit; text-decoration: none; }
.sfx-top10__rank { flex: none; width: 2.1rem; text-align: center; font-size: 1.65rem; font-weight: 950; letter-spacing: -.04em; line-height: 1; color: var(--sfx-top); }
.sfx-top10__thumb { flex: none; width: 96px; border-radius: 5px; overflow: hidden; background: var(--sau-surface-soft, #f1f1f1); }
.sfx-top10__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sfx-top10__body { display: grid; gap: .15rem; min-width: 0; }
.sfx-top10__title { font-size: .95rem; line-height: 1.25; font-weight: 800; letter-spacing: -.012em; }
.sfx-top10__meta { font-size: .74rem; color: var(--sf-muted); }
@media (hover: hover) { .sfx-top10__link:hover .sfx-top10__title { text-decoration: underline; text-underline-offset: 3px; } }

@media (min-width: 900px) {
  .sfx-a-top { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: "lead list" "side list"; column-gap: 2rem; align-items: start; }
  .sfx-a-top--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "side"; }
  .sfx-a-top__lead { grid-area: lead; }
  .sfx-a-top__list { grid-area: list; padding: 1rem 1.2rem .4rem; border-radius: 12px; background: var(--sau-surface, #fff); }
  .sfx-a-top__side { grid-area: side; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sfx-a-top__list .sfx-top10__thumb { display: none; }
  .sfx-a-top__list .sfx-top10__link { align-items: flex-start; }
}

/* Design B: the chart */
.sfx-chart {
  margin: 0 0 2rem;
  padding: 1rem 1rem .6rem;
  border-top: 8px solid var(--sfx-top);
  border-radius: 12px;
  background: var(--sau-surface, #fff);
}
.sfx-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin-bottom: 1rem; }
.sfx-chart__title { margin: 0; font-size: clamp(1.7rem, 7vw, 2.7rem); font-weight: 950; letter-spacing: -.035em; line-height: 1.05; color: var(--sfx-top); }
.sfx-chart__dek { margin: 0; flex: 1 1 100%; order: 3; font-size: .9rem; color: var(--sf-muted); }
.sfx-chart__more { order: 4; font-size: .88rem; font-weight: 800; color: var(--sfx-top) !important; }
.sfx-chart__podium { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .85rem; }
.sfx-podium { min-width: 0; }
.sfx-podium--first { grid-column: 1 / -1; }
.sfx-podium__media { display: block; position: relative; overflow: hidden; border-radius: 10px; background: var(--sau-surface-soft, #f1f1f1); }
.sfx-podium__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sfx-podium__rank {
  position: absolute; left: .6rem; top: .6rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #B45309; color: #fff; font-size: 1.35rem; font-weight: 950; letter-spacing: -.04em;
}
.sfx-podium--first .sfx-podium__rank { width: 3.6rem; height: 3.6rem; font-size: 2rem; }
.sfx-podium__title { margin: .55rem 0 0; font-size: 1rem; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.sfx-podium--first .sfx-podium__title { font-size: clamp(1.4rem, 6vw, 2.1rem); line-height: 1.08; letter-spacing: -.03em; }
.sfx-podium__meta { margin: .3rem 0 0; font-size: .78rem; color: var(--sf-muted); }
.sfx-top10--chart { margin-top: 1rem; border-top: 1px solid var(--sf-line); }
.sfx-top10--chart .sfx-top10__rank { font-size: 1.9rem; }
@media (min-width: 900px) {
  .sfx-chart { padding: 1.5rem 1.6rem 1rem; }
  .sfx-chart__dek { flex: 1 1 auto; order: 0; }
  .sfx-chart__more { order: 0; margin-left: auto; }
  .sfx-chart__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .sfx-top10--chart { margin-top: 0; border-top: 0; }
  .sfx-top10--chart .sfx-top10__thumb { width: 128px; }
  .sfx-top10--chart .sfx-top10__title { font-size: 1.02rem; }
}

/* Design B: a colour tile per section */
.sfx-explore { margin: 0 0 2rem; }
.sfx-explore__title { margin: 0 0 .9rem; font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; }
.sfx-explore__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.sfx-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--sfx-c); color: #fff !important; text-decoration: none; }
html[data-sau-theme="dark"] .sfx-tile { color: #111 !important; }
.sfx-tile__media { display: block; background: rgba(0, 0, 0, .15); }
.sfx-tile__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sfx-tile__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sfx-tile__pair img { aspect-ratio: 8 / 9; }
.sfx-tile__body { display: grid; gap: .3rem; padding: .85rem 1rem 1rem; }
.sfx-tile__label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sfx-tile__title { font-size: 1.1rem; line-height: 1.2; font-weight: 900; letter-spacing: -.018em; }
.sfx-tile__more { font-size: .82rem; font-weight: 700; }
.sfx-tile.sfx-c--new { --sfx-c: #3f3a33; }
html[data-sau-theme="dark"] .sfx-tile.sfx-c--new { --sfx-c: #d9d2c5; }
@media (hover: hover) { .sfx-tile:hover .sfx-tile__title { text-decoration: underline; text-underline-offset: 3px; } }
@media (min-width: 720px) {
  .sfx-explore__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfx-tile__pair img { aspect-ratio: 8 / 9; }
}
.sfx-b-newest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .sfx-b-newest { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Auto Ads inside the new grids always take the full width. */
.sfx-a-top > :not(.sfx-a-top__lead):not(.sfx-a-top__list):not(.sfx-a-top__side):not(.screen-reader-text),
.sfx-a-top__side > :not(.sau-story),
.sfx-top10 > :not(.sfx-top10__item),
.sfx-chart__podium > :not(.sfx-podium),
.sfx-explore__grid > :not(.sfx-tile) {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
