:root {
  --bg: #0e0f13; --surface: #171922; --surface-2: #1f2230; --line: #2a2e3d;
  --text: #eceef4; --muted: #9aa0b4; --accent: #ff4d6d; --accent-2: #ff8a5b; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- 品牌栏（首页） ---------- */
.brandbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(14,15,19,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.brand-logo { height: 30px; width: auto; display: block; border-radius: 6px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: #4c44e4; color: #fff; font-size: 13px; }
.brand-name { color: #fff; }
.brand-cta { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.brand-cta:hover { color: var(--text); border-color: var(--accent); }

/* 语言选择器 */
.langpick { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.langpick select {
  background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 6px 10px; font-size: 13px; max-width: 130px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.langpick select option { color: #111; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.center { min-height: 60vh; display: grid; place-items: center; }
.hero { padding: 26px 4px 18px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; text-wrap: balance; }
.hero p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.thumb { aspect-ratio: 2/3; background: var(--surface-2) center/cover no-repeat; position: relative; display: grid; place-items: center; }
.play-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; }
.card-title { padding: 10px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; }

/* ---------- 竖划视频流（播放页） ---------- */
.feed-body { background: #000; overflow: hidden; height: 100%; }
html:has(.feed-body) { height: 100%; }

.feed-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.feed-top .brand, .feed-top .langpick { pointer-events: auto; }
.feed-top .brand { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

.feed {
  height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; background: #000; scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.slide {
  position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden;
}
.slide-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.slide-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
}
.slide-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto;
}
.slide-title { margin: 0 0 6px; font-size: 19px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.slide-desc {
  margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: 13.5px; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 播放页出站按钮小一点 */
.slide-info .out-cta { font-size: 13.5px; padding: 10px 20px; box-shadow: 0 6px 16px rgba(255,77,109,.32); }
.slide-info .out-cta .arrow { font-size: 13px; }

/* 开声音提示 */
.unmute-hint {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 25;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.25);
  font: 600 14px/1 inherit; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-tap-highlight-color: transparent;
  animation: um-pulse 1.6s ease-in-out infinite;
}
.unmute-hint[hidden] { display: none; }
.unmute-hint .um-icon { font-size: 16px; }
@keyframes um-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,77,109,.55); }
  50%     { box-shadow: 0 0 0 10px rgba(255,77,109,0); }
}
@media (prefers-reduced-motion: reduce) { .unmute-hint { animation: none; } }

/* ---------- 出站按钮（首页/播放页共用） ---------- */
.out-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255,77,109,.4); transition: transform .1s, box-shadow .1s;
}
.out-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,77,109,.5); }
.out-cta.small { font-size: 14px; padding: 10px 20px; box-shadow: none; }
.out-cta .arrow { transition: transform .12s; }
.out-cta:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .out-cta .arrow { transform: scaleX(-1); }
[dir="rtl"] .out-cta:hover .arrow { transform: scaleX(-1) translateX(3px); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  .hero h1 { font-size: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}
