/* AGE动漫克隆站 - 深色主题 复刻 shoutu45 风格 */
:root {
  --bg: #111319;
  --bg2: #0a0c0f;
  --card: #1d2129;
  --border: #141b29;
  --border2: #25252b;
  --green: #00cc4c;
  --green-dark: #00b342;
  --text: #fff;
  --muted: #a9a9ac;
  --muted2: #777;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }

.container { max-width: 1808px; width: calc(100% - 120px); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #0a0c0f;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.header-inner { display: flex; align-items: center; height: 76px; max-width: 1808px; margin: 0 auto; padding: 0 60px; }
.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #063; font-size: 18px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 9px; color: var(--muted2); letter-spacing: 2px; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.nav a { padding: 8px 0; color: hsla(0,0%,100%,.9); font-size: 16px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--green); background: transparent; }
.nav-more { position: relative; }
.nav-more > a { padding: 8px 12px; border-radius: 6px; color: #ddd; font-size: 15px; cursor: pointer; }
.nav-more > a:hover { color: var(--green); }
.nav-more .caret { font-size: 11px; }
.nav-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 130px;
  background: #1b2029; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; z-index: 120; box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.nav-more:hover .nav-drop { display: block; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: #ccc; }
.nav-drop a:hover { background: rgba(0,204,76,.1); color: var(--green); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; }
.search-box input { background: transparent; border: 0; color: #fff; padding: 8px 14px; width: 200px; }
.search-box input::placeholder { color: var(--muted2); }
.search-box button { background: transparent; border: 0; color: var(--muted); padding: 8px 12px; cursor: pointer; }
.search-box button:hover { color: var(--green); }
.icon-btn { color: #bbb; font-size: 17px; padding: 6px; }
.icon-btn:hover { color: var(--green); }
.btn-client { padding: 8px 20px; border-radius: 20px; font-size: 14px; }
.user-area { display: flex; align-items: center; gap: 10px; }
.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.08); color: #ddd; border: 0; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; transition: .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.user-name { color: var(--green); font-weight: 600; }
.link-muted { color: var(--muted); }

/* ---------- 轮播 Banner（参考站 slid-d：高度 54% 视口宽，信息贴底） ---------- */
.hero { position: relative; height: 54vw; max-height: 842px; overflow: hidden; background: var(--bg2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center center; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,.85) 0%, rgba(10,12,15,.35) 35%, rgba(10,12,15,.05) 65%, rgba(10,12,15,.3) 100%), linear-gradient(0deg, #111319 2%, transparent 30%); }
.hero-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 1808px; margin: 0 auto; padding: 0 60px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { font-size: 40px; font-weight: 700; margin-bottom: 25px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-sub { display: flex; align-items: center; gap: 24px; color: hsla(0,0%,100%,.9); font-size: 16px; font-weight: 500; margin-bottom: 16px; flex-wrap: wrap; }
.hero-cat { color: hsla(0,0%,100%,.9); font-size: 14px; margin-bottom: 16px; }
.hero-desc { max-width: 460px; color: #cfcfcf; line-height: 1.8; font-size: 14px; margin-bottom: 25px; }
.hero-btns { display: flex; gap: 14px; }
.btn-play { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; border: 0; cursor: pointer; }
.btn-play.dark { background: #fff; color: #333; }
.hero-ad { position: absolute; top: 18px; right: 24px; z-index: 3; font-size: 11px; color: rgba(255,255,255,.45); background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 4px; }
.hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.hero-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; transition: .2s; }
.hero-dots i.active { background: var(--green); }
.badge-top { background: var(--green); color: #fff; font-size: 14px; font-weight: 700; height: 24px; line-height: 24px; padding: 0 8px; border-radius: 2px; }
.badge-week { background: rgba(255,255,255,.14); color: #fff; font-size: 14px; height: 24px; line-height: 24px; padding: 0 8px; border-radius: 2px; }
.badge-cat { background: rgba(255,255,255,.14); color: #fff; font-size: 14px; height: 24px; line-height: 24px; padding: 0 8px; border-radius: 2px; }

/* ---------- 区块 ---------- */
.section { margin-top: 60px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.section-head h2 { font-size: 22px; line-height: 32px; font-weight: 700; }
.section-head h2 b { color: #fff; }
.section-more { color: var(--muted); font-size: 13px; }
.section-more:hover { color: var(--green); }
.friend-links .fl-row { display: flex; flex-wrap: wrap; gap: 26px; }
.friend-links .fl-row a { color: var(--muted); font-size: 14px; }
.friend-links .fl-row a:hover { color: var(--green); }

/* ---------- 卡片（参考站 public-pic-b：比例 135.74%，角标贴角） ---------- */
.grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px 16px; }
.grid > * { min-width: 0; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.card { position: relative; display: block; }
.card-cover { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1/1.3574; background: var(--card); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-cover img { transform: scale(1.2); }
.card-cover:after { content: ''; position: absolute; inset: 0; background: rgba(11,16,23,.4); opacity: 0; transition: .4s; }
.card:hover .card-cover:after { opacity: 1; }
.card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; line-height: 48px; text-align: center; background: var(--green);
  color: #fff; border-radius: 50%; font-size: 20px; opacity: 0; transition: .4s; z-index: 3;
}
.card:hover .card-play { opacity: 1; }
.card-score {
  position: absolute; top: 0; right: 0; background: var(--green); color: hsla(0,0%,100%,.87);
  font-size: 12px; font-weight: 400; height: 22px; line-height: 22px; padding: 0 8px;
  border-radius: 0 6px 0 6px; z-index: 2;
}
.card-remarks {
  position: absolute; right: 12px; bottom: 8px;
  background: rgba(0,0,0,.55); color: hsla(0,0%,100%,.87); font-size: 12px;
  padding: 3px 8px; border-radius: 3px;
  white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; z-index: 2;
}
.card-title { margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 26px; height: 26px; color: hsla(0,0%,100%,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-title { color: var(--green); }

/* ---------- 列表页筛选 ---------- */
.page-title { font-size: 26px; font-weight: 800; margin: 26px 0 18px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  padding: 7px 16px; border-radius: 8px; background: var(--card); color: #ccc;
  font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: .15s;
}
.chip:hover { color: #fff; border-color: var(--green); }
.chip.on { background: var(--green); color: #fff; font-weight: 600; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin: 36px 0; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border-radius: 8px; color: #ccc; font-size: 13px;
}
.pager .on { background: var(--green); color: #fff; font-weight: 700; }
.pager a:hover { color: #fff; border: 0; }

/* ---------- 详情页 ---------- */
.detail-hero { position: relative; min-height: 460px; display: flex; align-items: center; }
.detail-hero .hero-mask { background: linear-gradient(90deg, #111319 10%, rgba(17,19,25,.92) 38%, rgba(17,19,25,.3) 72%, rgba(17,19,25,.55) 100%), linear-gradient(0deg, #111319 3%, transparent 40%); }
.detail-hero .hero-info { position: relative; inset: auto; height: 100%; width: 100%; justify-content: center; padding-bottom: 0; }
.detail-info { position: relative; z-index: 2; max-width: 560px; padding: 60px 0; }
.detail-title { font-size: 38px; font-weight: 900; margin-bottom: 16px; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.badge-rank { background: linear-gradient(90deg, #ff9500, #ff5f00); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.detail-sub { display: flex; gap: 20px; color: #ccc; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.score-star { color: #e3b561; letter-spacing: 2px; font-size: 12px; }
.score-box {
  display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.07);
  border-radius: 10px; padding: 14px 20px; margin: 14px 0 20px; max-width: 330px;
  cursor: pointer; transition: background .15s;
}
.score-box:hover { background: rgba(255,255,255,.13); }
.score-num { font-size: 34px; font-weight: 900; color: #ff4d4f; }
.score-label { font-size: 13px; color: #ccc; }
.score-star { position: relative; color: #4a4d55; letter-spacing: 2px; }
.score-star i { position: absolute; left: 0; top: 0; color: #ffb400; overflow: hidden; white-space: nowrap; font-style: normal; letter-spacing: 2px; }
.score-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.detail-rows { font-size: 14px; color: #ccc; line-height: 2; margin-bottom: 22px; }
.detail-rows b { color: var(--muted2); margin-right: 12px; font-weight: 400; }

/* ---------- 影片评分弹窗 ---------- */
.rate-mask { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.rate-modal { width: 360px; max-width: 92vw; background: #1d2129; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 20px 24px 24px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.rate-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rate-head b { font-size: 16px; }
.rate-close { cursor: pointer; color: var(--muted); font-size: 16px; }
.rate-close:hover { color: #fff; }
.rate-stars { display: flex; justify-content: center; gap: 6px; padding: 26px 0 18px; }
.rate-stars span { font-size: 34px; line-height: 1; color: #4a4d55; cursor: pointer; transition: transform .1s, color .1s; }
.rate-stars span:hover { transform: scale(1.12); }
.rate-stars span.on { color: #ffb400; }
.rate-tip { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 播放页讨论区 ---------- */
.cmt-form { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px 14px; margin-bottom: 16px; }
.cmt-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cmt-form-head b { font-size: 15px; }
.cmt-form-head span { font-size: 12px; color: var(--muted); }
.cmt-form textarea { width: 100%; min-height: 84px; background: #14171d; border: 1px solid var(--border2); border-radius: 6px; color: var(--text); padding: 10px; font-size: 13px; resize: vertical; outline: none; }
.cmt-form textarea:focus { border-color: var(--green); }
.cmt-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cmt-avatar { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; background: linear-gradient(135deg, #ff9d4d, #ff5722); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }
.cmt-cap { height: 34px; border-radius: 4px; cursor: pointer; display: block; }
.cmt-code { width: 90px; height: 34px; background: #14171d; border: 1px solid var(--border2); border-radius: 4px; color: var(--text); padding: 0 8px; font-size: 13px; outline: none; }
.cmt-code:focus { border-color: var(--green); }
.cmt-send { margin-left: auto; padding: 0 22px; height: 34px; line-height: 34px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }
.cmt-send:disabled { opacity: .55; cursor: default; }
.cmt-list { display: flex; flex-direction: column; gap: 4px; }
.cmt-item { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed rgba(255,255,255,.06); }
.cmt-item:last-child { border-bottom: none; }
.cmt-item .cmt-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.cmt-meta b { color: var(--green); font-weight: 600; }
.cmt-body { font-size: 14px; margin-top: 5px; word-break: break-word; white-space: pre-wrap; }
.detail-btns { display: flex; gap: 12px; }
.tag-green { display: inline-block; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 7px; margin-bottom: 16px; }
.ep-tabs { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; }
.ep-tabs .t { font-size: 16px; font-weight: 700; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 6px; }
.ep-tabs .n { color: var(--green); font-size: 13px; }
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ep-item {
  display: flex; align-items: center; justify-content: center; height: 46px;
  background: var(--card); border-radius: 8px; color: #ddd; font-size: 14px; transition: .15s;
  border: 1px solid transparent;
}
.ep-item:hover { color: #fff; border-color: var(--green); background: #232838; }
.ep-item.cur { background: var(--green); color: #fff; font-weight: 700; }
.ep-item.watched { color: var(--green); }

/* ---------- 播放页 ---------- */
.play-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 24px; }
.player-box { background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.player-box video { width: 100%; height: 100%; background: #000; }
.play-side { background: var(--card); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; }
.play-side h3 { font-size: 15px; margin-bottom: 12px; }
.ep-list { overflow-y: auto; max-height: 480px; display: flex; flex-direction: column; gap: 8px; }
.ep-list a { padding: 10px 14px; background: var(--bg); border-radius: 8px; color: #ccc; font-size: 13px; }
.ep-list a.cur, .ep-list a:hover { color: var(--green); background: rgba(0,204,76,.1); }
.play-title { font-size: 22px; font-weight: 800; margin: 18px 0 8px; }
.play-meta { color: var(--muted); font-size: 13px; }

/* ---------- 资讯 ---------- */
.news-list { max-width: 860px; margin: 26px auto; }
.news-item { background: var(--card); border-radius: 10px; padding: 20px 24px; margin-bottom: 14px; }
.news-item h3 { font-size: 17px; margin-bottom: 8px; }
.news-item p { color: var(--muted); font-size: 13px; }
.news-item time { color: var(--muted2); font-size: 12px; }
.article { max-width: 860px; margin: 30px auto; background: var(--card); border-radius: 10px; padding: 30px; }
.article h1 { font-size: 24px; margin-bottom: 14px; }
.article .content { color: #ccc; line-height: 2; }

/* ---------- 用户表单页 ---------- */
.auth-wrap { max-width: 400px; margin: 60px auto; background: var(--card); border-radius: 12px; padding: 34px; }
.auth-wrap h1 { font-size: 22px; text-align: center; margin-bottom: 26px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border2); color: #fff;
  border-radius: 8px; padding: 10px 14px; font-size: 14px;
}
.form-item input:focus, .form-item textarea:focus, .form-item select:focus { border-color: var(--green); }
.form-item textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.form-error { background: rgba(229,9,22,.12); color: #ff6b6b; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.auth-foot a { color: var(--green); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.check-row input { width: auto; }

/* ---------- 个人中心 ---------- */
.uc-tabs { display: flex; gap: 10px; margin: 26px 0 18px; }
.empty-tip { text-align: center; color: var(--muted2); padding: 50px 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg2); margin-top: 60px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-app { text-align: center; padding: 34px 0 20px; }
.footer-app h3 { font-size: 18px; margin-bottom: 8px; }
.footer-app .slogan { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.footer-app .slogan b { color: var(--green); }
.footer-app-btns { display: flex; justify-content: center; gap: 40px; margin-bottom: 26px; }
.footer-app-btns a { display: inline-flex; align-items: center; gap: 8px; background: var(--card); padding: 10px 34px; border-radius: 8px; color: #ddd; font-size: 14px; }
.footer-links { border-top: 1px solid rgba(255,255,255,.05); padding: 18px 0 26px; max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.footer-links .row { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-links .row a { color: var(--muted); }
.footer-links .row a:hover { color: var(--green); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: var(--muted2); line-height: 1.9; }
.footer-copy a { color: var(--green); }

/* ---------- 公告弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal { background: #1b1f27; border-radius: 14px; width: 420px; max-width: 92vw; padding: 26px; }
.modal h3 { font-size: 19px; margin-bottom: 14px; }
.modal .modal-body { color: #bbb; line-height: 1.9; font-size: 14px; white-space: pre-wrap; max-height: 300px; overflow-y: auto; margin-bottom: 22px; }
.modal .btn-green { width: 100%; }

/* ---------- 右侧悬浮 ---------- */
.float-btns { position: fixed; right: 18px; bottom: 80px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-btns a, .float-btns button {
  width: 42px; height: 42px; border-radius: 10px; background: var(--card); color: #ccc;
  display: flex; align-items: center; justify-content: center; font-size: 16px; border: 0; cursor: pointer;
}
.float-btns .up { background: var(--green); color: #fff; }
.float-btns .fb-blue { background: #2f6bff; color: #fff; border-radius: 50%; }
.float-btns .fb-white { background: #fff; color: #333; border-radius: 50%; }
.float-btns .fb-gray { background: #2b303b; color: #ccc; border-radius: 50%; }

/* ---------- 后台 ---------- */
.admin-body { display: flex; min-height: 100vh; }
.admin-side { width: 200px; background: var(--bg2); padding: 18px 12px; flex-shrink: 0; }
.admin-side .logo-line { font-weight: 800; font-size: 17px; padding: 8px 10px 20px; color: var(--green); }
.admin-side a { display: block; padding: 11px 14px; border-radius: 8px; color: #bbb; font-size: 14px; margin-bottom: 4px; }
.admin-side a.on, .admin-side a:hover { background: rgba(0,204,76,.12); color: var(--green); }
.admin-main { flex: 1; padding: 24px 30px; min-width: 0; }
.admin-input { background: var(--card); border: 1px solid var(--border); color: #eee; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.sync-bar { height: 14px; background: var(--card); border-radius: 7px; overflow: hidden; }
.sync-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s; }
#syncLog { background: #0d1015; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.7; color: #9fd8b2; max-height: 260px; overflow-y: auto; margin-top: 10px; white-space: pre-wrap; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-top h1 { font-size: 21px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--card); border-radius: 12px; padding: 20px; }
.stat-card .n { font-size: 30px; font-weight: 900; color: var(--green); }
.stat-card .l { color: var(--muted); font-size: 13px; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.03); }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .cover-thumb { width: 42px; height: 60px; object-fit: cover; border-radius: 5px; }
.table .actions { display: flex; gap: 8px; }
.table .actions form { display: inline; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; border: 0; cursor: pointer; font-weight: 600; }
.btn-sm.green { background: var(--green); color: #fff; }
.btn-sm.blue { background: #2f6fed; color: #fff; }
.btn-sm.red { background: rgba(229,9,22,.85); color: #fff; }
.btn-sm.gray { background: rgba(255,255,255,.1); color: #ccc; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  background: var(--card); border: 1px solid var(--border2); color: #fff; border-radius: 8px; padding: 8px 12px;
}
.tag-on { background: rgba(0,204,76,.15); color: var(--green); padding: 3px 10px; border-radius: 5px; font-size: 12px; }
.tag-off { background: rgba(255,255,255,.08); color: #999; padding: 3px 10px; border-radius: 5px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-grid .full { grid-column: 1 / -1; }
.admin-card { background: var(--card); border-radius: 12px; padding: 24px; }
.admin-card h2 { font-size: 17px; margin-bottom: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
  .header-inner { padding: 0 24px; gap: 10px; }
  .nav { gap: 14px; }
  .nav a { font-size: 15px; }
  .search-box input { width: 130px; }
}
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(6, 1fr); } .grid-6 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px) {
  .grid, .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .nav { display: none; }
  .play-wrap { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-side { display: none; }
}
@media (max-width: 640px) {
  .grid, .grid-6 { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
  .hero { height: 420px; }
  .hero-title { font-size: 28px; }
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 110px; }
}

/* ---------- 搜索页面板（对齐参考站） ---------- */
.none { display: none !important; }
.search-panel { max-width: 720px; margin: 40px auto 30px; text-align: center; }
.search-panel-tag {
  display: inline-block; background: var(--green); color: #fff; font-size: 14px; font-weight: 700;
  padding: 7px 22px; border-radius: 6px; margin-bottom: 14px;
}
.search-panel-form { display: flex; height: 52px; border-radius: 8px; overflow: hidden; }
.search-panel-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: #fff; color: #333;
  padding: 0 18px; font-size: 15px;
}
.search-panel-form button {
  width: 110px; border: 0; cursor: pointer; background: var(--green); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 4px;
}
.search-panel-form button:hover { background: var(--green-dark); }
.search-hot { margin-top: 16px; text-align: left; font-size: 14px; color: #ccc; }
.search-hot b { color: var(--muted); font-weight: 400; }
.search-hot a { color: #ddd; margin-right: 18px; }
.search-hot a:hover { color: var(--green); }

/* ---------- 详情页补充（对齐参考站） ---------- */
.detail-tags { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-tags span {
  background: rgba(255,255,255,.1); color: #ddd; font-size: 13px;
  padding: 4px 12px; border-radius: 4px;
}
.detail-desc { font-size: 14px; color: #ccc; line-height: 1.8; margin-bottom: 22px; }
.detail-desc-text { max-height: 27px; overflow: hidden; position: relative; }
.detail-desc-text.open { max-height: none; }
.detail-desc-text b { color: var(--muted2); margin-right: 10px; font-weight: 400; }
.detail-desc-toggle { color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.detail-desc-toggle i { display: inline-block; font-style: normal; transform: rotate(90deg); color: var(--green); margin-right: 4px; }
.detail-desc-text.open ~ .detail-desc-toggle i { transform: rotate(-90deg); }

/* ---------- 播放页（对齐参考站） ---------- */
.play-wrap { grid-template-columns: 1fr 380px; }
.play-left { display: flex; flex-direction: column; gap: 14px; }
.player-box { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.player-box video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.play-news {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; background: rgba(0,0,0,.72);
  padding: 10px 40px 10px 14px; font-size: 13px; color: #ccc; overflow: hidden; min-height: 40px;
}
.play-news-list { position: relative; height: 20px; flex: 1; }
.play-news-list span { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.play-news-list span.on { opacity: 1; }
.play-news-list i { font-style: normal; font-weight: 700; margin-right: 10px; }
.play-news-list i.n1 { color: #ffb400; }
.play-news-list i.n2 { color: #ff4d4f; }
.play-news-list i.n3 { color: var(--green); }
.play-news-off { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--muted); font-size: 12px; }
.play-news-off:hover { color: #fff; }
.player-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); gap: 12px;
}
.player-empty .tv-icon { font-size: 44px; opacity: .7; }
/* 自定义控制条 */
.play-ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); padding: 18px 14px 8px;
}
.ctrl-progress { height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; cursor: pointer; margin-bottom: 6px; }
.ctrl-progress i { display: block; height: 100%; width: 0; background: #e50914; border-radius: 2px; position: relative; }
.ctrl-progress i:after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #e50914;
}
.ctrl-row { display: flex; align-items: center; gap: 14px; }
.ctrl-btn { background: transparent; border: 0; color: #fff; font-size: 16px; cursor: pointer; padding: 4px; }
.ctrl-btn:hover { color: var(--green); }
.ctrl-time { color: #ccc; font-size: 12px; }
.ctrl-spacer { flex: 1; }
.ctrl-fn { color: #ccc; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ctrl-fn:hover, .ctrl-fn.on { color: var(--green); }
/* 广告 banner */
.play-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.play-ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 92px; border-radius: 10px; text-align: center;
  background: linear-gradient(120deg, #ff7ab2 0%, #ff9ec7 45%, #b28cff 100%);
}
.play-ad b { color: #fff; font-size: 20px; font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,.18); }
.play-ad span { color: #fff; font-size: 13px; opacity: .95; }
.play-ad:hover b { text-decoration: underline; }
/* 右侧栏 */
.play-side { background: var(--card); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.play-tabs { display: flex; gap: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.play-tabs a { padding: 8px 2px 10px; color: var(--muted); font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.play-tabs a.selected { color: #fff; font-weight: 700; border-bottom-color: var(--green); }
.play-pane { flex: 1; min-height: 0; overflow-y: auto; }
.play-side-title { margin: 16px 0 8px; font-size: 20px; font-weight: 800; }
.play-side-title a { color: #fff; }
.play-side-title a:hover { color: var(--green); }
.play-side-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.play-side-meta em { font-style: normal; color: #ff8c00; }
.play-side-meta .meta-detail { color: #fff; font-weight: 700; cursor: pointer; }
.play-side-desc { display: none; margin-top: 12px; background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.play-side-desc.open { display: block; }
.play-side-desc b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.play-side-desc p { font-size: 13px; color: #ccc; line-height: 1.8; }
.play-fun { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 6px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.play-fun a { flex: 1; text-align: center; color: #ccc; font-size: 13px; cursor: pointer; }
.play-fun a:hover { color: var(--green); }
.play-share-box { margin-top: 12px; background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.play-share-box .share-tips { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.play-share-box .share-url { display: block; background: rgba(255,255,255,.08); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: #ddd; word-break: break-all; margin-bottom: 8px; }
.play-share-box button { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.play-tips-box { margin-top: 12px; background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.play-tips-box p { font-size: 12px; color: var(--muted2); line-height: 2; }
.play-res-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.play-res-head h5 { font-size: 14px; color: var(--muted); font-weight: 400; }
.play-res-fn { display: flex; gap: 14px; }
.play-res-fn a { color: var(--muted); font-size: 12px; cursor: pointer; }
.play-res-fn a:hover { color: var(--green); }
.play-ep-list { margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.play-ep-list.single { grid-template-columns: 1fr; }
.play-ep-list a {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 11px 14px; background: var(--bg); border: 1px solid transparent; border-radius: 8px;
  color: #ccc; font-size: 13px; gap: 10px;
}
.play-ep-list a:hover { color: #fff; border-color: var(--green); background: #232838; }
.play-ep-list a.cur { background: var(--green); color: #fff; font-weight: 700; }
.play-ep-list a.cur:hover { background: var(--green); }
.play-on { display: inline-flex; gap: 3px; align-items: flex-end; height: 12px; }
.play-on i { width: 3px; background: #fff; border-radius: 1px; animation: eq 1s ease infinite; }
.play-on i:nth-child(1) { height: 6px; animation-delay: 0s; }
.play-on i:nth-child(2) { height: 12px; animation-delay: .2s; }
.play-on i:nth-child(3) { height: 8px; animation-delay: .4s; }
.play-on i:nth-child(4) { height: 10px; animation-delay: .6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.play-comment-empty { text-align: center; color: var(--muted2); padding: 60px 0; font-size: 14px; }
/* 同类型的其他作品 */
.play-related { margin-top: 30px; }
.play-related-head h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.play-related-head span { color: var(--muted); font-weight: 400; }
.play-related-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.play-related-row .card { min-width: 132px; width: 132px; }
.play-related-row .card-title { font-size: 13px; }

/* ---------- 播放前贴片广告 ---------- */
.preroll { position: absolute; inset: 0; z-index: 30; overflow: hidden; background: linear-gradient(135deg, #ff9a9e, #a18cd1); display: flex; align-items: center; justify-content: center; }
.preroll-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.preroll-link { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 0 30px; background: rgba(0,0,0,.28); }
.preroll-link b { font-size: 30px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.preroll-link span { font-size: 15px; opacity: .92; }
.preroll-badge { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 20px; pointer-events: none; }
.preroll-badge i { font-style: normal; color: #ffd76a; font-weight: 700; }
.preroll-close { position: absolute; top: 14px; left: 14px; z-index: 5; background: rgba(0,0,0,.62); color: #fff; border: none; font-size: 14px; padding: 5px 12px; border-radius: 20px; cursor: pointer; }
.preroll-close:hover { background: rgba(0,0,0,.85); }
.preroll-replay { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); z-index: 5; background: rgba(0,0,0,.72); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 14px; padding: 9px 22px; border-radius: 24px; cursor: pointer; }
.preroll-replay:hover { background: rgba(0,0,0,.9); }

/* ---------- 排行榜页 ---------- */
.rk-hero { background: linear-gradient(180deg, #14161a 0%, #101216 100%); text-align: center; padding: 46px 16px 40px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rk-hero h1 { font-size: 34px; font-weight: 800; }
.rk-hero p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.rk-tabs { display: flex; justify-content: center; gap: 38px; padding: 16px 0 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rk-tab { color: var(--muted); font-size: 16px; font-weight: 600; padding: 8px 2px; text-decoration: none; border-bottom: 2px solid transparent; }
.rk-tab.on { color: var(--green); border-bottom-color: var(--green); }
.rk-pane { padding: 26px 0 40px; }
.rk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rk-col { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 0 16px 10px; }
.rk-col-hd { text-align: center; font-size: 20px; font-weight: 800; padding: 16px 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 6px; }
.rk-li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.05); }
.rk-li:last-child { border-bottom: none; }
.rk-li:hover .rk-name { color: var(--green); }
.rk-no { width: 34px; text-align: center; font-size: 26px; font-weight: 800; font-style: italic; color: rgba(255,255,255,.28); flex: 0 0 34px; }
.rk-no1 { color: #ff4d4f; } .rk-no2 { color: #2ecc71; } .rk-no3 { color: #f5c542; }
.rk-cover { width: 56px; height: 76px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; background: #222; }
.rk-info { flex: 1; min-width: 0; }
.rk-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-remarks { font-size: 12px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-heat { flex: 0 0 auto; text-align: right; }
.rk-heat-n { font-size: 14px; font-weight: 700; color: var(--green); }
.rk-heat-n i { font-style: normal; font-size: 12px; margin-right: 3px; }
.rk-heat-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 1000px) { .rk-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rk-cols { grid-template-columns: 1fr; } }

/* ---------- 观看历史页 ---------- */
.hist-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 20px; }
.hist-head h1 { font-size: 24px; font-weight: 800; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 1200px) {
  .play-wrap { grid-template-columns: 1fr 340px; }
}
