body {
  background: #fff;
  color: #000;
}

.genre-page {
  padding: 28px 36px 80px;
  max-width: 1180px;
}

.genre-page a {
  color: inherit;
}

/* FAN-581 (A11Y-M07): the bare (non --team, non --visual) hero used white
   text on bubblegum at 2.57:1, fails even this 72px title's 3:1 large-text
   floor — ink reaches 8.16:1. --team/--visual override the background with
   darker gradients where white already passes, so they're untouched. */
.genre-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 36px 36px 32px;
  border-radius: 8px;
  color: var(--fc-black);
  background: var(--fc-bubblegum);
}

.genre-hero--team {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .56) 100%),
    linear-gradient(90deg, var(--team-primary) 0%, var(--team-primary) 62%, var(--team-secondary) 100%);
}

.genre-hero--visual {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .50) 0%, rgba(10, 10, 10, 0) 26%, rgba(10, 10, 10, 0) 54%, rgba(10, 10, 10, .72) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .22) 44%, rgba(10, 10, 10, 0) 68%),
    var(--team-hero-image) center / cover no-repeat,
    #0a0a0a;
}

.genre-hero::before {
  content: "FC";
  position: absolute;
  top: -48px;
  right: -28px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--fc-font-display);
  font-size: 300px;
  font-weight: 700;
  line-height: 0.85;
  pointer-events: none;
}

.genre-hero__eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.genre-hero__title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 8px 0 8px;
  font-family: var(--fc-font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.genre-hero__sub {
  position: relative;
  z-index: 1;
  max-width: 72ch;
  /* FAN-581 (A11Y-M07): white on bubblegum was 2.57:1, fails AA 4.5:1. */
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--fc-font-mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.genre-hero__filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.32);
}

.genre-pill.active {
  background: #000;
}

.genre-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.genre-list {
  overflow: hidden;
}

.genre-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.genre-side-card {
  overflow: hidden;
  border: 1px solid #ececea;
  border-radius: 8px;
  background: #fff;
}

.genre-side-card__hd {
  padding: 14px 18px;
  border-bottom: 1px solid #ececea;
}

.genre-side-card__hd h2 {
  margin: 0;
  color: var(--fc-bubblegum);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.genre-side-card__body {
  padding: 8px;
}

.genre-side-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
}

.genre-side-row:hover {
  background: #fff0f6;
}

.genre-side-row__rank {
  color: rgba(0, 0, 0, 0.4);
  font-family: var(--fc-font-mono);
  font-size: 12px;
}

.genre-side-row b,
.genre-side-row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.genre-side-row b {
  font-family: var(--fc-font-display);
  font-size: 16px;
  line-height: 1.1;
}

.genre-side-row em {
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.54);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.genre-copy {
  padding: 16px 18px 18px;
}

.genre-copy p {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.genre-copy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.genre-copy dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #f3f1eb;
}

.genre-copy dt,
.genre-copy dd {
  margin: 0;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.genre-copy dt {
  color: rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
}

.genre-copy dd {
  color: #000;
  font-weight: 700;
  text-align: right;
}

.genre-submit {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: var(--fc-volt);
  color: #000;
}

.genre-submit h2 {
  margin: 0;
  font-family: var(--fc-font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.genre-submit p {
  margin: 7px 0 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.genre-submit .pg-btn-primary { color: #fff; }

.genre-empty {
  margin: 10px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .genre-layout {
    grid-template-columns: 1fr;
  }

  .genre-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .genre-page {
    padding: 20px 18px 80px;
  }

  .genre-hero {
    padding: 28px 22px 24px;
  }

  .genre-hero::before {
    font-size: 190px;
  }

  .genre-hero__title {
    font-size: 42px;
  }

  .genre-aside {
    grid-template-columns: 1fr;
  }

}
