.chips { display: flex; gap: 8px; overflow: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button, .chips a {
  flex: none; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.chips .on { background: var(--yellow); color: #111; }

.h-row { display: flex; align-items: end; justify-content: space-between; margin: 8px 2px 12px; }
.h-row h2 { margin: 0; font-size: 18px; letter-spacing: -.04em; }

.banners { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 16px; }
.banner { position: relative; min-height: 148px; border-radius: 16px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), transparent 55%); }
.banner .txt { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.banner b { display: block; font-size: 16px; }
.banner span { font-size: 12px; color: #ddd; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .grid.desktop-6 { grid-template-columns: repeat(6, 1fr); } }
.poster { text-align: left; }
.poster .cover { position: relative; aspect-ratio: var(--poster-ratio); border-radius: 12px; overflow: hidden; background: var(--card); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--yellow); color: #111; font-size: 10px; font-weight: 900; }
.poster .tag.hot { background: var(--pink); color: #fff; }
.poster .ep { position: absolute; right: 6px; bottom: 6px; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; }
.poster p { margin: 7px 2px 0; font-size: 13px; font-weight: 800; line-height: 1.3; height: 2.6em; overflow: hidden; }
.poster small { display: block; margin: 2px 2px 0; color: var(--muted); font-size: 11px; }
@media (min-width: 960px) {
  .poster:hover .cover { transform: translateY(-4px); transition: transform .15s ease; }
}

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rail .poster { flex: 0 0 var(--rail-card-w); scroll-snap-align: start; }

.hero {
  position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center;
  min-height: 280px; border-radius: 20px; overflow: hidden; margin-bottom: 28px;
  padding: 24px; background: #12121a;
}
.hero-bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(28px) brightness(.28); transform: scale(1.08); pointer-events: none;
}
.hero-poster { position: relative; width: 180px; }
.hero-poster img { width: 180px; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.hero-copy { position: relative; max-width: 560px; }
.hero-copy .cat { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: #111; font-size: 11px; font-weight: 900; margin-bottom: 10px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.03em; }
.hero p { margin: 0 0 18px; color: #ddd; line-height: 1.5; max-width: 42ch; }
.hero .cta { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--yellow); color: #111; font-weight: 800; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; min-height: 0; }
  .hero-poster img, .hero-poster { width: 120px; }
}

.list { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border-radius: 14px; padding: 8px; text-align: left;
}
.row img { width: 78px; height: 104px; object-fit: cover; border-radius: 10px; }
.row h3 { margin: 0 0 6px; font-size: 15px; }
.row p { margin: 0; color: var(--muted); font-size: 12px; }
.progress { margin-top: 8px; height: 3px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--yellow); }

.me-head { margin: 8px 0 16px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #2a2110, #16161f 55%); }
.me-head h2 { margin: 0 0 4px; font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 18px; }
.stats span { color: var(--muted); font-size: 11px; }
.cell { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; background: var(--card); border-radius: 14px; margin-bottom: 8px; }

.feed { height: calc(100dvh - var(--tab)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
#app.is-desktop .feed { height: auto; max-width: 480px; margin: 0 auto; }
.feed::-webkit-scrollbar { display: none; }
.feed-item { position: relative; height: 100%; min-height: 70dvh; scroll-snap-align: start; background: #000; overflow: hidden; }
.feed-item video, .feed-item .poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-item .poster-bg { filter: brightness(.55); }
.rail-side { position: absolute; right: 10px; bottom: 88px; z-index: 3; display: grid; gap: 16px; justify-items: center; }
.rail-side button { color: #fff; font-size: 11px; font-weight: 800; display: grid; gap: 4px; place-items: center; }
.rail-side .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.feed-meta { position: absolute; left: 14px; right: 72px; bottom: 18px; z-index: 3; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.feed-meta .cat { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: #111; font-size: 11px; font-weight: 900; margin-bottom: 8px; }
.feed-meta h3 { margin: 0 0 6px; font-size: 18px; }
.hint { position: absolute; top: 46%; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; z-index: 2; pointer-events: none; }

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab) + 16px); transform: translateX(-50%);
  z-index: 40; padding: 8px 14px; border-radius: 999px; background: rgba(20,20,28,.92);
  font-size: 13px; font-weight: 700; pointer-events: none;
}
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: grid; align-items: end; }
.sheet .panel { background: #14141c; border-radius: 18px 18px 0 0; padding: 12px 12px calc(16px + var(--safe-b)); max-height: 72%; overflow: auto; }
.ep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ep-grid button { height: 40px; border-radius: 10px; background: #22222c; font-weight: 800; }
.ep-grid button.on { background: var(--yellow); color: #111; }
.badge-trailer { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pink); font-size: 11px; font-weight: 800; }
