* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #030914;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030914;
}

.fallback-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 221, 214, 0.2), transparent 34%),
    radial-gradient(circle at 50% 82%, rgba(41, 132, 255, 0.18), transparent 42%),
    linear-gradient(145deg, #07192b 0%, #020713 100%);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.05) 28%,
      rgba(0, 0, 0, 0.18) 58%,
      rgba(0, 0, 0, 0.52) 100%
    ),
    radial-gradient(circle at 50% 12%, rgba(97, 225, 255, 0.13), transparent 34%);
}

.page {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px;
}

.top-logo {
  padding-top: 4.2vh;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.logo-stage {
  position: relative;
  width: min(82vw, 352px);
  height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 50%, rgba(36, 238, 220, 0.35), transparent 48%),
    radial-gradient(circle at 73% 50%, rgba(255, 225, 53, 0.2), transparent 44%),
    rgba(3, 16, 30, 0.2);
  filter: blur(20px);
  opacity: 0.9;
  animation: logoAura 4.5s ease-in-out infinite;
}

.logo-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(205, 246, 255, 0.16);
  background:
    radial-gradient(circle at 50% 42%, rgba(39, 236, 226, 0.16), transparent 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.024));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 36px rgba(9, 38, 61, 0.18);
  backdrop-filter: blur(10px) saturate(138%);
  -webkit-backdrop-filter: blur(10px) saturate(138%);
}

.logo-float {
  position: relative;
  z-index: 3;
  width: 72%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(42, 238, 224, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(3, 24, 39, 0.26), rgba(8, 32, 51, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 26px rgba(0, 0, 0, 0.13);
}

.logo-float::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 42%;
  height: 230%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: logoShine 5.2s ease-in-out infinite;
}

.top-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  max-width: 218px;
  max-height: 68px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 7px 16px rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 12px rgba(34, 228, 220, 0.48))
    brightness(1.28)
    contrast(1.12)
    saturate(1.18);
}

.logo-line {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 4;
  width: 42%;
  height: 1px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(74, 235, 255, 0.82), transparent);
  box-shadow: 0 0 14px rgba(74, 235, 255, 0.66);
  opacity: 0.75;
}

.pg-subtitle {
  margin-top: 2px;
  font-size: clamp(13px, 3.85vw, 17px);
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.68),
    0 0 12px rgba(64, 210, 255, 0.2);
}

.worldcup-slogan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(54px, 12.5vh, 112px);
  padding: 7px 18px 8px;
  border-radius: 999px;
  font-size: clamp(15px, 4.2vw, 20px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 1.8px;
  color: rgba(245, 253, 255, 0.96);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.72),
    0 0 12px rgba(45, 230, 224, 0.44);
  background:
    linear-gradient(90deg, transparent, rgba(43, 230, 224, 0.14), transparent),
    rgba(5, 23, 39, 0.16);
  border: 1px solid rgba(170, 240, 255, 0.12);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px) saturate(126%);
  -webkit-backdrop-filter: blur(8px) saturate(126%);
}

.worldcup-slogan::before,
.worldcup-slogan::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 236, 255, 0.78));
  box-shadow: 0 0 10px rgba(90, 236, 255, 0.55);
}

.worldcup-slogan::before {
  right: 100%;
  transform: translateY(-50%);
}

.worldcup-slogan::after {
  left: 100%;
  transform: translateY(-50%) rotate(180deg);
}

@keyframes logoAura {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes logoShine {
  0% {
    left: -70%;
    opacity: 0;
  }

  35% {
    opacity: 0;
  }

  50% {
    opacity: 0.9;
  }

  65% {
    opacity: 0;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 13px;
  z-index: 6;
  width: calc(100% - 28px);
  max-width: 432px;
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 28, 50, 0.26), rgba(3, 11, 24, 0.42));
  border: 1px solid rgba(206, 242, 255, 0.12);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.glass-card {
  border: 1px solid rgba(221, 245, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.032));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(14px) saturate(142%);
  -webkit-backdrop-filter: blur(14px) saturate(142%);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.13) 46%,
      transparent 72%
    );
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.glass-card:active {
  transform: scale(0.965);
  border-color: rgba(221, 245, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
}

.glass-card:active::before {
  opacity: 1;
}

.platform-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.platform-card {
  min-height: 62px;
  border-radius: 16px;
  padding: 5px 3px 4px;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.platform-card::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 236, 255, .65), transparent);
  opacity: .45;
}

.platform-logo {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 10px rgba(0,0,0,0.18);
}

.platform-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 5px rgba(0, 0, 0, .46))
    brightness(1.14)
    saturate(1.12);
}

.platform-card strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
  color: rgba(255,255,255,.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-card span {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0 2px;
  font-size: 8px;
  line-height: 1.15;
  color: rgba(225, 243, 255, 0.62);
  white-space: normal;
  word-break: keep-all;
}

/* 功能按钮：位置保持不变 */
.mini-grid {
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* 功能按钮：按钮不整体居中，只让按钮内部文字居中 */
.mini-card {
  min-height: 42px;
  border-radius: 15px;
  padding: 5px 6px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: center;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.026)),
    rgba(5, 19, 41, 0.23);
}

.mini-icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 12px rgba(0,0,0,0.16);
}

.mini-icon span {
  position: relative;
  z-index: 2;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
}

.mini-gift span {
  color: #ffe08a;
}

.mini-qq span {
  color: #7abbff;
}

/* 文字区域占满剩余空间，并居中 */
.mini-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
  text-align: center;
}

.mini-text strong {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.12;
  font-weight: 780;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.mini-text span {
  display: block;
  width: 100%;
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.08;
  color: rgba(225, 243, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.footer {
  padding: 6px 0 0;
  text-align: center;
  font-size: 8.5px;
  color: rgba(225, 243, 255, 0.34);
}

.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(45, 201, 255, 0.14), transparent 36%),
    rgba(0, 0, 0, 0.78);
}

.popup-mask.show {
  display: flex;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  animation: popupIn 0.2s ease;
  background:
    linear-gradient(180deg, rgba(13, 40, 73, 0.72), rgba(4, 12, 26, 0.92));
  border: 1px solid rgba(210, 242, 255, 0.14);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.popup-img-wrap {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-img-wrap img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 24px;
  line-height: 32px;
}

.popup-nav {
  position: absolute;
  top: 43%;
  z-index: 5;
  width: 36px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-prev {
  left: 8px;
}

.popup-next {
  right: 8px;
}

.popup-info {
  padding: 13px 15px 14px;
  text-align: center;
}

.popup-title {
  font-size: 17px;
  font-weight: 850;
  color: rgba(255,255,255,0.96);
}

.popup-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(230, 246, 255, 0.62);
}

.popup-link {
  margin-top: 11px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(56, 216, 255, 0.88), rgba(35, 134, 255, 0.76));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(35, 172, 255, 0.28);
}

.popup-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 0 13px;
}

.popup-dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.popup-dot.active {
  width: 18px;
  background: rgba(77, 226, 255, 0.88);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.site-guide-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(50, 221, 255, .18), transparent 38%),
    rgba(0, 0, 0, .76);
}

.site-guide-mask.show {
  display: flex;
}

.site-guide-box {
  width: 100%;
  max-width: 370px;
  padding: 22px 18px 18px;
  border-radius: 26px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 49, 86, .86), rgba(4, 13, 29, .96));
  border: 1px solid rgba(147, 229, 255, .22);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, .56),
    0 0 38px rgba(40, 203, 255, .16),
    inset 0 1px 0 rgba(255,255,255,.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: guideIn .22s ease;
}

.site-guide-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.32), rgba(255,255,255,.06)),
    linear-gradient(135deg, rgba(255, 212, 83, .5), rgba(33, 192, 255, .2));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 26px rgba(0,0,0,.22);
}

.notify-icon {
  animation: notifyBell 1.15s ease-in-out infinite;
}

.site-guide-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  color: rgba(255,255,255,.98);
  text-shadow: 0 2px 12px rgba(0,0,0,.42);
}

.site-guide-desc {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(231, 247, 255, .72);
}

.notify-status {
  margin: 13px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(230, 247, 255, .86);
  font-size: 12px;
  line-height: 1;
  background: rgba(4, 20, 42, .58);
  border: 1px solid rgba(117, 220, 255, .18);
}

.site-guide-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 9px;
}

.site-guide-btn {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #061625;
  font-size: 14px;
  font-weight: 950;
  background:
    linear-gradient(135deg, #fff1a2, #28dcff);
  box-shadow:
    0 10px 24px rgba(45, 214, 255, .24),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.site-guide-actions .site-guide-btn {
  margin-top: 0;
}

.site-guide-btn.ghost {
  color: rgba(235, 248, 255, .86);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(184, 237, 255, .16);
  box-shadow: none;
}

.site-guide-btn:active {
  transform: scale(.97);
}

@keyframes guideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notifyBell {
  0%, 100% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(8deg);
  }

  40% {
    transform: rotate(-8deg);
  }

  60% {
    transform: rotate(5deg);
  }

  80% {
    transform: rotate(-4deg);
  }
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(22, 66, 112, .94), rgba(8, 28, 60, .94));
  border: 1px solid rgba(126, 223, 255, .24);
  box-shadow:
    0 14px 34px rgba(0,0,0,.36),
    0 0 26px rgba(35, 203, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mini-live-player {
  position: fixed;
  left: 18px;
  bottom: 18px;
  top: auto;
  right: auto;
  z-index: 9999;
  width: 320px;
  min-width: 220px;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 31, 58, .94), rgba(2, 10, 22, .96));
  border: 1px solid rgba(86, 198, 255, .34);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .55),
    0 0 28px rgba(26, 174, 255, .18),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: none;
  pointer-events: auto;
}

.mini-live-player.hide {
  display: none !important;
}

.mini-live-head {
  height: 38px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(18, 66, 118, .95), rgba(8, 36, 74, .78));
  color: #fff;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.mini-live-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #37f6ff;
  box-shadow:
    0 0 0 4px rgba(55,246,255,.12),
    0 0 16px rgba(55,246,255,.75);
  animation: miniLivePulse 1.2s infinite;
}

@keyframes miniLivePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(.72);
    opacity: .55;
  }
}

.mini-live-tag {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #061523;
  font-size: 11px;
  font-weight: 950;
  background: linear-gradient(135deg, #8af7ff, #25d4ff);
  box-shadow: 0 0 18px rgba(37, 212, 255, .28);
}

.mini-live-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

#miniLiveVideo {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.live-start-mask {
  position: absolute;
  inset: 0;
  z-index: 12;
  border: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background:
    radial-gradient(circle at 50% 38%, rgba(47, 218, 255, .22), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .72));
  text-align: center;
}

.live-start-mask.hide {
  display: none;
}

.live-play-icon {
  width: 54px;
  height: 54px;
  padding-left: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #061523;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff1a2, #28dcff);
  box-shadow:
    0 0 0 8px rgba(40, 220, 255, .13),
    0 12px 30px rgba(0,0,0,.34);
  animation: playPulse 1.35s ease-in-out infinite;
}

.live-start-mask strong {
  font-size: 15px;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0,0,0,.56);
}

.live-start-mask em {
  font-style: normal;
  font-size: 11px;
  color: rgba(231, 248, 255, .76);
}

@keyframes playPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.mini-live-msg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 10px 12px;
  border-radius: 13px;
  color: #eaf8ff;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  background: rgba(2, 13, 28, .82);
  border: 1px solid rgba(96, 211, 255, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-danmu-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.live-danmu-item {
  position: absolute;
  right: -120%;
  max-width: 90%;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  text-shadow:
    0 1px 3px rgba(0,0,0,.9),
    0 0 8px rgba(0,0,0,.6);
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255,255,255,.1);
  animation-name: danmuMove;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.live-danmu-item.user {
  color: #ffe88a;
  background: rgba(16, 43, 76, .48);
  border-color: rgba(255, 229, 138, .28);
}

@keyframes danmuMove {
  from {
    right: -120%;
  }

  to {
    right: 110%;
  }
}

.live-danmu-input {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 42px;
  z-index: 10;
  height: 28px;
  display: flex;
  gap: 5px;
  pointer-events: auto;
}

.live-danmu-input input {
  min-width: 0;
  flex: 1;
  height: 28px;
  border: 1px solid rgba(151, 226, 255, .22);
  border-radius: 999px;
  padding: 0 10px;
  outline: none;
  color: #fff;
  font-size: 11px;
  background: rgba(3, 16, 32, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-danmu-input input::placeholder {
  color: rgba(230, 247, 255, .45);
}

.live-danmu-input button {
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #061523;
  font-size: 11px;
  font-weight: 950;
  background: linear-gradient(135deg, #fff1a2, #28dcff);
}

.mini-live-tools {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  pointer-events: none;
}

.mini-live-tools button {
  pointer-events: auto;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #eaf8ff;
  font-size: 11px;
  font-weight: 900;
  background: rgba(7, 32, 58, .82);
  border: 1px solid rgba(116, 219, 255, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mini-live-tools button:active {
  transform: scale(.96);
}

.mini-live-close {
  position: absolute;
  right: 6px;
  top: 44px;
  z-index: 20;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  background: rgba(0, 0, 0, .55);
}

.mini-live-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 34px;
  height: 34px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 56%, rgba(91, 214, 255, .9) 56%);
  opacity: .85;
  touch-action: none;
}

.mini-live-body:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

.mini-live-body:fullscreen #miniLiveVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-live-body:fullscreen .live-danmu-input {
  left: 50%;
  right: auto;
  bottom: 72px;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  height: 38px;
}

.mini-live-body:fullscreen .live-danmu-input input {
  height: 38px;
  font-size: 14px;
}

.mini-live-body:fullscreen .live-danmu-input button {
  height: 38px;
  width: 70px;
  font-size: 13px;
}

.mini-live-body:fullscreen .mini-live-tools {
  left: 50%;
  right: auto;
  bottom: 24px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
}

.mini-live-body:fullscreen .mini-live-tools button {
  height: 36px;
  font-size: 13px;
}

@media (max-width: 370px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-logo {
    padding-top: 3.6vh;
  }

  .logo-stage {
    width: min(88vw, 330px);
    height: 104px;
  }

  .logo-orbit {
    height: 76px;
  }

  .logo-float {
    height: 84px;
    padding: 9px 10px;
  }

  .top-brand-logo {
    max-width: 198px;
    max-height: 62px;
  }

  .pg-subtitle {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .bottom-dock {
    width: calc(100% - 20px);
    bottom: 10px;
    padding: 7px;
    border-radius: 21px;
  }

  .platform-grid {
    gap: 5px;
  }

  .platform-card {
    min-height: 58px;
    border-radius: 15px;
  }

  .platform-logo {
    width: 28px;
    height: 28px;
  }

  .platform-card strong {
    font-size: 11.5px;
  }

  .platform-card span {
    font-size: 7.5px;
  }
}

@media (max-width: 768px) {
  .worldcup-slogan {
    display: none !important;
  }

  .mini-live-player {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: min(92vw, 360px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    border-radius: 16px;
    transform: none !important;
    z-index: 5 !important;
    touch-action: auto;
    pointer-events: auto;
  }

  .top-logo .mini-live-player {
    pointer-events: auto;
  }

  .mini-live-head {
    height: 34px;
    cursor: default;
    touch-action: auto;
  }

  .mini-live-title {
    font-size: 12px;
  }

  .mini-live-tag {
    height: 20px;
    font-size: 10px;
  }

  .mini-live-msg {
    width: 82%;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.45;
  }

  .live-start-mask strong {
    font-size: 13px;
  }

  .live-start-mask em {
    font-size: 10px;
  }

  .live-play-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .live-danmu-item {
    font-size: 12px;
  }

  .live-danmu-input {
    left: 6px;
    right: 6px;
    bottom: 36px;
    height: 24px;
  }

  .live-danmu-input input {
    height: 24px;
    font-size: 10px;
  }

  .live-danmu-input button {
    width: 42px;
    height: 24px;
    font-size: 10px;
  }

  .mini-live-tools {
    left: 6px;
    right: 6px;
    bottom: 6px;
    gap: 5px;
  }

  .mini-live-tools button {
    height: 24px;
    font-size: 10px;
  }

  .mini-live-close,
  .mini-live-resize {
    display: none !important;
  }

  .site-toast {
    bottom: 104px;
  }
}

@media (min-width: 768px) {
  .page {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }

  .bg-video,
  .fallback-bg,
  .bg-overlay {
    left: 0;
    width: 100%;
    transform: none;
  }

  .top-logo {
    position: fixed;
    top: 7vh;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0;
    z-index: 8;
  }

  .logo-stage {
    width: 420px;
    height: 132px;
  }

  .logo-orbit {
    height: 96px;
  }

  .top-brand-logo {
    max-width: 260px;
    max-height: 78px;
  }

  .worldcup-slogan {
    margin-top: 16vh;
    font-size: 22px;
  }

  .pg-subtitle {
    font-size: 18px;
  }

  .bottom-dock {
    left: 50%;
    bottom: 28px;
    width: 430px;
    max-width: 430px;
    transform: translateX(-50%);
  }

  .popup-box {
    max-width: 520px;
  }
}

/* =========================
   弹幕优化：只在视频上半区，速度更慢
========================= */

.live-danmu-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 42%;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.live-danmu-item {
  position: absolute;
  right: -100%;
  max-width: 90%;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  text-shadow:
    0 1px 3px rgba(0,0,0,.95),
    0 0 8px rgba(0,0,0,.68);
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255,255,255,.12);
  animation-name: danmuMoveSlow;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform;
}

.live-danmu-item.user {
  color: #ffe88a;
  background: rgba(16, 43, 76, .52);
  border-color: rgba(255, 229, 138, .34);
}

@keyframes danmuMoveSlow {
  from {
    transform: translateX(120vw);
  }

  to {
    transform: translateX(-140vw);
  }
}

/* =========================
   全屏顶部跳转引导
========================= */

.live-fullscreen-promo {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 30;
  width: min(92%, 920px);
  min-height: 44px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #061523;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  letter-spacing: .3px;
  background:
    linear-gradient(135deg, #fff1a2 0%, #34e8ff 42%, #ffffff 58%, #ffe27a 100%);
  background-size: 220% 220%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.35),
    0 12px 36px rgba(35, 218, 255, .28),
    0 0 30px rgba(255, 225, 116, .26);
  animation:
    fullPromoGlow 1.6s ease-in-out infinite,
    fullPromoShine 3.2s linear infinite;
}

.live-fullscreen-promo::before {
  content: "🔥";
  font-size: 18px;
  animation: fullPromoPulse .9s ease-in-out infinite;
}

.live-fullscreen-promo::after {
  content: "立即进入";
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(5, 18, 34, .82);
  box-shadow: 0 4px 12px rgba(0,0,0,.26);
}

.mini-live-body:fullscreen .live-fullscreen-promo {
  display: flex;
}

.mini-live-body:-webkit-full-screen .live-fullscreen-promo {
  display: flex;
}

@keyframes fullPromoGlow {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1);
  }

  50% {
    transform: translateX(-50%) scale(1.025);
    filter: brightness(1.12);
  }
}

@keyframes fullPromoShine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@keyframes fullPromoPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

/* 全屏时弹幕区域上移，但避开顶部广告条 */
.mini-live-body:fullscreen .live-danmu-layer {
  top: 72px;
  height: 38%;
}

.mini-live-body:-webkit-full-screen .live-danmu-layer {
  top: 72px;
  height: 38%;
}

/* 手机全屏时顶部条更紧凑 */
@media (max-width: 768px) {
  .live-fullscreen-promo {
    top: 12px;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .live-fullscreen-promo::before {
    font-size: 15px;
  }

  .live-fullscreen-promo::after {
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .live-danmu-layer {
    top: 9%;
    height: 38%;
  }

  .mini-live-body:fullscreen .live-danmu-layer {
    top: 58px;
    height: 36%;
  }

  .mini-live-body:-webkit-full-screen .live-danmu-layer {
    top: 58px;
    height: 36%;
  }
}