* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}
.site-inner {
  width: 100%;
  max-width: var(--page-max, 960px);
  margin: 0 auto;
}
.site-main {
  padding: 0 0 1rem;
  min-height: 60vh;
}
a { color: inherit; text-decoration: none; transition: all 0.3s ease-in-out; }
.header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { font-weight: 700; font-size: 1.15rem; color: #fff; }
.search { flex: 1; display: flex; gap: 0.5rem; }
.search input {
  flex: 1; border: none; border-radius: 999px; padding: 0.55rem 1rem;
  background: #2a2a2a; color: #fff;
}
.search button, .btn {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 0.55rem 1rem; cursor: pointer; font-weight: 600;
  transition: all 0.3s ease-in-out;
}
.btn:hover, .search button:hover { filter: brightness(1.1); }
.btn-ghost { background: #2a2a2a; }
.nav-cats {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 1rem;
}
.nav-cats a {
  background: #f5f6f7; color: #2a2a2a; padding: 0.35rem 0.75rem;
  border-radius: 999px; white-space: nowrap; font-size: 0.85rem;
}
.nav-cats a:hover, .nav-cats a.active { background: #2a2a2a; color: #fff; }
.hot-tags {
  padding: 0 1rem 0.65rem;
}
.hot-tags-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.hot-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hot-tags .tag {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.28rem 0.65rem;
}
.hot-tags .tag:hover {
  background: var(--accent);
  color: #fff;
}
.play-hot-tags {
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 2.5rem;
}
.play-hot-tags .hot-tags-label {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.tags-page {
  max-width: none;
  margin: 0;
  padding: 0.5rem 1rem 2.5rem;
}
.tags-page-title {
  margin: 1rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.tags-page-title span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.tags-page-list {
  margin-bottom: 1.25rem;
}
.tags-page .tag i {
  margin-left: 0.3rem;
  font-style: normal;
  opacity: 0.55;
  font-size: 0.75em;
}
.tags-page .tag-hot {
  background: rgba(252, 69, 55, 0.12);
}
.tags-page .tag-random {
  background: rgba(255, 255, 255, 0.06);
}
.tags-page--search-top {
  padding-bottom: 0.25rem;
}
.search-mid-tags {
  grid-column: 1 / -1;
  padding: 0.5rem 0 0.35rem;
}
.search-mid-tags-box {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.search-mid-tags .hot-tags-list,
.search-mid-tags-box .hot-tags-list {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.search-mid-tags .tag {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.28rem 0.65rem;
}
.search-mid-ad {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.search-mid-ad.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 0.65rem;
  padding: 0.5rem;
  border-bottom: none;
}
.search-mid-ad img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.search-mid-ad-html {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}
.rank-list {
  padding: 0.25rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: none;
  margin: 0;
}
.rank-item {
  display: grid;
  grid-template-columns: 2rem 64px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s ease-in-out;
}
.rank-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.rank-no {
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.rank-no.top { color: var(--accent); font-size: 1.05rem; }
.rank-cover {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #2a2a2a;
}
.rank-title {
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.tabs { display: flex; gap: 0.75rem; padding: 0 1rem 0.5rem; flex-wrap: wrap; }
.tabs a { color: var(--muted); font-weight: 600; }
.tabs a.active { color: var(--accent); }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-m), 1fr);
  gap: 0.75rem;
  padding: 0.5rem 1rem 2rem;
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(var(--cols-d), 1fr); gap: 1rem; }
}
.v-item img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
  background: #2a2a2a; display: block;
}
.v-title {
  margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.announce-wrap { padding: 0.5rem 0 0; }
.announce-inner { padding: 0 1rem; }
.announce {
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(252,69,55,0.12); border-radius: 0.75rem; color: #ffb4ae; font-size: 0.9rem;
}
.pager { display: flex; justify-content: center; gap: 0.75rem; padding-bottom: 2rem; }
.pager a { color: var(--accent); font-weight: 600; }
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 1rem 2.5rem;
}
.load-more-btn {
  min-width: 9rem;
  transition: all 0.3s ease-in-out;
}
.load-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.load-more-status {
  color: var(--muted);
  font-size: 0.85rem;
}
.load-more-status.is-error { color: #ffb4ae; }
.load-more-sentinel { width: 100%; height: 1px; }
.footer { padding: 1.5rem 0 2rem; color: var(--muted); text-align: center; font-size: 0.85rem; }
.footer-inner { padding: 0 1rem; }
.player-wrap { max-width: none; margin: 0; padding: 1rem; }
.player-box { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; }
video { width: 100%; display: block; background: #000; min-height: 240px; max-height: 80vh; }
.tap-play {
  position: absolute; inset: 0; margin: auto;
  width: 160px; height: 56px;
  border: none; border-radius: 999px;
  background: rgba(252, 69, 55, 0.92); color: #fff;
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease-in-out;
}
.tap-play:hover { filter: brightness(1.1); transform: scale(1.03); }
.player-status {
  position: absolute; left: 0; right: 0; bottom: 3.2rem;
  text-align: center; color: #fff; font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); pointer-events: none; z-index: 4;
}
.player-status.is-error { color: #ffb4ae; }
.end-ad {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem;
  text-align: center;
}
.end-ad[hidden] { display: none !important; }
.end-ad-inner {
  max-width: 92%;
  width: 420px;
}
.end-ad-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.end-ad-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}
.end-ad-media {
  display: block;
  margin: 0 auto 0.85rem;
}
.end-ad-media img {
  max-width: 100%;
  max-height: 46vh;
  border-radius: 0.85rem;
  object-fit: contain;
  background: #1a1a1a;
}
.end-ad-cta {
  display: inline-flex;
  margin-top: 0.35rem;
}
.end-ad-html {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.end-ad-html img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.end-ad-html a { color: #93c5fd; }
.play-url-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}
.play-url-hint a { color: #93c5fd; }
.ep-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ep-list a { background: #2a2a2a; padding: 0.4rem 0.75rem; border-radius: 0.75rem; }
.ep-list a.active { background: var(--accent); }
.tag-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.75rem 0 0.25rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.78rem;
  transition: all 0.3s ease-in-out;
}
.tag:hover { background: var(--accent); color: #fff; }
.related {
  max-width: none;
  margin: 0;
  padding: 0.5rem 1rem 2rem;
}
.related-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.related-grid {
  padding: 0;
}
.related-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1.5rem;
}
.related-status {
  color: var(--muted);
  font-size: 0.85rem;
}
.related-sentinel {
  width: 100%;
  height: 1px;
}
.vod-meta { padding: 1rem; max-width: none; margin: 0; }
.vod-meta h1 { font-size: 1.25rem; margin: 0 0 0.5rem; }
