:root {
  color-scheme: dark;
  --bg: #08080c;
  --bg-soft: #0d0d13;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f7;
  --muted: #8a8b98;
  --brand: #00d26a;
  --blue: #00a3ff;
  --hot: #ff5a3c;
  --gold: #ffc24b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.hidden { display: none !important; }

#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------------------ 启动 / 卡密 */

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(0, 210, 106, 0.18), transparent 60%),
    radial-gradient(90% 60% at 100% 20%, rgba(0, 163, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0a0a10 0%, #06060a 100%);
  display: flex;
  justify-content: center;
}

.gate-body {
  width: 100%;
  max-width: 480px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.gate-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gate-mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #5ef0a4;
  background: linear-gradient(150deg, rgba(0, 210, 106, 0.28), rgba(0, 163, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 210, 106, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
}
.gate-mark svg { width: 27px; height: 27px; }

.gate .logo {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #ffffff, #7bf0c0 40%, #4fc3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate .slogan {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.gate-card {
  margin-top: 34px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 106, 0.7), rgba(0, 163, 255, 0.55), transparent);
}

.gate-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.gate-tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: #9ff5c8;
  background: rgba(0, 210, 106, 0.13);
  border: 1px solid rgba(0, 210, 106, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}
.gate-badge {
  font-size: 11px;
  letter-spacing: 1px;
  color: #cfe0ff;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.32);
  border-radius: 999px;
  padding: 3px 10px;
}

.gate-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gate-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.key-wrap {
  position: relative;
  margin-top: 18px;
}
.key-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6c6f80;
  pointer-events: none;
}

.keyinput {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.4);
  outline: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.keyinput:focus {
  border-color: rgba(0, 210, 106, 0.75);
  box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.14);
}
.keyinput::placeholder { color: #5c5d6a; font-weight: 400; letter-spacing: 0; text-transform: none; }

.primary {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #04120c;
  background: linear-gradient(100deg, #00e07a, #00b8a0);
  box-shadow: 0 8px 24px rgba(0, 210, 106, 0.28);
  transition: transform 0.15s, filter 0.15s;
}
.primary:active { transform: scale(0.985); filter: brightness(0.95); }
.primary:disabled { opacity: 0.6; }

.gate-tip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.gate-foot {
  margin-top: 34px;
  text-align: center;
  font-size: 11px;
  color: #4d4e5b;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------- 顶部栏 */

.shell {
  display: block;
  min-height: 100vh;
  padding-bottom: 78px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #ffffff, #63edb7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar .brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--brand), var(--blue));
  box-shadow: 0 0 10px rgba(0, 210, 106, 0.8);
}

.topbar .ttl {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .sp { width: 34px; }

.iconbtn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn.back { font-size: 20px; padding-bottom: 3px; }

/* ---------------------------------------------------------------- 首页 */

.view { padding: 14px 0 20px; }

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #cfd6e2;
  background: rgba(0, 210, 106, 0.08);
  border: 1px solid rgba(0, 210, 106, 0.22);
}
.notice-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.7);
}

.hero {
  margin: 0 14px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 236px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 8, 0.32) 0%, rgba(4, 4, 8, 0.1) 32%, rgba(4, 4, 8, 0.66) 68%, rgba(4, 4, 8, 0.96) 100%);
}

.slide .sinfo {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.slide .stag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(100deg, var(--hot), #ff8a3c);
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.32);
}

.slide .stitle {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide .smeta {
  margin-top: 6px;
  font-size: 12px;
  color: #d5d7e2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.slide .srow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.slide .sscore {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.slide .spill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #04120c;
  background: linear-gradient(100deg, #00e07a, #00bfa0);
  box-shadow: 0 8px 20px rgba(0, 210, 106, 0.32);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s;
}
.slide .spill:active { transform: scale(0.95); }
.slide .spill svg { width: 12px; height: 12px; }

.dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 5px;
}
.dot {
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  transition: all 0.25s;
}
.dot.active { width: 20px; background: var(--brand); box-shadow: 0 0 10px rgba(0, 210, 106, 0.6); }

.chips {
  display: flex;
  gap: 8px;
  padding: 18px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  color: #c8c9d4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.chip.active {
  color: #04120c;
  font-weight: 600;
  background: linear-gradient(100deg, #00e07a, #00b9a6);
  border-color: transparent;
}
.chip:disabled { color: #6c6e7c; background: rgba(255, 255, 255, 0.03); border-style: dashed; }

.more-wrap { padding: 20px 16px 34px; }
.more-wrap .chip { width: 100%; text-align: center; }

.sec { margin-top: 26px; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.sec-title {
  position: relative;
  padding-left: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), #00a3ff);
}

.sec-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: #a9abba;
  background: rgba(255, 255, 255, 0.03);
}
.more:active { transform: scale(0.96); }

.hscroll {
  display: flex;
  gap: 12px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 118px;
  width: 118px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s;
}
.card:active { transform: scale(0.95); opacity: 0.9; }

.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a22;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-img .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(6, 6, 10, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
}

.card-img .score-pill {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  background: rgba(6, 6, 10, 0.62);
  backdrop-filter: blur(6px);
}

.card-name {
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta b { color: var(--gold); font-weight: 600; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
  padding: 0 16px;
}
.grid3 .card { width: auto; flex: none; }

.rank { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.rank-row:active { transform: scale(0.98); }

.rank-no {
  flex: 0 0 22px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  color: #3f404d;
}
.rank-row:nth-child(1) .rank-no { color: #ff4d4f; }
.rank-row:nth-child(2) .rank-no { color: #ff8c3c; }
.rank-row:nth-child(3) .rank-no { color: var(--gold); }

.rank-thumb {
  flex: 0 0 52px;
  height: 72px;
  border-radius: 9px;
  overflow: hidden;
  background: #1a1a22;
  border: 1px solid var(--line);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rank-main { flex: 1; min-width: 0; }
.rank-title { font-size: 14px; font-weight: 600; }
.rank-sub { margin-top: 4px; font-size: 11px; color: var(--muted); }

.rank-score {
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
}

/* ---------------------------------------------------------------- 详情 */

.dhero {
  position: relative;
  overflow: hidden;
  padding: 26px 16px 22px;
  border-bottom: 1px solid var(--line);
}

.dhero-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.4) saturate(1.25);
  transform: scale(1.15);
}

.dhero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.4), rgba(8, 8, 12, 0.96));
}

.dhero-inner {
  position: relative;
  display: flex;
  gap: 16px;
}

.dpic {
  flex: 0 0 112px;
  width: 112px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  background-size: cover;
  background-position: center;
}
.dpic img { width: 100%; height: 100%; object-fit: cover; }

.dmain { flex: 1; min-width: 0; padding-top: 8px; }

.dtitle {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.3px;
}

.dmeta {
  margin-top: 9px;
  font-size: 12px;
  color: #b7b8c4;
  overflow: hidden;
}

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 800;
}
.score b { font-size: 22px; font-style: italic; }
.score span { font-size: 10px; color: var(--muted); }

.dbody { padding: 18px 16px 0; }

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #04120c;
  background: linear-gradient(100deg, #00e07a, #00bfa0);
  box-shadow: 0 10px 26px rgba(0, 210, 106, 0.28);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-play:active { transform: scale(0.98); }
.btn-play svg { width: 17px; height: 17px; }

.syn {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #a9aab7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.syn.open { -webkit-line-clamp: unset; display: block; }

.syn-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--brand);
}

.sec-mini {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.srctabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.srctabs::-webkit-scrollbar { display: none; }

.srctab {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 12px;
  color: #b9bac6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.16s;
}
.srctab:active { transform: scale(0.96); }
.srctab.active {
  color: #04120c;
  font-weight: 700;
  background: linear-gradient(100deg, #00e07a, #00b9a6);
  border-color: transparent;
}

.eps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.ep {
  height: 44px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #cfd0da;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.ep:active { transform: scale(0.95); }
.ep.active {
  color: #04120c;
  font-weight: 700;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(0, 210, 106, 0.28);
}

.cat-tip { padding: 20px 16px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- 播放 */

.stage {
  background: #000;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.stage video { width: 100%; height: 100%; background: #000; display: block; object-fit: contain; }

.pinfo { padding: 16px; border-bottom: 1px solid var(--line); }
.pinfo h1 { margin: 0; font-size: 17px; font-weight: 700; }
.pinfo .sub { margin-top: 6px; font-size: 12px; color: var(--muted); }

.tips {
  margin: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------------- 搜索 */

.searchwrap { padding: 4px 16px 0; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.searchbar svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.searchbar input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 14px;
}
.searchbar input::placeholder { color: #62636f; }

.search-go {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #04120c;
  background: linear-gradient(100deg, #00e07a, #00b9a6);
}

.hot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px 16px 0;
}
.hotword {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: #c6c7d2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 我的 */

.profile {
  margin: 18px 16px 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(0, 210, 106, 0.16), transparent 55%),
    linear-gradient(160deg, #171a20, #12121a);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.profile .ptitle { font-size: 18px; font-weight: 700; }
.profile .pkey {
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: #dfe1ea;
  word-break: break-all;
}

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.pcell {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.pcell .k { font-size: 11px; color: var(--muted); }
.pcell .v { margin-top: 4px; font-size: 14px; font-weight: 600; }

.mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #d6d7e0;
}
.mrow span { color: var(--muted); font-size: 12px; }

.logout {
  display: block;
  width: calc(100% - 32px);
  margin: 26px 16px 0;
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
  color: #ff8b8b;
  background: rgba(255, 90, 60, 0.1);
  border: 1px solid rgba(255, 90, 60, 0.3);
}

/* ------------------------------------------------------------ 通用状态 */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 13px;
}

.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  padding: 64px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty b { display: block; margin-bottom: 6px; color: #cfd0da; font-size: 15px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 120;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(28, 28, 36, 0.96);
  border: 1px solid var(--line-strong);
  color: #f0f1f5;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ 底部导航 */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  display: flex;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}

.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0 3px;
  font-size: 10px;
  font-weight: 500;
  color: #6f7080;
  transition: color 0.2s, transform 0.18s;
}
.tabbar a:active { transform: scale(0.93); }
.tabbar svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--brand); font-weight: 700; }
.tabbar a.active svg { filter: drop-shadow(0 0 10px rgba(0, 210, 106, 0.5)); }

@media (max-width: 360px) {
  .grid3 { gap: 14px 10px; }
  .card { flex-basis: 100px; width: 100px; }
}

/* ------------------------------------------------------------ 视觉收尾 */

::selection { background: rgba(0, 210, 106, 0.3); color: #fff; }

.topbar {
  padding-top: env(safe-area-inset-top);
  height: calc(54px + env(safe-area-inset-top));
}

.searchbar:focus-within { border-color: rgba(0, 210, 106, 0.55); }
.searchbar:focus-within svg { color: var(--brand); }

:focus-visible {
  outline: 2px solid rgba(0, 210, 106, 0.6);
  outline-offset: 2px;
  border-radius: 8px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.view > .hero,
.view > .chips,
.view > .sec,
.view > .grid3,
.view > .dhero,
.view > .dbody,
.view > .stage,
.view > .pinfo,
.view > .profile,
.view > .searchwrap {
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view > .sec:nth-of-type(2) { animation-delay: 0.05s; }
.view > .sec:nth-of-type(3) { animation-delay: 0.1s; }
.view > .sec:nth-of-type(4) { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------- 电脑端全屏自适应 */

@media (min-width: 768px) {
  :root { --page-pad: clamp(18px, 2.6vw, 44px); }

  #app {
    max-width: none;
    box-shadow: none;
  }

  .topbar { height: 64px; padding: 0 var(--page-pad); }
  .topbar .brand { font-size: 22px; }
  .topbar .ttl { font-size: 19px; }
  .iconbtn { width: 38px; height: 38px; }

  .view {
    max-width: 1680px;
    margin: 0 auto;
    padding: 18px 0 30px;
  }

  .notice { margin: 12px var(--page-pad) 16px; font-size: 13px; }

  .hero { margin: 0 var(--page-pad); border-radius: 24px; }
  .slide { height: clamp(280px, 26vw, 440px); }
  .slide .sinfo { left: clamp(20px, 2.6vw, 44px); right: auto; bottom: clamp(22px, 2.4vw, 40px); max-width: min(680px, 62%); }
  .slide .stitle { font-size: clamp(24px, 2.1vw, 36px); }
  .slide .smeta { margin-top: 8px; font-size: 13px; }
  .slide .spill { height: 40px; padding: 0 24px; font-size: 14px; }
  .dots { right: var(--page-pad); bottom: 22px; }
  .dot { width: 8px; height: 5px; }
  .dot.active { width: 26px; }

  .chips { padding: 20px var(--page-pad) 6px; gap: 10px; }
  .chip { font-size: 14px; padding: 8px 18px; }

  .sec { margin-top: 34px; }
  .sec-head { padding: 0 var(--page-pad); margin-bottom: 16px; }
  .sec-title { font-size: 21px; }
  .sec-title::before { height: 18px; margin-top: -9px; }

  .hscroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px 18px;
    padding: 0 var(--page-pad) 8px;
    overflow: visible;
  }
  .card { width: auto; flex: none; }
  .card:hover { transform: translateY(-4px); }
  .card-name { font-size: 15px; }
  .card-meta { font-size: 12px; }

  .grid3 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px 18px;
    padding: 0 var(--page-pad);
  }

  .rank { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--page-pad); }
  .rank-row { padding: 12px 14px; }
  .rank-title { font-size: 15px; }

  .dhero { padding: clamp(24px, 3vw, 44px) var(--page-pad) clamp(22px, 2.4vw, 34px); }
  .dhero-inner { max-width: 1120px; margin: 0 auto; gap: 26px; }
  .dpic { flex-basis: clamp(150px, 13vw, 200px); width: clamp(150px, 13vw, 200px); }
  .dtitle { font-size: clamp(26px, 2.4vw, 38px); }
  .dmeta { font-size: 14px; }
  .score b { font-size: 26px; }

  .dbody { max-width: 1120px; margin: 0 auto; padding: 22px var(--page-pad) 0; }
  .btn-play { width: 280px; height: 54px; font-size: 16px; }
  .btn-play:hover { filter: brightness(1.05); }
  .syn { max-width: 940px; font-size: 14px; }
  .eps { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }

  .stage {
    width: min(1180px, calc(100% - 2 * var(--page-pad)));
    margin: 16px auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
  .pinfo { max-width: 1180px; margin: 0 auto; padding: 20px var(--page-pad); }
  .pinfo h1 { font-size: 22px; }
  .tips { max-width: 1180px; margin: 18px auto; }

  .searchwrap { max-width: 820px; margin: 0 auto; padding: 18px var(--page-pad) 0; }
  .searchbar { height: 50px; }
  .hot { max-width: 820px; margin: 0 auto; padding: 20px var(--page-pad) 0; }

  .profile { max-width: 920px; margin: 26px auto 0; padding: 26px; }
  .pgrid { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
  .mrow { max-width: 920px; margin: 0 auto; }
  .logout { max-width: 920px; margin: 26px auto 0; }
  .logout:hover { background: rgba(255, 90, 60, 0.18); }
  .cat-tip { max-width: 920px; margin: 0 auto; padding: 20px var(--page-pad); }

  .tabbar {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    justify-content: center;
    gap: 10px;
  }
  .tabbar a { flex: 0 0 140px; padding: 6px 0 4px; font-size: 11px; border-radius: 10px; }
  .tabbar a:hover { color: #fff; }
  .tabbar svg { width: 22px; height: 22px; }
  .shell { padding-bottom: 92px; }

  .more-wrap { padding: 26px var(--page-pad) 40px; max-width: 1680px; margin: 0 auto; }
}
