:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --pink: #f43f9d;
  --pink-soft: #ff7ac8;
  --live: #22c55e;
  --max: 500px;
}

html,
body {
  margin: 0;
  background: #050506;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- splash (5s) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(244, 63, 157, 0.22), transparent 55%),
    #070709;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  width: min(86vw, 360px);
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
}

.splash-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--pink);
  border-right-color: var(--pink-soft);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 32px rgba(244, 63, 157, 0.35);
}

.splash-logo {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  border-radius: 50%;
  z-index: 1;
}

.splash-count {
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.splash-bar {
  height: 3px;
  margin-top: 1.5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.splash-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), #fff);
  animation: splash-fill 5s linear forwards;
}

@keyframes splash-fill {
  to {
    width: 100%;
  }
}

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

/* ---------- fake load modal (8s) ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal-mask.is-open {
  display: flex;
}

.modal-card {
  width: min(calc(100% - 48px), 360px);
  margin: 0 auto;
  background: #16161c;
  border-radius: 18px;
  padding: 1.35rem 1.2rem 1.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #be185d, var(--pink), #f9a8d4);
  transition: width 0.12s linear;
}

.progress-fill.is-running {
  animation: bar-8s 8s linear forwards;
}

@keyframes bar-8s {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1f1f28, #2a2433);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.thumb img,
.live-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-marquee {
  overflow: hidden;
}

.live-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: live-marquee 22s linear infinite;
}

@keyframes live-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 4px));
  }
}

.live-thumb {
  aspect-ratio: 3 / 4;
  width: 118px;
  flex: 0 0 auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-scroll {
  overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  scrollbar-width: none;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: #d4d4d8;
  background: transparent;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 60;
  width: 196px;
  max-height: min(62vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #1b1b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 8px;
  border-radius: 8px;
  text-align: start;
  font-size: 12px;
  color: #e4e4e7;
}

.lang-item:hover,
.lang-item.is-on {
  background: rgba(244, 63, 157, 0.16);
}

.lang-item.is-on {
  color: #fff;
}

.lang-item .lang-name {
  flex: 1;
}

.lang-item .lang-short {
  font-size: 10px;
  color: #a1a1aa;
}
