:root {
  --bg: #0d0d10;
  --bg2: #16161c;
  --card: #1c1c24;
  --text: #ececef;
  --muted: #9a9aa6;
  --accent: #ff7a1a;
  --accent2: #ffb066;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  background: linear-gradient(180deg, rgba(13,13,16,.96), rgba(13,13,16,.7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff10;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 2px; }
.logo { font-size: 24px; }
.nav { display: flex; gap: 6px; margin-left: 8px; flex: 1; }
.nav button {
  background: none; border: 0; color: var(--muted); font-size: 15px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.nav button:hover { color: var(--text); }
.nav button.on { color: #fff; background: var(--accent); font-weight: 600; }
.search input {
  background: #ffffff12; border: 1px solid #ffffff18; color: var(--text);
  padding: 9px 16px; border-radius: 999px; width: 240px; font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative; height: 420px; display: flex; align-items: flex-end;
  padding: 40px; margin: 0 0 8px;
  border-radius: 0 0 24px 24px; overflow: hidden;
}
.hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero .hero-body { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: 46px; margin: 0 0 12px; text-shadow: 0 2px 20px #000a; }
.hero p { font-size: 16px; color: #e6e6ea; line-height: 1.7; margin: 0 0 20px; text-shadow: 0 1px 8px #000; }
.hero .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.badge { background: #ffffff1f; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.badge.score { color: #ffce7a; font-weight: 700; }
.hero .grad { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #000c 0%, #0006 45%, transparent 75%),
              linear-gradient(0deg, var(--bg) 2%, transparent 40%); }

.btn {
  border: 0; border-radius: 8px; padding: 11px 26px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.btn.play { background: var(--accent); color: #fff; }
.btn.play:hover { background: #ff8c3a; }
.btn.ghost { background: #ffffff20; color: #fff; margin-left: 10px; }

/* 行 */
.rows { padding: 8px 32px 60px; }
.row { margin-bottom: 34px; }
.row h2 { font-size: 20px; margin: 0 0 14px; font-weight: 700; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 16px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.track::-webkit-scrollbar { height: 8px; }
.track::-webkit-scrollbar-thumb { background: #ffffff20; border-radius: 8px; }

.card { scroll-snap-align: start; cursor: pointer; transition: transform .18s; }
.card:hover { transform: translateY(-6px); }
.poster {
  position: relative; height: 270px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px; color: #fff;
  box-shadow: 0 8px 24px #0007;
}
.poster .p-title { position: relative; z-index: 2; font-weight: 800; font-size: 19px; line-height: 1.3;
  text-shadow: 0 2px 10px #000b; }
.poster .p-score { position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #000000aa; color: #ffce7a; font-weight: 700; font-size: 13px;
  padding: 3px 8px; border-radius: 6px; }
.poster .p-grad { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, #000b, transparent 55%); }
.card .c-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: #000a;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg2); border-radius: 16px; max-width: 760px; width: 100%;
  overflow: hidden; box-shadow: 0 30px 80px #000c; animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.m-hero { height: 260px; position: relative; display: flex; align-items: flex-end; padding: 24px; }
.m-hero .m-grad { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg2), transparent 60%); }
.m-hero h2 { position: relative; margin: 0; font-size: 32px; text-shadow: 0 2px 12px #000; }
.m-close { position: absolute; top: 14px; right: 16px; z-index: 3; background: #000000aa;
  border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.m-body { padding: 22px 24px 26px; }
.m-meta { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.m-desc { color: #ccccd4; line-height: 1.8; margin-bottom: 20px; }
.player { background: #000; border-radius: 12px; aspect-ratio: 16/9; display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); }
.player .big { font-size: 54px; }

.foot { text-align: center; color: var(--muted); padding: 30px; border-top: 1px solid #ffffff10; font-size: 14px; }

@media (max-width: 700px) {
  .topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .search input { width: 140px; }
  .hero { height: 340px; padding: 22px; }
  .hero h1 { font-size: 32px; }
  .rows { padding: 8px 16px 50px; }
}
