:root {
  --bg: #f8f7f4;
  --surface: #fff;
  --ink: #16161d;
  --muted: #5b5b6b;
  --line: #e1e0e8;
  --brand: #2f3fd9;
  --brand-ink: #fff;
  --soft: #e9ebff;
  --danger: #c0262d;
  color-scheme: light
}

@media (prefers-color-scheme:dark) {
  :root {
    --bg: #101017;
    --surface: #191924;
    --ink: #efeff6;
    --muted: #a6a6ba;
    --line: #2c2c3c;
    --brand: #7c88ff;
    --brand-ink: #10101a;
    --soft: #232346;
    --danger: #ff7b82;
    color-scheme: dark
  }
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Manrope", system-ui, sans-serif
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em
}

a {
  color: inherit
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1080px;
  margin: 0 auto
}

.logo {
  font-weight: 800;
  font-size: 21px;
  text-decoration: none
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  font: 700 16px "Manrope", sans-serif;
  padding: 11px 20px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line)
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger);
  padding: 6px 12px;
  font-size: 14px
}

.btn:hover {
  filter: brightness(1.08)
}

.hero {
  padding: 64px 0 36px
}

.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  max-width: 14em
}

.hero p {
  color: var(--muted);
  font-size: 20px;
  max-width: 32em;
  margin: 16px 0 0
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  padding: 20px 0 70px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column
}

.card:hover {
  border-color: var(--brand)
}

.thumb {
  aspect-ratio: 16/9;
  background: var(--soft);
  display: grid;
  place-items: center;
  font: 800 56px "Manrope", sans-serif;
  color: var(--brand);
  overflow: hidden
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.card .body {
  padding: 16px 18px 20px
}

.card h3 {
  font-size: 21px
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.meta {
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand)
}

.empty {
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  margin: 20px 0 70px
}

.back {
  display: inline-block;
  margin: 28px 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 70px
}

.player {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center
}

.player iframe,
.player video {
  width: 100%;
  height: 100%;
  border: 0
}

.player a {
  color: #fff;
  font-weight: 700
}

.open-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px
}

.desc {
  margin: 18px 0 0;
  color: var(--muted);
  white-space: pre-line
}

.side {
  display: flex;
  flex-direction: column;
  gap: 22px
}

.side h3 {
  font-size: 18px;
  margin-bottom: 10px
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.list button,
.list a {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font: 600 15px "Manrope", sans-serif;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none
}

.list button[aria-current="true"] {
  border-color: var(--brand);
  background: var(--soft)
}

.note {
  font-size: 13px;
  color: var(--muted);
  border-left: 4px solid var(--brand);
  padding-left: 12px
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px
}

.wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #137a43;
  color: #fff;
  border-radius: 99px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3)
}

/* admin */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0
}

.panel h2 {
  font-size: 24px;
  margin-bottom: 14px
}

label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 14px 0 6px
}

input,
textarea {
  width: 100%;
  font: 400 16px "Manrope", sans-serif;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink)
}

textarea {
  min-height: 110px;
  resize: vertical
}

small {
  color: var(--muted);
  display: block;
  margin-top: 4px
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.row>* {
  flex: 1 1 220px
}

.msg {
  margin: 12px 0 0;
  font-weight: 700
}

.msg.err {
  color: var(--danger)
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line)
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 16px
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.stat-box strong {
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand)
}

.stat-box span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}

@media (max-width:820px) {
  .detail {
    grid-template-columns: 1fr
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important
  }
}

/* legal pages + footer links */
.legal {
  max-width: 720px;
  padding-top: 36px;
  padding-bottom: 60px
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 4px
}

.legal h2 {
  font-size: 22px;
  margin: 32px 0 8px
}

.legal p,
.legal li {
  color: var(--ink)
}

.legal li {
  margin: 6px 0
}

.legal a,
footer a {
  color: var(--brand)
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 0
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 14px;
  font-weight: 600
}

/* login screen */
.login-scene {
  min-height: calc(100vh - 230px);
  display: grid;
  place-items: center;
  padding: 36px 0 56px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(20, 24, 80, .12)
}

.login-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center
}

.login-mark .ico {
  width: 34px;
  height: 34px;
  fill: currentColor
}

.login-card h1 {
  font-size: 30px
}

.login-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px
}

.login-google {
  margin: 26px auto 0;
  min-height: 44px;
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden
}

.login-card .msg {
  font-size: 14px;
  min-height: 0
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line)
}

.alt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
  font: 600 15px "Manrope", sans-serif;
  text-align: left;
  cursor: not-allowed
}

.alt-btn .ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
  opacity: .7
}

.alt-label {
  flex: 1;
  min-width: 0
}

.soon {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--brand)
}

.login-foot {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted)
}

@media (max-width:420px) {
  .login-card {
    padding: 30px 18px 22px;
    border-radius: 20px
  }

  .alt-btn {
    font-size: 14px
  }
}

/* ===== 3D login page ===== */
.lg-scene {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0px;
  --py: 0px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
  justify-content: center;
  padding: 56px max(20px, calc((100vw - 1080px) / 2)) 64px;
  overflow: hidden;
  color: #f2f3ff;
  background: radial-gradient(120% 90% at 20% 0%, #232a8f 0%, #0d0f2e 55%, #07081a 100%);
  isolation: isolate;
}

/* animated background */
.lg-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  perspective: 700px;
  pointer-events: none
}

.lg-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(124, 136, 255, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 136, 255, .45) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotateX(68deg);
  transform-origin: 50% 100%;
  animation: lgGrid 4s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}

@keyframes lgGrid {
  to {
    background-position: 0 56px
  }
}

.lg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: lgFloat 12s ease-in-out infinite
}

.lg-orb.o1 {
  width: 360px;
  height: 360px;
  background: #5b6cff;
  top: -80px;
  left: -60px
}

.lg-orb.o2 {
  width: 300px;
  height: 300px;
  background: #b44cff;
  right: -40px;
  top: 18%;
  animation-delay: -4s
}

.lg-orb.o3 {
  width: 260px;
  height: 260px;
  background: #19c3ff;
  left: 38%;
  bottom: -80px;
  animation-delay: -8s
}

@keyframes lgFloat {
  50% {
    transform: translate3d(30px, -40px, 0) scale(1.1)
  }
}

/* hero */
.lg-hero {
  position: relative;
  transform: translate3d(calc(var(--px) * -.3), calc(var(--py) * -.3), 0);
  transition: transform .2s ease-out
}

.lg-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}

.lg-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin: 18px 0 0;
  color: #fff
}

.lg-grad {
  background: linear-gradient(90deg, #8fa0ff, #d98bff, #5fe0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lg-lead {
  font-size: 19px;
  max-width: 30em;
  margin: 18px 0 0;
  color: #c7cafc
}

.lg-feats {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px
}

.lg-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #e6e8ff
}

.lg-feats .ico {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #2fd48a;
  fill: #04281a;
  flex: none
}

/* rotating 3D cube */
.lg-stage {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 40px 0 0 20px;
  perspective: 700px
}

.lg-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: lgSpin 14s linear infinite
}

@keyframes lgSpin {
  from {
    transform: rotateX(-22deg) rotateY(0)
  }

  to {
    transform: rotateX(-22deg) rotateY(360deg)
  }
}

.lg-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 136, 255, .55), rgba(180, 76, 255, .4));
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .22), 0 0 30px rgba(110, 120, 255, .35);
  backdrop-filter: blur(2px);
}

.lg-face .ico {
  width: 56px;
  height: 56px;
  fill: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7))
}

.lg-face.f1 {
  transform: translateZ(75px)
}

.lg-face.f2 {
  transform: rotateY(90deg) translateZ(75px)
}

.lg-face.f3 {
  transform: rotateY(180deg) translateZ(75px)
}

.lg-face.f4 {
  transform: rotateY(-90deg) translateZ(75px)
}

.lg-face.f5 {
  transform: rotateX(90deg) translateZ(75px)
}

.lg-face.f6 {
  transform: rotateX(-90deg) translateZ(75px)
}

.lg-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 230px;
  margin: -115px 0 0 -115px;
  border-radius: 50%;
  border: 2px solid rgba(143, 160, 255, .5);
  transform: rotateX(72deg);
  animation: lgPulse 4s ease-in-out infinite;
}

.lg-ring.r2 {
  width: 290px;
  height: 290px;
  margin: -145px 0 0 -145px;
  border-color: rgba(217, 139, 255, .35);
  animation-delay: -2s
}

@keyframes lgPulse {
  50% {
    transform: rotateX(72deg) scale(1.12);
    opacity: .4
  }
}

/* glass login card with 3D tilt */
.lg-card {
  position: relative;
  text-align: center;
  padding: 38px 28px 26px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease-out;
  animation: lgIn .8s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes lgIn {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(40px) rotateX(18deg)
  }
}

.lg-mark {
  width: 68px;
  height: 68px;
  margin: -68px auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c88ff, #b44cff);
  box-shadow: 0 16px 36px rgba(124, 136, 255, .6);
  transform: translateZ(40px);
  animation: lgBob 3.5s ease-in-out infinite;
}

@keyframes lgBob {
  50% {
    transform: translateY(-8px)
  }
}

.lg-mark .ico {
  width: 36px;
  height: 36px;
  fill: #fff
}

.lg-card h2 {
  font-size: 30px;
  color: #fff
}

.lg-sub {
  margin: 8px 0 0;
  color: #c7cafc;
  font-size: 16px
}

.lg-card .login-google {
  margin-top: 24px
}

.lg-card .msg.err {
  color: #ffb3b8
}

.lg-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #b9bdf5
}

.lg-secure .ico {
  width: 14px;
  height: 14px;
  fill: #7fe6b4;
  flex: none
}

.lg-card .or {
  color: #b9bdf5;
  font-size: 13px
}

.lg-card .or::before,
.lg-card .or::after {
  background: rgba(255, 255, 255, .22)
}

.lg-card .alt-btn {
  background: #34365f;
  border-color: rgba(255, 255, 255, .22);
  color: #f0f2ff
}

.lg-card .soon {
  background: #5962c7;
  color: #ffffff
}

.lg-card .login-foot {
  color: #b9bdf5
}

.lg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px
}

.lg-form input {
  background: #24264f;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 12px
}

.lg-form input::placeholder {
  color: #b9bdf5
}

.lg-submit {
  width: 100%;
  border-radius: 99px;
  padding: 12px 18px;
  margin-top: 2px
}

.lg-switch {
  margin: 4px 0 0;
  text-align: center
}

.lg-link {
  background: none;
  border: 0;
  padding: 0;
  color: #b9bdf5;
  font: 600 13.5px "Manrope", sans-serif;
  cursor: pointer;
  text-decoration: underline
}

.lg-link:hover {
  color: #fff
}

/* Android / iPhone / Mac tiles */
.lg-plats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px
}

.lg-plat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .25s ease;
  cursor: not-allowed;
}

.lg-plat:hover {
  transform: translateY(-4px) rotateX(10deg)
}

@media (prefers-reduced-motion: reduce) {
  .lg-plat {
    transition: none;
  }

  .lg-plat:hover {
    transform: none;
  }
}

.lg-plat-ic {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  margin-bottom: 4px
}

.lg-plat-ic .ico {
  width: 22px;
  height: 22px;
  fill: #fff
}

.lg-plat strong {
  font-size: 14px;
  color: #fff
}

.lg-plat-sub {
  font-size: 11.5px;
  color: #b9bdf5
}

.lg-plat .soon {
  margin-top: 6px;
  font-size: 10.5px;
  padding: 2px 8px
}

@media (max-width: 900px) {
  .lg-scene {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px
  }

  .lg-hero {
    text-align: center
  }

  .lg-lead {
    margin-left: auto;
    margin-right: auto
  }

  .lg-feats {
    justify-content: center;
    justify-items: start;
    width: fit-content;
    margin-left: auto;
    margin-right: auto
  }

  .lg-stage {
    margin: 36px auto 0;
    transform: scale(.8)
  }

  .lg-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto
  }
}

@media (max-width: 420px) {
  .lg-card {
    padding: 34px 16px 20px;
    border-radius: 22px
  }

  .lg-plat strong {
    font-size: 13px
  }
}

@media (prefers-reduced-motion: reduce) {

  .lg-cube,
  .lg-floor,
  .lg-orb,
  .lg-ring,
  .lg-mark,
  .lg-card {
    animation: none !important
  }
}

@media (max-width: 900px) {
  .lg-feats li {
    text-align: left
  }

  .lg-stage {
    margin-bottom: 24px
  }

  .lg-card {
    margin-top: 48px
  }
}