/* ===== 深夜直播 · 参考 Lovescape 深色卡片风 ===== */
:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --card: #1d1d1d;
  --line: rgba(255, 255, 255, .08);
  --text: #fff;
  --dim: #b3b3b3;
  --cyan: #07f0ff;
  --mint: #09ffb5;
  --purple: #cf7aff;
  --accent: linear-gradient(180deg, #07f0ff 0%, #07ffb5 100%);
  --accent-hover: linear-gradient(180deg, #39f1ff 0%, #34eac0 100%);
  --glow: rgba(7, 240, 255, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(207, 122, 255, .12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(7, 240, 255, .1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #121212 100%);
}
img, video { max-width: 100%; display: block; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; background: none; }
.wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* notice */
.notice {
  text-align: center;
  font-size: 12px;
  padding: 8px 14px;
  color: #d8f7ff;
  background: linear-gradient(90deg, rgba(7, 240, 255, .12), rgba(207, 122, 255, .12));
  border-bottom: 1px solid var(--line);
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.2s infinite;
}
.spacer { flex: 1; }
.lang-wrap { position: relative; }
.lang-btn {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
}
.lang-menu {
  position: absolute; right: 0; top: 40px; list-style: none;
  background: #1d1d1d; border: 1px solid var(--line); border-radius: 14px;
  min-width: 168px; max-height: 64vh; overflow: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55); z-index: 120; padding: 6px 0;
  display: block;
}
.lang-menu[hidden] { display: none !important; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a { display: block; padding: 9px 15px; font-size: 13px; color: var(--dim); }
.lang-menu a.active, .lang-menu a:hover { color: #fff; background: rgba(7, 240, 255, .1); }

/* online bar */
.online-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 12px; color: #b8ece8;
  border-bottom: 1px solid var(--line);
}
.online-bar .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.1s infinite; flex: 0 0 auto;
}
.online-bar b { color: #fff; }
@keyframes pulse { 50% { opacity: .35; } }

/* hero */
.hero { padding: 22px 16px 10px; text-align: center; }
.hero .chip {
  display: inline-block;
  font-size: 11px; font-weight: 600; color: #b8f0ff;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.hero h1 {
  font-size: 22px; line-height: 1.35; font-weight: 700;
  margin: 12px 0 8px;
  background: linear-gradient(90deg, #fff 0%, #c8f7ff 60%, #cf7aff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--dim); font-size: 13px; max-width: 360px; margin: 0 auto; }

/* 6-grid */
.grid-sec { padding: 8px 12px 0; }
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vid-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: .5px solid #0f0f0f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  transition: box-shadow .25s, transform .25s;
}
.vid-card:active { transform: scale(.98); }
.vid-card:hover { box-shadow: 0 0 0 1px rgba(7, 240, 255, .25), 0 8px 24px var(--glow); }
.vid-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #111;
  pointer-events: none;
}
.vid-card video::-webkit-media-controls { display: none !important; }
.vid-play {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.vid-play::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41' height='41' fill='none'%3E%3Crect width='40' height='40' x='.5' y='.5' fill='url(%23a)' rx='20'/%3E%3Cpath fill='%23fff' d='M17 13.5v14l11-7z'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='20.5' x2='20.5' y1='0' y2='41' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2307F0FF'/%3E%3Cstop offset='1' stop-color='%2307FFB5'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") center/36px no-repeat;
  opacity: .85;
}
.vid-live {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px;
  color: #fff; padding: 3px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.vid-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff3d6a;
  box-shadow: 0 0 6px #ff3d6a;
  animation: pulse 1s infinite;
}
.vid-card--empty .vid-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(145deg, rgba(207, 122, 255, .18), rgba(7, 240, 255, .08)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px),
    #1a1a1a;
}
.vid-card--empty .vid-play::after { opacity: .55; }

/* download — fixed bottom */
.dl-float {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(15, 15, 15, .92) 38%);
  pointer-events: none;
}
.dl-float .dl-btn { pointer-events: auto; max-width: 480px; margin: 0 auto; }
.dl-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 20px;
  border-radius: 32px;
  background: var(--accent);
  color: #04241e;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(7, 240, 255, .28);
  transition: background .2s, transform .15s;
}
.dl-btn:hover { background: var(--accent-hover); }
.dl-btn:active { transform: scale(.98); }
.dl-btn.disabled { background: #444; color: #aaa; box-shadow: none; pointer-events: none; }
.dl-btn svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.25; }
.dl-text strong { font-size: 16px; }
.dl-text small { font-size: 11px; font-weight: 500; opacity: .8; }

/* footer / blocked */
.footer { text-align: center; color: #666; font-size: 11px; padding: 16px 16px 8px; }
.blocked { text-align: center; padding: 70px 24px; }
.blocked .big { font-size: 44px; }
.blocked h1 { font-size: 22px; margin: 14px 0; }
.blocked p { color: var(--dim); max-width: 420px; margin: 0 auto; }

@media (max-width: 360px) {
  .vid-grid { gap: 8px; }
  .hero h1 { font-size: 20px; }
}
