:root {
  color-scheme: light;
  --bg: #f8f5f9;
  --panel: #ffffff;
  --panel-soft: #f2ebf4;
  --line: rgba(219, 206, 221, 0.1);
  --text: #2e1f31;
  --muted: #68556c;
  --accent: #9222a9;
  --accent-2: #c68f10;
  --danger: #d02619;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(248,245,249,0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(146, 34, 169, 0.06), transparent 360px),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 249, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #06120f;
  font-weight: 900;
}

.site-nav,
.mobile-nav,
.map-links,
.cat-pills,
.filter-row,
.episode-list,
.down-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav a,
.mobile-nav a,
.cat-pills a,
.map-links a,
.filter-row a,
.tag-list a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a:hover,
.mobile-nav a:hover,
.cat-pills a:hover,
.map-links a:hover,
.filter-row a:hover,
.tag-list a:hover,
.filter-row a.active {
  color: var(--text);
  border-color: rgba(146, 34, 169, 0.45);
  background: rgba(146, 34, 169, 0.1);
}

.nav-empty {
  color: var(--muted);
}

.site-nav .nav-type ~ .nav-empty,
.mobile-nav .nav-type ~ .nav-empty,
.cat-pills a ~ .nav-empty,
.map-links a ~ .nav-empty {
  display: none;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 310px;
}

.search-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: #0b1016;
  color: var(--text);
}

.icon-button,
.search-form button,
.btn,
.page-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  background: var(--panel-soft);
  cursor: pointer;
}

.icon-button {
  display: none;
  width: 40px;
  padding: 0;
}

.btn.primary,
.search-form button {
  border-color: rgba(146, 34, 169, 0.58);
  background: var(--accent);
  color: #06120f;
  font-weight: 700;
}

.btn.warm {
  border-color: rgba(198, 143, 16, 0.6);
  background: rgba(198, 143, 16, 0.16);
  color: #ffe1a3;
}

.btn:hover,
.page-link:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  margin-bottom: 12px;
}

.home-main,
.page-main {
  padding: 26px 0 42px;
}

.home-hero {
  padding-top: 12px;
}

.hero-slider {
  position: relative;
}

.hero-fallback {
  display: block;
}

.hero-slider > .home-hero-item.is-featured ~ .hero-fallback {
  display: none;
}

.home-hero-item {
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111923;
  box-shadow: var(--shadow);
}

.home-hero-item + .home-hero-item {
  margin-top: 16px;
}

.home-hero-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.home-hero-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 249, 0.93), rgba(248, 245, 249, 0.45) 52%, rgba(248, 245, 249, 0.14));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 44px;
}

.kicker,
.meta-line,
.card-meta,
.crumb,
.time,
.desc,
.empty-state,
.note {
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #a4f3e5;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1rem;
}

.hero-title {
  font-size: 2.25rem;
}

.hero-content p,
.detail-summary {
  margin: 14px 0 0;
  color: #d9e5f0;
}

.hero-actions,
.detail-actions,
.section-head,
.page-head,
.module-head,
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-actions,
.detail-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-cats,
.home-section,
.module,
.detail-layout,
.feedback-block,
.faq-block,
.player-wrap,
.filter-box {
  margin-top: 28px;
}

.section-head,
.page-head,
.module-head {
  margin-bottom: 16px;
}

.section-head a,
.module-head a {
  color: #a4f3e5;
}

.vod-grid,
.topic-grid,
.article-grid,
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.vod-card,
.simple-card,
.feedback-card,
.faq-item,
.score-panel,
.detail-aside,
.filter-box,
.article-card,
.site-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.vod-card {
  overflow: hidden;
}

.vod-card a {
  display: grid;
  height: 100%;
}

.poster {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  background: #111923;
}

.vod-card-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.vod-card h3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  min-height: 24px;
  font-size: 0.9rem;
}

.vod-grid .vod-card ~ .empty-state,
.episode-list a ~ .empty-state,
.down-list a ~ .empty-state,
.article-grid .article-card ~ .empty-state,
.site-grid .site-card ~ .empty-state,
.topic-grid .simple-card ~ .empty-state {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 68px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  min-width: 0;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.info-list strong {
  color: #dce7f2;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--panel-soft);
  cursor: pointer;
}

.tab-btn.is-active {
  border-color: rgba(146, 34, 169, 0.48);
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.episode-list a,
.down-list a {
  min-width: 94px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7f2;
}

.player-box {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
}

.player-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070a;
}

.player-message {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: #ffd0d0;
  text-align: center;
}

.feedback-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.feedback-card,
.faq-item,
.score-panel,
.article-card,
.site-card,
.simple-card,
.filter-box {
  padding: 16px;
}

.feedback-card {
  display: grid;
  gap: 8px;
}

.feedback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stars {
  color: var(--accent-2);
  white-space: nowrap;
}

.faq-item summary {
  cursor: pointer;
  color: #eef7ff;
  font-weight: 700;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.score-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.score-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-2);
}

.digg-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.page-link.current {
  border-color: rgba(146, 34, 169, 0.5);
  color: #a4f3e5;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: #0a0e13;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.crumb {
  margin-bottom: 14px;
}

.crumb a {
  color: #a4f3e5;
}

.filter-row {
  align-items: center;
  margin-top: 10px;
}

.filter-label {
  width: 58px;
  color: #dce7f2;
}

.auth-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.auth-form input,
.auth-form textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #0b1016;
  color: var(--text);
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .site-nav,
  .header-inner > .search-form {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 60px;
  }

  .home-hero-item {
    min-height: 360px;
  }

  .hero-content {
    padding: 26px;
  }

  h1,
  .hero-title {
    font-size: 1.75rem;
  }

  .detail-hero {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .vod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 220px;
  }

  .hero-actions,
  .detail-actions,
  .page-head,
  .module-head,
  .section-head,
  .player-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-form {
    flex: 1 1 100%;
  }
}


/* split s0011_moban11 light 品红 triad */
body {
  color: #2e1f31;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
