/* ============================================================
   映界 LIVE — interface system
   ============================================================ */

:root {
  --bg: #070809;
  --bg-soft: #0b0d0f;
  --panel: #101315;
  --panel-2: #15191b;
  --panel-3: #1b2023;
  --line: #242a2d;
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f2f3ec;
  --muted: #9aa198;
  --dim: #686f68;
  --acid: #d8ff3e;
  --acid-deep: #b8e326;
  --hot: #ff4d1f;
  --gold: #ffc247;
  --radius: 16px;
  --radius-lg: 24px;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 76% -8%, rgba(216, 255, 62, 0.07), transparent 62%),
    radial-gradient(900px 520px at -6% 34%, rgba(255, 77, 31, 0.055), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
}

::selection {
  background: var(--acid);
  color: #090a08;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0b0d0e;
}
::-webkit-scrollbar-thumb {
  background: #2a3033;
  border-radius: 99px;
  border: 2px solid #0b0d0e;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c4447;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.18em;
}

/* ---------------------------- boot ---------------------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--acid);
  color: #080907;
  font-weight: 900;
  font-size: 30px;
  transform: rotate(-3deg);
  animation: bootPulse 1.8s ease-in-out infinite;
}

.boot-word {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.boot-word span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-left: 5px;
}

.boot-line {
  width: 160px;
  height: 2px;
  background: #1d2224;
  overflow: hidden;
}

.boot-line i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--acid);
  animation: bootLine 1.1s ease-in-out infinite;
}

.boot p {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --------------------------- layout --------------------------- */

#app,
.site-shell {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1320px, calc(100% - 56px));
  margin-inline: auto;
}

.page {
  min-height: 62vh;
  padding: 0 0 92px;
}

.site-main {
  min-height: 60vh;
}

/* --------------------------- header --------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 8, 9, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 400px) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #090a07;
  border-radius: 9px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-2deg);
  transition: transform 0.25s ease;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 5px;
  width: 2px;
  height: 26px;
  background: var(--acid);
  transform: rotate(9deg);
  opacity: 0.7;
}

.brand:hover .brand-mark {
  transform: rotate(3deg);
}

.brand-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.brand-text small {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.main-nav a.is-active {
  color: var(--text);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--acid);
  border-radius: 2px;
}

.global-search {
  position: relative;
  min-width: 0;
}

.search-shell {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1011;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-shell:focus-within {
  border-color: rgba(216, 255, 62, 0.6);
  background: #101414;
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.08);
}

.search-shell > .icon {
  color: var(--dim);
  width: 17px;
  height: 17px;
}

.search-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
}

.search-shell input::placeholder {
  color: #666d66;
}

.search-key {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.search-go {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #090a07;
  transition: transform 0.2s, background 0.2s;
}

.search-go:hover {
  transform: translateX(1px);
  background: #e5ff70;
}

.search-go .icon {
  width: 15px;
  height: 15px;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0e1112;
  box-shadow: var(--shadow);
  max-height: 430px;
  overflow-y: auto;
}

.search-suggest.is-open {
  display: block;
  animation: popIn 0.16s ease both;
}

.suggest-label {
  padding: 7px 10px 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.suggest-item:hover,
.suggest-item:focus {
  background: rgba(216, 255, 62, 0.08);
}

.suggest-thumb {
  width: 54px;
  height: 34px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #1a1f21;
  display: grid;
  place-items: center;
  color: var(--dim);
}

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

.suggest-main {
  min-width: 0;
  flex: 1;
}

.suggest-main strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-main span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-top: 1px;
}

.suggest-direct {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
}

.suggest-direct:hover {
  background: rgba(216, 255, 62, 0.08);
}

.suggest-direct .id {
  font-family: var(--mono);
  font-size: 15px;
}

.suggest-empty {
  padding: 14px 10px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #0e1112;
  transition: border-color 0.2s;
}

.user-chip:hover {
  border-color: #3b4346;
}

.user-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #080907;
  font-weight: 900;
  font-size: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip span:not(.user-avatar) {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: #3b4346;
  background: rgba(255, 255, 255, 0.035);
}

.mobile-nav {
  display: none;
}

/* --------------------------- buttons --------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  --btn-bg: var(--acid);
  --btn-fg: #080907;
  --btn-border: var(--acid);
}

.btn-primary:hover {
  --btn-bg: #e6ff79;
  --btn-border: #e6ff79;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-border: var(--line);
  --btn-fg: var(--muted);
}

.btn-ghost:hover {
  --btn-fg: var(--text);
  --btn-border: #3c4447;
  --btn-bg: rgba(255, 255, 255, 0.035);
}

.btn-dark {
  --btn-bg: #0a0b0c;
  --btn-fg: var(--text);
  --btn-border: #0a0b0c;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 14.5px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

/* --------------------------- typographic --------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--acid);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 9px;
  font-size: clamp(28px, 3.3vw, 42px);
}

.section-head h2 em {
  color: var(--acid);
  font-style: normal;
}

.section-aside {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  text-align: right;
}

.section-aside strong {
  color: var(--text);
}

/* --------------------------- hero --------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding: clamp(46px, 7vw, 88px) 0 clamp(42px, 6vw, 70px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 4px 11px 4px 8px;
  border: 1px solid rgba(216, 255, 62, 0.24);
  border-radius: 99px;
  background: rgba(216, 255, 62, 0.06);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 4px rgba(255, 77, 31, 0.12);
  animation: livePulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(50px, 6.7vw, 94px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span {
  color: var(--acid);
  position: relative;
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 0;
  bottom: 2px;
  height: 7px;
  background: rgba(216, 255, 62, 0.18);
  z-index: -1;
}

.hero-lede {
  max-width: 470px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 700;
}

.channel-form {
  margin-top: 30px;
  max-width: 490px;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d1011;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.channel-form:focus-within {
  border-color: rgba(216, 255, 62, 0.55);
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.07);
}

.channel-form .field-icon {
  align-self: center;
  margin-left: 8px;
  color: var(--dim);
  display: flex;
}

.channel-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.channel-form input::placeholder {
  color: #697067;
  font-weight: 400;
  font-size: 13.5px;
}

.channel-form .btn {
  min-height: 42px;
  border-radius: 9px;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: var(--dim);
  font-size: 11.5px;
}

.form-hint .icon {
  width: 13px;
  height: 13px;
  color: var(--acid);
}

.quick-cats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.quick-cats > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-right: 2px;
}

.quick-cat {
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.quick-cat:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  max-width: 490px;
}

.hero-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.hero-stat + .hero-stat {
  padding-left: 24px;
  border-left: 1px solid var(--line-soft);
}

/* feature card */

.hero-feature {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.7;
  max-height: 610px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #15191a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5);
  transform: rotate(1.1deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}

.hero-feature:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(216, 255, 62, 0.38);
}

.hero-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 7, 8, 0.5) 0%, transparent 28%, transparent 48%, rgba(5, 6, 7, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.25), transparent 45%);
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-feature:hover img {
  transform: scale(1.035);
}

.hero-feature .feature-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(216, 255, 62, 0.17), transparent 45%),
    linear-gradient(145deg, #242b24, #0e1110 70%);
}

.feature-fallback span {
  font-size: 120px;
  font-weight: 900;
  color: rgba(216, 255, 62, 0.16);
  transform: rotate(-8deg);
}

.feature-top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-top .live-badge {
  backdrop-filter: blur(8px);
}

.feature-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(8, 9, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.feature-count .icon {
  width: 13px;
  height: 13px;
}

.feature-body {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.feature-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.feature-body h2 {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.feature-meta .dot-sep {
  background: rgba(255, 255, 255, 0.28);
}

.feature-cta {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #080907;
  transform: translateY(3px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.hero-feature:hover .feature-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ticker */

.signal-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker-item b {
  color: var(--text);
  font-weight: 600;
}

.ticker-item .live-dot {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.ticker-star {
  color: var(--acid);
  font-size: 9px;
}

/* --------------------------- sections --------------------------- */

.section {
  padding: clamp(48px, 6vw, 76px) 0;
}

.section-tight {
  padding-top: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: #3a4245;
}

.chip.is-active {
  background: var(--acid);
  border-color: var(--acid);
  color: #080907;
}

.chip-count {
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.6;
}

/* --------------------------- room grid --------------------------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}

.room-card {
  min-width: 0;
  opacity: 0;
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}

.room-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #14181a;
  isolation: isolate;
}

.room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}

.room-card:hover .room-cover img {
  transform: scale(1.045);
}

.room-cover.img-missing {
  background:
    radial-gradient(circle at 72% 22%, rgba(216, 255, 62, 0.18), transparent 42%),
    linear-gradient(145deg, #252c25, #101312 72%);
}

.room-cover.img-missing::before {
  content: "映界";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.room-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 32%, transparent 54%, rgba(0, 0, 0, 0.74) 100%);
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(8, 9, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hot);
}

.live-badge.is-live {
  background: var(--hot);
  border-color: var(--hot);
}

.live-badge.is-live i {
  background: #fff;
  animation: livePulse 1.6s infinite;
}

.live-badge.is-offline {
  color: rgba(255, 255, 255, 0.55);
}

.live-badge.is-offline i {
  background: rgba(255, 255, 255, 0.36);
  animation: none;
}

.room-cover .live-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
}

.room-viewers {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 9.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.room-viewers .icon {
  width: 12px;
  height: 12px;
}

.room-category {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.room-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #080907;
  transform: translate(-50%, -46%) scale(0.78);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.room-play .icon {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

.room-card:hover .room-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.room-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 2px 0;
}

.room-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #242b25;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-avatar.img-missing {
  background: #242b25;
}

.room-copy {
  min-width: 0;
}

.room-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}

.room-title:hover {
  color: var(--acid);
}

.room-copy p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--dim);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-number {
  font-family: var(--mono);
  color: #555d56;
  font-size: 9.5px;
}

.dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4b524c;
  display: inline-block;
  flex: 0 0 auto;
}

/* skeleton */

.skeleton-block,
.skeleton-line {
  display: block;
  background: linear-gradient(90deg, #14181a 25%, #1c2224 50%, #14181a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.room-card.skeleton .room-cover {
  aspect-ratio: 16 / 10;
}

.room-card.skeleton .room-avatar {
  border: 0;
}

.skeleton-line {
  height: 10px;
  border-radius: 3px;
  margin-top: 4px;
}

.skeleton-line.w70 {
  width: 70%;
}
.skeleton-line.w40 {
  width: 40%;
}

/* empty state */

.empty-state {
  padding: 60px 24px;
  border: 1px dashed #2a3133;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
}

.empty-icon {
  width: 34px;
  height: 34px;
  color: var(--acid);
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 20px;
}

.empty-state p {
  max-width: 390px;
  margin: 8px auto 0;
  color: var(--dim);
  font-size: 13px;
}

.empty-state .btn {
  margin-top: 20px;
}

/* --------------------------- ticker / marquee --------------------------- */

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes bootPulse {
  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.05);
  }
}

@keyframes bootLine {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(360%);
  }
}

/* --------------------------- page head --------------------------- */

.page-head {
  padding: clamp(42px, 6vw, 72px) 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.page-head h1 {
  margin-top: 12px;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.06em;
}

.page-head h1 em {
  color: var(--acid);
  font-style: normal;
}

.page-head p {
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.page-head-meta {
  flex: 0 0 auto;
  text-align: right;
  padding-bottom: 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.page-head-meta strong {
  display: block;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

/* --------------------------- discover --------------------------- */

.discover-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line-soft);
}

.tool-search {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 360px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1011;
}

.tool-search .icon {
  color: var(--dim);
  width: 16px;
  height: 16px;
}

.tool-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.tool-sorts {
  display: flex;
  gap: 4px;
}

.sort-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 11.5px;
}

.sort-btn.is-active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.channel-direct-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 54px;
  padding: 30px 34px;
  border: 1px solid rgba(216, 255, 62, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(216, 255, 62, 0.1), transparent 65%),
    #0c0f0f;
  position: relative;
  overflow: hidden;
}

.channel-direct-panel::after {
  content: "CH";
  position: absolute;
  right: 160px;
  top: -38px;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: rgba(216, 255, 62, 0.04);
  pointer-events: none;
}

.channel-direct-panel h2 {
  font-size: 25px;
}

.channel-direct-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.channel-direct-panel .channel-form {
  margin-top: 0;
  width: min(400px, 100%);
}

/* --------------------------- room page --------------------------- */

.room-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 26px;
  align-items: start;
  padding: 26px 0 78px;
}

.room-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--acid);
}

.breadcrumb .sep {
  opacity: 0.35;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* The official Huya room page is embedded at a fixed desktop width,
   then scaled and cropped to the video area so the native player,
   danmaku and chat sidebar fill our 16:9 shell. */
.player-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.player-embed iframe {
  position: absolute;
  left: calc(-67px * var(--s, 0.74));
  top: calc(-714px * var(--s, 0.74));
  width: 1280px;
  height: 1400px;
  border: 0;
  transform: scale(var(--s, 0.74));
  transform-origin: 0 0;
  background: #000;
}

.player-poster {
  position: absolute;
  inset: 0;
  background-color: #101412;
  background-size: cover;
  background-position: center;
  filter: brightness(0.46) saturate(0.7);
}

.player-embed-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: #0a0d0e;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.player-embed-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.player-embed-loading h2 {
  color: #fff;
  font-size: 24px;
}

.player-embed-loading p {
  margin-top: 7px;
  color: var(--dim);
  font-size: 12px;
}

.player-top {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 42px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.player-top.is-hidden {
  opacity: 0;
}

.player-title-mini {
  min-width: 0;
}

.player-title-mini strong {
  display: block;
  max-width: 640px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px #000;
}

.player-title-mini span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.player-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 25px;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--hot);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.player-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.6s infinite;
}

.player-live.is-offline {
  background: rgba(255, 255, 255, 0.14);
}

.player-live.is-offline i {
  animation: none;
  background: rgba(255, 255, 255, 0.5);
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(5, 6, 7, 0.62);
  backdrop-filter: blur(14px) saturate(70%);
  -webkit-backdrop-filter: blur(14px) saturate(70%);
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay-inner {
  max-width: 390px;
}

.overlay-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 62, 0.35);
  border-radius: 50%;
  color: var(--acid);
  background: rgba(216, 255, 62, 0.07);
}

.overlay-icon .icon {
  width: 22px;
  height: 22px;
}

.player-overlay h2 {
  color: #fff;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.player-overlay p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  line-height: 1.7;
}

.player-overlay-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.player-offline-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.4);
}

.player-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--acid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

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

.player-unmute {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 58px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: rgba(8, 9, 10, 0.78);
  color: #fff;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.player-unmute:hover {
  background: var(--acid);
  color: #080907;
}

.player-unmute .icon {
  width: 14px;
  height: 14px;
}

.room-head {
  padding: 20px 2px 0;
}

.room-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.room-title-row h1 {
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.room-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--dim);
  font-size: 11px;
}

.room-subline .tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}

.room-subline .tag.acid {
  border-color: rgba(216, 255, 62, 0.24);
  background: rgba(216, 255, 62, 0.06);
  color: var(--acid);
}

.room-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-top: 3px;
}

.fav-btn.is-fav {
  border-color: rgba(216, 255, 62, 0.4);
  color: var(--acid);
  background: rgba(216, 255, 62, 0.07);
}

.fav-btn.is-fav .icon path {
  fill: currentColor;
}

.streamer-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.streamer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #080907;
  font-weight: 900;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.streamer-id {
  min-width: 0;
  flex: 1;
}

.streamer-id strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.streamer-id span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 11px;
}

.streamer-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.streamer-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.streamer-stat span {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
  margin-top: 2px;
}

.room-note {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  display: flex;
  gap: 9px;
}

.room-note .icon {
  color: var(--dim);
  margin-top: 3px;
  width: 15px;
  height: 15px;
}

.related-block {
  margin-top: 38px;
}

.related-block .section-head {
  margin-bottom: 18px;
}

.related-block .section-head h2 {
  font-size: 21px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-grid .room-title {
  font-size: 12.5px;
}

/* chat */

.chat-panel {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  height: min(660px, calc(100vh - 116px));
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0c0f10;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.chat-title .icon {
  width: 16px;
  height: 16px;
  color: var(--acid);
}

.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.chat-online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ee787;
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}

.chat-empty {
  flex: 1;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.8;
}

.chat-empty .icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  color: #3d4540;
}

.chat-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  animation: messageIn 0.25s ease both;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #232b25;
  color: var(--acid);
  font-size: 9px;
  font-weight: 700;
}

.chat-content {
  min-width: 0;
  flex: 1;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.chat-name {
  color: #c9d0c7;
  font-size: 10.5px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-time {
  color: #4f574f;
  font-family: var(--mono);
  font-size: 8px;
}

.chat-body {
  margin-top: 2px;
  color: #c4cbc2;
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-item.is-mine .chat-avatar {
  background: var(--acid);
  color: #080907;
}

.chat-item.is-mine .chat-body {
  color: var(--acid);
}

.chat-form {
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  background: #0a0d0e;
}

.chat-input-row {
  display: flex;
  gap: 6px;
}

.chat-input-row input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111516;
  outline: 0;
  font-size: 12px;
  transition: border-color 0.2s;
}

.chat-input-row input:focus {
  border-color: rgba(216, 255, 62, 0.45);
}

.chat-send {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--acid);
  color: #080907;
  transition: background 0.2s;
}

.chat-send:hover {
  background: #e6ff79;
}

.chat-send .icon {
  width: 16px;
  height: 16px;
}

.chat-login-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px;
  color: var(--dim);
  font-size: 10.5px;
}

.chat-login-note a {
  color: var(--acid);
  font-weight: 600;
}

/* --------------------------- auth --------------------------- */

.auth-page {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-form-side {
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 92px) clamp(24px, 6vw, 100px);
}

.auth-card {
  width: min(390px, 100%);
  margin-inline: auto;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 46px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.auth-brand .mini-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--acid);
  color: #080907;
  font-size: 15px;
}

.auth-card .eyebrow {
  margin-bottom: 14px;
}

.auth-card h1 {
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.055em;
}

.auth-card > p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > .icon {
  position: absolute;
  left: 13px;
  color: var(--dim);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1011;
  outline: 0;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
  color: #5d655e;
}

.input-wrap input:focus {
  border-color: rgba(216, 255, 62, 0.55);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.07);
}

.input-wrap input.has-error {
  border-color: rgba(255, 77, 31, 0.65);
}

.pw-toggle {
  position: absolute;
  right: 7px;
  width: auto;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  display: grid;
  place-items: center;
  font-size: 10px;
  white-space: nowrap;
}

.pw-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.form-error {
  display: none;
  padding: 9px 11px;
  border: 1px solid rgba(255, 77, 31, 0.3);
  border-radius: 8px;
  background: rgba(255, 77, 31, 0.07);
  color: #ff8d70;
  font-size: 11.5px;
  line-height: 1.6;
}

.form-error.is-open {
  display: block;
}

.auth-submit {
  margin-top: 4px;
}

.auth-switch {
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.auth-switch a {
  color: var(--acid);
  font-weight: 600;
  border-bottom: 1px solid rgba(216, 255, 62, 0.35);
}

.auth-legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: #555d56;
  font-size: 10px;
  line-height: 1.8;
}

.auth-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--acid);
  color: #0a0b08;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 48px);
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 9, 7, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 7, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.6;
}

.auth-stage-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-stage-top .dot-row {
  display: flex;
  gap: 5px;
}

.auth-stage-top .dot-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a0b08;
  opacity: 0.3;
}

.auth-stage-top .dot-row i:first-child {
  opacity: 1;
}

.auth-stage-title {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 18px;
}

.auth-stage-title span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.56;
}

.auth-stage-title h2 {
  margin-top: 8px;
  font-size: clamp(50px, 7.5vw, 102px);
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.auth-stage-title h2 em {
  font-style: normal;
  -webkit-text-stroke: 1.5px #0a0b08;
  color: transparent;
}

.auth-stage-cards {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.auth-mini-card {
  position: relative;
  width: 27%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #151a15;
  transform: rotate(-2deg);
  box-shadow: 0 16px 30px rgba(8, 9, 7, 0.22);
}

.auth-mini-card:nth-child(2) {
  transform: translateY(-18px) rotate(1.5deg);
}

.auth-mini-card:nth-child(3) {
  transform: rotate(3deg);
}

.auth-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.auth-mini-label {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 7px;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-stage-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.66;
}

.auth-stage-foot strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

/* --------------------------- profile --------------------------- */

.profile-hero {
  position: relative;
  margin-top: 30px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 255, 62, 0.16);
  background:
    radial-gradient(700px 240px at 85% 0%, rgba(216, 255, 62, 0.14), transparent 60%),
    linear-gradient(125deg, #121611, #0c0f0e 70%);
  overflow: hidden;
}

.profile-hero::after {
  content: "MEMBER";
  position: absolute;
  right: 20px;
  bottom: -24px;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(216, 255, 62, 0.035);
  pointer-events: none;
}

.profile-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #080907;
  font-size: 34px;
  font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.profile-name h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.profile-name p {
  margin-top: 5px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.profile-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.profile-stat span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
}

.profile-actions {
  position: relative;
  z-index: 2;
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 34px 0 24px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 15px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.profile-tab.is-active {
  color: var(--text);
}

.profile-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--acid);
}

.profile-tab .count {
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
}

.profile-panel {
  display: none;
}

.profile-panel.is-active {
  display: block;
}

.history-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.fav-wrap {
  position: relative;
  min-width: 0;
}

.remove-fav {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 10, 0.68);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
}

.room-card:hover .remove-fav {
  opacity: 1;
}

.remove-fav:hover {
  background: var(--hot);
}

.remove-fav .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------- search page --------------------------- */

.search-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 26px;
}

.search-summary strong {
  color: var(--text);
  font-size: 15px;
}

.search-direct-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 26px;
  border: 1px solid rgba(216, 255, 62, 0.22);
  border-radius: var(--radius);
  background: rgba(216, 255, 62, 0.04);
}

.search-direct-card h3 {
  font-size: 18px;
}

.search-direct-card p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 12px;
}

.search-direct-card .channel-number {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: -0.04em;
}

/* --------------------------- footer --------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #080a0a;
  padding: 46px 0 54px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand p {
  max-width: 410px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer-col h4 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 2;
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: #4f574f;
  font-size: 10px;
}

.footer-bottom .mono {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* --------------------------- toast --------------------------- */

.toast-root {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #2d3436;
  border-radius: 10px;
  background: #121617;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
}

.toast-error {
  border-color: rgba(255, 77, 31, 0.35);
}

.toast-error .toast-dot {
  background: var(--hot);
}

.toast-success .toast-dot {
  background: #6ee787;
}

/* --------------------------- error page --------------------------- */

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}

.error-page .code {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.error-page h1 {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 66px);
}

.error-page p {
  margin-top: 12px;
  color: var(--muted);
}

.error-page .btn {
  margin-top: 24px;
}

/* --------------------------- misc --------------------------- */

.mono {
  font-family: var(--mono);
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto minmax(200px, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .room-page {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(46px, 7.3vw, 70px);
  }

  .hero-feature {
    aspect-ratio: 3 / 4;
  }

  .hero-code {
    left: -12px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    display: none;
  }

  .auth-form-side {
    min-height: calc(100vh - 74px);
  }

  .room-page {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .chat-panel {
    position: relative;
    top: 0;
    height: 500px;
    min-height: 420px;
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 36px, 1320px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 11px 0;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search-key {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-feature {
    aspect-ratio: 16 / 11;
    max-height: none;
    transform: none;
    width: 100%;
  }

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

  .hero-code {
    left: 14px;
    bottom: 14px;
  }

  .hero-stats {
    max-width: none;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-head-meta {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .page-head-meta strong {
    font-size: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }

  .profile-row {
    flex-wrap: wrap;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-nav {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border: 1px solid #2a3133;
    border-radius: 14px;
    background: rgba(12, 15, 16, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .mobile-nav a,
  .mobile-search-btn {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dim);
    font-size: 9px;
  }

  .mobile-nav a .icon,
  .mobile-search-btn .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav a.is-active {
    color: var(--acid);
    background: rgba(216, 255, 62, 0.08);
  }

  .site-footer {
    padding-bottom: 100px;
  }

  .toast-root {
    bottom: 88px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1320px);
  }

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-stat + .hero-stat {
    padding-left: 16px;
  }

  .channel-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .channel-form .field-icon {
    display: none;
  }

  .channel-form .btn {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-feature {
    aspect-ratio: 4 / 4.4;
  }

  .ticker-item {
    padding: 11px 18px;
  }

  .section-head {
    gap: 10px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .section-aside {
    font-size: 9px;
  }

  .room-grid {
    gap: 22px 12px;
  }

  .room-title {
    font-size: 12.5px;
  }

  .room-copy p {
    font-size: 10px;
  }

  .room-avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .room-play {
    width: 38px;
    height: 38px;
  }

  .discover-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-search {
    max-width: none;
  }

  .channel-direct-panel {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 18px;
  }

  .channel-direct-panel::after {
    display: none;
  }

  .room-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .room-actions {
    width: 100%;
  }

  .room-actions .btn {
    flex: 1;
  }

  .streamer-strip {
    flex-wrap: wrap;
  }

  .streamer-stats {
    width: 100%;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .player-shell {
    border-radius: 12px;
  }

  .player-top {
    padding: 10px 11px 30px;
  }

  .player-title-mini strong {
    font-size: 11px;
  }

  .player-overlay h2 {
    font-size: 21px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .auth-form-side {
    padding: 36px 20px;
    min-height: calc(100vh - 130px);
  }

  .auth-brand {
    margin-bottom: 30px;
  }

  .profile-hero {
    padding: 22px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .profile-stats {
    gap: 20px;
  }

  .profile-stat strong {
    font-size: 19px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    gap: 14px;
  }

  .search-direct-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-cover {
    aspect-ratio: 16 / 9;
  }

  .hero-stat strong {
    font-size: 17px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .room-card {
    opacity: 1;
  }
}

@media (max-width:700px){.player-embed iframe{left:0;top:-54px;width:100%;height:calc(100% + 54px);transform:none}}
