* { box-sizing: border-box; }
body { margin: 0; background: #0d0d14; color: #e8e8f0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { background: #15151f; border-bottom: 1px solid #26263a; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo span { color: #8b5cf6; }
.search { flex: 1; display: flex; min-width: 220px; }
.search input { flex: 1; padding: 9px 12px; border: 1px solid #33334d; border-radius: 8px 0 0 8px; background: #0d0d14; color: #fff; outline: none; }
.search input:focus { border-color: #8b5cf6; }
.search button { padding: 9px 16px; border: 0; border-radius: 0 8px 8px 0; background: #8b5cf6; color: #fff; font-weight: 700; cursor: pointer; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 8px; color: #b9b9d0; font-size: 14px; }
.nav a:hover { background: #23233a; color: #fff; }
.nav a.on { background: #8b5cf6; color: #fff; }
main { padding: 20px 0 40px; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
.muted { color: #9a9ab5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { display: block; background: #15151f; border: 1px solid #26263a; border-radius: 12px; overflow: hidden; }
.card:hover { border-color: #8b5cf6; }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; background: #1c1c2b; }
.noimg { width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; color: #666; background: #1c1c2b; }
.card-t { padding: 10px 12px; }
.card-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.desc { margin: 6px 0 0; font-size: 12px; color: #9a9ab5; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips a { padding: 7px 14px; border-radius: 999px; background: #1c1c2b; border: 1px solid #33334d; font-size: 13px; }
.chips a:hover { border-color: #8b5cf6; color: #fff; }
.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid #26263a; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-head { display: flex; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.watch-head img { width: 150px; border-radius: 12px; border: 1px solid #26263a; }
.watch-head .info { flex: 1; min-width: 220px; }
.watch-head h1 { margin: 4px 0 8px; }
.eps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.eps a { min-width: 44px; text-align: center; padding: 8px 12px; border-radius: 8px; background: #1c1c2b; border: 1px solid #33334d; font-size: 14px; }
.eps a:hover { border-color: #8b5cf6; }
.eps a.on { background: #8b5cf6; border-color: #8b5cf6; color: #fff; font-weight: 700; }
.empty { padding: 40px 0; text-align: center; color: #9a9ab5; }
.foot { border-top: 1px solid #26263a; padding: 18px 0 28px; color: #77778f; font-size: 13px; }
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .watch-head img { width: 110px; }
}
