body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(135deg, #050505 0%, #101010 45%, #000 100%);
  user-select: none;
}

img {
  pointer-events: none;
}

:root {
  --container-border: rgba(255, 255, 255, 0.14);
  --container-divider: rgba(255, 255, 255, 0.12);
  --video-loading-bg: rgba(255, 255, 255, 0.62);
  --video-loading-text: rgba(15, 15, 15, 0.88);
  --video-loading-spinner-track: rgba(0, 0, 0, 0.22);
  --video-loading-spinner-head: rgba(15, 15, 15, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root {
    --container-border: rgba(255, 255, 255, 0.08);
    --container-divider: rgba(255, 255, 255, 0.07);
    --video-loading-bg: rgba(0, 0, 0, 0.42);
    --video-loading-text: rgba(255, 255, 255, 0.92);
    --video-loading-spinner-track: rgba(255, 255, 255, 0.28);
    --video-loading-spinner-head: rgba(255, 255, 255, 0.98);
  }
}

.themed-container-border {
  border-color: var(--container-border) !important;
}

.themed-divider-border {
  border-color: var(--container-divider) !important;
}

.video-loading-overlay {
  background: var(--video-loading-bg);
  color: var(--video-loading-text);
}

.video-loading-spinner {
  border-color: var(--video-loading-spinner-track);
  border-top-color: var(--video-loading-spinner-head);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.72) #050505;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #050505;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  border: 4px solid #050505;
  border-radius: 9999px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.38));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 18px rgba(255, 255, 255, 0.18);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.62));
}

.surface-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.08;
}

.hero-title {
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-feature-settings: "palt";
  text-wrap: balance;
  letter-spacing: -0.08em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 70px rgba(255, 255, 255, 0.1);
}

.hero-title .latin {
  display: inline-flex;
  align-items: center;
  border: 0.08em solid rgba(255, 255, 255, 0.9);
  border-radius: 0.22em;
  padding: 0.02em 0.14em 0.08em;
  color: #050505;
  background: #fff;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-shadow: none;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.38) 45%, transparent 62%);
  transform: translateX(-135%) skewX(-18deg);
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::before {
  transform: translateX(135%) skewX(-18deg);
}

.btn-primary {
  background: linear-gradient(180deg, #fff 0%, #e9e9e9 100%);
  box-shadow:
    0 18px 55px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  box-shadow:
    0 24px 70px rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: linear-gradient(180deg, #050505 0%, #1b1b1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.group:hover .btn-dark {
  background: linear-gradient(180deg, #06c755 0%, #04a946 100%);
  box-shadow: 0 18px 45px rgba(6, 199, 85, 0.28);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: none;
}

.spotlight {
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 140px;
  pointer-events: none;
  border-radius: 9999px;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 34%, transparent 68%);
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.spotlight-card:hover .spotlight {
  opacity: 1;
}

.signal-dot {
  position: relative;
  box-shadow: 0 0 18px rgba(245, 196, 80, 0.85);
  animation: signalPulse 1.6s ease-in-out infinite;
}

.signal-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(245, 196, 80, 0.55);
  border-radius: 9999px;
  animation: signalRing 1.6s ease-out infinite;
}

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

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes signalRing {
  0% {
    transform: scale(0.45);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.mobile-menu-enter-active,
.mobile-menu-leave-active {
  transition:
    opacity 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.mobile-menu-enter-from,
.mobile-menu-leave-to {
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
}

.mobile-menu-enter-to,
.mobile-menu-leave-from {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-menu-panel {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.flip-logo-wrap {
  perspective: 900px;
}

.flip-logo {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.group\/channel:hover .flip-logo,
.group\/channel:focus-within .flip-logo {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 9999px;
  overflow: hidden;
}

.flip-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ff3232 0%, #d70b0b 100%);
}

.falling-cat {
  position: absolute;
  top: -140px;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: cat-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.26));
}

@keyframes cat-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translate3d(0, 120vh, 0) rotate(var(--cat-rotate, 0deg));
    opacity: 0;
  }
}

.game-icon {
  background: linear-gradient(135deg, var(--from), var(--to));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  gap: 0.45rem;
  padding: 0.7rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.game-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent 58%);
}

.video-range {
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background:
    linear-gradient(to right, #fff var(--progress, 0%), rgba(255, 255, 255, 0.22) var(--progress, 0%));
  cursor: pointer;
}

.video-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}

.video-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}

.volume-range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.volume-range.is-muted {
  background: rgba(255, 255, 255, 0.22) !important;
}

.volume-range.is-muted::-webkit-slider-thumb {
  opacity: 0.65;
}

.volume-range.is-muted::-moz-range-thumb {
  opacity: 0.65;
}

.video-frame:fullscreen,
.video-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  background: #000;
}

.video-frame:fullscreen video,
.video-frame:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-frame:fullscreen .video-toolbar-panel,
.video-frame:-webkit-full-screen .video-toolbar-panel {
  opacity: 0 !important;
  pointer-events: auto !important;
}

.video-frame:fullscreen .video-toolbar-panel:hover,
.video-frame:fullscreen .video-toolbar-panel:focus-within,
.video-frame:-webkit-full-screen .video-toolbar-panel:hover,
.video-frame:-webkit-full-screen .video-toolbar-panel:focus-within {
  opacity: 1 !important;
}

[v-cloak] {
  display: none;
}
