:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --blue: #007aff;
  --muted: #8e8e93;
  --nba: #0c4c90;
  --nba-deep: #0b447f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100%;
  background: #f5f5f7;
  color: #000;
}

button, input { font: inherit; }

.device {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
}

.scroll {
  min-height: 100%;
  padding: 18px 16px 120px;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar { display: none; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 4px 16px;
}

.top h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #000;
}

.avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.2px;
  background: linear-gradient(160deg, #8eb4e8 0%, #6d8ed0 55%, #7f8ec4 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #ff3b30;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.2px;
  box-shadow: 0 0 0 2px var(--bg);
}

.card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card + .card,
.hot { margin-top: 18px; }

.nba { background: var(--nba-deep); }

.nba-visual { position: relative; background: #1274c8; }

.nba-visual img {
  display: block;
  width: 100%;
  height: 292px;
  object-fit: cover;
  object-position: center 18%;
}

.play-hit {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nba-copy {
  position: relative;
  margin-top: -78px;
  padding: 28px 18px 12px;
  background: linear-gradient(180deg, rgba(12, 92, 186, 0) 0%, rgba(12, 86, 176, 0.72) 34%, #0d56a0 68%, #0c4e94 100%);
  color: #fff;
}

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.kicker span {
  margin-right: 6px;
  letter-spacing: 0.4px;
  font-weight: 650;
}

.nba-copy h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nba-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 14px 14px;
  background: linear-gradient(180deg, #0c4e94, #0b447f);
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nba-meta { min-width: 0; flex: 1; color: #fff; }

.nba-meta p { margin: 0; }

.eyebrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.name {
  margin-top: 1px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub {
  margin-top: 1px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.get {
  border: 0;
  border-radius: 999px;
  height: 30px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.get:active { transform: scale(0.96); }

.get-glass {
  flex: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.muse { background: #e7ebf1; }

.muse-art {
  position: relative;
  height: 132px;
  background: #d5dbe6;
}

.muse-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.muse-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(231, 235, 241, 0), #e7ebf1);
}

.muse-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 14px 12px;
}

.muse-copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.muse-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: #6e6e73;
  font-size: 13px;
}

.ad {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: #64b7f6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.muse-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: none;
}

.get-muted {
  min-width: 72px;
  color: var(--ink);
  background: rgba(120, 120, 128, 0.18);
}

.iap {
  color: #8e8e93;
  font-size: 10px;
  letter-spacing: -0.1px;
}

.hot h3 {
  margin: 22px 6px 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0 4px;
}

.hot-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.hot-list li + li { box-shadow: inset 0 0.5px 0 rgba(60, 60, 67, 0.16); }

.hot-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}

.hot-icon svg { width: 30px; height: 30px; }

.hot-icon-gpt { background: radial-gradient(circle at 30% 20%, #5ee0a0, #10a37f 55%, #0b6b52); }
.hot-icon-note { background: linear-gradient(160deg, #ffe36b, #f5b942); color: #7a4b00; }
.hot-icon-music { background: linear-gradient(160deg, #ff6b8a, #ff2d55); }
.hot-icon-map { background: linear-gradient(160deg, #7dbeff, #0a84ff); }

.hot-copy { flex: 1; min-width: 0; }

.hot-name, .hot-dev { margin: 0; }

.hot-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.hot-dev {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.get-line {
  flex: none;
  min-width: 64px;
  height: 28px;
  color: var(--blue);
  background: rgba(120, 120, 128, 0.14);
  font-size: 15px;
}

.empty {
  padding: 48px 12px;
}

.empty h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.empty p { margin: 0; color: var(--muted); }

.device::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background: var(--bg);
  z-index: 4;
  pointer-events: none;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(410px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.tabs {
  flex: 1;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.tab, .search {
  border: 0;
  background: transparent;
  color: #8e8e93;
  cursor: pointer;
}

.tab {
  flex: 1;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 0 1px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: -0.1px;
}

.tab svg { width: 23px; height: 23px; }

.tab.is-active {
  color: var(--blue);
  background: #ececf1;
}

.search {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1e;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.search svg { width: 26px; height: 26px; }

.search:active, .tab:active { opacity: 0.7; }

@media (min-width: 800px) {
  body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #e4e4e8;
  }

  .device {
    width: 390px;
    height: 844px;
    min-height: 0;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  }

  .scroll {
    height: 100%;
    overflow: auto;
  }

  .tabbar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
    transform: none;
  }
}
