summary {
  list-style: none;
}

.home-top10-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #2c2c2f;
  border-radius: 8px;
  background: #121213;
}

.home-top10-switcher button {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 5px;
  color: #9b9b9f;
  font-size: 11px;
  font-weight: 600;
  transition: background 180ms, color 180ms;
}

.home-top10-switcher button:hover {
  color: #fff;
}

.home-top10-switcher button[aria-pressed="true"] {
  background: #ff6a1a;
  color: #fff;
}

.home-top10-rail {
  --card-height: clamp(340px, 34vw, 480px);
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 32px 0 8px;
  isolation: isolate;
}

.home-top-card {
  position: relative;
  flex: 0 0 clamp(210px, 23vw, 310px);
  min-width: 0;
  height: var(--card-height);
  transition: flex-basis 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-top-card.is-active {
  flex-basis: clamp(440px, 46vw, 660px);
}

.home-top-card__frame {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 12px;
  background: #1c1c1e;
}

.home-top-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-top-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0b0b0c08 20%, #0b0b0c55 48%, #121213e8 80%, #121213 100%);
}

.home-top-card__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.home-top-card__cover:focus-visible {
  outline-offset: -4px;
  border-radius: 12px;
}

.home-top-card__rank {
  position: absolute;
  z-index: 3;
  top: -29px;
  left: 14px;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffffb8;
  font-size: clamp(76px, 7.5vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
  pointer-events: none;
  transition: -webkit-text-stroke-color 350ms;
}

.home-top-card.is-active .home-top-card__rank {
  -webkit-text-stroke-color: #ff6a1a;
}

.home-top-card__rank-four {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.home-top-card__content {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 2;
  pointer-events: none;
}

.home-top-card__frame.has-bonus-ribbon .home-top-card__content {
  bottom: 48px;
}

.home-top-card__logo {
  width: min(100%, 300px);
  height: 96px;
  object-position: center bottom;
  filter: drop-shadow(0 3px 12px #0009);
}

.home-top-card__title {
  max-width: 330px;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.home-top-card__title.media-title-text {
  font-size: clamp(19px, 2vw, 28px);
  letter-spacing: 0.055em;
}

.home-top-card__title:not(.sr-only) {
  width: fit-content;
  max-width: min(100%, 330px);
  text-align: center;
}

.home-top-card__logo,
.home-top-card__title:not(.sr-only) {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  transition: left 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1), object-position 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-top-card.is-active .home-top-card__logo,
.home-top-card.is-active .home-top-card__title:not(.sr-only) {
  left: 0;
  transform: translateX(0);
}

.home-top-card.is-active .home-top-card__logo {
  object-position: left bottom;
}

.home-top-card.is-active .home-top-card__title:not(.sr-only) {
  text-align: left;
}

.home-top-card__footer {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-top-card__actions {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  pointer-events: auto;
  transition: left 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-top-card.is-active .home-top-card__actions {
  left: 0;
  transform: translateX(0);
}

.home-top-card__action {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #b9b9bd;
  font-size: 11px;
  font-weight: 600;
}

.home-top-card__action i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  background: #ffffff15;
  color: white;
  font-size: 23px;
  backdrop-filter: blur(8px);
  transition: background 200ms, transform 200ms;
}

.home-top-card__action:hover i,
.home-top-card__action:focus-visible i {
  background: #e04e06;
  transform: translateY(-2px);
}

.home-top-card__action[aria-pressed="true"] i {
  border-color: #ff6a1a;
  color: #ff6a1a;
}

.home-top-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  padding: 8px 10px;
  background: #0b0b0c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.home-top-card__badges {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.home-top-card__badge--collection {
  max-width: 190px;
}

.home-top-card__badge-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-top-card__badge--rank .home-top-card__badge-icon {
  color: #facc15;
}

.home-top-card__badge-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 20px;
}

.home-top-card:not(.is-active) .home-top-card__badge {
  display: none;
}

.home-top10-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #121213dc;
  font-size: 26px;
  backdrop-filter: blur(12px);
  transition: background 200ms, opacity 200ms;
}

.home-top10-nav--previous { left: -18px; }
.home-top10-nav--next { right: -18px; }
.home-top10-nav:hover { background: #e04e06; }
.home-top10-nav:disabled { opacity: 0; pointer-events: none; }

.home-top-card--loading .home-top-card__frame {
  animation: home-top10-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes home-top10-pulse {
  to { background: #2c2c2f; }
}

@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .home-top10-rail {
    --card-height: clamp(360px, 65vw, 460px);
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-left: 0;
    padding-right: 14%;
  }

  .home-top-card,
  .home-top-card.is-active {
    flex-basis: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none;
  }

  .home-top-card__frame {
    left: 0;
    right: calc((1 - var(--reveal, 1)) * 30%);
  }

  .home-top-card__content { inset: auto 18px 22px; }
  .home-top-card__rank { left: 12px; font-size: 82px; }
  .home-top-card__logo { width: min(100%, 280px); height: 92px; }
  .home-top-card__footer { flex-wrap: wrap; gap: 16px; }
  .home-top-card__actions { opacity: calc(0.4 + var(--reveal, 1) * 0.6); }
  .home-top-card__badge { font-size: 9px; padding: 6px 8px; }
  .home-top-card__badge--rank { display: none; }
  .home-top10-nav { display: none; }
}

@media (max-width: 479px) {
  .home-top-card__badge--collection {
    display: inline-flex;
    max-width: min(190px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-top-card__frame { left: 0; right: 0; }
  .home-top-card__rank { left: 14px; }
}

summary::-webkit-details-marker {
  display: none;
}

details[open] .plus {
  color: #ff6a1a;
  transform: rotate(45deg);
}
