* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body { background: #0f0f14; color: #e8e8ee; font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); transition: background .3s; }
.topbar.solid { background: #14141b; box-shadow: 0 2px 12px rgba(0,0,0,.5); }
.topbar-inner { max-width: 1400px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 32px; padding: 14px 32px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; letter-spacing: .5px; color: #fff; flex-shrink: 0; }
.logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
.cat-pick { display: none; min-width: 0; }
.cat-pick select { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 16px; padding: 7px 12px; font-size: 14px; width: 100%; max-width: 100%; }
.cat-pick option { color: #222; }
.nav a { color: #c8c8d2; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { color: #fff; border-bottom-color: #ff7a18; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search { display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 20px; padding: 6px 14px; }
.search input { background: none; border: 0; outline: 0; color: #fff; width: 200px; font-size: 14px; }
.btn-vip { background: linear-gradient(135deg, #f7d27b, #e0a93b); color: #3b2500; font-weight: 700; padding: 6px 16px; border-radius: 16px; font-size: 14px; }
.btn-login { border: 1px solid rgba(255,255,255,.4); padding: 6px 16px; border-radius: 16px; font-size: 14px; }

.hero { position: relative; height: 620px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.mobile { display: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,12,.82) 0%, rgba(8,8,12,.45) 42%, rgba(8,8,12,.12) 100%); }
.hero-content { position: relative; max-width: 1400px; height: 100%; margin: 0 auto; padding: 110px 32px 70px; display: flex; align-items: center; }
.hero-text { max-width: 560px; }
.hero-tag { display: inline-block; background: #ff2e63; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; }
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 12px; color: #fff; }
.hero-meta { color: #f7d27b; margin-bottom: 14px; }
.hero-desc { color: #c8c8d2; line-height: 1.6; margin-bottom: 26px; }
.hero-buttons { display: flex; gap: 14px; }
.btn-play { background: linear-gradient(135deg, #ff7a18, #ff2e63); color: #fff; font-weight: 700; padding: 12px 30px; border-radius: 26px; }
.btn-ghost { background: rgba(255,255,255,.15); padding: 12px 26px; border-radius: 26px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); transition: width .3s; }
.dot.active { width: 26px; background: #ff7a18; }

.content { max-width: 1400px; margin: 0 auto; padding: 20px 32px 40px; }
.row { margin-bottom: 36px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.row-head h2 { font-size: 22px; color: #fff; }
.more { color: #9a9aa8; font-size: 14px; }
.row { min-width: 0; }
.cards { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc((100% - 5 * 16px) / 6); min-width: 140px; }
.card .thumb { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: #1c1c25; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; color: #fff; background: #ff2e63; }
.badge-vip { background: linear-gradient(135deg, #f7d27b, #e0a93b); color: #3b2500; }
.badge-new { background: #19b36b; }
.eps { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 8px 6px; font-size: 12px; text-align: right; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.play-ico { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,122,24,.9); color: #fff; opacity: 0; transition: .3s; }
.card:hover .play-ico { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-title { margin-top: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.footer { background: #0a0a0e; border-top: 1px solid #1f1f28; padding: 36px 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; color: #7a7a88; font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .nav, .search { display: none; }
  .cat-pick { display: block; flex: 1 1 auto; }
  .topbar-inner { gap: 10px; padding: 10px 12px; }
  .logo { font-size: 18px; }
  .logo img { width: 30px; height: 30px; }
  .top-actions { gap: 8px; flex-shrink: 0; }
  .btn-vip, .btn-login { padding: 6px 12px; white-space: nowrap; }
  .card { flex-basis: calc((100% - 3 * 12px) / 3.2); min-width: 120px; }
  .cards { gap: 12px; }
  .hero { height: 520px; }
  .hero h1 { font-size: 36px; }
  .hero-content { padding: 96px 20px 56px; }
  .hero-text { max-width: 100%; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,8,12,.2) 0%, rgba(8,8,12,.78) 100%); }
  .hero-bg.desktop.has-mobile { display: none; }
  .hero-bg.mobile { display: block; }
}
@media (max-width: 600px) {
  .topbar-inner, .content { padding-left: 12px; padding-right: 12px; }
  .card { flex-basis: 46%; min-width: 0; }
  .cards { gap: 10px; }
  .hero { height: 78vw; min-height: 420px; max-height: 560px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-buttons { flex-wrap: wrap; }
  .btn-play, .btn-ghost { padding: 10px 18px; }
}
