:root {
  --bg: #0b0c12;
  --panel: #141620;
  --muted: #969aa9;
  --text: #f6f7fb;
  --accent: #ff4f70;
  --line: #292c38;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.mobile-strip,
.mobile-menu,
.mobile-actions {
  display: none;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(4vw, 28px);
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0b0c12ef;
  border-bottom: 1px solid #1d1f29;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
  font-size: 18px;
}
nav {
  display: flex;
  gap: 22px;
}
a {
  color: inherit;
  text-decoration: none;
}
nav a {
  color: #b8bbc7;
}
nav a.active,
nav a:hover {
  color: #fff;
}
.search {
  margin-left: auto;
  width: min(29vw, 340px);
  height: 37px;
  background: #191b25;
  border-radius: 20px;
  display: flex;
  padding-left: 15px;
}
.search input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  min-width: 0;
  flex: 1;
}
.search button {
  border: 0;
  background: none;
  color: #fff;
  font-size: 24px;
  padding: 0 13px;
  cursor: pointer;
}
.login,
.ghost {
  border: 1px solid #3b3e4d;
  background: transparent;
  color: #fff;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
}
.hero {
  height: 440px;
  position: relative;
  overflow: hidden;
  padding: 82px max(6vw, 40px);
  background: radial-gradient(
    circle at 83% 45%,
    #5a345c 0 3%,
    #252448 19%,
    #11162e 43%,
    #080a12 75%
  );
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff9 1px, transparent 1px);
  background-size: 69px 69px;
  opacity: 0.22;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
}
.eyebrow {
  color: #ff9bab;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 13px 0;
}
.hero-copy > p:not(.eyebrow) {
  color: #bfc2cf;
  line-height: 1.8;
  margin-bottom: 24px;
}
.play {
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 5px;
  padding: 11px 19px;
  font-weight: 700;
  margin-right: 10px;
  cursor: pointer;
}
.hero-planet {
  position: absolute;
  z-index: 1;
  right: 10%;
  top: 78px;
  width: 255px;
  height: 255px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 29%,
    #ffb9bd,
    #b7558d 25%,
    #56386b 55%,
    #151830 76%
  );
  box-shadow: -20px 18px 70px #e576a355;
}
.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid #dca8cf60;
  border-radius: 50%;
  right: 4%;
  top: 105px;
  transform: rotate(-18deg);
}
.orbit-a {
  width: 430px;
  height: 150px;
}
.orbit-b {
  width: 340px;
  height: 290px;
  right: 8%;
  top: 60px;
  transform: rotate(27deg);
}
main {
  padding-bottom: 44px;
}
.quick {
  max-width: 1250px;
  margin: 0 auto;
  padding: 23px 4vw;
  display: flex;
  gap: 12px;
  overflow: auto;
}
.quick a {
  background: #171923;
  border: 1px solid #242735;
  border-radius: 7px;
  padding: 12px 18px;
  white-space: nowrap;
}
.quick a:hover {
  border-color: var(--accent);
}
.content-section {
  max-width: 1250px;
  margin: 22px auto;
  padding: 0 4vw;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 20px;
  margin: 0;
}
.section-head a {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  min-width: 0;
  cursor: pointer;
}
.poster {
  aspect-ratio: 2/3;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  padding: 9px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}
.poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #070912d9);
}
.poster b {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 24px;
  opacity: 0.85;
}
.tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0d0e15b8;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.card h3 {
  font-size: 14px;
  margin: 9px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.rank-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  counter-reset: item;
}
.rank-list li {
  counter-increment: item;
  background: var(--panel);
  padding: 14px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-list li:before {
  content: counter(item, decimal-leading-zero);
  color: var(--accent);
  font-weight: 800;
  margin-right: 9px;
}
footer {
  text-align: center;
  color: #727788;
  border-top: 1px solid var(--line);
  padding: 30px;
}
@media (max-width: 800px) {
  .mobile-strip {
    height: 31px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    overflow: hidden;
    background: #06070c;
    color: #f29aab;
    font-size: 12px;
    white-space: nowrap;
  }
  .topbar {
    height: 58px;
    gap: 11px;
    padding: 0 15px;
    background: #252934;
    position: relative;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    padding: 4px;
  }
  .brand {
    font-size: 18px;
    flex: 1;
  }
  .brand span {
    font-size: 15px;
  }
  .topbar nav,
  .login,
  .search {
    display: none;
  }
  .mobile-actions {
    display: flex;
    gap: 6px;
  }
  .mobile-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid #b9bec9;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 16px;
  }
  .hero {
    display: none;
  }
  .quick {
    margin: 6px 5px 18px;
    padding: 11px 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #252934;
    border: 1px solid #353a45;
    border-radius: 3px;
    overflow: visible;
  }
  .quick a {
    border: 0;
    background: transparent;
    padding: 9px 4px;
    text-align: center;
    color: #e1e4eb;
    font-size: 13px;
  }
  .quick a:hover {
    color: #fff;
  }
  .content-section {
    margin: 18px auto;
    padding: 0 10px;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .poster {
    border-radius: 4px;
    padding: 6px;
  }
  .poster b {
    left: 7px;
    bottom: 7px;
    font-size: 20px;
  }
  .tag {
    top: 5px;
    right: 5px;
  }
  .card h3 {
    font-size: 13px;
    margin: 6px 0 3px;
  }
  .card p {
    font-size: 11px;
  }
  .rank-list {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .rank-list li {
    padding: 11px;
    font-size: 13px;
  }
  footer {
    padding: 22px 12px;
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  .search-open .search {
    display: flex;
    position: absolute;
    z-index: 10;
    left: 12px;
    right: 12px;
    top: 63px;
    width: auto;
    box-shadow: 0 5px 18px #0008;
  }
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pager label {
  color: var(--muted);
}
.pager input {
  width: 70px;
  padding: 8px;
  border: 1px solid #3b3e4d;
  border-radius: 5px;
  background: #191b25;
  color: #fff;
  text-align: center;
}
@media (max-width: 800px) {
  .pager {
    gap: 7px;
  }
  .pager input {
    width: 54px;
    padding: 8px 4px;
  }
  .pager .ghost,
  .pager .play {
    padding: 9px 10px;
  }
}
.permanent-domain {
  font-size: 18px;
  font-weight: 800;
  color: #ff4f70;
  text-decoration: none;
  white-space: nowrap;
}
.permanent-domain:hover {
  color: #ff7891;
}
@media (max-width: 800px) {
  .permanent-domain {
    font-size: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-actions {
    gap: 3px;
  }
  .mobile-actions button {
    width: 30px;
    height: 30px;
  }
  .topbar {
    height: 58px;
  }
}
#catalogStatus.retry {
  color: #ff9bab;
  cursor: pointer;
  text-decoration: underline;
}
.pager {
  flex-wrap: wrap;
}
