/* 光影观影站 —— 全局样式（深色影院风） */
:root {
  --bg: #0a0d13;
  --bg-soft: #0f131c;
  --panel: #151b28;
  --panel-2: #1b2231;
  --panel-3: #222b3d;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e9eef7;
  --text-dim: #b3bccd;
  --muted: #7f8a9e;
  --accent: #35d0e0;
  --accent-2: #6d8cff;
  --accent-grad: linear-gradient(135deg, #35d0e0 0%, #6d8cff 100%);
  --gold: #f2b544;
  --danger: #ff6b6b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }
::selection { background: rgba(53, 208, 224, .3); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: content-box; }

.container { max-width: 1520px; margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------ 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 13, 19, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container { display: flex; align-items: center; gap: 26px; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .5px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(53, 208, 224, .3);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span.sub { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-dim);
  font-size: 14px; white-space: nowrap; transition: .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a.active { color: #04121a; background: var(--accent); font-weight: 600; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search-box { position: relative; width: 320px; }
.search-box input {
  width: 100%; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--text); padding: 0 42px 0 42px; font-size: 14px; outline: none; transition: .2s;
}
.search-box input:focus { border-color: rgba(53, 208, 224, .6); background: rgba(53, 208, 224, .06); box-shadow: 0 0 0 4px rgba(53, 208, 224, .08); }
.search-box .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search-box .go {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-grad); display: grid; place-items: center; color: #04121a;
}
.search-box .go svg { width: 14px; height: 14px; }

.suggest-panel {
  position: absolute; top: 48px; left: 0; right: 0; z-index: 80;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; max-height: 420px; overflow-y: auto; display: none;
}
.suggest-panel.show { display: block; }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: rgba(255, 255, 255, .07); }
.suggest-item .si-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .si-kind { font-size: 12px; color: var(--muted); }
.suggest-item .si-tag { font-size: 11px; color: var(--accent); border: 1px solid rgba(53, 208, 224, .4); padding: 1px 7px; border-radius: 999px; }
.suggest-empty { padding: 14px; color: var(--muted); text-align: center; font-size: 13px; }

/* 右下角悬浮加群按钮（QQ 蓝） */
.float-group { position: fixed; right: 26px; bottom: 30px; z-index: 90; }
.float-group .fg-main {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  color: #04121a; background: linear-gradient(135deg, #45c8f5, #12b7f5);
  box-shadow: 0 12px 28px rgba(18, 183, 245, .4); transition: .2s;
}
.float-group .fg-main:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 34px rgba(18, 183, 245, .5); }
.float-group .fg-main:active { transform: translateY(0) scale(1); }
.float-group .fg-main svg { width: 19px; height: 19px; }
.float-group::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px; z-index: -1;
  background: rgba(18, 183, 245, .45); animation: fgPulse 2.8s ease-out infinite;
}
@keyframes fgPulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.float-group .fg-close {
  position: absolute; top: -6px; right: -4px; width: 21px; height: 21px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--muted); font-size: 13px; line-height: 18px; cursor: pointer;
  opacity: 0; transition: .2s;
}
.float-group:hover .fg-close { opacity: 1; }
.float-group .fg-close:hover { color: var(--text); background: var(--panel-3); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--text-dim);
  display: grid; place-items: center; cursor: pointer; transition: .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* ------------------------------------------------------------ 首页 Hero */
.hero { position: relative; height: 480px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center 22%;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 13, 19, .97) 0%, rgba(10, 13, 19, .78) 38%, rgba(10, 13, 19, .2) 70%, rgba(10, 13, 19, .55) 100%),
              linear-gradient(0deg, var(--bg) 2%, transparent 46%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 54px; }
.hero-content { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--accent); background: rgba(53, 208, 224, .12); border: 1px solid rgba(53, 208, 224, .3);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; white-space: nowrap;
}
.hero-title { font-size: 40px; line-height: 1.15; font-weight: 800; margin: 0 0 12px; letter-spacing: .5px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.hero-meta .dot { color: var(--muted); }
.hero-desc {
  color: var(--text-dim); font-size: 13.5px; margin: 0 0 22px; max-height: 66px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: 32px; bottom: 46px; z-index: 3; display: flex; gap: 8px; }
.hero-dots i {
  width: 26px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .22);
  cursor: pointer; transition: .25s;
}
.hero-dots i.active { background: var(--accent); width: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-grad); color: #04121a; box-shadow: 0 10px 26px rgba(53, 208, 224, .26); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(53, 208, 224, .36); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ 通用区块 */
.section { margin: 34px 0; }
.section-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: .3px; }
.section-head .sub { color: var(--muted); font-size: 12.5px; padding-bottom: 3px; }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.section-head .more:hover { color: var(--accent); }

.row-wrap { position: relative; }
.row-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 2px 12px; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(15, 19, 28, .88); color: var(--text); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: .2s; backdrop-filter: blur(6px);
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: var(--panel-3); }
.row-arrow.left { left: -14px; }
.row-arrow.right { right: -14px; }
.row-arrow svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ 影片卡片 */
.card {
  position: relative; flex: 0 0 auto; width: 168px; cursor: pointer;
  transition: transform .22s ease;
}
.card:hover { transform: translateY(-4px); }
.card-poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.card:hover .card-poster img { transform: scale(1.06); }
.card-poster::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .25s;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1) 55%, transparent);
}
.card:hover .card-poster::after { opacity: 1; }
.card-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(53, 208, 224, .92); color: #04121a; display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: .25s; z-index: 3; border: 0;
}
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-play svg { width: 20px; height: 20px; margin-left: 2px; }
.badge {
  position: absolute; z-index: 2; font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, .68); color: #fff; backdrop-filter: blur(4px); line-height: 1.5;
}
.badge.tl { top: 8px; left: 8px; }
.badge.tr { top: 8px; right: 8px; color: var(--gold); }
.badge.hot { background: rgba(255, 107, 107, .85); }
.card-title {
  margin-top: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: .18s;
}
.card:hover .card-title { color: var(--accent); }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); z-index: 3; }
.card-progress i { display: block; height: 100%; background: var(--accent); }
.card .remove {
  position: absolute; top: 8px; right: 8px; z-index: 4; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: .2s;
}
.card:hover .remove { opacity: 1; }
.card .remove:hover { background: var(--danger); }
.card .remove svg { width: 13px; height: 13px; }

.card.wide { width: 200px; }

/* 网格 */
.grid {
  display: grid; gap: 20px 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.grid .card { width: auto; }
.grid .card:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------ 追剧日历条 */
.calendar-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.calendar-strip::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto; min-width: 108px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: .2s; text-align: center;
}
.day-chip:hover { border-color: var(--line-strong); background: var(--panel-2); }
.day-chip.active { border-color: rgba(53, 208, 224, .6); background: rgba(53, 208, 224, .1); }
.day-chip .dow { color: var(--muted); font-size: 12px; }
.day-chip .dom { font-size: 19px; font-weight: 700; margin: 2px 0 1px; }
.day-chip .cnt { color: var(--muted); font-size: 11.5px; }
.day-chip.active .dom { color: var(--accent); }
.calendar-list { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cal-item {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: .18s;
}
.cal-item:hover { border-color: var(--line-strong); background: var(--panel-2); }
.cal-item img { width: 58px; height: 82px; border-radius: 7px; object-fit: cover; background: var(--panel-2); }
.cal-item .ci-title { font-size: 13.5px; font-weight: 500; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-item .ci-meta { color: var(--muted); font-size: 12px; }
.cal-item .ci-ep { color: var(--accent); font-size: 12px; margin-top: 4px; }

/* ------------------------------------------------------------ 筛选 / 工具条 */
.filter-bar { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row .fl { color: var(--muted); font-size: 13px; margin-right: 4px; flex-shrink: 0; }
.chip {
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--text-dim); font-size: 13px; cursor: pointer; transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #04121a; font-weight: 600; }

.page-title { font-size: 24px; font-weight: 700; margin: 26px 0 6px; }
.page-sub { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.load-more { display: flex; justify-content: center; margin: 34px 0 10px; }

/* ------------------------------------------------------------ 详情页 */
.detail-hero { position: relative; margin-bottom: 26px; }
.detail-backdrop {
  position: absolute; inset: 0; background-size: cover; background-position: center 22%;
  filter: saturate(120%) brightness(.9);
}
.detail-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(10, 13, 19, .92) 42%, rgba(10, 13, 19, .78) 100%),
    linear-gradient(90deg, rgba(10, 13, 19, .96) 0%, rgba(10, 13, 19, .55) 55%, rgba(10, 13, 19, .35) 100%);
}
.detail-main { position: relative; z-index: 2; display: flex; gap: 30px; padding-top: 84px; }
.detail-poster { flex: 0 0 236px; }
.detail-poster img { width: 236px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-info { flex: 1; min-width: 0; padding-top: 22px; }
.detail-info h1 { font-size: 32px; margin: 0 0 12px; font-weight: 800; letter-spacing: .4px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-dim); font-size: 13.5px; margin-bottom: 10px; }
.meta-line .score { color: var(--gold); font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  font-size: 12.5px; color: var(--text-dim); padding: 3px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; transition: .18s;
}
.tag:hover { color: var(--accent); border-color: rgba(53, 208, 224, .5); }
.detail-actions { display: flex; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.detail-desc {
  color: var(--text-dim); font-size: 13.5px; max-width: 900px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-desc.open { -webkit-line-clamp: unset; }
.desc-toggle { color: var(--accent); font-size: 13px; cursor: pointer; margin-top: 4px; display: inline-block; }

.sub-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.sub-panel h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.sub-panel h3 .count { color: var(--muted); font-size: 13px; font-weight: 400; }
.ep-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); max-height: 340px; overflow-y: auto; padding-right: 4px; }
.ep-btn {
  height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text-dim); font-size: 13px; cursor: pointer; transition: .16s; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; padding: 0 8px;
}
.ep-btn:hover { border-color: rgba(53, 208, 224, .6); color: var(--text); }
.ep-btn.active { background: var(--accent); border-color: var(--accent); color: #04121a; font-weight: 600; }
.ep-btn.playing { box-shadow: 0 0 0 2px rgba(53, 208, 224, .35) inset; }
.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.person-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.person-row::-webkit-scrollbar { display: none; }
.person {
  flex: 0 0 auto; width: 96px; text-align: center; cursor: pointer;
}
.person .avatar {
  width: 74px; height: 74px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--panel-3), var(--panel-2)); border: 1px solid var(--line);
  font-size: 22px; font-weight: 700; color: var(--accent);
}
.person .pname { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .prole { font-size: 11px; color: var(--muted); }

/* 评论 */
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .cavatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--panel-3), var(--panel-2)); color: var(--accent); font-weight: 600;
}
.comment .chead { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment .cname { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.comment .ctime { font-size: 12px; color: var(--muted); margin-left: auto; }
.comment .cbody { font-size: 13.5px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.comment .cfoot { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.comment .reply { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }

/* ------------------------------------------------------------ 播放页 */
body.player-page { overflow: hidden; height: 100vh; }
.play-layout { display: flex; height: 100vh; background: #05070b; }
.play-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.play-stage { position: relative; flex: 1; background: #000; display: grid; place-items: center; overflow: hidden; }
.play-stage video { width: 100%; height: 100%; background: #000; }
.play-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 12; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px; color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent);
  transition: opacity .25s;
}
.play-topbar .pt-title { font-size: 16px; font-weight: 600; }
.play-topbar .pt-sub { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.play-topbar .spacer { flex: 1; }
.play-topbar.hide { opacity: 0; pointer-events: none; }
.play-topbar #btn-fav { width: auto; min-width: 38px; padding: 0 14px; gap: 6px; white-space: nowrap; }
.play-topbar #btn-fav span { font-size: 13px; }
.play-topbar #btn-fav.active { color: var(--accent); border-color: rgba(53, 208, 224, .5); }
.play-msg {
  position: absolute; z-index: 14; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); padding: 16px 24px; border-radius: 12px; color: #fff;
  display: flex; align-items: center; gap: 12px; font-size: 14px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.play-msg.err { color: #ffd7d7; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-side { width: 372px; flex-shrink: 0; background: var(--bg-soft); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.side-tabs { display: flex; border-bottom: 1px solid var(--line); }
.side-tabs button {
  flex: 1; height: 48px; background: transparent; border: 0; color: var(--muted); font-size: 14px;
  cursor: pointer; position: relative; transition: .18s;
}
.side-tabs button:hover { color: var(--text); }
.side-tabs button.active { color: var(--accent); font-weight: 600; }
.side-tabs button.active::after { content: ""; position: absolute; left: 26%; right: 26%; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.side-body { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
.side-pane { display: none; }
.side-pane.active { display: block; }

.line-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); margin-bottom: 9px; cursor: pointer; transition: .16s;
}
.line-item:hover { border-color: var(--line-strong); background: var(--panel-2); }
.line-item.active { border-color: rgba(53, 208, 224, .7); background: rgba(53, 208, 224, .1); }
.line-item .lname { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-item .ltag { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid; }
.line-item .ltag.free { color: #4ade80; border-color: rgba(74, 222, 128, .4); }
.line-item .ltag.paid { color: var(--gold); border-color: rgba(242, 181, 68, .4); }
.line-item .ltag.fail { color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.line-item .lcheck { color: var(--accent); }
.line-item .lcheck svg { width: 16px; height: 16px; }

.ep-quick { display: flex; gap: 8px; margin-bottom: 14px; }
.ep-quick .btn { flex: 1; }
.ep-panel-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.side-note { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13.5px; color: var(--text-dim); }
.switch-row select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font-size: 13px; outline: none;
}
.switch {
  position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  cursor: pointer; transition: .2s; border: 0; flex-shrink: 0;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on { background: var(--accent); }

/* 分段选择器（线路优先级等） */
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.04); }
.seg button {
  border: 0; background: transparent; color: var(--text-dim); font-size: 12.5px;
  padding: 6px 14px; cursor: pointer; transition: .18s; white-space: nowrap;
}
.seg button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.seg button.active { background: var(--accent); color: #04121a; font-weight: 600; }
.switch.on::after { left: 21px; }

/* 弹幕层 */
.danmaku-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.dm {
  position: absolute; white-space: nowrap; font-weight: 600; will-change: transform;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
}
.dm.fixed { left: 50%; transform: translateX(-50%); }

/* ------------------------------------------------------------ 通用状态 */
.skeleton { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -120% 0; } }
.sk-card { width: 168px; }
.sk-card .card-poster { border: 0; }
.sk-line { height: 12px; margin-top: 10px; border-radius: 4px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.sub-panel .empty, .side-pane .empty { padding: 26px 12px; }
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }
.empty .e-title { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; }

.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(21, 27, 40, .96); border: 1px solid var(--line-strong); color: var(--text);
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow);
  animation: toastIn .22s ease; backdrop-filter: blur(8px);
}
.toast.err { border-color: rgba(255, 107, 107, .5); color: #ffd7d7; }
.toast.ok { border-color: rgba(74, 222, 128, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px; color: var(--muted); font-size: 12.5px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.site-footer .sep { opacity: .4; }
.site-footer:empty { display: none; }
main.container { padding-bottom: 56px; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1280px) {
  .search-box { width: 240px; }
  .nav a { padding: 8px 11px; }
}
@media (max-width: 1080px) {
  .hero { height: 400px; }
  .hero-title { font-size: 30px; }
}
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 70;
    flex-direction: column; align-items: stretch; background: var(--panel); padding: 10px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .menu-toggle { display: grid; }
  .search-box { width: 100%; }
  .float-group { right: 14px; bottom: 18px; }
  .float-group .fg-main { height: 44px; padding: 0 16px; }
  .detail-main { flex-direction: column; padding-top: 60px; }
  .detail-poster { flex: none; }
  .detail-poster img { width: 168px; }
  .play-layout { flex-direction: column; }
  .play-side { width: 100%; height: 42vh; border-left: 0; border-top: 1px solid var(--line); }
  .play-stage { min-height: 52vh; }
  .hero { height: 340px; }
  .card { width: 130px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; }
}
