:root {
  --bg: #141414;
  --bg-2: #181818;
  --bg-3: #2a2a2a;
  --text: #fff;
  --dim: #d2d2d2;
  --muted: #a3a3a3;
  --red: #e50914;
  --line: rgba(255, 255, 255, .14);
  --header: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { scrollbar-color: #3a3a3a var(--bg); }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { border: 0; display: block; }

::selection { background: var(--red); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header) + var(--safe-t));
  padding: var(--safe-t) 4vw 0;
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .28) 70%, transparent);
  transition: background .25s var(--ease);
}

.top.solid,
html[data-boot="page"] .top,
body[data-view="kind"] .top,
body[data-view="group"] .top,
body[data-view="search"] .top,
body[data-view="page"] .top,
body.play .top {
  background: var(--bg);
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  color: inherit;
}

.logo-word {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.logo-tv {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  padding: 3px 4px 2px;
  border: 1.5px solid #fff;
  border-radius: 3px;
}

.logo:hover .logo-word { color: #f6121d; }

.nav {
  display: flex;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.nav a {
  flex: 0 0 auto;
  color: #e5e5e5;
  font-size: 14px;
  opacity: .72;
}

.nav a:hover,
.nav a[aria-current="true"] { opacity: 1; font-weight: 700; }

.spacer { flex: 1; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  opacity: .9;
}

.back-link:hover { opacity: 1; }

.account-btn {
  flex: 0 0 auto;
  max-width: 96px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-btn:hover { background: #fff; color: #111; }

.search {
  position: relative;
  margin-left: auto;
  width: 230px;
  flex: 0 0 auto;
  transition: width .25s var(--ease);
}

.search-btn {
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 0;
  width: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 1;
}

.search input {
  width: 100%;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 0 12px 0 34px;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder { color: #b3b3b3; }
.search input:focus { outline: none; border-color: #fff; background: #000; }

@media (min-width: 761px) {
  .search:focus-within { width: 300px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.btn.light {
  height: 42px;
  padding: 0 20px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.btn.light:hover { background: rgba(255, 255, 255, .78); }

.btn.ghost {
  height: 42px;
  padding: 0 18px;
  background: rgba(109, 109, 110, .7);
  color: #fff;
  font-weight: 600;
}

.btn.ghost:hover { background: rgba(109, 109, 110, .45); }

.btn.line {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  font-weight: 600;
  font-size: 14px;
}

.btn.line:hover { background: #fff; color: #111; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }

.linkish {
  margin-top: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.linkish:hover { text-decoration: underline; }

/* ---------- 首页海报 ---------- */
html[data-boot="page"] #app,
body[data-view="kind"] #app,
body[data-view="group"] #app,
body[data-view="search"] #app,
body[data-view="page"] #app {
  padding-top: calc(var(--header) + var(--safe-t));
}

body[data-view="home"] #app { padding-top: 0; }

.billboard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 560px;
  height: 80vh;
  max-height: 860px;
  padding: calc(var(--header) + var(--safe-t) + 24px) 4vw 48px;
  overflow: hidden;
}

.billboard-bg {
  position: absolute;
  inset: -28px;
  background-position: center 20%;
  background-size: cover;
  filter: blur(26px) saturate(1.15) brightness(.55);
  transform: scale(1.06);
}

.billboard-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, .62) 0%, rgba(20, 20, 20, .12) 22%, rgba(20, 20, 20, .08) 46%, rgba(20, 20, 20, .62) 76%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, .5) 34%, rgba(20, 20, 20, .12) 62%, rgba(20, 20, 20, .28) 100%);
  pointer-events: none;
}

.billboard-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 26px;
  width: min(980px, 100%);
}

.billboard-poster {
  width: min(230px, 26vw);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  flex: 0 0 auto;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}

.eyebrow::before {
  content: "";
  width: 3px;
  height: 1em;
  background: var(--red);
}

.billboard-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.billboard .synopsis {
  margin-top: 14px;
  color: #f2f2f2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
  max-width: 62ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.hero-picks {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.hero-picks .pick {
  width: 48px;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .6;
  background: var(--bg-3);
}

.hero-picks .pick img,
.hero-picks .pick span {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #888;
}

.hero-picks .pick[aria-current="true"] {
  border-color: #fff;
  opacity: 1;
}

/* ---------- 横滑片单 ---------- */
.rows { position: relative; z-index: 2; padding-bottom: calc(36px + var(--safe-b)); }
.billboard + .rows { margin-top: -18px; }

.row-block { margin-top: 10px; }

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4vw;
}

.row-head h2 { font-size: 18px; font-weight: 700; }
.row-head h2 a:hover { color: #e5e5e5; }

.more-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
}

.row-view { position: relative; }

.scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 4vw 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.scroller::-webkit-scrollbar { display: none; }
.scroller.top10 { align-items: flex-start; }

.row-nav {
  position: absolute;
  top: 10px;
  bottom: 18px;
  width: 58px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  display: grid;
  place-items: center;
}

.row-nav.prev { left: 0; background: linear-gradient(90deg, rgba(20, 20, 20, .9), transparent); }
.row-nav.next { right: 0; background: linear-gradient(270deg, rgba(20, 20, 20, .9), transparent); }
.row-nav:disabled { opacity: 0 !important; pointer-events: none; }

.poster {
  flex: 0 0 auto;
  width: 148px;
  min-width: 0;
  scroll-snap-align: start;
  color: #e5e5e5;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
}

.poster-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity .2s linear, transform .45s var(--ease);
}

.poster-frame img.is-in { opacity: 1; }

.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #5c5c5c;
}

.badge {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .75);
  color: #46d369;
  font-size: 12px;
  font-weight: 700;
}

.row-wait { color: var(--muted); font-size: 13px; padding: 28px 0; }

.poster-name {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  min-height: 1.15em;
  margin-top: 2px;
  color: #8c8c8c;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rank-num {
  font-family: Impact, Haettenschweiler, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 122px;
  line-height: .76;
  color: #141414;
  -webkit-text-stroke: 2px #6e6e6e;
  width: 72px;
  text-align: right;
  flex: 0 0 auto;
  margin: 22px -26px 0 0;
  user-select: none;
  pointer-events: none;
}

.rank-num.ten { width: 118px; font-size: 104px; }
.rank-item .poster { width: 132px; }

.wide-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
  scroll-snap-align: start;
}

.wide-card > a { position: absolute; inset: 0; }
.wide-card img { width: 100%; height: 100%; object-fit: cover; }

.wide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .82));
  pointer-events: none;
}

.wide-text {
  position: absolute;
  left: 10px;
  right: 28px;
  bottom: 10px;
  pointer-events: none;
}

.wide-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wide-ep { display: block; margin-top: 2px; color: #ddd; font-size: 12px; }

.wide-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .25);
}

.wide-bar i { display: block; height: 100%; background: var(--red); }

.wide-card .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
}

.retry {
  margin: 12px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--bg-3);
  color: #ddd;
}

/* ---------- 分类页 / 搜索 ---------- */
.page { min-height: 100vh; }

.page-title {
  margin: 8px 4vw 6px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.filters {
  position: sticky;
  top: calc(var(--header) + var(--safe-t));
  z-index: 15;
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 0 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4vw;
}

.filter-label {
  flex: 0 0 36px;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chips a {
  flex: 0 0 auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  background: #2a2a2a;
  color: #e5e5e5;
  font-size: 14px;
}

.filter-chips a:hover { color: #fff; }
.filter-chips a[aria-current="true"] { background: #fff; color: #111; font-weight: 700; }
.filter-chips a[aria-current="true"]:hover { color: #111; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 8px;
  padding: 8px 4vw 28px;
}

.grid .poster { width: auto; }

.hint { color: var(--muted); text-align: center; padding: 28px 16px; font-size: 15px; }
.hint.left { text-align: left; padding: 4px 4vw 8px; }

.pager { display: flex; justify-content: center; padding: 4px 4vw calc(28px + var(--safe-b)); }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #c8c8c8;
  font-size: 14px;
}

.meta-line .sep { margin: 0 8px; color: #6a6a6a; }

.chip {
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  padding: 0 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #fff;
  letter-spacing: .04em;
}

.score-inline { color: #46d369; font-weight: 700; }

.synopsis {
  margin-top: 12px;
  max-width: 72ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.synopsis.open { display: block; -webkit-line-clamp: unset; }

/* ---------- 播放页 ---------- */
.stage {
  padding: calc(var(--header) + var(--safe-t) + 8px) 4vw 0;
}

.player-wrap {
  position: relative;
  width: min(1120px, 100%, calc((100vh - var(--header) - var(--safe-t) - 168px) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .45);
}

.player-wrap.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 2;
}

.play-body {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 4vw calc(48px + var(--safe-b));
}

.play-body h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.status { margin-top: 8px; color: var(--muted); font-size: 14px; }

.block-title {
  margin: 26px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.block-title span {
  margin-left: 8px;
  color: #8c8c8c;
  font-size: 14px;
  font-weight: 500;
}

.fine { margin-top: 8px; color: #8d8d8d; font-size: 13px; }

.q { display: flex; flex-wrap: wrap; gap: 8px; }

.q button,
.ep-ranges button,
.eps button {
  border-radius: 4px;
  background: var(--bg-3);
  color: #eee;
}

.q button { height: 32px; padding: 0 12px; font-size: 13px; }
.q button[aria-current="true"],
.eps button[aria-current="true"] {
  background: #fff;
  color: #111;
  font-weight: 700;
}

.ep-ranges {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}

.ep-ranges::-webkit-scrollbar { display: none; }

.ep-ranges button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  color: #bdbdbd;
  border: 1px solid transparent;
}

.ep-ranges button[aria-current="true"] {
  color: #fff;
  border-color: #fff;
  font-weight: 700;
  background: transparent;
}

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.eps.loose { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

.eps button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remarks { color: #fff; }

/* ---------- 抽屉 / 提示 ---------- */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(20px + var(--safe-b));
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  background: rgba(24, 24, 24, .96);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  font-size: 14px;
}

body.lock { overflow: hidden; }

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .68);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  width: min(560px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  background: var(--bg-2);
  border-radius: 8px 8px 0 0;
  padding: 18px 18px calc(16px + var(--safe-b));
  box-shadow: 0 -16px 70px rgba(0, 0, 0, .5);
}

.sheet h2 {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 10px;
}

.sheet .close { width: 100%; margin-top: 12px; }

.src-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 4px;
}

.src-row:hover { background: #222; }
.src-row .grow { flex: 1; min-width: 0; }
.src-row .name { font-weight: 600; }
.src-row .sub { color: #999; font-size: 12px; margin-top: 2px; }

.tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 3px;
  background: #2a2a2a;
  color: #ccc;
  font-size: 12px;
}

.tag.hd { color: #46d369; background: rgba(70, 211, 105, .12); }
.tag.warn { color: #e6b209; background: rgba(230, 178, 9, .12); }

.sheet .spinner { margin: 28px auto; }

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: var(--red);
  animation: spin .8s linear infinite;
}

.player-wrap > .spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 3;
}

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

.skel {
  background: linear-gradient(100deg, #1a1a1a 20%, #2c2c2c 40%, #1a1a1a 60%);
  background-size: 200% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
  border-radius: 4px;
}

.poster-name.skel { height: 12px; width: 74%; margin-top: 8px; }
.skel.line { height: 14px; width: 46%; margin-bottom: 10px; }
.skel.line.lg { height: 34px; width: 78%; }
.skel.line.mid { width: 58%; }

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.art-video-player.art-fullscreen-web { z-index: 75 !important; }

.auth-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .72);
  padding: 20px;
}

.auth-card {
  width: min(400px, 100%);
  padding: 28px 22px 20px;
  border-radius: 8px;
  background: #181818;
}

.auth-card h2 { margin-bottom: 8px; font-size: 26px; font-weight: 800; }

.auth-card input {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 16px;
}

.auth-card .btn.light { width: 100%; height: 46px; margin-top: 16px; }
.auth-error { min-height: 1.2em; color: #e87c03; font-size: 13px; }
.auth-switch { margin-top: 16px; color: #b3b3b3; font-size: 14px; }
.auth-switch button { font-weight: 700; }

.nextbar {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 6px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.nextbar span { flex: 1; min-width: 0; font-size: 14px; }

@media (hover: hover) {
  .poster:hover .poster-frame img { transform: scale(1.06); }
  .poster:hover .poster-name { color: #fff; }
  .row-block:hover .row-nav:not(:disabled) { opacity: 1; }
  .row-block:hover .more-link { color: #fff; }
  .wide-card:hover .remove,
  .wide-card:focus-within .remove { opacity: 1; }
  .q button:not([aria-current="true"]):hover,
  .eps button:not([aria-current="true"]):hover { background: #3a3a3a; }
}

@media (hover: none) {
  .row-nav { display: none; }
  .wide-card .remove { opacity: .9; }
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .poster { width: 156px; }
  .poster-name { font-size: 14px; }
  .hero-picks {
    position: absolute;
    right: 3.2vw;
    top: 46%;
    margin: 0;
    flex-direction: column;
    transform: translateY(-50%);
  }
  .hero-picks .pick { width: 54px; }
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 26px 14px;
  }
}

@media (min-width: 900px) {
  .sheet-mask { align-items: center; }
  .sheet { border-radius: 8px; padding: 22px; }
}

@media (min-width: 1500px) {
  .grid { grid-template-columns: repeat(auto-fill, 176px); justify-content: start; }
}

@media (max-width: 760px) {
  :root { --header: 56px; }
  .logo-word { font-size: 22px; }
  .logo-tv { font-size: 9px; padding: 2px 3px 1px; }
  .top { gap: 12px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13.5px; }
  .search { width: 36px; }
  .search input {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    opacity: 0;
    padding: 0;
    border-color: transparent;
    pointer-events: none;
  }
  .top.search-open .nav { display: none; }
  .top.search-open .search { width: auto; flex: 1; }
  .top.search-open .search input {
    position: static;
    width: 100%;
    opacity: 1;
    padding: 0 12px 0 36px;
    border-color: rgba(255, 255, 255, .5);
    pointer-events: auto;
    font-size: 16px;
  }
  .billboard {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: calc(var(--header) + var(--safe-t) + 12px);
    padding-bottom: 22px;
  }
  .billboard-fade {
    background:
      linear-gradient(180deg, rgba(20, 20, 20, .75) 0%, rgba(20, 20, 20, .18) 30%, rgba(20, 20, 20, .4) 68%, var(--bg) 100%);
  }
  .billboard-inner { gap: 12px; }
  .billboard-poster { width: 104px; }
  .billboard-copy h1 { font-size: 26px; }
  .wide-card { width: 210px; }
  .rank-num { font-size: 92px; width: 54px; margin-top: 8px; }
  .rank-num.ten { width: 86px; font-size: 76px; }
  .rank-item .poster { width: 108px; }
  .player-wrap { width: 100%; border-radius: 0; box-shadow: none; }
  .stage { padding-left: 0; padding-right: 0; }
  .play-body { padding-top: 14px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .player-wrap {
    width: min(100%, calc(100vh * 16 / 9));
    max-height: calc(100vh - var(--header) - var(--safe-t));
    border-radius: 0;
  }
  .billboard { height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
