:root
{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --stroke: rgba(255,255,255,.10);
  --brand: #ff5fb3;
  --brand2: #55d6ff;
  --shadow: 0 16px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
}

[data-theme="light"]
{
  --bg: #f6f7fb;
  --panel: rgba(0,0,0,.04);
  --panel2: rgba(0,0,0,.07);
  --text: rgba(0,0,0,.86);
  --muted: rgba(0,0,0,.55);
  --stroke: rgba(0,0,0,.10);
  --shadow: 0 18px 55px rgba(0,0,0,.12);
}

*
{
  box-sizing: border-box;
}

html, body
{
  height: 100%;
}

body
{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Microsoft YaHei, Arial;
  background: radial-gradient(1200px 800px at 15% 0%, rgba(255,95,179,.18), transparent 55%),
              radial-gradient(900px 700px at 85% 10%, rgba(85,214,255,.16), transparent 55%),
              var(--bg);
  color: var(--text);
}

a
{
  color: inherit;
  text-decoration: none;
}

.container
{
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}

.muted
{
  color: var(--muted);
}

.page
{
  padding-bottom: 80px;
}

/* Topbar */
.topbar
{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(10,14,22,.85), rgba(10,14,22,.55));
  border-bottom: 1px solid var(--stroke);
}

[data-theme="light"] .topbar
{
  background: rgba(246,247,251,.78);
}

.topbar__inner
{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  height: 64px;
}

.brand
{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
}

.brand__dot
{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(255,95,179,.10), 0 0 0 12px rgba(85,214,255,.08);
}

.brand__text
{
  font-weight: 750;
  letter-spacing: .2px;
}

.brand--small
{
  padding: 0;
}

.nav
{
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar
{
  display: none;
}

.nav__item
{
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.nav__item:hover
{
  background: var(--panel);
  color: var(--text);
}

.nav__item.is-active
{
  background: linear-gradient(135deg, rgba(255,95,179,.22), rgba(85,214,255,.18));
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
}

.search
{
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  min-width: 260px;
}

.search__input
{
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  color: var(--text);
  width: 100%;
}

.search__btn
{
  border: none;
  background: transparent;
  padding: 10px 12px;
  color: var(--muted);
  cursor: pointer;
}

.search__btn:hover
{
  color: var(--text);
}

.actions
{
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.btn--primary
{
  border: none;
  background: linear-gradient(135deg, rgba(255,95,179,.95), rgba(85,214,255,.88));
  box-shadow: 0 12px 30px rgba(255,95,179,.14);
}

.btn--soft
{
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}

.btn--ghost
{
  background: transparent;
}

.btn--lg
{
  padding: 12px 16px;
  font-size: 14.5px;
}

.btn--sm
{
  padding: 8px 10px;
  font-size: 12.5px;
}

/* Hero */
.hero
{
  padding: 26px 0 10px;
}

.hero__grid
{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.hero__left
{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.badge
{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,95,179,.14);
  border: 1px solid rgba(255,95,179,.22);
  color: var(--text);
  font-size: 12px;
}

.hero__title
{
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -.2px;
}

.hero__subtitle
{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero__cta
{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.stats
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat
{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  padding: 12px;
}

.stat__v
{
  font-weight: 800;
  font-size: 18px;
}

.stat__k
{
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chips
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip
{
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Carousel */
.hero__right
{
  display: grid;
  gap: 12px;
}

.carousel
{
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel__viewport
{
  position: relative;
  height: 320px;
}

.slide
{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .35s ease, transform .55s ease;
  display: block;
}

.slide.is-active
{
  opacity: 1;
  transform: scale(1.0);
  z-index: 1;
}

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

.slide__mask
{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58));
}

.slide__meta
{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}

.slide__title
{
  font-weight: 800;
  font-size: 18px;
}

.slide__desc
{
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
}

.carousel__dots
{
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 7px;
  z-index: 3;
}

.dot
{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.dot.is-active
{
  background: rgba(255,255,255,.88);
}

/* Quick cards */
.quick
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick__item
{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: var(--panel);
}

.quick__item:hover
{
  background: var(--panel2);
}

.quick__icon
{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,95,179,.22), rgba(85,214,255,.18));
  border: 1px solid var(--stroke);
  font-weight: 900;
}

.quick__title
{
  font-weight: 750;
}

.quick__desc
{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Content layout */
.content
{
  padding: 22px 0 0;
}

.layout
{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.sectionHead
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.h2
{
  margin: 0;
  font-size: 20px;
}

.h3
{
  margin: 0;
  font-size: 16px;
}

.tabs
{
  display: inline-flex;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px;
}

.tab
{
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.tab:hover
{
  color: var(--text);
  background: var(--panel2);
}

.tab.is-active
{
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,95,179,.26), rgba(85,214,255,.22));
  border: 1px solid rgba(255,255,255,.10);
}

.subbar
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.grid
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card
{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
  outline: none;
}

.card:hover
{
  transform: translateY(-2px);
  background: var(--panel2);
}

.thumb
{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.corner
{
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0,0,0,.50);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
}

.play
{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s ease;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
}

.card:hover .play
{
  opacity: 1;
}

.play__btn
{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 18px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.quickacts
{
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}

.card:hover .quickacts
{
  opacity: 1;
  transform: translateY(0);
}

.qa
{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.90);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.qa.is-on
{
  background: rgba(255,95,179,.30);
  border-color: rgba(255,95,179,.35);
}

.meta
{
  padding: 12px 12px 14px;
}

.title
{
  font-weight: 750;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

.sub
{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  align-items: center;
  justify-content: space-between;
}

.tag
{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}

.loadmore
{
  display: grid;
  place-items: center;
  margin-top: 14px;
}

/* Side */
.panel
{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.panel + .panel
{
  margin-top: 12px;
}

.panel__head
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pill
{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,95,179,.14);
  border: 1px solid rgba(255,95,179,.22);
}

.pill--soft
{
  background: rgba(85,214,255,.12);
  border-color: rgba(85,214,255,.20);
}

.rank
{
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank li
{
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
}

.rank li:hover
{
  background: var(--panel2);
}

.rank .no
{
  font-weight: 900;
  color: rgba(255,255,255,.70);
}

[data-theme="light"] .rank .no
{
  color: rgba(0,0,0,.55);
}

.rank .name
{
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank .hot
{
  color: var(--muted);
  font-size: 12px;
}

.notice
{
  color: var(--muted);
  line-height: 1.75;
}

.watchlater
{
  display: grid;
  gap: 8px;
}

.wl
{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}

.wl img
{
  width: 48px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.wl .t
{
  font-size: 12.5px;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

.wl .m
{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Deploy */
.deploy
{
  margin-top: 20px;
  padding: 20px 0 0;
}

.deploy__inner
{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
}

.deploy__grid
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.step
{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.step__n
{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,95,179,.28), rgba(85,214,255,.22));
  border: 1px solid var(--stroke);
}

.step__t
{
  font-weight: 800;
}

.step__d
{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* Footer */
.footer
{
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--stroke);
}

.footer__inner
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__right
{
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.footer__right a:hover
{
  color: var(--text);
}

/* Modal */
.modal
{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.modal.is-open
{
  display: block;
}

.modal__mask
{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modal__panel
{
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 22px));
  background: rgba(10,14,22,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  overflow: hidden;
}

[data-theme="light"] .modal__panel
{
  background: rgba(246,247,251,.95);
  border-color: rgba(0,0,0,.10);
}

.modal__head
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

[data-theme="light"] .modal__head
{
  border-bottom-color: rgba(0,0,0,.10);
}

.modal__title
{
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal__headRight
{
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal__body
{
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 12px;
  padding: 12px;
}

.player__stage
{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  aspect-ratio: 16/9;
}

[data-theme="light"] .player__stage
{
  border-color: rgba(0,0,0,.10);
}

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

.player__overlay
{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45));
}

.player__hud
{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hud
{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.90);
}

.player__meta
{
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 12px;
}

.metaLine
{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.desc
{
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.comments
{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 440px;
}

.comments__head
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comments__box
{
  margin-top: 10px;
  overflow: auto;
  padding-right: 6px;
}

.c
{
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
}

.c + .c
{
  margin-top: 8px;
}

.c .a
{
  font-weight: 750;
  font-size: 12px;
}

.c .t
{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.comments__write
{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.comments__write input
{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

[data-theme="light"] .comments__write input
{
  background: rgba(0,0,0,.03);
}

/* Sheet */
.sheet
{
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.sheet.is-open
{
  display: block;
}

.sheet__mask
{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
}

.sheet__panel
{
  position: absolute;
  right: 16px;
  top: 74px;
  width: min(420px, calc(100vw - 32px));
  background: rgba(10,14,22,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  overflow: hidden;
}

[data-theme="light"] .sheet__panel
{
  background: rgba(246,247,251,.95);
  border-color: rgba(0,0,0,.10);
}

.sheet__head
{
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.sheet__body
{
  padding: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* To top */
.totop
{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: none;
  z-index: 80;
}

.totop.is-show
{
  display: grid;
  place-items: center;
}

/* Responsive */
@media (max-width: 1100px)
{
  .hero__grid
  {
    grid-template-columns: 1fr;
  }
  .layout
  {
    grid-template-columns: 1fr;
  }
  .grid
  {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal__body
  {
    grid-template-columns: 1fr;
  }
  .comments
  {
    min-height: 320px;
  }
}

@media (max-width: 640px)
{
  .topbar__inner
  {
    grid-template-columns: auto 1fr auto;
  }
  .nav
  {
    display: none;
  }
  .search
  {
    min-width: 0;
  }
  .actions .btn--soft
  {
    display: none;
  }
  .grid
  {
    grid-template-columns: 1fr;
  }
  .quick
  {
    grid-template-columns: 1fr;
  }
  .deploy__grid
  {
    grid-template-columns: 1fr;
  }
}
