/* ==========================================================================
   星火直播 · 前台样式
   ========================================================================== */
:root {
  --bg: #060a12;
  --bg-soft: #0b1220;
  --panel: #101a2c;
  --panel-2: #14203a;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e8eefb;
  --text-soft: #c3cee3;
  --muted: #7f8fa9;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-grad: linear-gradient(120deg, #22d3ee, #818cf8);
  --gold: #fbbf24;
  --gold-grad: linear-gradient(120deg, #fde68a, #f59e0b);
  --danger: #fb7185;
  --ok: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  --header-h: 72px;
  --max: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 88% 0%, rgba(129, 140, 248, 0.18), transparent 65%),
    radial-gradient(800px 700px at 50% 110%, rgba(14, 165, 233, 0.1), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(34, 211, 238, 0.28);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  margin-top: -4px;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.main-nav a.active {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.header-search {
  margin-left: auto;
  position: relative;
  width: min(300px, 28vw);
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  outline: none;
  transition: 0.2s;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search input:focus {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.header-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
  transition: 0.2s;
}

.user-chip:hover {
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.9);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #041018;
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: var(--gold-grad);
  color: #3b2400;
}

.vip-pill.svip {
  background: linear-gradient(120deg, #f0abfc, #a855f7);
  color: #2b0a3d;
}

.vip-pill.vip3 {
  background: linear-gradient(120deg, #fde68a, #f59e0b);
  color: #3b2200;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.user-wrap {
  position: relative;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 168px;
  padding: 7px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  z-index: 60;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  transition: 0.16s;
}

.user-menu a:hover,
.user-menu button:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

.user-menu button {
  color: var(--danger);
}

.announce {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 27, 0.5);
}

.announce .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 40px;
}

.announce-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: #67e8f9;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.announce p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce a {
  margin-left: auto;
  flex-shrink: 0;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 600;
}

/* 功能条 */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.55);
}

.feature .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #67e8f9;
}

.feature .ic svg {
  width: 19px;
  height: 19px;
}

.feature b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.feature span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}

/* 线路切换 */
.line-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.line-group button {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
}

.line-group button.active {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-grad);
  color: #04121b;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.32);
}

.btn-gold {
  background: var(--gold-grad);
  color: #3b2400;
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--text);
  background: rgba(34, 211, 238, 0.06);
}

.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 54px 0 20px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.02);
  }
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #67e8f9 10%, #a5b4fc 55%, #f0abfc 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 0 0 26px;
  max-width: 520px;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.hero-stat b em {
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
  margin-left: 2px;
  font-weight: 700;
}

.hero-art {
  position: relative;
  perspective: 1200px;
}

.preview-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s;
  background: #08101f;
}

.preview-card:hover {
  transform: rotateY(0) rotateX(0) translateY(-4px);
}

.preview-card .preview-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 30%, rgba(2, 6, 23, 0.85));
}

.preview-live {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(225, 29, 72, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.preview-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.preview-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: 0.25s;
}

.preview-play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.preview-card:hover .preview-play {
  background: var(--accent);
  color: #04121b;
  border-color: transparent;
  box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.12);
}

.preview-info {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.preview-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.preview-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.72);
}

.preview-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.float-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(13, 22, 39, 0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
  animation: float 6s ease-in-out infinite;
}

.float-tag img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.float-tag b {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.float-tag span {
  font-size: 10px;
  color: var(--muted);
}

.float-tag.one {
  right: 0;
  top: -54px;
}

.float-tag.two {
  left: 0;
  bottom: -54px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- 分类 & 区块 ---------- */
.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-grad);
}

.section-sub {
  margin: 4px 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: #a5f3fc;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.05);
}

.chip .count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  padding: 1px 7px;
  border-radius: 999px;
}

.chip.active .count {
  background: rgba(34, 211, 238, 0.18);
  color: #67e8f9;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.5);
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 30px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  transition: 0.2s;
}

.seg button.active {
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
}

/* ---------- 频道卡片 ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 18px;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.72), rgba(12, 20, 36, 0.9));
  overflow: hidden;
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s;
}

.channel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.channel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1424;
  overflow: hidden;
}

.channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.channel-card:hover .channel-thumb img {
  transform: scale(1.045);
}

.channel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 18, 0.68));
}

.channel-card.locked .channel-thumb img {
  filter: saturate(0.55) brightness(0.72);
}

.badge-quality {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #e2f9ff;
  background: rgba(6, 10, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.badge-vip {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: var(--gold-grad);
  color: #422b00;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.24);
}

.badge-vip.svip {
  background: linear-gradient(120deg, #f0abfc, #a855f7);
  color: #2d0a40;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.badge-vip.vip3 {
  background: linear-gradient(120deg, #fde68a, #f59e0b);
  color: #3b2200;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.lock-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fde68a;
  background: rgba(6, 10, 18, 0.36);
  opacity: 0;
  transition: 0.24s;
  font-size: 12px;
  font-weight: 700;
}

.lock-hint svg {
  width: 26px;
  height: 26px;
}

.channel-card.locked:hover .lock-hint {
  opacity: 1;
}

.channel-body {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-body .meta {
  min-width: 0;
  flex: 1;
}

.channel-name {
  display: block;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.channel-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.channel-sub .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.channel-go {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: 0.2s;
}

.channel-card:hover .channel-go {
  background: var(--accent);
  border-color: transparent;
  color: #04121b;
  transform: translateX(2px);
}

.channel-go svg {
  width: 14px;
  height: 14px;
}

/* 骨架屏 */
.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.skeleton-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #0e1729 25%, #17233b 50%, #0e1729 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.skeleton-line {
  height: 12px;
  margin: 14px;
  border-radius: 5px;
  background: linear-gradient(90deg, #0e1729 25%, #17233b 50%, #0e1729 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    background-position: -200% 0;
  }
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty svg {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.6);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 44px 0 32px;
}

.footer-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 360px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
  transition: 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  font-size: 13.5px;
  color: var(--text);
  animation: toast-in 0.28s ease;
  max-width: 90vw;
}

.toast.ok {
  border-color: rgba(52, 211, 153, 0.4);
}

.toast.err {
  border-color: rgba(251, 113, 133, 0.45);
}

.toast svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.toast.ok svg {
  color: var(--ok);
}

.toast.err svg {
  color: var(--danger);
}

.toast.out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-brand {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(600px 600px at 90% 90%, rgba(129, 140, 248, 0.24), transparent 60%);
}

.auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-headline {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.auth-headline .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-features {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.auth-feature .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #67e8f9;
  flex-shrink: 0;
}

.auth-feature .ic svg {
  width: 18px;
  height: 18px;
}

.auth-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: min(100%, 420px);
  padding: 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
}

.auth-card .hint {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: flex;
  padding: 4px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.auth-tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
}

.auth-tabs button.active {
  background: var(--accent-grad);
  color: #04121b;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.2);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.55);
  color: var(--text);
  outline: none;
  transition: 0.2s;
}

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.07);
}

.field .err {
  margin-top: 5px;
  color: var(--danger);
  font-size: 12px;
  min-height: 16px;
}

.auth-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-extra a {
  color: #67e8f9;
}

.auth-demo {
  margin-top: 22px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.4);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-demo b {
  color: var(--text-soft);
  font-weight: 600;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.auth-back:hover {
  color: var(--accent);
}

/* ---------- 播放页 ---------- */
.watch-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.watch-main {
  flex: 1;
  padding: 26px 0 40px;
}

.watch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.watch-breadcrumb a:hover {
  color: var(--accent);
}

.watch-breadcrumb span {
  color: #4b5b73;
}

.watch-live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
  color: #67e8f9 !important;
  font-size: 10.5px;
  font-weight: 600;
}

.watch-live-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.player-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.8), rgba(9, 15, 27, 0.95));
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(1000px 400px at 50% -10%, #0e1c33, #060a12 70%);
}

.player-stage .video-js {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.player-stage video {
  width: 100%;
  height: 100%;
}

.player-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: radial-gradient(800px 400px at 50% 40%, rgba(14, 28, 51, 0.92), rgba(6, 10, 18, 0.98));
}

.player-state .spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-state h3 {
  margin: 0;
  font-size: 19px;
}

.player-state p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
}

.player-state .lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold);
}

.player-state .lock-icon svg {
  width: 28px;
  height: 28px;
}

.player-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.6);
}

.player-toolbar .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  background: rgba(225, 29, 72, 0.9);
}

.player-toolbar .live-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.4s infinite;
}

.quality-group {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.quality-group button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.quality-group button.active {
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  transition: 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.channel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 14px;
}

.channel-logo-lg {
  width: 108px;
  height: 61px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
  background: #0b1526;
}

.channel-head h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.channel-head .sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.channel-head .sub .tag {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.channel-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.watch-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.side-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.7);
  overflow: hidden;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}

.side-head span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.side-list {
  max-height: 430px;
  overflow-y: auto;
  padding: 7px;
  scrollbar-width: thin;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 10px;
  transition: 0.18s;
}

.side-item:hover {
  background: rgba(148, 163, 184, 0.07);
}

.side-item.active {
  background: rgba(34, 211, 238, 0.09);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.side-item img {
  width: 52px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-item .name {
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-item .meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.side-item .lock {
  margin-left: auto;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.info-panel {
  padding: 17px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.info-panel b {
  color: var(--text-soft);
  font-weight: 600;
}

.info-rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.info-row:last-child {
  border: 0;
  padding-bottom: 0;
}

.info-row span:last-child {
  color: var(--text-soft);
  text-align: right;
}

/* video.js 皮肤覆盖 */
.video-js {
  font-family: var(--font) !important;
  background-color: #05080f !important;
}

.video-js .vjs-big-play-button {
  width: 78px !important;
  height: 78px !important;
  line-height: 76px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(34, 211, 238, 0.9) !important;
  color: #04121b !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.08);
}

.video-js:hover .vjs-big-play-button {
  background: #22d3ee !important;
}

.video-js .vjs-control-bar {
  height: 3.4em !important;
  background: linear-gradient(0deg, rgba(3, 7, 15, 0.92), rgba(3, 7, 15, 0)) !important;
  padding: 0 8px;
}

.video-js .vjs-play-progress {
  background: #22d3ee !important;
}

.video-js .vjs-load-progress div {
  background: rgba(148, 163, 184, 0.3) !important;
}

.video-js .vjs-slider {
  background: rgba(148, 163, 184, 0.25) !important;
}

.video-js .vjs-volume-level {
  background: #22d3ee !important;
}

.video-js .vjs-time-control {
  font-size: 1.15em !important;
  line-height: 3em !important;
}

.video-js .vjs-live-display {
  font-size: 1.1em !important;
}

.vjs-live .vjs-progress-control {
  display: none !important;
}

/* ---------- 会员中心 ---------- */
.account-page {
  padding: 34px 0 50px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 17px 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.6);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.4px;
}

.stat-card b {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.stat-card b em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 3px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.benefit-list {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: var(--text-soft);
}

.benefit .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
}

.benefit .check svg {
  width: 12px;
  height: 12px;
}

.benefit b {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.benefit span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.settings-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.6);
  overflow: hidden;
}

.settings-card .head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}

.settings-card .body {
  padding: 20px 18px;
}

.settings-card .field:last-of-type {
  margin-bottom: 8px;
}

.link {
  color: #67e8f9;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
}

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

.table-actions {
  display: flex;
  gap: 6px;
}

.table-actions button {
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-soft);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
}

.table-actions button:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.account-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(17, 30, 52, 0.95), rgba(25, 20, 51, 0.95));
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 260px at 85% 20%, rgba(129, 140, 248, 0.22), transparent 65%),
    radial-gradient(400px 260px at 10% 90%, rgba(34, 211, 238, 0.16), transparent 65%);
  pointer-events: none;
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.avatar-lg {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #04121b;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-id h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-id p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account-hero .vip-card {
  margin-left: auto;
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.14), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.vip-card .label {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #fcd34d;
  font-weight: 700;
}

.vip-card .expire {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-soft);
}

.vip-card .expire b {
  color: #fde68a;
  font-weight: 650;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 26px 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  white-space: nowrap;
  transition: 0.2s;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button.active {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.7), rgba(11, 18, 32, 0.9));
  transition: 0.24s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-3px);
}

.plan-card.featured {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12), 0 20px 40px rgba(2, 6, 23, 0.4);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--gold-grad);
  color: #3b2400;
}

.plan-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.plan-card .level-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: #fcd34d;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 16px 0 4px;
}

.plan-price b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.plan-price b::before {
  content: "¥";
  font-size: 16px;
  margin-right: 2px;
  font-weight: 600;
  opacity: 0.85;
}

.plan-price s {
  color: var(--muted);
  font-size: 12px;
}

.plan-duration {
  color: var(--muted);
  font-size: 12px;
}

.plan-desc {
  margin: 12px 0 18px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.7;
  flex: 1;
}

.plan-card .btn {
  width: 100%;
}

.table-wrap {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.6);
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

table.data th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  white-space: nowrap;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: rgba(148, 163, 184, 0.03);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status.paid {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}

.status.pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.status.cancelled,
.status.expired {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
}

.status.refunded {
  color: #f0abfc;
  background: rgba(240, 171, 252, 0.1);
}

/* ---------- 首页幻灯片 ---------- */
.banner-showcase {
  padding: 26px 0 0;
}

.banner-slider {
  position: relative;
  aspect-ratio: 8 / 3;
  max-height: 470px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #07101f;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.04);
}

.banner-track {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6.5s ease;
  opacity: 0.92;
}

.banner-slide.active img {
  transform: scale(1);
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.88) 0%, rgba(3, 8, 18, 0.55) 38%, rgba(3, 8, 18, 0.08) 72%),
    linear-gradient(0deg, rgba(3, 8, 18, 0.65), transparent 55%);
}

.banner-content {
  position: absolute;
  z-index: 3;
  left: 52px;
  bottom: 48px;
  max-width: min(560px, 60%);
  pointer-events: none;
}

.banner-content .btn {
  pointer-events: auto;
}

.banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(8px);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.banner-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}

.banner-content h2 {
  margin: 16px 0 8px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.banner-content p {
  margin: 0 0 20px;
  max-width: 480px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 12, 24, 0.45);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.2s;
}

.banner-slider:hover .banner-arrow {
  opacity: 1;
}

.banner-arrow:hover {
  background: var(--accent);
  border-color: transparent;
  color: #04121b;
}

.banner-arrow.prev {
  left: 18px;
}

.banner-arrow.next {
  right: 18px;
}

.banner-arrow svg {
  width: 18px;
  height: 18px;
}

.banner-dots {
  position: absolute;
  z-index: 4;
  right: 30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: 0.3s;
}

.banner-dot.active {
  width: 26px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}

.banner-counter {
  position: absolute;
  z-index: 4;
  right: 30px;
  top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .banner-content {
    left: 28px;
    bottom: 30px;
    max-width: 75%;
  }
  .banner-content h2 {
    margin-top: 10px;
  }
  .banner-content p {
    display: none;
  }
  .banner-slider {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 680px) {
  .banner-showcase {
    padding-top: 16px;
  }
  .banner-slider {
    aspect-ratio: 4 / 3;
    max-height: 320px;
    border-radius: 16px;
  }
  .banner-content {
    left: 18px;
    right: 18px;
    bottom: 22px;
    max-width: none;
  }
  .banner-content h2 {
    font-size: 23px;
    margin: 10px 0 12px;
  }
  .banner-content .btn {
    height: 34px;
    font-size: 12px;
    padding: 0 14px;
  }
  .banner-arrow {
    display: none;
  }
  .banner-dots {
    right: 18px;
    bottom: 18px;
  }
  .banner-counter {
    right: 18px;
    top: 16px;
  }
}

/* ---------- 影视点播 ---------- */
.chip-vod {
  border-color: rgba(251, 191, 36, 0.35) !important;
  background: rgba(251, 191, 36, 0.08) !important;
  color: #fcd34d !important;
}

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}

.vod-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.6), rgba(10, 17, 30, 0.9));
  transition: 0.22s;
}

.vod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.5);
}

.vod-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0b1424;
  overflow: hidden;
}

.vod-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.vod-card:hover .vod-poster img {
  transform: scale(1.04);
}

.vod-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 16, 0.75));
}

.vod-score {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(6, 10, 18, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-size: 10px;
  font-weight: 700;
}

.vod-remarks {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(6, 10, 18, 0.68);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-body {
  padding: 10px 11px 12px;
}

.vod-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
}

.vod-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
}

.vod-search input {
  width: 240px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 17, 30, 0.75);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.vod-search input:focus {
  border-color: rgba(129, 140, 248, 0.6);
}

.vod-titlebar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vod-titlebar h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.5px;
}

.vod-titlebar .vod-detail-meta {
  margin-top: 0;
  padding-bottom: 3px;
}

.vod-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.vod-detail-info {
  display: flex;
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.78), rgba(9, 15, 27, 0.9));
}

.vod-detail-cover {
  width: 150px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #0b1424;
}

.vod-detail-main {
  min-width: 0;
}

.vod-detail-main h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.vod-detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.vod-detail-meta .tag {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.vod-detail-desc {
  margin: 15px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
}

.vod-play-panel {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #05080f;
}

.vod-play-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05080f;
}

.vod-play-stage .video-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vod-play-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(700px 360px at 50% 40%, rgba(14, 28, 51, 0.9), rgba(5, 8, 15, 0.98));
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.vod-play-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.episode-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.7);
  overflow: hidden;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  max-height: 330px;
  overflow-y: auto;
}

.episode-btn {
  min-width: 78px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.7);
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
  transition: 0.16s;
}

.episode-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

.episode-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.6);
  color: #c7d2fe;
}

.vod-side-list {
  padding: 0 10px 10px;
}

.vod-side-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 9px;
  transition: 0.16s;
}

.vod-side-item:hover {
  background: rgba(148, 163, 184, 0.07);
}

.vod-side-item img {
  width: 44px;
  height: 62px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.vod-side-item .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  max-height: 34px;
  overflow: hidden;
}

.vod-side-item .meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.vod-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vod-search .input {
  width: 240px;
}

.vod-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.vod-pager button {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-soft);
  font-size: 12px;
}

.vod-pager button:disabled {
  opacity: 0.35;
}

@media (max-width: 900px) {
  .vod-detail {
    grid-template-columns: 1fr;
  }
  .vod-detail-cover {
    width: 110px;
  }
}

@media (max-width: 680px) {
  .vod-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .vod-detail-info {
    gap: 14px;
    padding: 15px;
  }
  .vod-detail-cover {
    width: 86px;
  }
  .vod-detail-main h1 {
    font-size: 21px;
  }
  .vod-search .input {
    width: 100%;
  }
  .vod-search input {
    width: 100%;
  }
}

/* ---------- EPG 节目单 ---------- */
.epg-page {
  padding-bottom: 46px;
}

.epg-hero {
  padding: 40px 0 18px;
  border-bottom: 1px solid var(--line);
}

.epg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.epg-head h1 {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
}

.epg-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.epg-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.epg-date {
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  outline: none;
  color-scheme: dark;
}

.epg-nav-btn {
  width: 38px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-soft);
  display: grid;
  place-items: center;
}

.epg-nav-btn:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent);
}

.epg-date-label {
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
  min-width: 62px;
  text-align: center;
}

.epg-board {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 30, 0.62);
  overflow: hidden;
}

.epg-scroll {
  overflow-x: auto;
}

.epg-inner {
  min-width: 920px;
}

.epg-ruler {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  height: 32px;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid var(--line);
}

.epg-ruler .label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  border-right: 1px solid var(--line);
}

.epg-ticks {
  position: relative;
}

.epg-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  padding-left: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 32px;
  white-space: nowrap;
}

.epg-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.epg-row:last-child {
  border-bottom: 0;
}

.epg-channel {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-right: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.6);
  min-width: 0;
}

.epg-channel img {
  width: 56px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0b1526;
}

.epg-channel .meta {
  min-width: 0;
  flex: 1;
}

.epg-channel b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.epg-channel span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-track {
  position: relative;
  height: 62px;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 24 - 1px), rgba(148, 163, 184, 0.075) calc(100% / 24 - 1px), rgba(148, 163, 184, 0.075) calc(100% / 24)),
    rgba(8, 14, 25, 0.35);
}

.epg-program {
  position: absolute;
  top: 7px;
  bottom: 7px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.9);
  padding: 6px 8px;
  overflow: hidden;
  z-index: 2;
  transition: 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 3px;
}

.epg-program:hover {
  filter: brightness(1.25);
  border-color: rgba(34, 211, 238, 0.5);
  z-index: 3;
}

.epg-program b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-program time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.epg-program.c1 {
  background: rgba(8, 145, 178, 0.18);
  border-color: rgba(34, 211, 238, 0.24);
}
.epg-program.c2 {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.25);
}
.epg-program.c3 {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(192, 132, 252, 0.24);
}
.epg-program.c4 {
  background: rgba(251, 191, 36, 0.13);
  border-color: rgba(251, 191, 36, 0.22);
}
.epg-program.c5 {
  background: rgba(52, 211, 153, 0.13);
  border-color: rgba(52, 211, 153, 0.22);
}

.epg-program.now {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 20px rgba(34, 211, 238, 0.12);
}

.epg-program.now b {
  color: #a5f3fc;
}

.epg-program.now::before {
  content: "直播中";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8px;
  color: #67e8f9;
  letter-spacing: 0.4px;
}

.epg-empty {
  padding: 54px 24px;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.epg-no-data {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
}

.epg-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #f43f5e;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.epg-empty h3 {
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 17px;
}

.epg-empty p {
  margin: 0;
  font-size: 13px;
}

.epg-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.epg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.epg-pager button {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-soft);
  font-size: 12px;
}

.epg-pager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.epg-pager span {
  color: var(--muted);
  font-size: 12px;
  min-width: 70px;
  text-align: center;
}

/* 播放页节目单（CCTV 风格：播放器下方横向节目带） */
.watch-epg-bar {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.78), rgba(9, 15, 27, 0.9));
  overflow: hidden;
}

.watch-epg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.watch-epg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.watch-epg-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.watch-epg-source {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
}

.watch-epg-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 11px 14px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.watch-epg-loading {
  padding: 6px 4px;
  color: var(--muted);
  font-size: 12px;
}

.watch-epg-card {
  flex: 0 0 180px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.65);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: 0.18s;
}

.watch-epg-card:hover {
  border-color: rgba(148, 163, 184, 0.3);
}

.watch-epg-card.now {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(10, 17, 30, 0.7));
}

.watch-epg-card time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.watch-epg-card b {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-epg-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-epg-card.now span {
  color: #67e8f9;
}

.watch-epg-card .epg-progress {
  height: 3px;
  margin: 7px 0 0;
}

/* 播放页节目单 */
.epg-panel {
  padding: 14px 16px;
}

.epg-now-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #67e8f9;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.epg-now-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite;
}

.epg-now-title {
  margin: 6px 0 3px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-now-time {
  color: var(--muted);
  font-size: 11px;
}

.epg-progress {
  height: 4px;
  margin: 10px 0 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.epg-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent-grad);
}

.epg-upcoming {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.epg-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
}

.epg-item:last-child {
  border-bottom: 0;
}

.epg-item time {
  width: 40px;
  flex-shrink: 0;
  color: #67e8f9;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.epg-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
}

.epg-panel .epg-empty-mini {
  padding: 10px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 15, 0.7);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal-card {
  width: min(100%, 440px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #0d1525;
  box-shadow: var(--shadow);
  padding: 26px;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-summary {
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  font-size: 13px;
}

.modal-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
}

.modal-summary .row b {
  color: var(--text);
  font-weight: 600;
}

.modal-summary .total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.modal-summary .total b {
  color: var(--gold);
  font-size: 18px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-side {
    position: static;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-art {
    max-width: 640px;
  }
  .float-tag.two {
    left: 0;
  }
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .epg-ruler,
  .epg-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .epg-inner {
    min-width: 800px;
  }
  .epg-channel img {
    width: 48px;
    height: 27px;
  }
  .two-col,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
  .header-search {
    width: min(240px, 34vw);
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .auth-aside {
    min-height: 100vh;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .account-hero {
    flex-wrap: wrap;
  }
  .account-hero .vip-card {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 62px;
  }
  .container {
    width: calc(100% - 28px);
  }
  .brand-sub,
  .user-name {
    display: none;
  }
  .header-search {
    width: 40px;
    height: 40px;
  }
  .header-search input {
    padding: 0;
    width: 40px;
    text-align: center;
    cursor: pointer;
  }
  .header-search input::placeholder {
    color: transparent;
  }
  .header-search svg {
    left: 12px;
  }
  .header-search.open {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 10px;
    width: auto;
    z-index: 5;
  }
  .header-search.open input {
    width: 100%;
    padding: 0 16px 0 42px;
    text-align: left;
    cursor: text;
  }
  .user-chip {
    border: 0;
    background: transparent;
    padding: 0;
  }
  .hero {
    padding-top: 34px;
  }
  .hero-stats {
    gap: 22px;
  }
  .hero-stat b {
    font-size: 21px;
  }
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .channel-body {
    padding: 10px 11px 12px;
  }
  .channel-go {
    display: none;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 20px;
  }
  .float-tag {
    display: none;
  }
  .preview-card {
    transform: none;
  }
  .channel-head {
    flex-wrap: wrap;
    padding: 15px;
  }
  .channel-logo-lg {
    width: 86px;
    height: 48px;
    border-radius: 10px;
  }
  .channel-actions {
    margin-left: 0;
    width: 100%;
  }
  .watch-main {
    padding-top: 14px;
  }
  .account-hero {
    padding: 20px;
  }
  .account-id h1 {
    font-size: 21px;
  }
  .avatar-lg {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    font-size: 24px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .announce p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .announce a {
    display: none;
  }
  .player-toolbar {
    gap: 7px;
  }
  .epg-hero {
    padding-top: 26px;
  }
  .epg-head {
    align-items: flex-start;
  }
  .epg-controls {
    width: 100%;
  }
  .epg-date {
    flex: 1;
  }
  .epg-ruler,
  .epg-row {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .epg-inner {
    min-width: 760px;
  }
  .epg-channel {
    padding: 8px;
    gap: 7px;
  }
  .epg-channel img {
    width: 40px;
    height: 23px;
  }
  .epg-channel b {
    font-size: 11.5px;
  }
  .epg-track {
    height: 56px;
  }
  .quality-group {
    margin-left: 0;
  }
  .auth-card {
    padding: 24px;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.35);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 播放互动：弹幕 / 礼物 / 评论 / 倍速 ---------- */
.danmaku-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.danmaku-item {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  animation: danmaku-move linear forwards;
  will-change: transform;
}

@keyframes danmaku-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100%)); }
}

.speed-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.speed-control select {
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.8);
  color: var(--text-soft);
  font-size: 11px;
}

.watch-interaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.72);
}

.danmaku-send {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.danmaku-send input {
  flex: 1;
  min-width: 120px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.65);
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.danmaku-send input:focus {
  border-color: rgba(129, 140, 248, 0.55);
}

.danmaku-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.interaction-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.comments-panel {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.7);
  overflow: hidden;
}

.comments-body {
  padding: 14px;
}

.comment-form {
  margin-bottom: 12px;
}

.comment-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-form-row select,
.comment-form-row input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.6);
  color: var(--text);
  font-size: 12px;
  padding: 0 9px;
}

.comment-form-row input {
  flex: 1;
  min-width: 180px;
}

.comment-login-tip {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.comment-login-tip a {
  color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 310px;
  overflow-y: auto;
}

.comment-item {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.comment-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 11.5px;
}

.comment-item-head b {
  color: var(--text);
  font-size: 12px;
}

.comment-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.comment-item p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.gift-dialog {
  width: min(520px, calc(100vw - 28px));
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #111c31, #0a111e);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.gift-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 16px;
}

.gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.04);
  color: var(--text-soft);
  font-size: 11px;
}

.gift-item:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.08);
}

.gift-item .icon {
  font-size: 25px;
}

.gift-item .price {
  color: var(--gold);
  font-size: 10px;
}

.gift-dialog-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.gift-float {
  position: absolute;
  right: 18px;
  bottom: 70px;
  z-index: 8;
  font-size: 34px;
  pointer-events: none;
  animation: gift-float 2.5s ease-out forwards;
}

@keyframes gift-float {
  0% { opacity: 0; transform: translateY(20px) scale(.6); }
  20% { opacity: 1; transform: translateY(0) scale(1.1); }
  100% { opacity: 0; transform: translateY(-120px) scale(.9); }
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}

@media (max-width: 680px) {
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
  .watch-interaction { align-items: stretch; }
  .danmaku-send { min-width: 0; }
  .interaction-actions { justify-content: flex-end; }
}

/* ---------- 会员专区 ---------- */
.vip-page {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(251, 191, 36, 0.16), transparent 65%),
    radial-gradient(800px 500px at 90% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--bg);
}

.vip-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
  border-bottom: 1px solid var(--line);
}

.vip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.08), transparent 45%, rgba(129, 140, 248, 0.1));
  pointer-events: none;
}

.vip-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.vip-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.vip-hero-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.vip-hero-copy h1 span {
  background: linear-gradient(100deg, #fde68a, #f59e0b 55%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vip-hero-copy p {
  max-width: 540px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.vip-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.vip-hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.vip-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vip-tier {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 52, 0.85), rgba(8, 14, 26, 0.95));
  overflow: hidden;
  transition: 0.2s;
}

.vip-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.35);
}

.vip-tier.gold {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(70, 48, 15, 0.75), rgba(18, 13, 6, 0.95));
}

.vip-tier.purple {
  border-color: rgba(192, 132, 252, 0.35);
}

.vip-tier.blue {
  border-color: rgba(56, 189, 248, 0.32);
}

.vip-tier.current {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.28), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.vip-tier-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.vip-tier-icon {
  font-size: 20px;
}

.vip-tier h3 {
  margin: 10px 0 4px;
  font-size: 21px;
}

.vip-tier-price {
  color: #fcd34d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.vip-tier ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.vip-tier ul li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-tier-line {
  height: 1px;
  background: var(--line);
  margin-bottom: 10px;
}

.vip-tier-level {
  color: var(--muted);
  font-size: 10.5px;
}

.vip-section {
  padding: 34px 0;
}

.vip-compare {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(13, 21, 37, 0.6);
}

.vip-compare-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12.5px;
}

.vip-compare-row:last-child {
  border-bottom: 0;
}

.vip-compare-row > span {
  text-align: center;
}

.vip-compare-row > span:first-child {
  text-align: left;
  color: var(--text);
}

.vip-compare-row.head {
  min-height: 54px;
  background: rgba(251, 191, 36, 0.05);
  font-weight: 700;
}

.vip-compare-row.head .gold { color: #fcd34d; }
.vip-compare-row.head .purple { color: #d8b4fe; }
.vip-compare-row.head .blue { color: #7dd3fc; }

.vip-compare-row .yes {
  color: #34d399;
  font-size: 16px;
}

.vip-compare-row .no {
  color: #475569;
  font-style: normal;
}

.vip-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.vip-category-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.65);
}

.vip-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.1);
  font-size: 22px;
  flex-shrink: 0;
}

.vip-category-card h3 {
  margin: 0;
  font-size: 14px;
}

.vip-category-card p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.vip-category-need {
  color: #fcd34d;
  font-size: 10.5px;
}

.vip-category-lock {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.vip-plan-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 52, 0.85), rgba(8, 14, 26, 0.95));
}

.vip-plan-card.purple {
  border-color: rgba(192, 132, 252, 0.32);
}

.vip-plan-card.gold {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, rgba(67, 46, 15, 0.8), rgba(18, 13, 6, 0.96));
}

.vip-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fcd34d;
  font-size: 11px;
  font-weight: 700;
}

.vip-plan-head em {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.14);
  font-style: normal;
  font-size: 9.5px;
}

.vip-plan-card h3 {
  margin: 9px 0 10px;
  font-size: 17px;
}

.vip-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #fcd34d;
}

.vip-plan-price small {
  font-size: 13px;
}

.vip-plan-price b {
  font-size: 32px;
  letter-spacing: -1px;
}

.vip-plan-price s {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.vip-plan-days {
  min-height: 38px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.vip-plan-card .btn {
  margin-top: auto;
}

.vip-footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .vip-hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .vip-tiers { max-width: 620px; }
}

@media (max-width: 680px) {
  .vip-hero { padding: 34px 0 30px; }
  .vip-tiers { grid-template-columns: 1fr; }
  .vip-tier ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .vip-compare { overflow-x: auto; }
  .vip-compare-row { min-width: 620px; }
}

.vod-speed {
  height: 30px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.8);
  color: var(--text-soft);
  font-size: 11px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.favorite-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 37, 0.65);
  color: var(--text);
  transition: 0.16s;
}

.favorite-card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  transform: translateY(-2px);
}

.favorite-card img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #0b1424;
  flex-shrink: 0;
}

.favorite-card b {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.vod-lock {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(20, 14, 4, 0.82);
  color: #fcd34d;
  font-size: 9.5px;
  font-weight: 700;
}

/* ---------- 积分商城 ---------- */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.exchange-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 52, 0.75), rgba(8, 14, 26, 0.9));
}

.exchange-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.1);
  font-size: 26px;
  flex-shrink: 0;
}

.exchange-info {
  flex: 1;
  min-width: 0;
}

.exchange-type {
  color: #fcd34d;
  font-size: 10px;
  font-weight: 700;
}

.exchange-info h3 {
  margin: 3px 0 4px;
  font-size: 14px;
}

.exchange-info p {
  margin: 0;
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.exchange-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.exchange-meta b {
  color: #fcd34d;
}

.exchange-item > .btn {
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .exchange-item {
    flex-wrap: wrap;
  }
  .exchange-item > .btn {
    width: 100%;
  }
}

/* ---------- 积分商城概览 / 观看记录 / 头像 ---------- */
.exchange-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}

.exchange-summary-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 31, 52, 0.7), rgba(8, 14, 26, 0.9));
}

.exchange-summary-card span,
.exchange-summary-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.exchange-summary-card b {
  display: block;
  margin-top: 3px;
  color: #fcd34d;
  font-size: 20px;
}

.exchange-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.history-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 20, 35, 0.86);
  color: inherit;
  text-decoration: none;
}

.history-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.history-cover {
  position: relative;
  width: 112px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #0a1220;
}

.history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-kind {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.66);
  color: #93c5fd;
  font-size: 9px;
}

.history-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.history-progress i {
  display: block;
  height: 100%;
  background: #38bdf8;
}

.history-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.history-body b {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-body span,
.history-body em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-del {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.history-del:hover {
  color: var(--danger);
}

.avatar-edit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar-preview {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0a1220;
}

@media (max-width: 680px) {
  .exchange-summary {
    grid-template-columns: 1fr;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
}

.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.preview-video.is-playing {
  opacity: 1;
}

.preview-card:has(.preview-video.is-playing) .preview-bg {
  opacity: 0;
}

.preview-toggle {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.preview-toggle:hover,
.preview-toggle.is-paused {
  border-color: rgba(34, 211, 238, 0.65);
  color: #67e8f9;
}

.chip-more {
  border-style: dashed !important;
  color: #fcd34d !important;
}

#categoryChips {
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

#categoryChips.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

#categoryChips .chip {
  flex-shrink: 0;
}

.line-group button.line-speed {
  border-style: dashed;
  color: #fcd34d;
}
