:root {
  --green: #00ff64;
  --green-dim: rgba(0, 255, 100, 0.15);
  --text: #e0e0e0;
  --muted: #8d8d8d;
  --bg: #0a0a0a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: hidden; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 100, 0.05), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 100, 0.04), transparent 46%),
    var(--bg);
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
.header {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 100, 0.12);
  position: sticky; top: 0; z-index: 40;
  padding: 16px 0;
}
.header-inner, .container, .footer-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo {
  font-size: 28px; font-weight: 700; color: var(--green); letter-spacing: 2px;
  text-decoration: none; font-family: Georgia, "Songti SC", serif;
  text-shadow: 0 0 12px rgba(0, 255, 100, 0.35); flex-shrink: 0;
}
.nav-group { display: flex; gap: 8px; align-items: center; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-group a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 20px; transition: 0.3s;
}
.nav-group a:hover, .nav-group a.on { color: var(--green); background: rgba(0, 255, 100, 0.1); }
.search-box { flex: 1; max-width: 280px; }
.search-box input, .toolbar input, .dialog input {
  width: 100%; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 100, 0.2); border-radius: 25px;
  padding: 10px 16px; color: var(--text); font-size: 13px;
}
.search-box input:focus, .dialog input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.12); }
.user-menu { display: flex; gap: 12px; flex-shrink: 0; }
.user-menu a, .user-menu button {
  color: var(--green); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border: 1px solid rgba(0, 255, 100, 0.35); border-radius: 20px;
  background: transparent; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(0, 255, 100, 0.15); }
.container { padding-top: 8px; padding-bottom: 20px; }
.carousel-section { margin: 28px 0 10px; }
.carousel-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carousel-card, .anime-card, .ranking-box, .aside-box, .panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 100, 0.14);
  border-radius: 28px; overflow: hidden;
  transition: 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.carousel-card { display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.carousel-card:hover, .anime-card:hover { transform: translateY(-8px); border-color: rgba(0, 255, 100, 0.4); box-shadow: 0 20px 50px rgba(0, 255, 100, 0.12); }
.carousel-img { width: 100%; height: 200px; object-fit: cover; }
.carousel-info, .anime-detail { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.carousel-title { font-family: Georgia, "Songti SC", serif; color: var(--green); font-size: 18px; margin-bottom: 8px; }
.carousel-cast, .muted, .news-date, .comment-time { color: #999; font-size: 12px; }
.carousel-desc { color: #bbb; font-size: 13px; margin: 10px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-meta, .anime-tags, .tags-cloud, .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-tag, .tag, .tag-item, .chip {
  background: var(--green-dim); color: var(--green); border-radius: 12px; text-decoration: none;
}
.meta-tag { padding: 4px 10px; font-size: 11px; }
.tag, .tag-item { padding: 3px 8px; font-size: 10px; }
.tag-item { padding: 6px 12px; font-size: 12px; border: 1px solid rgba(0, 255, 100, 0.2); }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin: 42px 0; }
.main-layout > *, .aside, .aside-box { min-width: 0; width: 100%; }
.section { margin-bottom: 46px; }
.section-title, .page-title {
  font-family: Georgia, "Songti SC", serif; font-size: 24px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before, .page-title::before {
  content: ""; width: 4px; height: 26px; border-radius: 2px;
  background: linear-gradient(var(--green), rgba(0, 255, 100, 0.25));
}
.section-subtitle, .page-sub { color: #777; font-size: 13px; margin-bottom: 22px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; }
.anime-card { display: flex; flex-direction: column; text-decoration: none; }
.anime-cover { position: relative; height: 230px; background: #111; }
.anime-cover img, .poster-frame img { width: 100%; height: 100%; object-fit: cover; }
.cover-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, 0.62);
  color: var(--green); border-radius: 999px; padding: 3px 8px; font-size: 11px;
}
.anime-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; font-family: Georgia, "Songti SC", serif; }
.anime-status { color: var(--green); font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.anime-meta { display: flex; justify-content: space-between; color: #777; font-size: 11px; margin-bottom: 8px; }
.section-more { text-align: right; margin-top: 16px; }
.section-more a { color: var(--green); text-decoration: none; font-size: 13px; font-weight: 600; }
.category-section, .panel { border-radius: 28px; padding: 28px; margin-bottom: 28px; }
.category-title { color: var(--green); font-family: Georgia, "Songti SC", serif; font-size: 20px; margin-bottom: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.category-item {
  display: block; text-align: center; text-decoration: none; padding: 18px 10px;
  border-radius: 18px; border: 1px solid rgba(0, 255, 100, 0.16); background: rgba(255,255,255,0.04);
}
.category-item:hover { border-color: var(--green); transform: translateY(-3px); }
.category-name { font-weight: 700; }
.category-count { color: #777; font-size: 12px; margin-top: 4px; }
.ranking-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ranking-box { padding: 22px; }
.ranking-title { color: var(--green); font-family: Georgia, "Songti SC", serif; margin-bottom: 14px; }
.ranking-list { display: flex; flex-direction: column; gap: 10px; }
.ranking-item {
  display: flex; gap: 10px; align-items: center; text-decoration: none;
  background: rgba(0, 255, 100, 0.04); border-radius: 12px; padding: 10px;
}
.ranking-item:hover { background: rgba(0, 255, 100, 0.12); }
.ranking-num { color: var(--green); font-weight: 800; width: 24px; text-align: center; }
.ranking-info { min-width: 0; display: flex; flex-direction: column; }
.ranking-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-score { color: #999; font-size: 11px; }
.aside { display: flex; flex-direction: column; gap: 22px; }
.aside-box { padding: 22px; }
.aside-title { color: var(--green); font-family: Georgia, "Songti SC", serif; margin-bottom: 14px; }
.news-item, .comment-item { border-bottom: 1px solid rgba(0,255,100,0.08); padding-bottom: 12px; margin-bottom: 12px; }
.news-item:last-child, .comment-item:last-child { border: 0; margin: 0; padding: 0; }
.news-title, .comment-text { font-size: 13px; color: #ddd; margin-bottom: 6px; overflow-wrap: anywhere; }
.comment-user { color: var(--green); font-size: 12px; margin-bottom: 4px; }
.footer { border-top: 1px solid rgba(0,255,100,0.12); margin-top: 60px; padding: 42px 0 28px; background: rgba(0,0,0,0.35); }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.footer-col h3 { color: var(--green); font-size: 14px; margin-bottom: 12px; font-family: Georgia, "Songti SC", serif; }
.footer-col a { display: block; color: #999; text-decoration: none; font-size: 13px; margin: 8px 0; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { text-align: center; color: #666; font-size: 12px; line-height: 1.7; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.chip { border: 1px solid rgba(0,255,100,0.2); padding: 6px 12px; font-size: 13px; }
.chip.on, .ep.on { background: var(--green); color: #04210f; }
.detail { display: grid; grid-template-columns: 280px 1fr; gap: 28px; margin: 28px 0; }
.poster-frame { border-radius: 24px; overflow: hidden; border: 1px solid rgba(0,255,100,0.2); background: #111; }
.poster-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.detail h1 { font-family: Georgia, "Songti SC", serif; font-size: 36px; color: var(--green); margin: 8px 0; }
.action-row, .dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.btn {
  border: 0; cursor: pointer; text-decoration: none; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--green); color: #04210f; }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid rgba(0,255,100,0.4); }
.stat-line { display: flex; gap: 18px; flex-wrap: wrap; color: #aaa; font-size: 13px; margin: 8px 0 12px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ep {
  display: flex; gap: 8px; align-items: center; text-decoration: none; text-align: left;
  border-radius: 14px; padding: 10px 12px; border: 1px solid rgba(0,255,100,0.16);
  background: rgba(255,255,255,0.03); color: var(--text); min-height: 52px;
}
.ep b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,255,100,0.12); color: var(--green); flex-shrink: 0; }
.stage { position: relative; background: #000; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; margin: 16px 0; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; }
.stage-mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72)); text-align: center; padding: 20px;
}
.play-orb {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #04210f; font-size: 28px; margin-bottom: 12px;
}
.stage-mask .sub { color: #bbb; font-size: 13px; max-width: 460px; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 80; display: grid; place-items: center; padding: 20px; }
.dialog { width: min(420px, 100%); background: #121212; border: 1px solid rgba(0,255,100,.3); border-radius: 24px; padding: 22px; }
.dialog h3 { font-family: Georgia, "Songti SC", serif; color: var(--green); margin-bottom: 8px; }
.dialog label { display: block; font-size: 12px; color: #aaa; margin: 12px 0 6px; }
.hint, .source-banner { color: #9a9; font-size: 12px; }
.source-banner { margin: 12px auto; max-width: 1400px; padding: 8px 20px; color: #d6ff64; }
.text-btn { background: none; border: 0; color: var(--green); margin-top: 8px; cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  background: #07140c; color: var(--green); border: 1px solid rgba(0,255,100,.4);
  padding: 10px 16px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 90; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { padding: 40px 10px; color: #888; }
.mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.crumb { color: #888; font-size: 13px; margin-top: 18px; }
.crumb a { color: var(--green); text-decoration: none; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.people { display: grid; gap: 8px; }
.people div, .plain-list li { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px 12px; }
.plain-list { list-style: none; display: grid; gap: 8px; }
@media (max-width: 1100px) {
  .carousel-wrapper, .ranking-wrapper, .footer-content { grid-template-columns: 1fr 1fr; }
  .main-layout, .detail, .split, .mine-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 14px; }
  .nav-group, .user-menu { width: 100%; justify-content: center; }
  .search-box { max-width: none; width: 100%; }
  .carousel-wrapper, .footer-content, .ranking-wrapper { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .detail h1 { font-size: 28px; }
  .container, .header-inner, .footer-content { padding-left: 14px; padding-right: 14px; }
  .main-layout { gap: 28px; margin: 28px 0; }
  .aside-box { padding: 18px; border-radius: 22px; }
}
