/* ============================================================
   BluBellFun — page level layouts
   ============================================================ */

/* ---------------- Page heads ---------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 4px 0 clamp(22px, 3vw, 30px);
}

.page-head-copy {
  min-width: 0;
}

.page-head h1 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-head p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.page-head-art {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--gradient-soft);
  color: var(--primary);
  transform: rotate(4deg);
}

.page-head-art .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.25;
}

/* ---------------- Home: hero ---------------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 18px;
  align-items: stretch;
}

.hero {
  position: relative;
  min-height: 468px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #090910;
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: relative;
  display: none;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 34px;
  align-items: end;
  min-height: 466px;
  padding: clamp(24px, 3.1vw, 42px);
  isolation: isolate;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.7s var(--ease);
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-bg {
  position: absolute;
  inset: -50px;
  z-index: -3;
  background-image: var(--art);
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.4) brightness(0.95);
  opacity: 0.9;
  transform: scale(1.12);
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.93) 0%, rgba(5, 5, 9, 0.7) 38%, rgba(5, 5, 9, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 5, 9, 0.72), transparent 54%),
    linear-gradient(180deg, rgba(5, 5, 9, 0.44), transparent 32%);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  mask-image: linear-gradient(115deg, transparent 12%, #000 90%);
  -webkit-mask-image: linear-gradient(115deg, transparent 12%, #000 90%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 560px;
  padding-bottom: 4px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-kicker .pulse {
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(242, 167, 187, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 167, 187, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(242, 167, 187, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 167, 187, 0);
  }
}

.hero-kicker .sep {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-kicker a {
  color: rgba(255, 255, 255, 0.82);
}

.hero-kicker a:hover {
  color: #fff;
}

.hero-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 45px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.35);
}

.hero-note {
  max-width: 44ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.hero-actions .btn-primary {
  box-shadow: 0 14px 34px -14px rgba(var(--primary-rgb), 0.7);
}

.hero-chapters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  min-width: 0;
}

.hero-chapters-label {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.hero-chapters-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-chapters-row::-webkit-scrollbar {
  display: none;
}

.hero-chapters .chapter-pill {
  min-width: 31px;
  height: 31px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-chapters .chapter-pill:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-cover-wrap {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 218px;
  transform: translateY(2px);
}

.hero-cover {
  border-radius: 16px;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-cover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-cover:hover > svg {
  transform: scale(1.03);
}

.hero-cover-wrap .rating-badge {
  top: 12px;
  left: 12px;
}

.hero-dots {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  transition: width 0.25s var(--ease), background 0.25s;
}

.hero-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), background 0.25s;
}

.hero-dot.is-active {
  width: 26px;
  background: transparent;
}

.hero-dot.is-active::after {
  width: 19px;
  background: #fff;
}

.hero-index {
  margin-left: 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 8, 14, 0.32);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(8, 8, 14, 0.68);
  color: #fff;
}

.hero-arrow.prev {
  left: 14px;
}

.hero-arrow.next {
  right: 14px;
}

.hero-arrow .icon {
  width: 17px;
  height: 17px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.random-card {
  position: relative;
  min-height: 214px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(rgba(var(--primary-rgb), 0.22) 1px, transparent 1.4px) 0 0 / 13px 13px,
    linear-gradient(145deg, var(--surface-2), var(--surface));
}

.random-card::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.16);
  filter: blur(38px);
}

.random-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.random-card .eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.13em;
}

.random-card h3 {
  position: relative;
  z-index: 2;
  max-width: 185px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.random-card .btn {
  position: relative;
  z-index: 3;
  max-width: 154px;
  margin-top: 16px;
}

.random-fan {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 118px;
  height: 150px;
  pointer-events: none;
}

.random-fan .fan-cover {
  position: absolute;
  bottom: 0;
  width: 62px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 26px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease);
}

.random-fan .fan-cover svg {
  width: 100%;
  height: 100%;
}

.random-fan .fan-cover:nth-child(1) {
  left: 0;
  transform: rotate(-10deg);
  opacity: 0.8;
}

.random-fan .fan-cover:nth-child(2) {
  left: 27px;
  transform: rotate(8deg);
  opacity: 0.9;
}

.random-fan .fan-cover:nth-child(3) {
  left: 52px;
  bottom: 10px;
  transform: rotate(-3deg);
}

.random-card:hover .fan-cover:nth-child(1) {
  transform: rotate(-15deg) translateX(-4px);
}

.random-card:hover .fan-cover:nth-child(3) {
  transform: rotate(4deg) translateX(4px);
}

.random-dice {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--primary);
}

.random-dice .icon {
  width: 15px;
  height: 15px;
}

.continue-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 228px;
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.aside-head h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-head span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.mini-list {
  display: flex;
  flex-direction: column;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row:hover .mini-title {
  color: var(--primary);
}

.mini-cover {
  width: 33px;
  aspect-ratio: 2 / 3;
  flex: none;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.9);
}

.mini-cover svg {
  width: 100%;
  height: 100%;
}

.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-title {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.16s;
}

.mini-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.mini-sub .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.mini-progress {
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.aside-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.aside-foot:hover {
  color: var(--primary);
}

.aside-foot .icon {
  width: 14px;
  height: 14px;
}

/* ---------------- Home: genres ---------------- */

.genre-band {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.genre-band-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.genre-band-label {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.genre-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.genre-chips::-webkit-scrollbar {
  display: none;
}

.genre-chips .chip {
  height: 31px;
  flex: none;
  background: var(--surface-2);
}

.genre-chips .chip:hover {
  background: var(--surface-3);
}

.genre-band .section-link {
  flex: none;
  padding: 7px 9px;
  font-size: 11.5px;
}

/* ---------------- Home: rows ---------------- */

.media-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.media-row::-webkit-scrollbar {
  display: none;
}

.media-row > * {
  scroll-snap-align: start;
}

.trend-card .cover {
  border-radius: 16px;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 26px;
}

.update-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.16s;
}

.update-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.update-row:hover {
  background: var(--surface);
}

.update-cover {
  width: 46px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.9);
}

.update-cover svg {
  width: 100%;
  height: 100%;
}

.update-main {
  min-width: 0;
}

.update-main b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-main span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-main .new-mark {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.update-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: right;
  white-space: nowrap;
}

.update-meta .genres {
  color: var(--muted-2);
  font-size: 9.5px;
}

/* ---------------- Home: collections ---------------- */

.collections-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

.collection-feature {
  position: relative;
  display: flex;
  min-height: 366px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--c1) 60%, transparent), transparent 65%),
    var(--surface);
  isolation: isolate;
}

.collection-feature-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 80% at 75% 20%, var(--c2) -20%, transparent 60%),
    linear-gradient(150deg, var(--c1), #08080e 72%);
  opacity: 0.85;
}

.collection-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(5, 5, 10, 0.94) 2%, rgba(5, 5, 10, 0.42) 62%, transparent 100%),
    linear-gradient(90deg, rgba(5, 5, 10, 0.82) 0%, rgba(5, 5, 10, 0.38) 46%, transparent 72%);
}

.collection-feature-art {
  position: absolute;
  right: 22px;
  bottom: 26px;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 40%;
  height: 230px;
  perspective: 900px;
}

.collection-feature-art .fan-cover {
  position: relative;
  width: 40%;
  max-width: 108px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.9);
  transform: translateX(-5%) rotate(4deg);
}

.collection-feature-art .fan-cover:nth-child(2) {
  z-index: 2;
  transform: translate(-22%, -7%) rotate(-4deg);
}

.collection-feature-art .fan-cover:nth-child(3) {
  z-index: 1;
  transform: translate(-40%, 4%) rotate(7deg);
}

.collection-feature-art .fan-cover svg {
  width: 100%;
  height: 100%;
}

.collection-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.collection-feature h3 {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: #fff;
}

.collection-feature p {
  position: relative;
  z-index: 1;
  max-width: 56%;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.6;
}

.collection-feature-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 50%;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 700;
}

.collection-feature-meta .icon {
  width: 15px;
  height: 15px;
}

.collection-feature-meta .count {
  margin-right: auto;
}

.collection-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.collection-feature:hover .collection-arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.collection-arrow .icon {
  width: 17px;
  height: 17px;
}

.collection-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.collection-mini {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 140px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  isolation: isolate;
  transition: border-color 0.2s, transform 0.2s;
}

.collection-mini:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.collection-mini::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto 40%;
  z-index: -1;
  height: 170%;
  background: radial-gradient(45% 45% at 50% 50%, var(--c2), transparent 70%);
  opacity: 0.24;
}

.collection-mini h3 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.collection-mini p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.collection-mini-stack {
  position: relative;
  width: 92px;
  height: 104px;
  flex: none;
}

.collection-mini-stack span {
  position: absolute;
  top: 0;
  width: 50px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.9);
}

.collection-mini-stack span:nth-child(1) {
  left: 0;
  transform: rotate(-7deg);
}

.collection-mini-stack span:nth-child(2) {
  left: 34px;
  top: 8px;
  transform: rotate(5deg);
}

.collection-mini-stack svg {
  width: 100%;
  height: 100%;
}

.collection-mini-meta {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------- Home: community CTA ---------------- */

.community-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  margin-top: clamp(46px, 6vw, 74px);
  padding: clamp(26px, 3.6vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(var(--rose-rgb), 0.12), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    var(--surface);
}

.community-cta::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 34px rgba(var(--primary-rgb), 0.03), 0 0 0 68px rgba(var(--primary-rgb), 0.02);
  pointer-events: none;
}

.community-cta h2 {
  max-width: 580px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.community-cta p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.community-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.community-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme='light'] .community-stat {
  background: var(--surface-2);
}

.community-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.community-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------- Catalog ---------------- */

.catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-toolbar .search-field {
  flex: 1 1 280px;
}

.catalog-toolbar .select-wrap {
  flex: 0 0 auto;
  min-width: 136px;
}

.catalog-toolbar .select {
  height: 46px;
  background: var(--surface-2);
}

.catalog-toolbar .reset-btn {
  height: 46px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-toolbar .reset-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.catalog-genres {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 2px;
}

.catalog-genres .chip {
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  background: var(--surface-2);
}

.catalog-genres .chip.is-active {
  background: var(--primary-soft);
}

.catalog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-results-bar b {
  color: var(--text);
  font-weight: 800;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
}

.active-filter .icon {
  width: 11px;
  height: 11px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 24px 18px;
  margin-top: 16px;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ---------------- Title page ---------------- */

.title-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  isolation: isolate;
}

.title-hero-bg {
  position: absolute;
  inset: -70px;
  z-index: -2;
  background-image: var(--art);
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.3) brightness(0.95);
  opacity: 0.44;
  transform: scale(1.08);
}

.title-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, var(--surface) 94%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 65%);
}

.title-hero-inner {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 42px);
  align-items: end;
  padding: clamp(24px, 3.6vw, 42px);
}

.title-cover-col {
  position: relative;
  width: 100%;
  max-width: 248px;
  justify-self: start;
}

.title-cover-col .cover {
  border-radius: 18px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.title-cover-col .rating-badge {
  top: 13px;
  left: 13px;
  height: 28px;
  font-size: 12px;
}

.title-info {
  position: relative;
  min-width: 0;
  padding-bottom: 4px;
}

.title-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.title-info h1 {
  max-width: 760px;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: clamp(29px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.title-original {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.title-note {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.title-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}

.title-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.title-stat .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.title-stat small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.title-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.title-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

html[data-theme='light'] .title-progress {
  background: var(--surface-2);
}

.title-progress .progress-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  color: var(--primary);
}

.title-progress .progress-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), var(--surface-3) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

.title-progress b {
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.title-progress span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.title-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.title-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.title-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.content-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-title h2,
.panel-title h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.panel-title .count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.description-text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.72;
  white-space: pre-line;
}

.description-text.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.desc-toggle .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.desc-toggle.is-open .icon {
  transform: rotate(180deg);
}

.chapter-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-tools .search-field {
  width: 210px;
  height: 38px;
  border-radius: 10px;
}

.chapter-tools .search-field input {
  font-size: 12px;
}

.chapter-tools .select-wrap {
  width: 120px;
}

.chapter-tools .select {
  height: 38px;
  border-radius: 10px;
  font-size: 11.5px;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.15s;
}

.chapter-row:hover {
  background: var(--surface-2);
}

.chapter-row:last-child {
  border-bottom: 0;
}

.chapter-row-num {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.chapter-row-name {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-row-name b {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 650;
}

.chapter-row-date {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.chapter-row .new-mark {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chapter-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.detail-row dt,
.detail-row .detail-label {
  color: var(--muted);
  white-space: nowrap;
}

.detail-row dd,
.detail-row .detail-value {
  margin: 0;
  color: var(--text-soft);
  font-weight: 650;
  text-align: right;
}

.detail-row + .detail-row {
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.similar-list {
  display: flex;
  flex-direction: column;
}

.similar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.similar-row:last-child {
  border-bottom: 0;
}

.similar-row .mini-cover {
  width: 37px;
  border-radius: 6px;
}

.similar-row:hover .mini-title {
  color: var(--primary);
}

.similar-row .rating {
  font-size: 10.5px;
}

/* ---------------- Library ---------------- */

.library-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.library-intro .icon {
  color: var(--primary);
}

.library-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.progress-card {
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.18s, transform 0.18s;
}

.progress-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.progress-card .cover {
  width: 74px;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, 0.9);
}

.progress-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.progress-card-body h3 {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-card-body h3 a:hover {
  color: var(--primary);
}

.progress-card-body .meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.progress-card-body .progress-track {
  margin-top: auto;
  margin-bottom: 7px;
}

.progress-card-body .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.progress-card-body .bottom a {
  color: var(--primary);
  font-weight: 750;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.16s, color 0.16s;
}

.icon-action:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-action .icon {
  width: 15px;
  height: 15px;
}

.icon-action.danger:hover {
  background: rgba(255, 122, 122, 0.1);
  color: var(--danger);
}

.history-list {
  display: flex;
  flex-direction: column;
}

.history-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row:hover {
  background: var(--surface-2);
}

.history-row .update-cover {
  width: 42px;
}

.history-row .history-meta {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.history-row .history-title {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- Profile ---------------- */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(50% 130% at 100% 0%, rgba(var(--rose-rgb), 0.1), transparent 65%),
    linear-gradient(120deg, rgba(var(--primary-rgb), 0.08), transparent 55%),
    var(--surface);
}

.profile-hero-copy {
  min-width: 0;
  flex: 1;
}

.profile-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.profile-hero p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.profile-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 16px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.stat-card .stat-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary);
}

.stat-card .stat-icon .icon {
  width: 16px;
  height: 16px;
}

.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.genre-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.genre-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 650;
}

.genre-bar-head span {
  color: var(--muted);
  font-size: 10px;
}

.genre-bar .progress-track {
  height: 5px;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.settings-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.switch.is-on {
  background: var(--primary-soft);
}

.switch.is-on::after {
  transform: translateX(18px);
  background: var(--primary);
}

/* ---------------- Collections ---------------- */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  isolation: isolate;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 90% at 85% 10%, var(--c2) -30%, transparent 62%),
    linear-gradient(150deg, var(--c1), var(--surface) 75%);
  opacity: 0.8;
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(5, 5, 10, 0.9) 3%, rgba(5, 5, 10, 0.3) 62%, transparent),
    linear-gradient(90deg, rgba(5, 5, 10, 0.62), transparent 68%);
}

.collection-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.collection-card h2 {
  position: relative;
  z-index: 1;
  max-width: 58%;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.05em;
  color: #fff;
}

.collection-card p {
  position: relative;
  z-index: 1;
  max-width: 54%;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.collection-card-art {
  position: absolute;
  right: 20px;
  bottom: 78px;
  z-index: 0;
  display: flex;
  width: 44%;
  height: 180px;
  align-items: flex-end;
  justify-content: flex-end;
}

.collection-card-art span {
  position: absolute;
  bottom: 0;
  width: 34%;
  max-width: 84px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 20px 30px -18px rgba(0, 0, 0, 0.9);
}

.collection-card-art span:nth-child(1) {
  left: 8%;
  transform: rotate(-9deg);
}

.collection-card-art span:nth-child(2) {
  left: 38%;
  bottom: 9px;
  transform: rotate(4deg);
}

.collection-card-art span:nth-child(3) {
  right: 4%;
  transform: rotate(12deg);
}

.collection-card-art svg {
  width: 100%;
  height: 100%;
}

.collection-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.collection-card-foot .count {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.58);
}

.collection-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  isolation: isolate;
}

.collection-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 120% at 80% 20%, var(--c2) -30%, transparent 62%),
    linear-gradient(140deg, var(--c1), #07070b 78%);
}

.collection-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 5, 10, 0.8), rgba(5, 5, 10, 0.2));
}

.collection-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.collection-hero h1 {
  max-width: 660px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
  color: #fff;
}

.collection-hero p {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  line-height: 1.65;
}

.collection-hero .collection-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  font-weight: 700;
}

.collection-hero-fan {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: -1;
  display: flex;
  width: 34%;
  height: 84%;
  align-items: flex-end;
  justify-content: flex-end;
}

.collection-hero-fan span {
  position: absolute;
  width: 44%;
  max-width: 160px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.9);
}

.collection-hero-fan span:nth-child(1) {
  right: 38%;
  transform: rotate(-8deg);
}

.collection-hero-fan span:nth-child(2) {
  right: 17%;
  bottom: 6%;
  transform: rotate(3deg);
}

.collection-hero-fan span:nth-child(3) {
  right: 0;
  transform: rotate(11deg);
}

.collection-hero-fan svg {
  width: 100%;
  height: 100%;
}

/* ---------------- Top ---------------- */

.top-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.top-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}

.top-tab:hover {
  color: var(--text);
}

.top-tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 24px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-align: center;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.podium-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.podium-card.first {
  padding-top: 28px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(var(--primary-rgb), 0.16), transparent 70%),
    var(--surface);
}

.podium-cover {
  width: 100%;
  max-width: 150px;
  margin-bottom: 14px;
}

.podium-card.first .podium-cover {
  max-width: 170px;
}

.podium-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.podium-card.first .podium-rank {
  background: var(--gradient);
  color: var(--primary-ink);
  box-shadow: 0 8px 18px -8px var(--primary-glow);
}

.podium-name {
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.35;
}

.podium-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.podium .rating {
  margin-top: 7px;
}

.top-list {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.top-row {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) 140px 110px 80px;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.top-row:last-child {
  border-bottom: 0;
}

.top-row:hover {
  background: var(--surface-2);
}

.top-num {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.top-cover {
  width: 36px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 5px;
}

.top-cover svg {
  width: 100%;
  height: 100%;
}

.top-title {
  min-width: 0;
}

.top-title b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-title span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-metric {
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.top-metric small {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
}

/* ---------------- About ---------------- */

.prose {
  max-width: 780px;
}

.prose h2 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.prose p {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 10px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
  color: var(--text-soft);
  font-size: 13px;
}

.prose li::marker {
  color: var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.about-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.about-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.kbd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  min-width: 28px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 700;
}

/* ---------------- 404 ---------------- */

.notfound {
  display: flex;
  min-height: 62vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 50px;
  text-align: center;
}

.notfound-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 46px;
  background: var(--gradient-soft);
  color: var(--primary);
  transform: rotate(-6deg);
}

.notfound-art::after {
  content: '404';
  position: absolute;
  right: -18px;
  bottom: -12px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: rotate(6deg);
}

.notfound-art .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.1;
}

.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.notfound p {
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

/* ---------------- Responsive pages ---------------- */

@media (min-width: 1200px) {
  .media-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 1160px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .random-card,
  .continue-card {
    min-height: 218px;
  }
  .title-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .title-hero-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 24px;
  }
  .hero-cover-wrap {
    max-width: 190px;
  }
  .collections-layout {
    grid-template-columns: 1fr;
  }
  .collection-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .title-content {
    grid-template-columns: 1fr;
  }
  .title-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .top-row {
    grid-template-columns: 38px 42px minmax(0, 1fr) 110px 80px;
  }
  .top-row .top-views {
    display: none;
  }
}

@media (max-width: 860px) {
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .update-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .update-row:last-child {
    border-bottom: 0;
  }
  .title-hero-inner {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
  }
  .title-cover-col {
    max-width: 190px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .community-cta {
    grid-template-columns: 1fr;
  }
  .community-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding: 24px 22px;
  }
  .hero-cover-wrap {
    display: none;
  }
  .hero {
    min-height: 420px;
  }
  .hero-aside {
    grid-template-columns: 1fr;
  }
  .random-card {
    min-height: 205px;
  }
  .hero-arrow {
    display: none;
  }
  .hero-dots {
    top: 14px;
    right: 14px;
  }
  .hero-title {
    font-size: clamp(29px, 8vw, 38px);
  }
  .hero-chapters {
    margin-top: 20px;
  }
  .genre-band-inner {
    flex-wrap: wrap;
  }
  .genre-band-label {
    width: 100%;
  }
  .genre-band .section-link {
    display: none;
  }
  .page-head-art {
    display: none;
  }
  .collection-side {
    grid-template-columns: 1fr;
  }
  .collection-feature {
    min-height: 390px;
  }
  .collection-feature-art {
    width: 64%;
    right: 16px;
    bottom: 18px;
    height: 170px;
    opacity: 0.68;
  }
  .collection-feature-art .fan-cover {
    max-width: 86px;
  }
  .collection-feature p {
    max-width: 100%;
  }
  .collection-feature-meta {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .collection-card {
    min-height: 390px;
  }
  .collection-card h2,
  .collection-card p {
    max-width: 100%;
  }
  .collection-card-art {
    right: 14px;
    bottom: 76px;
    width: 55%;
    height: 150px;
    opacity: 0.7;
  }
  .collection-card-art span {
    max-width: 74px;
  }
  .community-stats {
    grid-template-columns: 1fr 1fr;
  }
  .title-hero-inner {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 20px;
  }
  .title-cover-col {
    max-width: 140px;
  }
  .title-info h1 {
    margin-top: 9px;
    font-size: clamp(24px, 5.6vw, 32px);
  }
  .title-original {
    font-size: 11px;
  }
  .title-note {
    display: none;
  }
  .title-stats {
    gap: 6px 14px;
    margin-top: 12px;
  }
  .title-actions {
    margin-top: 14px;
  }
  .title-actions .btn {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
  .title-progress {
    margin-top: 12px;
  }
  .title-aside {
    grid-template-columns: 1fr;
  }
  .chapter-tools .search-field {
    width: 100%;
  }
  .chapter-tools {
    flex-wrap: wrap;
  }
  .chapter-tools .select-wrap {
    width: 110px;
  }
  .catalog-toolbar .select-wrap {
    flex: 1 1 130px;
  }
  .catalog-toolbar .reset-btn {
    margin-left: auto;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
    gap: 18px 12px;
  }
  .title-card-body {
    flex-direction: column;
    gap: 2px;
  }
  .title-card .rating {
    padding-top: 0;
  }
  .top-row {
    grid-template-columns: 30px 38px minmax(0, 1fr) 72px;
    gap: 10px;
    padding: 10px 12px;
  }
  .top-row .top-rating,
  .top-row .top-views {
    display: none;
  }
  .podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .podium-card {
    flex-direction: row;
    text-align: left;
    gap: 14px;
  }
  .podium-card.first {
    order: -1;
  }
  .podium-cover,
  .podium-card.first .podium-cover {
    width: 74px;
    max-width: 74px;
    margin-bottom: 0;
  }
  .podium-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    margin: 0;
    width: 24px;
    height: 24px;
  }
  .podium .rating {
    margin-top: 4px;
  }
  .top-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .library-progress-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero-slide {
    padding: 22px 18px;
    min-height: 430px;
  }
  .hero-kicker {
    font-size: 9.5px;
  }
  .hero-actions .btn {
    height: 42px;
    padding: 0 15px;
    font-size: 12px;
  }
  .hero-note {
    font-size: 12px;
  }
  .hero-chapters-label {
    display: none;
  }
  .genre-band {
    padding: 12px;
  }
  .section-title {
    font-size: 24px;
  }
  .collection-feature-art {
    opacity: 0.7;
  }
  .update-meta .genres {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card b {
    font-size: 22px;
  }
  .title-hero-inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .title-cover-col {
    max-width: 112px;
  }
  .title-badges .badge:last-child {
    display: none;
  }
  .title-stats .title-stat:last-child {
    display: none;
  }
  .title-genres {
    display: none;
  }
  .chapter-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  .chapter-row-date {
    display: none;
  }
  .chapter-row > span:last-child {
    display: none;
  }
  .community-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-hero-actions {
    width: 100%;
  }
  .notfound-art {
    width: 120px;
    height: 120px;
    border-radius: 36px;
  }
}

/* ---------------- Extra page bits ---------------- */

.catalog-search-btn {
  flex: none;
  height: 34px;
  margin-right: -4px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 11.5px;
}

.chapter-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 26px 12px;
  color: var(--muted);
  font-size: 12px;
}

.chapter-empty .icon {
  width: 16px;
  height: 16px;
}

.empty-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
}

.empty-inline > .icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
}

.empty-inline > div {
  min-width: 0;
  flex: 1;
}

.empty-inline b {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.empty-inline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.empty-inline .btn {
  flex: none;
  margin-left: auto;
}

.profile-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.profile-note .icon {
  width: 13px;
  height: 13px;
}

.top-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.top-note .icon {
  width: 13px;
  height: 13px;
}

.about-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card h3 .icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.prose a {
  color: var(--primary);
  font-weight: 650;
}

.prose h2[id] {
  scroll-margin-top: 100px;
}

.collection-page .catalog-grid {
  margin-top: 22px;
}

.collection-page .btn-text {
  margin-bottom: 16px;
}

.reader-action.is-saved {
  color: var(--rose);
}

.reader-action.is-saved .icon {
  fill: currentColor;
}

@media (max-width: 620px) {
  .empty-inline {
    flex-wrap: wrap;
  }
  .empty-inline .btn {
    margin-left: 36px;
  }
}

.detail-list {
  margin: 0;
}
.section-sub + .section-link {
  align-self: flex-end;
}
.hero-slide:not(.is-active) {
  pointer-events: none;
}
.collection-card-art .fan-cover,
.collection-hero-fan .fan-cover,
.collection-feature-art .fan-cover {
  pointer-events: none;
}
.progress-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

/* ---------------- Mobile refinements ---------------- */

@media (max-width: 900px) {
  .footer-brand .brand-word {
    display: inline;
  }
}

@media (max-width: 720px) {
  .catalog-genres {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .catalog-genres::-webkit-scrollbar {
    display: none;
  }
  .catalog-genres .chip {
    flex: none;
  }
  .collection-feature-art {
    display: none;
  }
  .title-info h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .title-actions .btn-primary {
    width: 100%;
  }
  .title-actions .btn:not(.btn-primary) {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding-inline: 10px;
    font-size: 11.5px;
  }
  .title-actions .bookmark-btn.wide {
    flex: 1 1 calc(50% - 5px);
    height: 40px;
    padding-inline: 10px;
    font-size: 11.5px;
  }
  .title-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    gap: 10px 12px;
    padding: 12px 14px;
  }
  .title-progress .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .chapter-tools .select-wrap {
    width: 100%;
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .title-info h1 {
    font-size: 22px;
    letter-spacing: -0.045em;
    line-height: 1.1;
  }
  .title-actions {
    gap: 7px;
  }
  .title-actions .btn,
  .title-actions .bookmark-btn.wide {
    height: 38px;
  }
}


@media (max-width: 520px) {
  .title-info h1 {
    font-size: 20px;
    letter-spacing: -0.05em;
    line-height: 1.16;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  .title-actions .btn-ghost[data-random] {
    flex: 1 1 100%;
  }
}

.kbd-row {
  align-items: center;
}
.kbd-row > .muted {
  font-size: 12px;
}

/* Imported title without chapters: hero note instead of chapter pills. */
.hero-chapters.hero-chapters-empty {
  display: block;
}

.hero-chapters-empty .hero-chapters-label {
  display: block;
  margin-bottom: 5px;
}

.hero-chapters-empty > span:last-child {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------------- Mobile layout refinements ---------------- */
@media (max-width: 620px) {
  .library-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }
  .library-intro .link-arrow {
    align-self: flex-start;
  }
  .hero-dot {
    width: 22px;
    height: 22px;
  }
  .hero-dot.is-active {
    width: 30px;
  }
  .hero-dots {
    gap: 0;
    padding: 4px 5px;
  }
}

/* Cards associated with a title */
.title-cards-panel {
  margin-bottom: 18px;
}

.title-cards-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.title-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 13px;
}

.title-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.title-card .game-card {
  width: 100%;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}

.title-card:hover .game-card {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.title-card-author {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .title-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px;
  }
}
.title-card-art {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.title-card-art:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
}

/* Title soundtrack player */
.title-music-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ln);
  border-radius: 20px;
  background:
    radial-gradient(circle at 4% 0%, rgba(157, 130, 255, .12), transparent 40%),
    var(--card);
}

.title-music-panel[hidden] {
  display: none;
}

.music-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.music-head h2 {
  margin: 4px 0 3px;
  font-family: var(--font-display);
  font-size: 23px;
}

.music-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.music-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-count {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.music-player {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 12px;
}

.music-now {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--ln);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-2), #0d0b16);
}

.music-cover {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  grid-row: 1 / span 2;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--music-cover, linear-gradient(135deg, #604994, #171225)) center / cover;
  box-shadow: 0 13px 24px -12px #000;
}

.music-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, #080611a8);
}

.music-cover-note {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .85);
  font-size: 30px;
  text-shadow: 0 2px 10px #000;
}

.music-now-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
}

.music-kicker {
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.music-now-copy b {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-now-copy > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-controls {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.music-controls > button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ln);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.music-controls > button:hover {
  border-color: var(--ac);
  color: var(--ac);
}

.music-controls .icon {
  width: 14px;
  height: 14px;
}

.music-controls .music-play {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--ac);
  color: #171326;
}

.music-controls .music-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.music-pause-icon {
  display: inline-block;
  width: 12px;
  height: 15px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.music-progress {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 31px minmax(0, 1fr) 31px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.music-progress input,
.music-volume input {
  width: 100%;
  height: 4px;
  accent-color: var(--ac);
  cursor: pointer;
}

.music-volume {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
}

.music-volume .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.music-volume input {
  width: 130px;
}

.music-lyrics {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 13px;
  border: 1px solid var(--ln);
  border-radius: 16px;
  background: rgba(12, 10, 22, .7);
}

.music-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ln);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.music-lyrics-head .btn-text {
  font-size: 9px;
}

.music-lyrics-body {
  max-height: 286px;
  overflow-y: auto;
  padding: 10px 3px 2px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  scrollbar-width: thin;
}

.music-lyrics-body.is-collapsed {
  display: none;
}

.music-playlist {
  grid-column: 1;
  padding-top: 1px;
}

.music-playlist-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.music-playlist-head span:last-child {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.music-tracks {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.music-track {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.music-track:hover,
.music-track.is-active {
  border-color: var(--ln);
  background: var(--surface-2);
}

.music-track-num {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.music-track-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.music-track-copy b,
.music-track-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-copy b {
  font-size: 10px;
}

.music-track-copy small {
  color: var(--muted);
  font-size: 8px;
}

.music-track-state {
  display: grid;
  place-items: center;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-bars b {
  display: block;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--ac);
  animation: musicBar .8s ease-in-out infinite alternate;
}

.music-bars b:nth-child(2) { height: 12px; animation-delay: -.3s; }
.music-bars b:nth-child(3) { height: 6px; animation-delay: -.55s; }

@keyframes musicBar {
  to { height: 3px; }
}

.music-track-delete {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
  opacity: .55;
}

.music-track-delete:hover {
  background: rgba(255, 90, 120, .12);
  color: #ff8da0;
  opacity: 1;
}

.music-track-delete .icon {
  width: 11px;
  height: 11px;
}

.music-player audio {
  display: none;
}

.music-upload-form {
  display: grid;
  gap: 10px;
}

.music-upload-form textarea {
  min-height: 170px;
  resize: vertical;
}

.music-upload-file {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.music-upload-file.has-file {
  border-style: solid;
  border-color: var(--ac);
  color: var(--ac);
}

.music-upload-file .icon {
  width: 14px;
  height: 14px;
}

.music-upload-note {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 760px) {
  .title-music-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  .music-head {
    flex-direction: column;
    gap: 8px;
  }
  .music-player {
    grid-template-columns: 1fr;
  }
  .music-now {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .music-cover {
    width: 90px;
    height: 90px;
  }
  .music-now-copy b {
    font-size: 17px;
  }
  .music-playlist,
  .music-lyrics {
    grid-column: 1;
  }
  .music-lyrics {
    order: 3;
  }
  .music-playlist {
    order: 2;
  }
  .music-lyrics-body {
    max-height: 240px;
  }
  .music-tracks {
    max-height: 190px;
  }
  .music-volume input {
    width: 100px;
  }
}

/* Global music section */
.music-page {
  padding: 26px 0 90px;
}

.music-page-head {
  align-items: flex-end;
}

.music-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 100px 20px;
  color: var(--muted);
  font-size: 13px;
}

.music-loading .icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  animation: musicPulse 1.4s ease-in-out infinite;
}

@keyframes musicPulse {
  50% { opacity: .35; transform: scale(.92); }
}

.music-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: 14px;
  margin-top: 18px;
}

.music-stage {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.music-page .music-now {
  grid-template-columns: 128px minmax(0, 1fr);
  padding: 16px;
}

.music-page .music-cover {
  width: 128px;
  height: 128px;
}

.music-page .music-now-copy b {
  font-size: 22px;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.08;
}

.music-page .music-now-copy > span:last-of-type {
  white-space: normal;
}

.music-source-link {
  margin-top: 3px;
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-source-link:hover {
  text-decoration: underline;
}

.music-side {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ln);
  border-radius: 17px;
  background: var(--card);
}

.music-side-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.music-side-head b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 20px;
}

.music-side-head > span {
  display: inline-grid;
  min-width: 25px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--ln);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
}

.music-search {
  margin: 0;
}

.music-catalog-tracks {
  max-height: 480px;
  margin-top: 0;
}

.music-catalog-empty-search {
  padding: 22px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.music-catalog-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}

.music-catalog-empty > .icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
}

.music-catalog-empty b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
}

.music-catalog-empty span {
  max-width: 330px;
  font-size: 11px;
}

.music-page .music-lyrics-body {
  max-height: 340px;
}

@media (max-width: 900px) {
  .music-catalog {
    grid-template-columns: 1fr;
  }
  .music-catalog-tracks {
    max-height: 320px;
  }
}

@media (max-width: 620px) {
  .music-page {
    padding-top: 15px;
  }
  .music-page .music-now {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .music-page .music-cover {
    width: 96px;
    height: 96px;
  }
  .music-page .music-now-copy b {
    font-size: 19px;
  }
  .music-page .music-now {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .music-page .music-lyrics-body {
    max-height: 260px;
  }
}

/* Keep the growing mobile navigation usable */
.mobile-nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-link {
  flex: 0 0 auto;
}

/* Music player polish and proper accent tokens */
.music-controls > button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.music-controls .music-play {
  background: linear-gradient(135deg, var(--primary), var(--rose));
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 28%, transparent);
}

.music-controls .music-play:hover {
  transform: translateY(-1px) scale(1.03);
}

.music-bars b {
  background: var(--primary);
}

.music-progress input,
.music-volume input {
  accent-color: var(--primary);
}

.music-upload-file.has-file {
  border-color: var(--primary);
  color: var(--primary);
}

/* Wide global player, then lyrics and playlist side by side */
.music-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.music-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 204px;
}

.music-hero::before {
  content: '';
  position: absolute;
  inset: -32px;
  z-index: 0;
  background: var(--music-cover, linear-gradient(135deg, #604994, #171225)) center / cover;
  filter: blur(34px) saturate(1.2);
  opacity: .2;
  pointer-events: none;
}

.music-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(12, 10, 22, .88), rgba(12, 10, 22, .35));
  pointer-events: none;
}

.music-hero > * {
  position: relative;
  z-index: 1;
}

.music-page .music-now.music-hero {
  grid-template-columns: 168px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  padding: 18px;
}

.music-page .music-hero .music-cover {
  width: 168px;
  height: 168px;
  grid-row: 1 / span 3;
}

.music-page .music-hero .music-now-copy b {
  font-size: clamp(24px, 2.7vw, 34px);
}

.music-page .music-hero .music-now-copy > span:last-of-type {
  font-size: 12px;
}

.music-page .music-now-copy {
  align-content: start;
  padding-top: 10px;
}

.music-page .music-controls {
  justify-content: flex-start;
  padding-top: 4px;
}

.music-page .music-controls .music-play {
  width: 52px;
  height: 52px;
}

.music-page .music-controls .music-play .icon {
  width: 21px;
  height: 21px;
}

.music-page .music-progress {
  max-width: 100%;
}

.music-page .music-volume {
  margin-top: 1px;
}

.music-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 12px;
  align-items: stretch;
}

.music-bottom .music-lyrics {
  min-height: 250px;
}

.music-bottom .music-side {
  min-height: 250px;
}

.music-bottom .music-lyrics-body {
  max-height: 330px;
}

@media (max-width: 900px) {
  .music-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .music-page .music-now.music-hero {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 0;
    padding: 13px;
  }
  .music-page .music-hero .music-cover {
    width: 104px;
    height: 104px;
    grid-row: 1 / span 2;
  }
  .music-page .music-hero .music-now-copy b {
    font-size: 20px;
  }
  .music-page .music-hero .music-controls {
    grid-column: 2;
  }
  .music-page .music-hero .music-play {
    width: 44px;
    height: 44px;
  }
  .music-page .music-hero .music-progress,
  .music-page .music-hero .music-volume {
    grid-column: 1 / -1;
  }
  .music-bottom .music-lyrics-body {
    max-height: 280px;
  }
}

/* Music filters and section badges */
.music-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.music-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--ln);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.music-filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.music-filter-chip.is-active {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--ln));
  background: var(--primary-soft);
  color: var(--text);
}

.music-filter-chip b {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 8px;
}

.music-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.music-sort-row .select {
  width: auto;
  min-width: 145px;
  height: 30px;
  padding: 0 8px;
  font-size: 9px;
}

.music-track {
  grid-template-columns: 22px minmax(0, 1fr) auto 20px;
}

.music-track-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border: 1px solid var(--ln);
  border-radius: 999px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.music-track.is-active .music-track-category {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--ln));
}

.music-catalog-tracks .music-track-state {
  width: 20px;
}

@media (max-width: 900px) {
  .music-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .music-filter-chips::-webkit-scrollbar {
    display: none;
  }
  .music-filter-chip {
    flex: 0 0 auto;
  }
}

@media (max-width: 620px) {
  .music-track {
    grid-template-columns: 19px minmax(0, 1fr) auto 18px;
    gap: 5px;
  }
  .music-track-category {
    font-size: 6px;
    padding: 1px 4px;
  }
  .music-sort-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .music-sort-row .select {
    width: 100%;
  }
}

/* Compact mobile navigation with a More sheet */
.mobile-nav {
  gap: 3px;
  overflow: visible;
}

.mobile-nav .mobile-nav-link {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 3px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav .mobile-nav-link .icon {
  width: 19px;
  height: 19px;
}

.mobile-nav-more {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mobile-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 12px 12px calc(88px + env(safe-area-inset-bottom));
  background: rgba(4, 3, 10, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile-more-overlay[hidden] {
  display: none !important;
}

.mobile-more-sheet {
  width: min(460px, 100%);
  max-height: min(72vh, 560px);
  margin: 0 auto;
  padding: 15px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 24px 70px -18px rgba(0, 0, 0, .8);
  animation: mobileMoreIn .18s ease-out;
}

@keyframes mobileMoreIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

.mobile-more-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-more-head b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.mobile-more-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}

.mobile-more-close .icon {
  width: 14px;
  height: 14px;
}

.mobile-more-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mobile-more-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--text);
}

.mobile-more-links a:hover,
.mobile-more-links a.is-active {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  background: var(--primary-soft);
}

.mobile-more-links a > .icon {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--primary);
}

.mobile-more-links span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mobile-more-links b {
  font-size: 11px;
}

.mobile-more-links small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-more-open {
  overflow: hidden;
}

.mobile-nav {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  overflow: hidden;
}

.mobile-nav .mobile-nav-link {
  flex: 1 1 0;
  width: 0;
}

/* Extended player controls */
.music-controls .music-mode-button {
  width: 29px;
  height: 29px;
  border-color: transparent;
  background: transparent;
}

.music-controls .music-mode-button:hover {
  border-color: var(--line);
  color: var(--primary);
}

.music-controls .music-mode-button.is-active {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.music-controls .music-mode-button .icon {
  width: 15px;
  height: 15px;
}

.music-controls .music-mode-button.is-one .icon {
  width: 16px;
  height: 16px;
}

.music-page .music-controls {
  gap: 7px;
}

/* Persistent mini-player */
.global-player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 65;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  grid-template-rows: auto 2px;
  align-items: center;
  gap: 0 9px;
  padding: 8px 9px 0;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 16px 44px -14px rgba(0, 0, 0, .75);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  animation: globalPlayerIn .2s ease-out;
}

.global-player[hidden] {
  display: none !important;
}

body:has(.music-page) .global-player {
  display: none !important;
}

@keyframes globalPlayerIn {
  from { opacity: 0; transform: translateY(10px); }
}

.global-player-cover {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--gp-cover, linear-gradient(135deg, #604994, #171225)) center / cover;
  cursor: pointer;
}

.global-player-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 16, .65));
}

.global-player-cover span {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 7px #000;
}

.global-player-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.global-player-copy b,
.global-player-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-player-copy b {
  font-size: 10px;
}

.global-player-copy span {
  color: var(--muted);
  font-size: 8px;
}

.global-player-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.global-player-controls button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.global-player-controls button:hover {
  color: var(--text);
}

.global-player-controls .icon {
  width: 13px;
  height: 13px;
}

.global-player-controls .global-player-toggle {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
}

.global-player-controls .global-player-toggle .icon {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}

.global-player-progress {
  grid-column: 1 / -1;
  height: 2px;
  margin: 4px -9px 0;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  background: var(--line);
}

.global-player-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--rose));
  transition: width .18s linear;
}

.global-player-open,
.global-player-close {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.global-player-open:hover,
.global-player-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.global-player-open .icon,
.global-player-close .icon {
  width: 12px;
  height: 12px;
}

.global-player-close {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0;
  transition: opacity .16s;
}

.global-player:hover .global-player-close {
  opacity: 1;
}

@media (max-width: 900px) {
  .global-player {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
  .global-player-close {
    opacity: 1;
  }
  .global-player-open {
    display: none;
  }
}

@media (max-width: 620px) {
  .music-page .music-controls {
    gap: 4px;
  }
  .music-controls .music-mode-button {
    width: 26px;
    height: 26px;
  }
  .music-controls .music-mode-button .icon {
    width: 13px;
    height: 13px;
  }
}

.global-player-open {
  grid-column: 4;
  grid-row: 1;
}

.global-player-progress {
  grid-row: 2;
}
