/* ==========================================================================
   幕间放映室 · 样式表
   ========================================================================== */

:root {
  --bg: #060a10;
  --bg-soft: #080d14;
  --panel: #0b1119;
  --panel-2: #0f1721;
  --panel-3: #141d29;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef2;
  --muted: #8b93a4;
  --muted-2: #666e7e;
  --accent: #56c6e8;
  --accent-2: #a5e7f8;
  --accent-soft: rgba(86, 198, 232, 0.12);
  --live: #3ddc97;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(1000px 620px at 12% -10%, rgba(86, 198, 232, 0.07), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(84, 110, 180, 0.08), transparent 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(86, 198, 232, 0.3); }

.wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  padding: 3px;
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: -4px;
}

.head-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.head-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s, background 0.2s;
}

.head-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

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

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.22);
  background: rgba(61, 220, 151, 0.06);
  font-size: 12.5px;
  color: #a9f2cd;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #041820;
  font-weight: 650;
  box-shadow: 0 8px 24px -12px rgba(86, 198, 232, 0.9);
}

.btn-primary:hover { background: linear-gradient(135deg, #c9f2ff, #7fd6ef); color: #03141b; }

.btn-ghost { background: transparent; }

.btn-danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.25); background: rgba(255, 107, 107, 0.06); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.12); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   首页：Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: 12px;
  min-height: 380px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.95);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.1) 0%, rgba(7, 8, 11, 0.55) 48%, rgba(7, 8, 11, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.85) 0%, rgba(7, 8, 11, 0.35) 55%, rgba(7, 8, 11, 0.15) 100%);
}

.hero-body {
  padding: 40px 44px 38px;
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero p {
  color: #b9c0cd;
  margin: 0 0 26px;
  font-size: 14.5px;
  max-width: 540px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-meta b { color: var(--text); font-weight: 600; }

/* 无影片时的空状态 */
.hero-empty {
  padding: 64px 44px;
  width: 100%;
  text-align: center;
}

.hero-empty h1 { font-size: clamp(26px, 3.4vw, 36px); }
.hero-empty p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   首页：片单
   -------------------------------------------------------------------------- */

.shelf { margin-top: 58px; }

.shelf-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.shelf-head h2 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  margin: 0;
  font-weight: 600;
}

.shelf-head span { font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.08em; }

.shelf-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

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

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(86, 198, 232, 0.34);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1016 center/cover no-repeat;
  overflow: hidden;
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 11, 0.55) 100%);
}

.card-thumb .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 46px;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.1em;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.card-play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  transform: scale(0.9);
  transition: transform 0.25s;
}

.card-play svg { width: 18px; height: 18px; margin-left: 2px; color: #fff; }
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1); }

.badge-live {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(61, 220, 151, 0.3);
  color: #b6f4d6;
  font-size: 11px;
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

.badge-live .live-dot { width: 5px; height: 5px; }

.badge-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(6, 8, 11, 0.8);
  font-family: var(--mono);
  font-size: 11px;
  color: #d7dce6;
}

.card-body { padding: 15px 17px 17px; }

.card-title {
  font-size: 14.5px;
  font-weight: 560;
  margin: 0 0 5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.card-sub {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-foot {
  margin-top: 76px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 12px;
  flex-wrap: wrap;
}

.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   观看页
   -------------------------------------------------------------------------- */

.watch-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }
.back-link svg { width: 15px; height: 15px; }

.watch-head .live-pill { margin-left: auto; }

.watch-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.stage-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s;
}

.stage-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(6, 7, 10, 0.55), rgba(6, 7, 10, 0.92));
}

.stage-cover.hide { opacity: 0; pointer-events: none; }

.cover-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.play-big {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(86, 198, 232, 0.5);
  background: rgba(86, 198, 232, 0.1);
  backdrop-filter: blur(10px);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.play-big:hover { transform: scale(1.06); background: rgba(86, 198, 232, 0.18); }
.play-big svg { width: 26px; height: 26px; margin-left: 3px; }

.cover-title {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.cover-note { font-size: 12px; color: #a8b0bf; letter-spacing: 0.08em; }

.nick-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(10, 12, 17, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 6px 5px 16px;
  backdrop-filter: blur(10px);
}

.nick-row input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
  width: 150px;
  font-family: inherit;
}

.nick-row input::placeholder { color: var(--muted-2); }

/* 水印 */
.watermark {
  position: absolute;
  z-index: 4;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: left 1.4s ease, top 1.4s ease, opacity 0.6s;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 播放器控件 */
.ctrls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 46px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 8, 0.88) 62%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}

.stage.show-ui .ctrls,
.stage:hover .ctrls { opacity: 1; transform: translateY(0); }
.stage.hide-cursor { cursor: none; }

.progress {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 11px;
  overflow: hidden;
  pointer-events: none;
}

.progress .buf,
.progress .fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 99px;
  width: 0;
}

.progress .buf { background: rgba(255, 255, 255, 0.18); }
.progress .fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dfe4ec;
}

.ctrl-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: #e8ecf3;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ctrl-btn svg { width: 18px; height: 18px; }

.time-code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #c3cad6;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ctrl-spacer { flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #c9d0dc;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chip svg { width: 12px; height: 12px; color: var(--accent); }

.vol-wrap { display: flex; align-items: center; gap: 7px; }
.vol-wrap input[type="range"] {
  width: 0;
  opacity: 0;
  transition: width 0.22s, opacity 0.22s;
  accent-color: var(--accent);
  cursor: pointer;
}
.vol-wrap:hover input[type="range"],
.vol-wrap:focus-within input[type="range"] { width: 74px; opacity: 1; }

/* 提示气泡 */
.stage-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  z-index: 9;
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f4f8;
  font-size: 13px;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 82%;
  text-align: center;
}

.stage-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stage-toast.warn { border-color: rgba(255, 107, 107, 0.4); }
.stage-toast b { color: var(--accent); font-weight: 600; }

.spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.spinner.show { opacity: 1; }

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

/* 右侧信息 */
.watch-side { position: sticky; top: 20px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.watch-title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.32;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tag.gold { color: var(--accent); border-color: rgba(86, 198, 232, 0.25); background: var(--accent-soft); }

.watch-desc {
  color: #a9b1c0;
  font-size: 13.5px;
  margin: 0 0 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.meta-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.meta-list dt { color: var(--muted-2); }
.meta-list dd { margin: 0; color: #ccd3df; font-variant-numeric: tabular-nums; }

.hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(86, 198, 232, 0.06);
  border: 1px solid rgba(86, 198, 232, 0.16);
  color: #d9c7ab;
  font-size: 12px;
  line-height: 1.7;
}

.hint svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--accent); }

/* --------------------------------------------------------------------------
   登录 / 初始化
   -------------------------------------------------------------------------- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  z-index: 3;
}

.gate-card {
  width: min(430px, 100%);
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.9), rgba(14, 17, 23, 0.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 34px 34px;
  box-shadow: 0 40px 90px -50px #000;
  backdrop-filter: blur(20px);
}

.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.gate-brand svg { width: 34px; height: 34px; color: var(--accent); }
.gate-brand span { font-family: var(--display); letter-spacing: 0.16em; font-size: 17px; }

.gate h1 { font-family: var(--display); font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.gate .sub { color: var(--muted); font-size: 13px; margin: 0 0 26px; }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.06em;
}

.input {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input:focus { border-color: rgba(86, 198, 232, 0.55); background: rgba(0, 0, 0, 0.4); }
.input::placeholder { color: var(--muted-2); }

.gate .btn-primary { width: 100%; padding: 12px; margin-top: 8px; border-radius: 12px; }

.form-msg {
  font-size: 12.5px;
  margin-top: 14px;
  min-height: 18px;
  color: var(--danger);
}

.gate-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted-2); }
.gate-foot a { color: var(--muted); }

/* --------------------------------------------------------------------------
   后台
   -------------------------------------------------------------------------- */

.admin-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(9, 11, 15, 0.6);
}

.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.side-brand svg { width: 30px; height: 30px; color: var(--accent); }
.side-brand div span { display: block; font-family: var(--display); letter-spacing: 0.14em; font-size: 15px; }
.side-brand div small { font-size: 9.5px; letter-spacing: 0.3em; color: var(--muted-2); }

.side-nav { display: grid; gap: 4px; }

.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.side-nav button svg { width: 16px; height: 16px; }
.side-nav button:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.side-nav button.active { background: var(--accent-soft); color: var(--accent); }

.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-user { padding: 0 8px; font-size: 12px; color: var(--muted); }
.side-user b { display: block; color: var(--text); font-size: 13px; font-weight: 500; }

.admin-main { padding: 30px 34px 60px; min-width: 0; }

.admin-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.admin-top h1 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-top .spacer { flex: 1; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat span { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.08em; }
.stat b {
  display: block;
  font-size: 26px;
  font-weight: 560;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat.gold b { color: var(--accent); }
.stat.live b { color: var(--live); }

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.section-head h2 { font-size: 15px; margin: 0; font-weight: 560; letter-spacing: 0.02em; }
.section-head .spacer { flex: 1; }

.panel-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
}

/* 上传区 */
.drop {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.drop:hover, .drop.over {
  border-color: rgba(86, 198, 232, 0.55);
  background: rgba(86, 198, 232, 0.04);
}

.drop svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }
.drop b { display: block; font-size: 14px; font-weight: 560; }
.drop small { color: var(--muted-2); font-size: 12px; }

.upload-item {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  margin-top: 12px;
}

.upload-line { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.upload-line .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-line .pct { font-family: var(--mono); color: var(--muted); }

.bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.3s; }

/* 影片行 */
.vrow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}

.vrow + .vrow { margin-top: 4px; }
.vrow:hover { background: rgba(255, 255, 255, 0.025); border-color: var(--line); }

.vthumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0c0f14 center/cover no-repeat;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.vthumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.15); font-family: var(--display); }

.vmain { min-width: 0; }
.vmain b { display: block; font-weight: 540; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmain span { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

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

.dot-status { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-status.ready { background: var(--live); }
.dot-status.uploading { background: var(--accent); }
.dot-status.hidden { background: var(--muted-2); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.tbl tr:last-child td { border-bottom: 0; }

.role-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.role-pill.owner { background: var(--accent-soft); color: var(--accent); }

/* 空提示 */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
.empty svg { width: 30px; height: 30px; opacity: 0.35; margin-bottom: 10px; }

/* 全局 toast */
.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.toast-item {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(18, 22, 30, 0.96);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 18px 40px -20px #000;
  animation: toastIn 0.25s ease both;
  max-width: 340px;
}

.toast-item.err { border-color: rgba(255, 107, 107, 0.4); color: #ffc4c4; }
.toast-item.ok { border-color: rgba(61, 220, 151, 0.35); color: #b6f4d6; }

@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* 骨架屏 */
.skel {
  background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 10px;
}

@keyframes shimmer { to { background-position: -120% 0; } }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .watch-main { grid-template-columns: minmax(0, 1fr); }
  .watch-side { position: static; }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, 1240px); }
  .head-nav { display: none; }
  .hero-body { padding: 26px 24px 28px; }
  .hero { min-height: 320px; }
  .admin-shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .side-brand div { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav button { white-space: nowrap; padding: 8px 11px; }
  .side-foot { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; }
  .side-user { display: none; }
  .side-foot a { display: none; }
  .admin-main { padding: 20px 16px 60px; }
  .vrow { grid-template-columns: 72px minmax(0, 1fr); }
  .vacts { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 560px) {
  .site-head { padding: 18px 0 12px; gap: 12px; }
  .brand-name { font-size: 17px; }
  .live-pill { font-size: 11.5px; padding: 5px 10px; }
  .hero { border-radius: 20px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .watch-head { padding: 12px 0; }
  .panel { padding: 17px; }
  .watch-title { font-size: 20px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .toasts { left: 14px; right: 14px; bottom: 14px; justify-items: stretch; }
  .cover-inner { gap: 10px; padding: 12px; }
  .cover-title { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .play-big { width: 58px; height: 58px; }
  .play-big svg { width: 20px; height: 20px; }
  .cover-note { font-size: 10.5px; }
  .nick-row { padding: 4px 5px 4px 12px; }
  .nick-row input { width: 92px; font-size: 12px; }
  .nick-row .btn { padding: 5px 10px; font-size: 12px; }
  .stage .ctrls { padding: 36px 10px 8px; }
  .time-code { font-size: 10.5px; }
  .chip { font-size: 10px; padding: 3px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   科创中心 · 新增组件（会徽 / 关于 / 入场登记 / 放映控制）
   ========================================================================== */

.gate-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 3px;
  flex: none;
}

.side-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 2px;
  flex: none;
}

/* 关于中心 */
.about { margin-top: 72px; }

.about-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(86, 198, 232, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.018);
}

.about-tile {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 60px -34px #000;
}

.about-tile img { width: 100%; height: auto; border-radius: 10px; display: block; }

.about-body h2 {
  font-family: var(--display);
  font-size: 26px;
  margin: 4px 0 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-body p {
  color: #a9b4c4;
  font-size: 13.5px;
  margin: 0 0 16px;
  max-width: 680px;
}

.about-points { display: flex; flex-wrap: wrap; gap: 8px; }

.about-points span {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* 直播提示条 */
.live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.25);
  background: rgba(61, 220, 151, 0.07);
  color: #b6f4d6;
  font-size: 13px;
}

.live-banner .btn { margin-left: auto; }

/* 管理员在播放页的放映控制条 */
.live-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #a9f2cd;
  letter-spacing: 0.05em;
}

.live-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.live-hint { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }

/* 入场登记弹窗 */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(3, 6, 10, 0.84);
  backdrop-filter: blur(16px);
}

.checkin-card {
  width: min(640px, 100%);
  margin: auto;
  background: linear-gradient(180deg, #101a26, #090f17);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 30px 32px 26px;
  box-shadow: 0 50px 120px -46px #000;
}

.checkin-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }

.checkin-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 4px;
  flex: none;
}

.checkin-head h2 {
  font-family: var(--display);
  font-size: 22px;
  margin: 4px 0 6px;
  font-weight: 600;
}

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

.checkin-card .btn-primary { width: 100%; margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ci-q { margin-bottom: 15px; }

.ci-q label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}

.ci-q .req { color: var(--danger); margin-left: 3px; }

.ci-q textarea.input { resize: vertical; min-height: 64px; }

.ci-options { display: flex; flex-wrap: wrap; gap: 8px; }

.ci-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}

.ci-option input { display: none; }

.ci-option.on,
.ci-option:hover { border-color: rgba(86, 198, 232, 0.5); color: var(--text); background: rgba(86, 198, 232, 0.08); }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }

.switch-track {
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  position: relative;
  transition: background 0.2s;
  flex: none;
}

.switch-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track i { transform: translateX(19px); background: #041820; }
.switch b { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* 问题编辑器 */
.q-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 10px;
}

.q-row { display: flex; gap: 8px; align-items: center; }
.q-row .input { flex: 1; }
.q-row select.input { flex: none; width: 120px; }
.q-opts { display: flex; gap: 8px; align-items: center; }
.q-opts .input { flex: 1; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  flex: none;
}

.icon-btn:hover { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mini-check input { accent-color: var(--accent); }

/* 放映控制台 */
.live-pick { display: flex; gap: 10px; align-items: center; }
.live-pick .input { flex: 1; }

.live-now-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.live-now-head b { font-size: 15px; }
.live-now-head a { margin-left: auto; }

.live-progress { display: flex; align-items: center; gap: 14px; }
.live-seek { flex: 1; accent-color: var(--accent); cursor: pointer; }
.live-controls { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }

.muted-note { color: var(--muted-2); font-size: 12px; margin: 8px 0 0; }

/* 报名记录 */
.resp-answers { display: flex; flex-direction: column; gap: 3px; }
.resp-answers span { font-size: 11.5px; color: var(--muted); }
.resp-answers b { color: var(--muted-2); font-weight: 500; }

@media (max-width: 860px) {
  .about-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .about-tile { max-width: 200px; }
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .checkin-card { padding: 22px 18px; }
  .checkin-head { gap: 12px; }
  .checkin-mark { width: 44px; height: 44px; }
  .checkin-head h2 { font-size: 18px; }
  .live-pick { flex-direction: column; align-items: stretch; }
  .live-hint { display: none; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; letter-spacing: 0.08em; }
  .brand-mark { width: 38px; height: 38px; }
  .brand { gap: 9px; }
  .head-right { gap: 7px; }
  .head-right .btn { padding: 7px 12px; font-size: 12px; }
  .live-pill { padding: 5px 10px; }
}

@media (max-width: 440px) {
  .pill-label { display: none; }
  .brand-name { font-size: 14px; }
  .site-head { gap: 8px; }
}
.play-big:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; }
/* ------------------------------------------------------------------ */
/* 入场密码 / 直播结束 / 站点公告 / 观众列表                             */
/* ------------------------------------------------------------------ */

.site-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 249, 0.22);
  background: linear-gradient(90deg, rgba(110, 231, 249, 0.1), rgba(110, 231, 249, 0.02));
  color: var(--accent);
  font-size: 13px;
}
.site-notice svg { width: 16px; height: 16px; flex: none; }

.ended-card {
  text-align: center;
  max-width: 460px;
}
.ended-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(110, 231, 249, 0.1);
  border: 1px solid rgba(110, 231, 249, 0.25);
  animation: endedPop 0.5s ease;
}
.ended-icon svg { width: 30px; height: 30px; }
.ended-card h2 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 10px;
}
.ended-card p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.ended-card .btn { display: inline-flex; width: auto; }
@keyframes endedPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.switch-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.viewer-tbl td { font-size: 12.5px; }

@media (max-width: 560px) {
  .site-notice { font-size: 12px; margin-top: 10px; }
  .ended-card h2 { font-size: 20px; }
}

/* ------------------------------------------------------------------ */
/* 视觉优化（覆盖层）                                                   */
/* ------------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.55) 70%, transparent);
  padding: 18px 0 16px;
}

.hero { min-height: 420px; }

.hero-bg {
  filter: blur(22px) saturate(0.75) brightness(0.5);
  transform: scale(1.14);
}

.hero::after {
  background:
    radial-gradient(110% 80% at 82% 10%, rgba(86, 198, 232, 0.12) 0%, transparent 55%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.98) 0%, rgba(7, 8, 11, 0.9) 46%, rgba(7, 8, 11, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.35) 0%, rgba(7, 8, 11, 0.55) 55%, rgba(7, 8, 11, 0.98) 100%);
}

.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.hero p { color: #c3cad6; }

.btn-primary {
  background: linear-gradient(135deg, #7fe9ff, #46c6e8);
  box-shadow: 0 10px 26px -14px rgba(86, 198, 232, 0.9);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 32px -14px rgba(86, 198, 232, 0.95); }

.card-thumb { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.card:hover .card-thumb { transform: scale(1.03); }

.stage {
  border-radius: 20px;
  box-shadow: 0 40px 90px -50px #000, 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.watch-title { letter-spacing: 0.01em; }

.stat {
  transition: transform 0.25s, border-color 0.25s;
}
.stat:hover { transform: translateY(-2px); border-color: rgba(86, 198, 232, 0.3); }

.tbl tbody tr { transition: background 0.18s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.028); }

.panel-block { border-radius: 18px; }

@media (min-width: 1100px) {
  .hero { min-height: 460px; }
  .hero-body { padding: 48px 52px 44px; }
}

@media (max-width: 700px) {
  .site-head { padding: 12px 0 10px; }
  .hero { min-height: 340px; border-radius: 20px; }
  .hero-body { padding: 26px 22px 24px; }
}

/* ------------------------------------------------------------------ */
/* 广告 / 赞助位                                                        */
/* ------------------------------------------------------------------ */

.ad-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.ad-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.ad-card:hover { border-color: rgba(86, 198, 232, 0.35); transform: translateY(-1px); }

.ad-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #131922 center/cover no-repeat;
  flex: none;
}

.ad-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-copy b { font-size: 13.5px; font-weight: 600; }
.ad-copy small {
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

.watch-ad { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ad-card-sm { padding: 10px 12px; }

@media (max-width: 560px) {
  .ad-strip { grid-template-columns: 1fr; }
}
