/* Rankings + Profile: single source of truth matching osu-web computed px.
   Loaded last. html rem is 10px on these sections; all component sizes are px. */

html[data-osu-section="rankings"],
html[data-osu-section="user"] {
  font-size: 10px;
}

html[data-osu-section="rankings"] body,
html[data-osu-section="user"] body {
  font-size: 16px;
  line-height: 1.25;
  padding-top: 0;
}

html[data-osu-section="beatmapsets"] body,
html[data-osu-section="beatmapset"] body {
  padding-top: 0;
}

@media (max-width: 899px) {
  html[data-osu-section="rankings"] body,
  html[data-osu-section="user"] body,
  html[data-osu-section="beatmapsets"] body,
  html[data-osu-section="beatmapset"] body {
    padding-top: 50px;
  }
}

/* ===== header-v4 stacking (official: padding-top 0; nav2 is fixed) ===== */
html[data-osu-section="rankings"] .header-v4,
html[data-osu-section="user"] .header-v4,
html[data-osu-section="beatmapsets"] .header-v4,
html[data-osu-section="beatmapset"] .header-v4,
.header-v4--rankings,
.header-v4--users,
.header-v4--beatmapsets,
.header-v4--beatmapset {
  display: block !important;
  margin: 0 !important;
  background-color: transparent !important;
  padding-top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
}

.header-v4__container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.header-v4__container--main {
  padding-top: 105px;
}
@media (max-width: 899px) {
  .header-v4__container--main { padding-top: 0; }
}

.header-v4--rankings .header-v4__title,
.header-v4--users .header-v4__title,
html[data-osu-section="rankings"] .header-v4__title,
html[data-osu-section="user"] .header-v4__title {
  display: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
}
@media (min-width: 900px) {
  .header-v4--rankings .header-v4__title,
  .header-v4--users .header-v4__title,
  html[data-osu-section="rankings"] .header-v4__title,
  html[data-osu-section="user"] .header-v4__title {
    display: flex;
    align-items: center;
  }
}

.header-v4--rankings .header-v4__icon,
.header-v4--users .header-v4__icon {
  width: 40px;
  height: auto;
  align-self: stretch;
  margin-right: 10px;
  margin-left: 0;
  flex: none;
  background-size: 75%;
  background-position: center;
  background-repeat: no-repeat;
}

.header-v4--rankings .header-v4__row,
.header-v4--users .header-v4__row {
  gap: 0;
  padding: 0 10px;
}
@media (min-width: 900px) {
  .header-v4--rankings .header-v4__row,
  .header-v4--users .header-v4__row {
    padding: 0 50px;
  }
}

.header-v4--rankings .header-v4__row--title,
.header-v4--users .header-v4__row--title {
  position: relative;
  height: 40px;
  background-color: hsl(var(--hsl-d5));
  font-size: 14px;
}
@media (min-width: 900px) {
  .header-v4--rankings .header-v4__row--title,
  .header-v4--users .header-v4__row--title {
    height: 55px;
    font-size: 20px;
  }
}
@media (max-width: 899px) {
  .header-v4--rankings .header-v4__row--title,
  .header-v4--users .header-v4__row--title {
    display: none;
  }
}

.header-v4--rankings .header-v4__row--bar,
.header-v4--users .header-v4__row--bar {
  background-color: hsl(var(--hsl-d4));
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .header-v4--rankings .header-v4__row--bar,
  .header-v4--users .header-v4__row--bar {
    height: 48px;
    min-height: 48px;
  }
}

.header-v4--rankings .header-nav-v4,
.header-v4--users .header-nav-v4 {
  flex-wrap: nowrap;
}

/* Hide private-server variant pills from official header chrome */
.header-v4--rankings .header-v4__row--bar > .ranking-filter,
.header-v4--users .header-v4__row--bar > .ranking-filter,
.header-v4 .ranking-filter__item--variant {
  display: none !important;
}

/* ===== game-mode (UL). Specificity MUST beat leftover ul.game-mode { display:flex } ===== */
.header-v4--rankings .game-mode,
.header-v4--users .game-mode {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: normal;
  align-items: center;
  gap: 10px 20px;
}

html[data-osu-section="rankings"] ul.game-mode.game-mode--desktop,
.header-v4--rankings ul.game-mode.game-mode--desktop {
  display: flex;
  position: absolute;
  top: 0;
  right: 10px;
  height: 100%;
  margin-left: 0;
  list-style: none;
  padding: 0;
  font-size: 14px;
  align-items: center;
  gap: 10px 20px;
}
@media (min-width: 900px) {
  html[data-osu-section="rankings"] ul.game-mode.game-mode--desktop,
  .header-v4--rankings ul.game-mode.game-mode--desktop { right: 50px; }
}

html[data-osu-section="rankings"] ul.game-mode.game-mode--mobile,
.header-v4--rankings ul.game-mode.game-mode--mobile {
  display: none !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  height: 0 !important;
  width: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap;
}
@media (max-width: 899px) {
  html[data-osu-section="rankings"] ul.game-mode.game-mode--desktop,
  .header-v4--rankings ul.game-mode.game-mode--desktop { display: none !important; }
  html[data-osu-section="rankings"] ul.game-mode.game-mode--mobile,
  .header-v4--rankings ul.game-mode.game-mode--mobile {
    display: flex !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto !important;
    gap: 10px 20px;
  }
}

html[data-osu-section="user"] ul.game-mode.game-mode--desktop,
.header-v4--users ul.game-mode.game-mode--desktop {
  display: flex !important;
  position: absolute !important;
  top: 0 !important;
  right: 50px !important;
  height: 100% !important;
  width: auto !important;
  margin-left: 0;
  list-style: none;
  padding: 0;
  font-size: 14px;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: visible;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

html[data-osu-section="user"] ul.game-mode.game-mode--mobile,
.header-v4--users ul.game-mode.game-mode--mobile {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
@media (max-width: 899px) {
  html[data-osu-section="user"] ul.game-mode.game-mode--desktop,
  .header-v4--users ul.game-mode.game-mode--desktop {
    display: none;
    width: 0;
    height: 0;
    pointer-events: none;
    visibility: hidden;
  }
  html[data-osu-section="user"] ul.game-mode.game-mode--mobile,
  .header-v4--users ul.game-mode.game-mode--mobile {
    display: flex;
    position: absolute;
    top: 0;
    right: 10px;
    height: 100%;
    width: auto;
    margin-left: 0;
    list-style: none;
    padding: 0;
    font-size: 14px;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: visible;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }
}

.header-v4--rankings .game-mode-link,
.header-v4--users .game-mode-link,
html[data-osu-section="rankings"] .game-mode-link,
html[data-osu-section="user"] .game-mode-link {
  color: hsl(var(--hsl-h1));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 20px;
  line-height: normal;
  font-weight: 400;
  text-decoration: none;
  overflow: hidden;
}
.header-v4--users .game-mode-link {
  overflow: visible;
  gap: 4px;
}
.header-v4--users .game-mode-link:has(.game-mode-link__icon) {
  width: 38px;
  height: 20px;
  overflow: visible;
}
.header-v4--users .game-mode-link__icon {
  display: block;
  font-size: 0.6em;
  width: 14px;
  height: 14px;
  overflow: hidden;
  line-height: 14px;
  color: transparent;
  position: relative;
  flex: none;
}
.header-v4--users .game-mode-link__icon::before {
  content: "\f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #fff;
  font-size: 10px;
  position: absolute;
  left: 2px;
  top: 2px;
}
.header-v4--rankings .game-mode-link:hover,
.header-v4--users .game-mode-link:hover,
.header-v4--rankings .game-mode-link.active,
.header-v4--users .game-mode-link.active,
.header-v4--rankings .game-mode-link.game-mode-link--active,
.header-v4--users .game-mode-link.game-mode-link--active {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ===== ranking info chrome (official osu-page--ranking-info) ===== */
.osu-page--ranking-info {
  background-color: hsl(var(--hsl-d3));
  color: #fff;
  font-size: 14px;
  padding: 12px 10px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  max-width: 1000px;
  width: 100%;
  display: grid;
  gap: 8px;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .osu-page--ranking-info { padding: 12px 50px; }
}
.osu-page--ranking-info-extra { display: none !important; }

.ranking-filter {
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
}
.ranking-filter__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 5px;
  color: #fff;
}
.ranking-filter--full .select-options,
.ranking-filter--full .select-options--ranking {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
}

/* Official sort chrome: "Sort by" + filled buttons (inside ranking page, not a 2nd ranking-info) */
.sort,
.sort--ranking-header,
.ranking-sort {
  --item-button-colour: hsl(var(--hsl-l1));
  --item-hover-bg: hsl(var(--hsl-b4));
  padding: 0;
  display: flex;
  font-size: 12px;
  line-height: 15px;
  align-items: center;
}
.sort__items,
.ranking-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: -5px;
}
.sort__item,
.ranking-sort__item,
.ranking-sort__label {
  margin: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--item-button-colour);
  text-decoration: none;
  font-weight: 400;
  box-shadow: none;
}
.sort__item--title,
.ranking-sort__label {
  padding: 5px 10px 5px 0;
  margin-left: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}
.sort__item--button:hover,
.ranking-sort__item:hover {
  background-color: var(--item-hover-bg);
  color: var(--item-button-colour);
  text-decoration: none;
}
.sort__item--active,
.ranking-sort__item--active {
  --item-button-colour: hsl(var(--hsl-c1));
  background-color: var(--item-hover-bg);
  font-weight: 600;
  color: hsl(var(--hsl-c1));
  box-shadow: none;
}
.sort__item--active::after,
.ranking-sort__item--active::after {
  content: none !important;
  display: none !important;
}
.ranking-sort__rx { display: none !important; }

.ranking-filters {
  display: block;
  width: 100%;
}
.ranking-filter--full {
  display: block;
  width: 100%;
  max-width: none;
  flex: none;
}
.ranking-filter--variant,
#ranking-type-widget,
.ranking-filter__item--variant {
  display: none !important;
}
.select-options--ranking,
.ranking-filter--full .select-options,
.ranking-filter--full .select-options--ranking {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 54px !important;
}
.select-options__select,
.select-options__option--selector,
.ranking-filter--full .select-options__select,
.ranking-filter--full .select-options__option--selector {
  width: 100% !important;
  height: 54px !important;
  box-sizing: border-box;
}

/* Kill mashed ranking-page-header leftover */
.osu-page--ranking > .ranking-page-header,
.ranking-page-header {
  display: none;
}

/* Playlist subtabs */
.ranking-playlists-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.ranking-playlists-nav a {
  color: hsl(var(--hsl-l1));
  text-decoration: none;
  padding: 4px 0;
}
.ranking-playlists-nav a.is-active {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -2px hsl(var(--hsl-h1));
}
.ranking-spotlight-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  font-size: 12px;
  color: hsl(var(--hsl-c2));
}
@media (min-width: 900px) {
  .ranking-spotlight-meta { grid-template-columns: repeat(4, 1fr); }
}
.ranking-spotlight-meta__label {
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ranking-beatmapsets {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}
@media (min-width: 900px) {
  .ranking-beatmapsets { grid-template-columns: 1fr 1fr; }
}
/* Listing panels: do not cap at 445 — that bleeds onto /beatmapsets (official ~475).
   Ranking pages keep max-width via .ranking-beatmapsets rules below. */
a.beatmapset-panel,
.beatmapset-panel {
  display: flex;
  width: 100%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: hsl(var(--hsl-b3));
  color: #fff;
  text-decoration: none;
}
a.beatmapset-panel:hover { color: #fff; text-decoration: none; }
.beatmapset-panel__cover {
  width: 160px;
  height: 100px;
  flex: none;
  background: hsl(var(--hsl-b2)) center / cover no-repeat;
}
/* Listing panels use osu-web.css official padding (4px 10px 6px).
   Keep compact padding only for ranking page beatmapset cards. */
.ranking-beatmapsets .beatmapset-panel__info,
.ranking-page .beatmapset-panel__info {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.beatmapset-panel__title {
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.beatmapset-panel__artist {
  font-size: 12px;
  color: hsl(var(--hsl-c2));
}
.ranking-top-plays__map {
  text-align: start;
  color: hsl(var(--hsl-h1));
  text-decoration: none;
  font-weight: 600;
}
.ranking-top-plays__map:hover { color: #fff; text-decoration: underline; }
.ranking-page-header__title {
  font-size: 12px;
  color: hsl(var(--hsl-c2));
  padding: 0 0 10px;
}
.ranking-score-menu {
  background: none;
  border: 0;
  color: hsl(var(--hsl-l1));
  cursor: pointer;
  padding: 4px 8px;
}
span.ranking-sort__item {
  cursor: default;
}

/* ===== ranking table (official 32px rows, 12/15, dimmed grades) ===== */
.ranking-page {
  color: #fff;
  font-size: 12px;
  line-height: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
}
.osu-page--ranking {
  background: hsl(var(--hsl-b5));
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
}
@media (min-width: 900px) {
  .osu-page--ranking { padding: 20px 50px; }
}

.ranking-page-table {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  border-spacing: 0 3px;
  border-collapse: separate;
  table-layout: auto !important;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #fff;
}
.ranking-page-table__heading {
  font-weight: 400;
  color: hsl(var(--hsl-f1));
  padding: 6px 5px;
  text-align: center;
  font-size: 12px;
  line-height: 15px;
  height: auto;
}
.ranking-page-table__heading:first-child,
.ranking-page-table tbody td:first-child,
.ranking-page-table__column:first-child {
  padding-left: 10px;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px;
  box-sizing: border-box;
}
.ranking-page-table--country thead th:first-child,
.ranking-page-table--country tbody td:first-child {
  width: 38px;
  min-width: 38px;
}
.ranking-page-table__heading:last-child { padding-right: 10px; }
.ranking-page-table__heading--focused { color: hsl(var(--hsl-c1)); }
.ranking-page-table__heading:not(.ranking-page-table__heading--main),
.ranking-page-table__column:not(.ranking-page-table__column--main) {
  width: 1%;
}
.ranking-page-table__heading--main { width: 100%; }
.ranking-page-table:not(.ranking-page-table--top-plays) .ranking-page-table__column--main {
  width: 370px !important;
  min-width: 370px !important;
  max-width: 370px !important;
}
.ranking-page-table--country .ranking-page-table__column--main,
.ranking-page-table--country .ranking-page-table__heading--main {
  width: 472px !important;
  min-width: 472px !important;
  max-width: 472px !important;
}
.ranking-page-table__column--score,
.ranking-page-table thead th.ranking-page-table__heading--score {
  width: 95px !important;
  min-width: 95px !important;
  box-sizing: border-box;
}
.ranking-page-table__heading--grade {
  padding-left: 20px;
  padding-right: 20px;
}

.ranking-page-table__row { --bg: hsl(var(--hsl-b4)); }
.ranking-page-table__row:hover { --bg: hsl(var(--hsl-b3)); }

.ranking-page-table__column {
  background: var(--bg, hsl(var(--hsl-b4)));
  padding: 6px 5px;
  height: 32px;
  min-height: 0;
  max-height: 32px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #fff;
  vertical-align: middle;
  box-sizing: border-box;
}
.ranking-page-table__column--dimmed,
.ranking-page-table__column.ranking-page-table__grade,
.ranking-page-table__grade {
  color: hsl(var(--hsl-f1)) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  min-width: 28px;
}
.ranking-page-table__heading:first-child,
.ranking-page-table__column:first-child {
  border-radius: 4px 0 0 4px;
  padding-left: 10px;
}
.ranking-page-table__column:last-child {
  border-radius: 0 4px 4px 0;
  padding-right: 10px;
  color: #fff;
  font-weight: 400;
}
.ranking-page-table tbody td.ranking-page-table__column--focused,
.ranking-page-table__column--focused {
  color: #fff;
  font-weight: 400;
}
.ranking-page-table tbody td b,
.ranking-page-table__column b {
  font-weight: 400 !important;
}
.ranking-page-table {
  min-width: 0 !important;
}
.ranking-page-table:not(.ranking-page-table--top-plays) .ranking-page-table__column--main {
  width: 370px;
  min-width: 370px;
  max-width: 370px;
  height: 32px;
  overflow: hidden;
  text-align: start;
}
.ranking-page-table--country .ranking-page-table__column--main {
  width: 472px;
  min-width: 472px;
  max-width: 472px;
}

.ranking-page-table__column--rank-change {
  text-align: start;
  color: hsl(var(--hsl-f1));
  min-width: 28px;
  width: auto;
}
.ranking-page-table__column--rank-change::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  min-width: 1.25em;
  text-align: center;
  content: none;
}
.ranking-page-table__column--rank-change-pending::before { content: "\f141"; }
.ranking-page-table__column--rank-change-up { color: hsl(var(--hsl-lime-1)); }
.ranking-page-table__column--rank-change-up::before { content: "\f062"; }
.ranking-page-table__column--rank-change-down { color: hsl(var(--hsl-red-1)); }
.ranking-page-table__column--rank-change-down::before { content: "\f063"; }
.ranking-page-table__column--rank-change-none::before { content: none; }

.ranking-page-table-main {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
  min-width: 0 !important;
  height: 20px;
  margin: 0;
  padding: 0;
  position: static;
}
.ranking-page-table-main__cover,
.ranking-page-table .ranking-user__avatar,
.ranking-page-table .ranking-page-table-main__cover,
.ranking-page-table .ranking-user__avatar.ranking-page-table-main__cover {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.ranking-page-table--top-plays .ranking-user__avatar,
.ranking-page-table--top-plays .ranking-page-table-main__cover {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 50%;
  object-fit: cover;
}
.ranking-page-table--top-plays .ranking-page-table__column--main {
  width: auto !important;
  min-width: 160px !important;
  max-width: 280px !important;
}
.ranking-page-table-main .ranking-user__flag,
.ranking-page-table-main .flag-country,
.ranking-page-table .flag-country {
  width: auto;
  height: 20px !important;
  max-height: 20px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.ranking-page-table-main__link,
.ranking-page-table-main .ranking-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  height: auto;
}
.ranking-page-table .ranking-user__name {
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #fff;
}

/* ===== pagination (official) ===== */
.pagination-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 10px 0;
  font-size: 12px;
  line-height: 15px;
  color: hsl(var(--hsl-l2));
}
@media (min-width: 900px) {
  .pagination-v2 { padding: 10px; }
}
.pagination-v2__pages {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.pagination-v2__link {
  display: block;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 10000px;
  color: hsl(var(--hsl-l1));
  text-decoration: none;
  font-weight: 400;
  background: transparent;
  pointer-events: auto;
}
.pagination-v2__link:hover { color: #fff; text-decoration: none; }
.pagination-v2__link--active,
.pagination-v2.simplepag .pagination-v2__link--active {
  font-weight: 600;
  color: hsl(var(--hsl-b5)) !important;
  background-color: hsl(var(--hsl-h1)) !important;
}
.pagination-v2__link--quick {
  text-transform: uppercase;
  padding-left: 15px;
  padding-right: 15px;
  background-color: hsl(var(--hsl-b4));
  white-space: nowrap;
}
.pagination-v2__link--disabled {
  opacity: 0.5;
  pointer-events: auto;
  cursor: default;
}
span.pagination-v2__link--disabled { pointer-events: auto; }
.pagination-v2__ellipsis {
  padding: 4px 6px;
  color: hsl(var(--hsl-l2));
}

/* ===== play-detail (official play-detail.less, px) ===== */
.play-detail {
  --border-radius: 10px;
  --bg: hsl(var(--hsl-b3));
  --bg-main: hsl(var(--hsl-b2));
  border-radius: var(--border-radius);
  background-color: var(--bg);
  line-height: normal;
  color: #fff;
  font-size: 12px;
  min-height: 60px;
  position: relative;
  margin: 2px 0;
  padding: 0;
  display: block;
  text-decoration: none;
  gap: 0;
  align-items: stretch;
}
.play-detail:hover { color: #fff; text-decoration: none; }
@media (min-width: 900px) {
  .play-detail {
    display: flex;
    min-height: auto;
    background-color: transparent;
  }
  .play-detail:hover,
  .play-detail--active {
    --bg: hsl(var(--hsl-b2));
    --bg-main: hsl(var(--hsl-b1));
  }
}

.play-detail__group {
  padding: 10px 20px;
  position: relative;
  pointer-events: none;
}
@media (min-width: 900px) {
  .play-detail__group--bottom {
    display: flex;
    padding: 0;
  }
}
.play-detail__group--top {
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  min-width: 0;
}
@media (min-width: 900px) {
  .play-detail__group--top {
    flex: 1;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 5px 0 5px 20px;
  }
}

.play-detail__icon {
  width: 60px;
  min-height: 30px;
  flex: none;
  position: relative;
}
.play-detail__icon--main {
  margin-right: 10px;
  display: none;
}
@media (min-width: 900px) {
  .play-detail__icon--main {
    display: block;
    height: 20px;
    width: 40px;
    min-height: 20px;
  }
}
.play-detail__icon .score-rank,
.play-detail__icon img.score-rank,
.score-rank {
  width: 40px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.profile-grade { font-size: 0; line-height: 0; }

.play-detail__detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.play-detail__title {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  display: block;
  align-self: flex-start;
  max-width: 100%;
  pointer-events: auto;
  text-decoration: none;
}
.play-detail__title:hover { color: #fff; text-decoration: underline; }
.play-detail__artist {
  display: block;
  color: hsl(var(--hsl-c2));
  pointer-events: auto;
}
@media (min-width: 900px) {
  .play-detail__artist { display: inline; }
}
.play-detail__beatmap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e0b525;
}
.play-detail__beatmap-and-time {
  margin-top: 2px;
  white-space: nowrap;
  display: flex;
  gap: 15px;
}
.play-detail__time {
  color: hsl(var(--hsl-f1));
  flex: none;
  pointer-events: auto;
  text-decoration: none;
}
.play-detail__time:hover { color: #fff; }

.play-detail__mods {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  pointer-events: auto;
}
@media (min-width: 900px) {
  .play-detail .play-detail__mods {
    max-width: 400px;
    align-items: center;
    padding: 5px 10px;
    margin-top: 0;
    order: -1;
    background-color: var(--bg-main);
  }
}

.play-detail__mods-pp {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
@media (min-width: 900px) {
  .play-detail__mods-pp { display: contents; }
}

.play-detail__score-detail {
  display: flex;
  align-items: center;
  height: 30px;
  pointer-events: auto;
}
@media (min-width: 900px) {
  .play-detail__score-detail {
    height: auto;
    padding: 5px 10px;
    background-color: var(--bg-main);
  }
}
.play-detail__score-detail-top-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.play-detail__accuracy {
  color: #fc2;
  display: inline-block;
  min-width: 60px;
  font-size: 14px;
  font-weight: 600;
}
.play-detail__accuracy-and-weighted-pp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.play-detail__weighted-pp {
  display: inline-block;
  min-width: 60px;
}
.play-detail__weight { font-size: 12px; color: hsl(var(--hsl-c2)); }

.play-detail__pp {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: hsl(var(--hsl-h1));
  pointer-events: auto;
  margin-left: 0;
  min-width: 0;
}
@media (min-width: 900px) {
  .play-detail__pp {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px 20px 5px 30px;
    min-width: 110px;
    background: var(--bg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
  }
  .play-detail__pp::before {
    content: "";
    width: 10px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--bg-main);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  }
}
.play-detail__pp-unit {
  font-size: 12px;
  color: hsl(var(--hsl-l3));
  font-weight: 400;
}

.play-detail__user {
  pointer-events: auto;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.play-detail__user:hover { color: #fff; text-decoration: underline; }

.play-detail__bg-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}
.play-detail__group { z-index: 1; }

/* official osu-web mod.less — 28×20 mask badges, never circular pills */
.play-detail .mod,
.ranking-page-table--top-plays .mod,
.beatmap-score-top .mod {
  font-size: var(--mod-height, 20px);
  --icon-width: 1.42em;
  height: 1em;
  display: flex;
  position: relative;
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0 1px;
  border-radius: 0;
  font-weight: 400;
  letter-spacing: 0;
  color: transparent;
  overflow: visible;
  line-height: 1;
  background: none;
}
.play-detail .mod--type-DifficultyIncrease,.beatmap-score-top .mod--type-DifficultyIncrease,
.ranking-page-table--top-plays .mod--type-DifficultyIncrease {
  --type-bg-colour: hsl(var(--hsl-red-1));
  --type-fg-colour: color-mix(in srgb, black 90%, hsl(var(--hsl-red-1)));
}
.play-detail .mod--type-DifficultyReduction,.beatmap-score-top .mod--type-DifficultyReduction,
.ranking-page-table--top-plays .mod--type-DifficultyReduction {
  --type-bg-colour: hsl(var(--hsl-lime-1));
  --type-fg-colour: color-mix(in srgb, black 90%, hsl(var(--hsl-lime-1)));
}
.play-detail .mod--type-Automation,.beatmap-score-top .mod--type-Automation,
.ranking-page-table--top-plays .mod--type-Automation {
  --type-bg-colour: hsl(var(--hsl-blue-1));
  --type-fg-colour: color-mix(in srgb, black 90%, hsl(var(--hsl-blue-1)));
}
.play-detail .mod--type-Conversion,.beatmap-score-top .mod--type-Conversion,
.ranking-page-table--top-plays .mod--type-Conversion {
  --type-bg-colour: hsl(var(--hsl-purple-1));
  --type-fg-colour: color-mix(in srgb, black 90%, hsl(var(--hsl-purple-1)));
}
.play-detail .mod--type-Fun,.beatmap-score-top .mod--type-Fun,
.ranking-page-table--top-plays .mod--type-Fun {
  --type-bg-colour: hsl(var(--hsl-pink-1));
  --type-fg-colour: color-mix(in srgb, black 90%, hsl(var(--hsl-pink-1)));
}
.play-detail .mod__icon,.beatmap-score-top .mod__icon,
.ranking-page-table--top-plays .mod__icon {
  position: relative;
  width: var(--icon-width);
  height: 1em;
  display: block;
  border-radius: 0;
  background: none;
  font-size: inherit;
  overflow: visible;
}
.play-detail .mod__icon::before,.beatmap-score-top .mod__icon::before,
.ranking-page-table--top-plays .mod__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--type-bg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/blanks/mod-icon.svg");
  mask-image: url("/static/osu-images/mods/blanks/mod-icon.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon::after,.beatmap-score-top .mod__icon::after,
.ranking-page-table--top-plays .mod__icon::after {
  content: attr(data-acronym);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--type-fg-colour);
  font-weight: 900;
  font-size: 0.4em;
  letter-spacing: 0;
}
.play-detail .mod::after,.beatmap-score-top .mod::after,
.ranking-page-table--top-plays .mod::after { content: none; }
.play-detail .mod__icon--DT::after,.beatmap-score-top .mod__icon--DT::after,
.ranking-page-table--top-plays .mod__icon--DT::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-double-time.svg");
  mask-image: url("/static/osu-images/mods/mod-double-time.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--HR::after,.beatmap-score-top .mod__icon--HR::after,
.ranking-page-table--top-plays .mod__icon--HR::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-hard-rock.svg");
  mask-image: url("/static/osu-images/mods/mod-hard-rock.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--HD::after,.beatmap-score-top .mod__icon--HD::after,
.ranking-page-table--top-plays .mod__icon--HD::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-hidden.svg");
  mask-image: url("/static/osu-images/mods/mod-hidden.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--NC::after,.beatmap-score-top .mod__icon--NC::after,
.ranking-page-table--top-plays .mod__icon--NC::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-nightcore.svg");
  mask-image: url("/static/osu-images/mods/mod-nightcore.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--EZ::after,.beatmap-score-top .mod__icon--EZ::after,
.ranking-page-table--top-plays .mod__icon--EZ::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-easy.svg");
  mask-image: url("/static/osu-images/mods/mod-easy.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--NF::after,.beatmap-score-top .mod__icon--NF::after,
.ranking-page-table--top-plays .mod__icon--NF::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-no-fail.svg");
  mask-image: url("/static/osu-images/mods/mod-no-fail.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--HT::after,.beatmap-score-top .mod__icon--HT::after,
.ranking-page-table--top-plays .mod__icon--HT::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-half-time.svg");
  mask-image: url("/static/osu-images/mods/mod-half-time.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--FL::after,.beatmap-score-top .mod__icon--FL::after,
.ranking-page-table--top-plays .mod__icon--FL::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-flashlight.svg");
  mask-image: url("/static/osu-images/mods/mod-flashlight.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--SO::after,.beatmap-score-top .mod__icon--SO::after,
.ranking-page-table--top-plays .mod__icon--SO::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-spun-out.svg");
  mask-image: url("/static/osu-images/mods/mod-spun-out.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--SD::after,.beatmap-score-top .mod__icon--SD::after,
.ranking-page-table--top-plays .mod__icon--SD::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-sudden-death.svg");
  mask-image: url("/static/osu-images/mods/mod-sudden-death.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--PF::after,.beatmap-score-top .mod__icon--PF::after,
.ranking-page-table--top-plays .mod__icon--PF::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-perfect.svg");
  mask-image: url("/static/osu-images/mods/mod-perfect.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--RX::after,.beatmap-score-top .mod__icon--RX::after,
.ranking-page-table--top-plays .mod__icon--RX::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-relax.svg");
  mask-image: url("/static/osu-images/mods/mod-relax.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.play-detail .mod__icon--AP::after,.beatmap-score-top .mod__icon--AP::after,
.ranking-page-table--top-plays .mod__icon--AP::after {
  content: "";
  background-color: var(--type-fg-colour);
  -webkit-mask-image: url("/static/osu-images/mods/mod-autopilot.svg");
  mask-image: url("/static/osu-images/mods/mod-autopilot.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.play-detail-list { display: flex; flex-direction: column; }
.play-detail-list__more { margin-top: 12px; text-align: center; }
html[data-osu-section="user"] .load-more-button,
html[data-osu-section="user"] #load-more-achievements {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  padding: 8px 15px !important;
  font-family: var(--font, Torus, Inter, "Helvetica Neue", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: 10000px !important;
  background: hsl(var(--hsl-b3)) !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
}
html[data-osu-section="user"] .load-more-button:hover,
html[data-osu-section="user"] #load-more-achievements:hover:not(.disabled) {
  background: hsl(var(--hsl-b2)) !important;
  color: #fff !important;
  text-decoration: none !important;
}
html[data-osu-section="user"] .load-more-button.disabled,
html[data-osu-section="user"] #load-more-achievements.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ===== profile page ===== */
.osu-page--generic-compact {
  width: 100%;
  max-width: 1000px !important;
  margin-left: auto;
  margin-right: auto;
  padding: 0 !important;
  border-radius: 0 !important;
  background-color: hsl(var(--hsl-b5));
  box-sizing: border-box;
}

.profile-info {
  --avatar-radius: 20px;
  --avatar-size: 65px;
  --content-height: 65px;
  --vertical-padding: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: hsl(var(--hsl-b3));
  margin: 0;
}
.profile-info--cover {
  --avatar-radius: 20px;
  --avatar-size: 65px;
}
@media (min-width: 900px) {
  .profile-info--cover {
    --avatar-radius: 40px;
    --avatar-size: 120px;
  }
}
.profile-info__bg {
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (min-width: 900px) {
  .profile-info__bg { height: 250px; }
}
.profile-info__details {
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px;
  margin: 0 !important;
  gap: 0;
  height: auto;
}
@media (min-width: 900px) {
  .profile-info__details {
    padding: 0 50px;
    height: 85px;
  }
}
.profile-info__avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--avatar-radius);
  overflow: hidden;
  flex: none;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  margin: 0;
}
@media (min-width: 900px) {
  .profile-info__avatar {
    align-self: flex-end;
    margin-bottom: 10px;
  }
}
.profile-info__info {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
@media (min-width: 900px) {
  .profile-info__info { margin-left: 20px; }
}
.profile-info__name {
  font-size: 18px;
  font-weight: 400;
  margin: -5px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: normal;
}
@media (min-width: 900px) {
  .profile-info__name { font-size: 24px; }
}
.profile-info__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 15px;
  height: auto;
  color: #fff;
}
@media (min-width: 900px) {
  .profile-info__flags {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 5px;
    font-size: 20px;
    height: 20px;
  }
}
.profile-info__flags .flag-country {
  width: auto;
  height: 1em;
  max-height: 20px;
}
.profile-info__title {
  font-size: 12px;
  color: hsl(var(--hsl-l1));
  font-weight: 400;
  line-height: normal;
}
@media (min-width: 900px) {
  .profile-info__title { font-size: 16px; }
}
.profile-info__status { display: none !important; }

.profile-detail {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  width: 100%;
  max-width: 1000px;
  height: auto;
  padding: 10px;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: visible;
}
@media (min-width: 900px) {
  .profile-detail {
    padding: 10px 50px;
    height: auto;
    display: grid;
    overflow: visible;
  }
}
@media (max-width: 899px) {
  .profile-detail {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 10px;
  }
}
.profile-detail-stats {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 900px) {
  .profile-detail-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2px 272px;
    grid-template-rows: auto 90px auto;
    column-gap: 15px;
    row-gap: 4px;
    height: auto;
    align-items: start;
  }
  .profile-detail-stats__chart-numbers--top { grid-column: 1; grid-row: 1; }
  .profile-detail-stats__chart { grid-column: 1; grid-row: 2; }
  .profile-detail-stats__values { grid-column: 1; grid-row: 3; }
  .profile-detail-stats__grades { grid-column: 1; grid-row: 3; justify-self: end; align-self: center; }
  .profile-detail-stats__separator {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 2px;
    height: 100%;
    background-color: hsl(var(--hsl-b6));
    align-self: stretch;
  }
}

.line-chart.line-chart--profile-page,
.profile-detail-stats__chart,
.profile-detail .profile-rank-chart {
  width: 100%;
  height: 90px;
  background: transparent;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  min-height: 0;
}
.line-chart.line-chart--profile-page svg,
.line-chart__svg {
  width: 100%;
  height: 90px;
  display: block;
  overflow: visible;
}
.line-chart__wrapper { pointer-events: none; }
.line-chart__line {
  fill: none;
  stroke: #fc2;
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-chart.line-chart--profile-page .line-chart__line {
  stroke: rgb(255, 204, 34);
  stroke-width: 2px;
}
.line-chart__area { display: none; }
.line-chart__hover-area {
  position: absolute;
  inset: 15px 0;
  z-index: 2;
  pointer-events: auto;
  cursor: crosshair;
}
.line-chart__hover {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: block;
}
.line-chart__hover[hidden] { display: none; }
.line-chart__hover-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: hsl(var(--hsl-b5));
  border: 4px solid #fc2;
  position: absolute;
  top: -10px;
  left: -10px;
  margin: 0;
}
.line-chart__hover-line {
  background-color: #fc2;
  width: 2px;
  height: 100%;
  position: absolute;
  top: 0;
  left: -1px;
}
.line-chart__hover-info-box {
  position: absolute;
  left: 0;
  top: 0;
  margin: 5px;
  background-color: hsl(var(--hsl-b6));
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 3;
}
.line-chart__hover-info-box[data-float="right"] { left: auto; right: 0; }
.line-chart__hover-info-box-text { white-space: nowrap; }
.line-chart__hover-info-box-text--x { color: hsl(var(--hsl-l1)); order: 1; }
.line-chart__hover-info-box-text--y { color: #fff; }
.line-chart__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--hsl-f1));
  font-size: 12px;
  pointer-events: none;
}
.line-chart__empty[hidden],
.profile-rank-chart__empty[hidden] {
  display: none !important;
}
.profile-detail [hidden],
.profile-detail-stats [hidden],
.profile-detail-bar [hidden],
.profile-stats[hidden],
.profile-detail-stats__chart-numbers[hidden],
.profile-detail-stats__values[hidden] {
  display: none !important;
}
.profile-rank-chart__canvas { display: none !important; }

.profile-detail .profile-stats,
.profile-detail dl.profile-stats {
  width: 272px;
  max-width: 100%;
  height: 184px;
  margin: 0;
  padding: 18px 12px;
  border-radius: 6px;
  background: hsl(var(--hsl-b4));
  line-height: 15px;
  font-size: 12px;
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 900px) {
  .profile-detail .profile-stats,
  .profile-detail dl.profile-stats {
    float: none;
    flex: none;
    grid-column: 3;
    grid-row: 1 / -1;
    width: 272px;
    height: 184px;
  }
}
@media (max-width: 899px) {
  .profile-detail {
    min-height: 0;
  }
  .profile-detail-stats__separator { display: none; }
  .profile-detail .profile-stats,
  .profile-detail dl.profile-stats {
    width: 100%;
    max-width: 355px;
    height: auto;
    float: none;
  }
}

.profile-detail-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px !important;
  margin: 0 !important;
  width: 100%;
  height: auto;
  min-height: 0;
  background: hsl(var(--hsl-b3));
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .profile-detail-bar {
    padding: 10px 50px !important;
    height: 60px;
  }
}

.profile-links {
  padding: 10px !important;
  background: hsl(var(--hsl-b4));
  font-size: 12px;
  color: hsl(var(--hsl-c2));
}
@media (min-width: 900px) {
  .profile-links { padding: 10px 50px !important; }
}

.page-mode--page-extra-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 10px !important;
  gap: 20px;
  background: hsl(var(--hsl-b5));
  position: sticky;
  top: var(--nav2-height);
  z-index: 99;
  height: auto !important;
  min-height: 40px;
  align-items: stretch;
  overflow-x: auto;
}
@media (min-width: 900px) {
  .page-mode--page-extra-tabs { padding: 0 50px !important; }
}
.page-mode--page-extra-tabs::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: hsl(var(--hsl-h1));
}
.page-mode--page-extra-tabs .page-mode-link,
.page-mode-link--profile-page {
  height: auto !important;
  padding: 12px 0 !important;
  line-height: 18px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: hsl(var(--hsl-l1)) !important;
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  text-transform: none;
}
.page-mode--page-extra-tabs .page-mode-link--is-active,
.page-mode-link--profile-page.page-mode-link--is-active {
  color: #fff !important;
  font-weight: 600 !important;
}
.page-mode-link__stripe {
  display: block !important;
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 6px !important;
  background: hsl(var(--hsl-h1)) !important;
  border-radius: 10000px;
  transform: scaleY(0);
}
.page-mode-link--is-active .page-mode-link__stripe,
.page-mode-link:hover .page-mode-link__stripe {
  transform: scaleY(1);
}

.page-mode--page-extra-tabs + .page-extra {
  margin-top: 10px !important;
}

.osu-page--generic-compact .page-extra,
.page-extra {
  background: hsl(var(--hsl-b4));
  padding: 20px 10px !important;
  margin: 0 10px 10px !important;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
@media (min-width: 900px) {
  .osu-page--generic-compact .page-extra,
  .page-extra {
    padding: 20px 40px !important;
    margin: 0 10px 10px !important;
  }
  #page-extra-about.page-extra {
    padding: 20px 0 0 40px !important;
  }
}
.page-extra + .page-extra { margin-top: 10px !important; }
.osu-page--generic-compact > .page-extra + .page-extra {
  margin-top: 10px !important;
}

.title--page-extra,
.page-extra__title,
.osu-page--generic-compact .page-extra__title {
  display: inline-block;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 18px;
  padding: 0 0 5px !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-bottom: 2px solid hsl(var(--hsl-h1)) !important;
  text-transform: none !important;
  color: #fff !important;
  height: auto;
}

.page-extra__empty {
  color: hsl(var(--hsl-f1));
  padding: 20px 0;
  text-align: center;
}

.title--page-extra-small {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #fff;
}

.profile-page-extra-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.profile-page-extra-section-title__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 10000px;
  background: hsl(var(--hsl-b6));
  color: hsl(var(--hsl-f1));
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
}

@media (max-width: 899px) {
  .profile-detail-stats__values,
  .profile-detail-stats__grades {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: auto !important;
    min-height: 0 !important;
  }
  .profile-detail-stats__values .value-display {
    flex: 1 1 0;
    min-width: 0;
    height: auto !important;
  }
  .profile-detail-stats__chart { margin: 0 !important; }
}

/* ===== profile extras, top-plays table, playlists — never touch leaderboard columns ===== */
html[data-osu-section="user"] .page-mode--page-extra-tabs .page-mode-link__stripe,
html[data-osu-section="user"] .page-mode-link--profile-page .page-mode-link__stripe {
  display: block !important;
  position: absolute !important;
  left: 0; right: 0;
  bottom: -2px;
  height: 6px !important;
  background: hsl(var(--hsl-h1)) !important;
  border-radius: 10000px;
  transform: scaleY(0);
  pointer-events: none;
}
html[data-osu-section="user"] .page-mode-link--is-active .page-mode-link__stripe,
html[data-osu-section="user"] .page-mode-link:hover .page-mode-link__stripe {
  transform: scaleY(1) !important;
}

html[data-osu-section="user"] .line-chart__empty[hidden] {
  display: none !important;
}

.ranking-page__meta {
  font-size: 12px;
  line-height: 15px;
  color: hsl(var(--hsl-c2));
  padding: 0 0 10px;
  display: block !important;
}

.ranking-page-table--top-plays .ranking-page-table__column {
  height: 40px;
  max-height: none;
  min-height: 40px;
}
.ranking-page-table--top-plays thead th:first-child,
.ranking-page-table--top-plays tbody td:first-child {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 56px !important;
}
.ranking-page-table--top-plays .ranking-page-table__column--main:nth-child(3) {
  width: auto !important;
  min-width: 220px !important;
  max-width: none !important;
  text-align: start;
}
.ranking-page-table--top-plays .play-detail__mods {
  margin: 0;
  padding: 0;
  background: transparent;
  flex-wrap: nowrap;
  justify-content: center;
}
.ranking-page-table--top-plays .ranking-top-plays__map {
  color: hsl(var(--hsl-h1));
  font-weight: 600;
}
.ranking-page-table--top-plays .ranking-top-plays__map:hover { color: #fff; }

.ranking-page-table--playlists:not(.ranking-page-table--top-plays) .ranking-page-table__column--main {
  width: auto !important;
  min-width: 200px !important;
  max-width: none !important;
}

.season-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 10px;
}
.season-playlist-list--rooms { width: 100%; }
a.season-playlist-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: 80px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  background: hsl(var(--hsl-b3));
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}
a.season-playlist-card:hover { color: #fff; text-decoration: none; background: hsl(var(--hsl-b2)); }
.season-playlist-card__cover {
  width: 140px;
  min-height: 80px;
  flex: none;
  background: hsl(var(--hsl-h1), 0.35) center / cover no-repeat;
}
.season-playlist-card__body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}
.season-playlist-card__title { font-size: 16px; font-weight: 600; }
.season-playlist-card__hosted { font-size: 12px; color: hsl(var(--hsl-c2)); }
.season-playlist-card__meta {
  font-size: 12px;
  color: hsl(var(--hsl-c2));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.season-playlist-card__stars { color: #fc2; }

.ranking-score-menu-wrap {
  position: relative;
  display: inline-flex;
}
.ranking-score-menu-wrap .simple-menu--score {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 160px;
  padding: 5px 0;
  background: hsl(var(--hsl-b5));
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ranking-score-menu-wrap.is-open .simple-menu--score { display: block; }
.simple-menu--score .simple-menu__item {
  display: block;
  padding: 6px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.simple-menu--score .simple-menu__item:hover { background: hsl(var(--hsl-b3)); color: #fff; }

.profile-links__value {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.profile-links__value:hover { color: #fff; text-decoration: underline; }

/* ===== profile-links: egy sor, no wrap ===== */
html[data-osu-section="user"] .profile-links__row--single {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  overflow: hidden;
}

html[data-osu-section="user"] .profile-detail-stats__chart-numbers--top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 15px;
}
html[data-osu-section="user"] .daily-challenge:not([data-has-rank]) {
  display: none !important;
}

html[data-osu-section="user"] .header-v4--users ul.game-mode.game-mode--mobile {
  display: none !important;
}
@media (max-width: 899px) {
  html[data-osu-section="user"] .header-v4--users ul.game-mode.game-mode--mobile {
    display: flex !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.ranking-beatmapsets a.beatmapset-panel.ranking-beatmap,
.ranking-beatmapsets a.beatmapset-panel {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  max-width: 445px !important;
  height: 100px !important;
  min-height: 100px !important;
  border-radius: 10px !important;
  overflow: hidden;
  background: hsl(var(--hsl-b3));
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}
.ranking-beatmapsets .beatmapset-panel__cover {
  width: 140px !important;
  height: 100px !important;
  flex: none !important;
  background-size: cover !important;
  background-position: center !important;
}
.ranking-beatmapsets .beatmapset-panel__info {
  padding: 10px 15px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* beat leftover osu-web.css !important profile-detail locks — user section only */
html[data-osu-section="user"] .profile-detail {
  display: grid !important;
  grid-template-columns: 1fr !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 1000px !important;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  html[data-osu-section="user"] .profile-detail {
    padding: 10px 50px !important;
  }
  html[data-osu-section="user"] .profile-detail-stats {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2px 272px !important;
    grid-template-rows: auto 90px auto !important;
    column-gap: 15px !important;
    row-gap: 4px !important;
    height: auto !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }
  html[data-osu-section="user"] .profile-detail-stats__chart-numbers--top { grid-column: 1 !important; grid-row: 1 !important; }
  html[data-osu-section="user"] .profile-detail-stats__chart,
  html[data-osu-section="user"] .line-chart.line-chart--profile-page {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: 90px !important;
    margin: 0 !important;
  }
  html[data-osu-section="user"] .profile-detail-stats__values { grid-column: 1 !important; grid-row: 3 !important; }
  html[data-osu-section="user"] .profile-detail-stats__grades { grid-column: 1 !important; grid-row: 3 !important; justify-self: end !important; align-self: center !important; }
  html[data-osu-section="user"] .profile-detail-stats__separator {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
    width: 2px !important;
    height: 100% !important;
  }
  html[data-osu-section="user"] .profile-detail .profile-stats,
  html[data-osu-section="user"] .profile-detail dl.profile-stats {
    float: none !important;
    grid-column: 3 !important;
    grid-row: 1 / -1 !important;
    width: 272px !important;
    max-width: 272px !important;
    height: 184px !important;
  }
}
@media (max-width: 899px) {
  html[data-osu-section="user"] .profile-detail {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    padding: 10px !important;
  }
  html[data-osu-section="user"] .profile-detail-stats {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }
  html[data-osu-section="user"] .profile-detail-stats__chart,
  html[data-osu-section="user"] .line-chart.line-chart--profile-page {
    width: 100% !important;
    max-width: 100% !important;
  }
  html[data-osu-section="user"] .profile-detail .profile-stats,
  html[data-osu-section="user"] .profile-detail dl.profile-stats {
    width: 100% !important;
    max-width: 355px !important;
    height: auto !important;
    float: none !important;
  }
}

/* ===== Grade ikonok: szám az ikon ALATT legyen (mint az official osu!-n) ===== */
html[data-osu-section="user"] .profile-detail-stats__grades .profile-rank-count {
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

/* ===== "me!" / "recent" stb tab sor: ne legyen görgethető ===== */
/* overflow-x: clip nem töri a position:sticky-t, hidden igen */
html[data-osu-section="user"] ul.page-mode.page-mode--page-extra-tabs {
  overflow-x: clip !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
}
html[data-osu-section="user"] ul.page-mode.page-mode--page-extra-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
