/* Original pattern background preserved */
.hobby-sort-page {
  min-height: 100vh;
  background: #000000;
}
.hobby-sort-bg {
  position: fixed;
  z-index: 0;
  top: 98px;
  left: 50%;
  width: 1440px;
  height: 603px;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  max-width: none;
  pointer-events: none;
}
@media (min-width: 600px) and (max-width: 1024px) {
  .hobby-sort-bg {
    top: var(--shumi-bg-top-md, 8px);
    width: var(--shumi-bg-width-md, 200%);
    height: auto;
  }
}
@media (max-width: 599px) {
  .hobby-sort-bg {
    top: var(--shumi-bg-top-sm, 56px);
    width: var(--shumi-bg-width-sm, 200%);
    height: auto;
  }
}

.hobby-sort-page {
  min-height: 100vh;
}

.hobby-sort-main {
  position: relative;
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 24px 0 80px;
  overflow: visible;
}

.hobby-sort-back {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 20px;
}

.hobby-sort-header {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  text-align: left;
}

.hobby-sort-subtitle {
  margin: 0;
  color: var(--dust);
  font-size: 16px;
  line-height: 1.4;
}

.hobby-sort-title {
  margin: 10px 0 0;
  width: max-content;
  max-width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.3;
}

.hobby-sort-title__metric {
  color: var(--accent);
}

.hobby-sort-order-toggle {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
}

.hobby-sort-order-toggle__btn {
  min-width: 88px;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-maruko);
  cursor: pointer;
}

.hobby-sort-order-toggle__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.hobby-sort-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hobby-sort-other {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hobby-sort-other__title {
  margin: 0 0 18px;
  color: var(--cream);
  font-family: var(--font-maruko);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
}

.sort-other-accordions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 10px 12px;
}

.sort-other-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-maruko);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.sort-other-link:hover {
  border-color: var(--cream);
}

.sort-other-link.is-active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hobby-ssr {
  margin-bottom: 20px;
  color: var(--dust);
}

.hobby-ssr[hidden] {
  display: none;
}

.hobby-ssr__lead {
  margin: 0 0 12px;
}

.hobby-ssr__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hobby-ssr-card {
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--ink);
}

.hobby-ssr-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
}

.hobby-ssr-card__rank {
  color: var(--accent);
  margin-right: 8px;
}

.hobby-ssr-card__metric,
.hobby-ssr-card__explanation,
.hobby-ssr-card__weights {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 599px) {
  .hobby-sort-main {
    width: min(100% - 32px, 540px);
  }

  .sort-other-accordions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sort-other-link {
    min-height: 44px;
    padding: 6px 4px;
    font-size: 13px;
  }
}
