:root {
  --bg: #08080a;
  --surface: #101014;
  --surface-2: #16161c;
  --line: #23232c;
  --fg: #f0f0f3;
  --muted: #8b8b98;
  --accent: #4ade80;
  --accent-dim: #16352a;
  --maxw: 68rem;
  --readw: 42rem;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 8, 10, .78);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.01em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav nav { display: flex; gap: 1.4rem; font-size: .9rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--fg); }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 5rem; }

/* 首页 hero */
.hero {
  display: grid; gap: 2rem; align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero-player video {
  width: 100%; border-radius: var(--r); background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
}
.hero-meta h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; margin: .8rem 0 .6rem; }
.hero-meta p { color: var(--muted); margin: 0 0 1.4rem; }
.hero-empty { text-align: center; padding: 6rem 0; }
.hero-empty h1 { font-size: 2.6rem; margin: 0 0 .5rem; }
.hero-empty p { color: var(--muted); }

.tag {
  display: inline-block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(74, 222, 128, .22);
  padding: .28rem .6rem; border-radius: 999px;
}
.btn {
  display: inline-block; padding: .65rem 1.15rem; border-radius: 10px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: .92rem;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }

.notice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: .1rem 1.2rem; margin-bottom: 3rem;
  color: var(--muted); font-size: .92rem;
}

/* 区块标题 */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.4rem; padding-top: 1rem;
}
.sec-head h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0; }
.sec-head .muted { font-size: .85rem; }

/* 剧集网格 */
.ep-grid { display: grid; gap: 1.4rem 1.2rem; grid-template-columns: 1fr; margin-bottom: 3.5rem; }
.ep { display: block; }
.ep-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.ep:hover .ep-thumb img { transform: scale(1.04); }
.ep-thumb .ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #14141a, #1c1c25 60%, #101015);
}
.play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(8, 8, 10, .62); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .2s ease, background .2s ease;
}
.play::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  transform: translateX(2px);
}
.ep:hover .play { transform: scale(1.08); background: rgba(74, 222, 128, .9); }
.ep:hover .play::after { border-left-color: #06120c; }
.ep-time, .soon {
  position: absolute; right: .55rem; bottom: .55rem;
  font-size: .72rem; padding: .18rem .45rem; border-radius: 6px;
  background: rgba(8, 8, 10, .8); color: #fff; letter-spacing: .02em;
}
.soon { left: .55rem; right: auto; color: var(--muted); border: 1px solid var(--line); }
.ep h3 {
  font-size: .96rem; line-height: 1.45; font-weight: 600;
  margin: .7rem 0 0; display: flex; gap: .55rem; align-items: baseline;
}
.ep-num { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .04em; flex: none; }
.ep-soon { opacity: .48; }
.ep-soon .ep-thumb { filter: grayscale(1); }

/* 文章 */
.art-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.art {
  display: block; padding: 1.15rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, transform .15s ease;
}
.art:hover { border-color: #34343f; transform: translateY(-2px); }
.art h3 { margin: 0 0 .35rem; font-size: 1.02rem; line-height: 1.45; }
.art p { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.art-meta { font-size: .78rem; color: var(--muted); }

/* 内容页 */
.post { max-width: var(--readw); margin: 0 auto; padding: 3rem 0 2rem; }
.post h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.25; letter-spacing: -.02em; margin: .9rem 0 1.5rem; }
.post h2 { font-size: 1.3rem; margin: 2.4rem 0 .7rem; letter-spacing: -.01em; }
.post h3 { font-size: 1.1rem; margin: 1.8rem 0 .5rem; }
.post p { margin: 1rem 0; }
.post a:not(.back) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.player video {
  width: 100%; border-radius: var(--r); background: #000;
  border: 1px solid var(--line); margin: 0 0 2rem;
}
figure { margin: 1.8rem 0; }
figure img { border-radius: 10px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: .84rem; text-align: center; margin-top: .6rem; }
video { width: 100%; border-radius: 10px; background: #000; }
.embed { position: relative; padding-top: 56.25%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--accent); color: var(--muted); }
.callout {
  display: flex; gap: .8rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.15rem; margin: 1.5rem 0;
}
.callout > div > p:first-child { margin-top: 0; }
.callout > div > p:last-child { margin-bottom: 0; }
.code {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.05rem 1.2rem; overflow-x: auto; font-size: .86rem; line-height: 1.65;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
p code { background: var(--surface-2); padding: .12em .38em; border-radius: 5px; color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
td { border: 1px solid var(--line); padding: .55rem .8rem; }
details { margin: 1.2rem 0; }
summary { cursor: pointer; color: var(--muted); }
.back { display: inline-block; margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.back:hover { color: var(--accent); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted);
}

@media (min-width: 700px) {
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.35fr 1fr; gap: 2.6rem; }
  .ep-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 评论区（Twikoo） ---------- */
.comments {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}
.comments .sec-head { margin-bottom: 1rem; }

/* 让 Twikoo 跟随站点深色配色 */
#tcomment {
  --twikoo-color-primary: var(--accent);
  --twikoo-color-text: var(--fg);
  --twikoo-color-sub-text: var(--muted);
  --twikoo-color-border: var(--line);
  --twikoo-color-bg: transparent;
  color: var(--fg);
}
#tcomment .tk-input,
#tcomment textarea,
#tcomment input {
  background: var(--surface) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
  border-radius: 10px !important;
}
#tcomment .tk-submit .tk-row .tk-col,
#tcomment .tk-comments-container { color: var(--fg); }
#tcomment .tk-submit-action-icon,
#tcomment .tk-time,
#tcomment .tk-nick,
#tcomment .tk-tag { color: var(--muted); }
#tcomment .tk-content { color: var(--fg); }
#tcomment button.tk-submit-action,
#tcomment .tk-submit-action button {
  background: var(--fg) !important;
  color: var(--bg) !important;
  border-radius: 10px !important;
}
#tcomment .tk-comment { border-bottom: 1px solid var(--line); }
#tcomment a { color: var(--accent); }
