* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #111; color: #ddd; }
a { color: #ddd; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 16px; background: #000; }
.logo { font-weight: bold; font-size: 20px; }
nav { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
#search { display: flex; gap: 4px; }
input, button { padding: 6px 8px; font: inherit; border: 1px solid #444; background: #222; color: #ddd; }
button { cursor: pointer; }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #222; display: block; }
.card .t { font-size: 14px; margin-top: 4px; }
.card .s { font-size: 12px; color: #888; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 20px 0; }
.detail { display: flex; flex-wrap: wrap; gap: 16px; }
.detail img { width: 200px; max-width: 100%; }
.detail .info { flex: 1; min-width: 260px; }
.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; margin-bottom: 12px; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.eps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.eps a { padding: 4px 10px; border: 1px solid #444; background: #222; }
.eps a.on { background: #ddd; color: #111; }
