:root {
  color-scheme: dark;
  --bg: #08060d;
  --bg-soft: #100b18;
  --panel: rgba(18, 13, 26, 0.72);
  --panel-strong: rgba(26, 18, 38, 0.86);
  --ink: #fbf9ff;
  --ink-soft: #ded8ea;
  --muted: #a39aad;
  --muted-2: #746b80;
  --line: rgba(225, 198, 255, 0.16);
  --line-strong: rgba(225, 198, 255, 0.28);
  --purple: #a855f7;
  --purple-hot: #d946ef;
  --violet: #7c3aed;
  --cyan: #67e8f9;
  --green: #86efac;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.42);
  --glow: 0 0 32px rgba(168, 85, 247, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --page-pad: clamp(22px, 4.6vw, 76px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 8%, rgba(168, 85, 247, 0.28), transparent 32%),
    radial-gradient(circle at 16% 32%, rgba(103, 232, 249, 0.12), transparent 28%),
    linear-gradient(180deg, #090710 0%, #0c0712 42%, #07050b 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background-image:
    radial-gradient(rgba(192, 132, 252, 0.34) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 46%, rgba(168, 85, 247, 0.08) 48%, transparent 56%);
  background-size: 18px 18px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.38) 72%, transparent);
  opacity: 0.54;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle 520px at var(--cursor-x) var(--cursor-y), rgba(217, 70, 239, 0.2), transparent 62%),
    radial-gradient(circle 420px at calc(var(--cursor-x) + 14vw) calc(var(--cursor-y) + 9vh), rgba(103, 232, 249, 0.12), transparent 70%),
    radial-gradient(ellipse at 64% 52%, rgba(168, 85, 247, 0.2), transparent 42%),
    linear-gradient(158deg, transparent 30%, rgba(217, 70, 239, 0.22) 48%, rgba(124, 58, 237, 0.18) 55%, transparent 72%);
  filter: blur(10px);
  opacity: 0.8;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #fff;
  background: rgba(168, 85, 247, 0.55);
}

main {
  position: relative;
}

.site-header {
  position: fixed;
  top: 18px;
  right: var(--page-pad);
  left: var(--page-pad);
  z-index: 40;
  display: flex;
  width: auto;
  min-height: 62px;
  margin: 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 9, 18, 0.76);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.site-header::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, 0.22), transparent 30%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.site-header:hover::after {
  opacity: 1;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 7px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #0a0710;
  background: linear-gradient(135deg, #fff, #d8b4fe 54%, #67e8f9);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.34);
  font-size: 0.72rem;
  font-weight: 900;
}

.brand-word {
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 260ms var(--ease), background 260ms var(--ease), transform 260ms var(--ease);
}

.site-nav a:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.18);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding: clamp(112px, 11vw, 172px) var(--page-pad) clamp(82px, 9vw, 150px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 25% 22%, rgba(255, 255, 255, 0.07), transparent 23%),
    radial-gradient(circle at 82% 24%, rgba(168, 85, 247, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%);
}

.hero::after {
  position: absolute;
  right: -18vw;
  bottom: 4vh;
  z-index: -1;
  width: 86vw;
  height: 28vh;
  content: "";
  background: linear-gradient(95deg, transparent, rgba(168, 85, 247, 0.16), rgba(103, 232, 249, 0.08), transparent);
  filter: blur(16px);
  transform: rotate(-14deg);
}

.hero-content {
  display: grid;
  width: 100%;
  min-height: min(780px, 72svh);
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.76rem, 0.75vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9.2ch;
  margin: 0;
  color: transparent;
  background: linear-gradient(92deg, #fff 0%, #f5efff 32%, #c084fc 70%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(4.6rem, 10vw, 12.5rem);
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.94;
  text-wrap: balance;
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.22));
}

.hero-copy {
  max-width: 720px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.42rem);
  font-weight: 560;
  line-height: 1.85;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span,
.video-filter-button,
.video-count,
.video-meta span,
.video-stats span {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-badges span {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.96rem;
  font-weight: 820;
  isolation: isolate;
  overflow: hidden;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms var(--ease);
}

.button::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(103, 232, 249, 0.16));
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 180, 254, 0.44);
  box-shadow: var(--glow);
}

.button:hover::before {
  opacity: 1;
}

.button.primary {
  border-color: rgba(216, 180, 254, 0.45);
  background: linear-gradient(135deg, var(--purple-hot), var(--purple) 52%, var(--violet));
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.secondary {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.045);
}

.hero-stage {
  position: relative;
  min-height: clamp(520px, 46vw, 760px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, 0.2), transparent 32%),
    radial-gradient(circle at 72% 34%, rgba(124, 58, 237, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(13, 9, 20, 0.82);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-stage::before {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 6;
  content: "portfolio.engine / interface mode";
  color: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.hero-stage::after {
  position: absolute;
  right: -30%;
  bottom: -12%;
  z-index: 1;
  width: 94%;
  height: 44%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.32), rgba(103, 232, 249, 0.14), transparent);
  filter: blur(24px);
  transform: rotate(-18deg);
}

.stage-grid {
  position: absolute;
  inset: 58px 16px 16px;
  z-index: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 64% 48%, black 0 26%, transparent 72%);
  opacity: 0.74;
}

.orbit-field {
  position: absolute;
  top: 11%;
  right: -8%;
  z-index: 2;
  width: min(78%, 680px);
  aspect-ratio: 1;
}

.orbit-ring,
.orbit-dot,
.orbit-core {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring {
  inset: 0;
  border: 1px solid rgba(216, 180, 254, 0.18);
  box-shadow: inset 0 0 42px rgba(168, 85, 247, 0.06);
}

.ring-two {
  inset: 14%;
  border-color: rgba(103, 232, 249, 0.16);
  transform: rotate(24deg);
}

.ring-three {
  inset: 28%;
  border-color: rgba(255, 255, 255, 0.12);
  transform: rotate(-18deg);
}

.orbit-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(135deg, rgba(217, 70, 239, 0.9), rgba(124, 58, 237, 0.86));
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.52);
  font-size: 1.55rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.orbit-dot {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 26px rgba(103, 232, 249, 0.12);
}

.orbit-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  content: "";
}

.dot-one {
  top: 18%;
  left: 28%;
}

.dot-two {
  top: 42%;
  right: 9%;
}

.dot-three {
  right: 28%;
  bottom: 13%;
}

.code-window,
.stack-card,
.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(11, 8, 17, 0.76);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.code-window {
  position: absolute;
  top: 78px;
  left: clamp(22px, 4vw, 44px);
  z-index: 4;
  width: min(58%, 560px);
  border-radius: 22px;
  overflow: hidden;
}

.code-window::after,
.hero-panel::after,
.stack-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, 0.18), transparent 36%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.code-window:hover::after,
.hero-panel:hover::after,
.stack-card:hover::before {
  opacity: 1;
}

.code-window > *,
.hero-panel > *,
.stack-card > * {
  position: relative;
  z-index: 1;
}

.code-toolbar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-window pre {
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.82rem, 0.98vw, 1rem);
  line-height: 1.86;
  white-space: pre-wrap;
}

.code-dim {
  color: #a78bfa;
}

.code-accent {
  color: var(--cyan);
}

.code-live {
  color: var(--green);
}

.hero-stack {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: clamp(22px, 4vw, 44px);
  z-index: 4;
  display: grid;
  width: min(45%, 440px);
  gap: 12px;
}

.stack-card {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 18px 20px;
  overflow: hidden;
}

.stack-card span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.stack-card strong {
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 900;
  text-align: right;
}

.primary-stack {
  border-color: rgba(216, 180, 254, 0.32);
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 40%), rgba(217, 70, 239, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(255, 255, 255, 0.05)),
    rgba(12, 9, 18, 0.8);
}

.hero-panel {
  position: absolute;
  right: clamp(22px, 4vw, 44px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 5;
  display: grid;
  width: min(38%, 340px);
  gap: 8px;
  border-radius: 20px;
  padding: 20px 22px;
  color: var(--ink);
  overflow: hidden;
}

.hero-panel p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 860;
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 7.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.video-group-head p,
.video-body p,
.contact-band p {
  color: var(--muted);
  line-height: 1.78;
}

.section-shell {
  width: 100%;
  padding: clamp(86px, 9vw, 142px) var(--page-pad);
}

.video-section {
  padding-top: clamp(48px, 5vw, 84px);
}

.video-grid {
  display: grid;
  gap: clamp(70px, 7vw, 112px);
}

.video-group {
  display: grid;
  gap: clamp(24px, 3vw, 42px);
  scroll-margin-top: 120px;
}

.video-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.video-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.video-group-head p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: clamp(0.98rem, 1.1vw, 1.14rem);
}

.video-group-tools {
  display: flex;
  max-width: min(100%, 880px);
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.video-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  white-space: nowrap;
}

.video-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-filter-button {
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.video-filter-button:hover,
.video-filter-button.active {
  color: #fff;
  border-color: rgba(216, 180, 254, 0.42);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.88), rgba(124, 58, 237, 0.9));
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.34);
  transform: translateY(-1px);
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: clamp(22px, 2vw, 34px);
}

.video-card {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.02)),
    rgba(13, 10, 19, 0.78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 340ms var(--ease), border-color 340ms var(--ease), box-shadow 340ms var(--ease);
}

.video-card-main {
  display: grid;
  min-width: 0;
  align-content: start;
}

.video-card[hidden] {
  display: none !important;
}

.video-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(103, 232, 249, 0.08));
  opacity: 0;
  transition: opacity 340ms var(--ease);
}

.video-card > * {
  position: relative;
  z-index: 1;
}

.video-card:hover {
  border-color: rgba(216, 180, 254, 0.42);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.34), 0 0 44px rgba(168, 85, 247, 0.22);
  transform: translateY(-8px);
}

.video-card:hover::before {
  opacity: 1;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.26), rgba(103, 232, 249, 0.12)),
    #17111f;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease), filter 520ms var(--ease);
}

.video-card:hover .video-thumb img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.video-thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.video-thumb.skeleton::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.4s infinite;
}

.video-thumb.fallback::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  content: "Bilibili";
  font-weight: 900;
}

.play-mark {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.play-mark::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 7px solid transparent;
  border-left: 11px solid #fff;
  content: "";
}

.video-overlay-stats {
  position: absolute;
  right: 12px;
  bottom: 13px;
  z-index: 3;
  display: flex;
  max-width: calc(100% - 64px);
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 760;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.46);
}

.video-overlay-stat,
.video-overlay-duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.video-overlay-stat.play::before {
  content: "▶";
  font-size: 0.66rem;
}

.video-overlay-stat.danmaku::before {
  content: "▣";
  font-size: 0.72rem;
}

.video-body {
  display: grid;
  gap: 20px;
  padding: 8px 20px 22px;
}

.video-body h3 {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0;
  color: #fff;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(1.22rem, 1.35vw, 1.62rem);
  font-weight: 900;
  line-height: 1.14;
  text-wrap: balance;
}

.video-body p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 12px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
}

.video-footer {
  display: grid;
  gap: 12px;
  align-self: end;
}

.video-meta,
.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-meta span,
.video-stats span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.video-meta span:first-child {
  color: var(--ink-soft);
}

.external-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 860;
}

.external-link::after {
  content: "↗";
}

.video-detail {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 20px 22px;
  border: 1px solid rgba(216, 180, 254, 0.2);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at var(--mx, 82%) var(--my, 0%), rgba(103, 232, 249, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(9, 7, 14, 0.78);
  overflow: hidden;
  animation: detailReveal 360ms var(--ease) both;
}

.video-detail[hidden] {
  display: none;
}

.video-card {
  cursor: pointer;
}

.video-card.expanded {
  grid-column: span 3;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.76fr);
  gap: 0;
  align-items: stretch;
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: 0 34px 140px rgba(0, 0, 0, 0.42), 0 0 54px rgba(103, 232, 249, 0.13);
  transform: none;
}

.video-card.expanded:hover {
  transform: none;
}

.video-card.expanded .video-card-main {
  align-content: start;
  border-right: 1px solid rgba(225, 198, 255, 0.12);
}

.video-card.expanded .video-detail {
  align-self: stretch;
  margin: 10px 10px 10px 0;
  padding: clamp(16px, 1.4vw, 24px);
  animation-name: detailSlideIn;
}

@media (min-width: 1680px) {
  .video-card.expanded {
    grid-column: span 4;
    grid-template-columns: minmax(300px, 0.74fr) minmax(0, 2.36fr);
  }
}

.video-thumb,
.external-link,
.script-inline-link {
  cursor: pointer;
}

.video-detail::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
  opacity: 0.32;
  pointer-events: none;
}

.video-detail > * {
  position: relative;
  z-index: 1;
}

.video-detail-head,
.video-detail-script {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-detail-head strong,
.video-detail-script strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
}

.video-detail-head span,
.video-detail-script span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.video-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-detail-item {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.video-detail-item.wide {
  grid-column: 1 / -1;
}

.video-detail-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
}

.video-detail-value {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.video-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-detail-stats span {
  display: grid;
  min-width: 72px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 860;
}

.video-detail-stats small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.video-detail-script {
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 50%, rgba(103, 232, 249, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.video-detail-script > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.script-inline-link,
.script-inline-empty {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 880;
  white-space: nowrap;
}

.script-inline-link {
  color: #081014;
  background: linear-gradient(135deg, var(--cyan), #c084fc);
  box-shadow: 0 0 24px rgba(103, 232, 249, 0.2);
}

.script-inline-link::after {
  margin-left: 8px;
  content: "↗";
}

.script-inline-empty {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.contact-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto;
  gap: clamp(24px, 5vw, 82px);
  align-items: end;
  padding: clamp(92px, 10vw, 150px) var(--page-pad);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(110deg, rgba(217, 70, 239, 0.12), rgba(103, 232, 249, 0.06) 46%, transparent 70%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.contact-band::after {
  position: absolute;
  right: -12vw;
  bottom: -16vh;
  width: 70vw;
  height: 34vh;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.24), transparent);
  filter: blur(22px);
  transform: rotate(-12deg);
}

.contact-band > * {
  position: relative;
  z-index: 1;
}

.contact-band h2 {
  max-width: 10ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--page-pad);
  color: var(--muted-2);
  font-size: 0.88rem;
  background: #07050b;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed rgba(225, 198, 255, 0.22);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes detailReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes detailSlideIn {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .hero-content,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .hero-stage {
    min-height: clamp(560px, 68vw, 680px);
  }

  .video-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-group-tools,
  .video-filter-bar,
  .contact-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .video-card.expanded {
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    top: 12px;
    min-height: auto;
    border-radius: 24px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }

  .hero {
    padding-top: 250px;
  }

  .hero-content {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    display: grid;
    min-height: auto;
    gap: 14px;
    border-radius: 26px;
    padding: 76px 12px 14px;
  }

  .stage-grid {
    inset: 60px 10px 10px;
  }

  .orbit-field {
    top: 86px;
    right: -160px;
    width: 420px;
    opacity: 0.56;
  }

  .orbit-core {
    width: 82px;
    height: 82px;
    font-size: 1.1rem;
  }

  .orbit-dot {
    width: 36px;
    height: 36px;
  }

  .code-window,
  .hero-stack,
  .hero-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 4;
    width: auto;
    min-width: 0;
  }

  .code-window {
    border-radius: 20px;
  }

  .code-window pre {
    font-size: 0.76rem;
  }

  .hero-stack {
    gap: 10px;
  }

  .stack-card {
    min-height: 74px;
    padding: 15px;
  }

  .stack-card strong {
    font-size: 0.94rem;
  }

  .hero-panel {
    border-radius: 26px;
  }

  .section-shell,
  .contact-band {
    padding-block: 72px;
  }

  .contact-band h2,
  .video-group-head h3 {
    font-size: clamp(2.55rem, 15vw, 4.4rem);
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card.expanded {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .video-card.expanded .video-card-main {
    border-right: 0;
    border-bottom: 1px solid rgba(225, 198, 255, 0.12);
  }

  .video-card.expanded .video-detail {
    margin: 0 16px 18px;
    animation-name: detailReveal;
  }

  .video-body {
    padding-inline: 16px;
  }

  .video-overlay-stats {
    font-size: 0.78rem;
  }

  .video-detail-grid {
    grid-template-columns: 1fr;
  }

  .video-detail-head,
  .video-detail-script {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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