:root {
  --bg: #0f1115;
  --bg-elevated: #0f1115;
  --bg-card: #1e2128;
  --bg-chip: #272b33;
  --bg-soft: rgba(143, 245, 255, 0.06);
  --text: #ebedfa;
  --text-muted: #909399;
  --text-sub: #636770;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(143, 245, 255, 0.16);
  --tag-line-a: rgba(130, 189, 255, 0.48);
  --tag-line-b: rgba(110, 218, 186, 0.48);
  --tag-line-c: rgba(255, 196, 112, 0.52);
  --tag-line-d: rgba(230, 154, 200, 0.5);
  --primary: #8ff5ff;
  --primary-strong: #00eefc;
  --secondary: #ac89ff;
  --shadow: none;
  --header-h: 60px;
}

:root[data-theme="light"] {
  --bg: #f9f9f9;
  --bg-elevated: #f9f9f9;
  --bg-card: #ffffff;
  --bg-chip: #e5e5e5;
  --bg-soft: #f0f0f0;
  --text: #0f0f0f;
  --text-muted: #606060;
  --text-sub: #909090;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.18);
  --tag-line-a: rgba(38, 104, 194, 0.34);
  --tag-line-b: rgba(18, 148, 108, 0.34);
  --tag-line-c: rgba(191, 123, 19, 0.38);
  --tag-line-d: rgba(175, 85, 133, 0.34);
  --primary: #065fd4;
  --primary-strong: #0356bf;
  --secondary: #7c3aed;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; }

/* ─── page shell ─────────────────────────────────────── */
.page-shell {
  display: flex;
  flex-direction: column;
  width: calc(100% - 100px);
  margin: 0 auto;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0 48px;
}

/* ─── header ─────────────────────────────────────────── */
.site-header,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  content: url('./branding/Surfsun-logo-White.png');
}

:root[data-theme="light"] .brand-logo {
  content: url('./branding/Surfsun-logo-Black.png');
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  display: none;
}

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.header-search {
  width: min(460px, 100%);
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}

.header-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.header-search input::placeholder {
  color: var(--text-sub);
}

.header-search:focus-within {
  border-color: var(--line-strong);
}

.mobile-filter-menu {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mobile-filter-toggle::after {
  content: attr(data-active-label);
  font-size: 0.86rem;
  white-space: nowrap;
}

.mobile-filter-toggle:hover,
.mobile-filter-toggle.is-open {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--bg-soft);
}

.mobile-filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  z-index: 140;
}

.mobile-filter-chip {
  width: 100%;
  justify-content: center;
}

.active-tag-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.active-tag-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.active-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--tag-line-a);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.active-tag-chip:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.active-tag-clear {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.8rem;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.active-tag-clear:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--bg-soft);
}

.active-tag-chip-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.active-tag-chip-close {
  font-size: 1rem;
  line-height: 1;
}

/* ─── header buttons ──────────────────────────────────── */
.theme-toggle {
  border: 0;
  background: var(--bg-chip);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms;
}

.theme-toggle:hover {
  background: var(--line-strong);
  color: var(--text);
}

.theme-toggle.icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-to-top:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--bg-card) 68%, var(--primary) 32%);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle.icon-only:hover {
  background: transparent;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ─── hero section ────────────────────────────────────── */
.hero-section {
  display: block;
  margin: 20px 0 24px;
  border-radius: 28px;
  overflow: hidden;
}

.hero-section.is-collapsing {
  pointer-events: none;
  transition: height 220ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 180ms ease-out, margin-top 220ms cubic-bezier(0.2, 0.7, 0.2, 1), margin-bottom 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: height, opacity, margin-top, margin-bottom;
}

.hero-section.is-collapsing .hero-banner-module {
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 180ms ease-out;
  transform: translateY(-10px) scale(0.992);
  opacity: 0;
}

.hero-banner-module {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 58vw, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.hero-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 32%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-banner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  max-width: min(720px, 58%);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(30px, 5vw, 64px);
  margin-left: clamp(18px, 2vw, 34px);
}

.hero-banner-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-banner-kicker {
  display: block;
  font-size: clamp(1.1rem, 1.7vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.hero-banner-heading {
  display: block;
  max-width: 10ch;
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.9;
  background-image: linear-gradient(98deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 1) 38%, rgba(183, 241, 255, 1) 48%, rgba(255, 255, 255, 1) 56%, rgba(255, 255, 255, 0.82) 68%, rgba(255, 255, 255, 0.82) 100%);
  background-size: 260% 100%;
  background-position: -180% 50%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.08));
  animation: hero-banner-shine 3.6s ease-in-out infinite;
}

.hero-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(140, 223, 255, 0.52);
  background: transparent;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

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

.hero-banner-button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
}

.hero-banner-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 1);
}

.hero-banner-button:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 240, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 1);
}

.hero-banner-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-banner-tagline {
  margin: 14px 0 0;
  max-width: min(32rem, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

@keyframes hero-banner-shine {
  0% {
    background-position: -180% 50%;
  }
  55% {
    background-position: 40% 50%;
  }
  100% {
    background-position: 180% 50%;
  }
}

.hero-banner-volume {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.58);
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-banner-volume:hover {
  transform: translateY(-1px);
  background: rgba(8, 12, 18, 0.78);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-banner-volume svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cinematic {
  position: relative;
  min-height: clamp(420px, 58vw, 760px);
  overflow: hidden;
  /* Remove decorative gradients and border to show only the video background */
  background: transparent !important;
  background-color: #000 !important;
  border: none !important;
  border-radius: 28px;
}

.hero-cinematic::before {
  content: '';
  position: absolute;
  inset: -8% -6% auto;
  height: 72%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 52%),
    linear-gradient(180deg, rgba(116, 191, 255, 0.08), transparent 72%);
  opacity: 0.9;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-bg {
  opacity: 0.82;
}

.hero-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 68% 72%, rgba(83, 117, 255, 0.22), transparent 28%),
    radial-gradient(circle at 20% 88%, rgba(105, 57, 210, 0.3), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.38) 100%);
}

/* 旧 hero 特效类保留但不再被 banner 使用；仅防御性隐藏，避免误插入时出现动效 */
.hero-film,
.hero-liquid,
.hero-ripple-field,
.hero-orb,
.hero-cinematic::before,
.hero-film::after,
.hero-ripple-field::before {
  display: none !important;
  animation: none !important;
  filter: none !important;
}

.hero-film::after {
  content: '';
  position: absolute;
  inset: -8% -4% -12%;
  background:
    radial-gradient(ellipse at 24% 78%, rgba(111, 78, 255, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 70% 24%, rgba(95, 219, 255, 0.16) 0%, transparent 48%),
    repeating-linear-gradient(
      108deg,
      rgba(255, 255, 255, 0) 0 34px,
      rgba(139, 232, 255, 0.09) 34px 60px,
      rgba(255, 255, 255, 0) 60px 96px
    );
  mix-blend-mode: screen;
  opacity: 0.42;
  transform: translate3d(0, 0, 0) scale(1.04);
  filter: blur(18px);
  animation: hero-current-shift 18s linear infinite;
}

.hero-liquid,
.hero-ripple-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-liquid {
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: url(#water-filter) blur(8px) saturate(1.4) contrast(1.1);
  will-change: transform, border-radius;
}

.hero-liquid-one {
  inset: auto -15% -30% -15%;
  height: 80%;
  background:
    radial-gradient(ellipse at 25% 45%, rgba(133, 88, 255, 0.85) 0%, rgba(133, 88, 255, 0.4) 35%, transparent 65%),
    linear-gradient(90deg, rgba(74, 133, 255, 0.4), rgba(147, 88, 255, 0.6) 30%, rgba(117, 231, 255, 0.35) 60%, transparent 100%);
  border-radius: 40% 60% 0 0 / 45% 55% 0 0;
  transform-origin: 50% 80%;
  box-shadow: 0 -20px 150px rgba(130, 98, 255, 0.3);
  animation: hero-liquid-surge 25s ease-in-out infinite alternate;
}

.hero-liquid-two {
  inset: 20% 10% auto 20%;
  height: 45%;
  background:
    radial-gradient(circle at 45% 45%, rgba(129, 205, 255, 0.6), rgba(80, 121, 255, 0.35) 35%, transparent 70%),
    linear-gradient(135deg, transparent 0%, rgba(131, 182, 255, 0.3) 20%, rgba(187, 231, 255, 0.5) 45%, rgba(112, 145, 255, 0.25) 75%, transparent 100%);
  border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  filter: url(#water-filter) blur(18px);
  transform-origin: 55% 50%;
  animation: hero-liquid-roll 30s ease-in-out infinite;
}

.hero-liquid-three {
  inset: 5% -20% auto auto;
  width: 50%;
  height: 75%;
  background:
    radial-gradient(circle at 35% 35%, rgba(118, 222, 255, 0.5), transparent 50%),
    radial-gradient(circle at 45% 45%, rgba(69, 141, 255, 0.4), rgba(69, 141, 255, 0.15) 40%, transparent 70%);
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  filter: url(#water-filter) blur(24px);
  animation: hero-liquid-drift 35s ease-in-out infinite alternate;
}

.hero-ripple-field {
  inset: 0 -8% 0 10%;
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 28% 74%, transparent 0 50%, rgba(255, 255, 255, 0.12) 52%, transparent 58%),
    radial-gradient(ellipse at 48% 70%, transparent 0 46%, rgba(154, 224, 255, 0.16) 49%, transparent 56%),
    radial-gradient(ellipse at 62% 66%, transparent 0 42%, rgba(134, 205, 255, 0.12) 45%, transparent 53%);
  transform-origin: center;
  animation: hero-ripple-shift 20s ease-in-out infinite;
}

.hero-ripple-field::before {
  content: '';
  position: absolute;
  inset: 18% -10% -8% 8%;
  background:
    repeating-linear-gradient(
      102deg,
      rgba(255, 255, 255, 0) 0 52px,
      rgba(146, 232, 255, 0.12) 52px 76px,
      rgba(255, 255, 255, 0) 76px 122px
    );
  filter: blur(10px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: hero-current-shift 14s linear infinite reverse;
}

.hero-orb {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.92;
}

.hero-orb-cyan {
  display: none;
}

.hero-orb-violet {
  left: -10%;
  bottom: -26%;
  width: clamp(320px, 44vw, 620px);
  height: clamp(320px, 44vw, 620px);
  background: radial-gradient(circle at 50% 50%, rgba(104, 57, 214, 0.9), rgba(104, 57, 214, 0.18) 62%, transparent 74%);
  filter: blur(10px);
  opacity: 0.66;
  animation: hero-violet-bloom 22s ease-in-out infinite alternate;
}

.hero-content-panel {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: inherit;
  max-width: min(720px, 58%);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(30px, 5vw, 64px);
  margin-left: clamp(18px, 2vw, 34px);
  transform: translateY(-26px);
}

.hero-display-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-display-top,
.hero-display-shiny {
  display: block;
}

.hero-display-top {
  font-size: clamp(1.1rem, 1.7vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.hero-display-shiny {
  max-width: 10ch;
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.9;
  background-image: linear-gradient(100deg, #64cefb 0%, #64cefb 35%, #ffffff 50%, #64cefb 65%, #64cefb 100%);
  background-size: 220% 100%;
  background-position: -180% 50%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shine 3s linear infinite;
}

.hero-display-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7fe7ff 0%, #59c9ff 42%, #6b8dff 100%);
  border: 1px solid rgba(140, 233, 255, 0.42);
  box-shadow: 0 10px 30px rgba(74, 168, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #061018;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-display-button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 34px rgba(74, 168, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.03);
}

.hero-display-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.hero-display-button:hover svg {
  transform: translateX(3px);
}

.hero-display-summary {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.hero-display-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-display-cta,
.hero-display-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  transition: all 180ms ease;
}

.hero-display-cta {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-weight: 700;
}

.hero-display-cta:hover {
  background: rgba(15, 17, 21, 0.92);
}

.hero-display-cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.hero-display-cta:hover svg {
  transform: translateX(4px);
}

.hero-display-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.hero-display-link:hover {
  color: #ffffff;
}

.hero-display-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.hero-display-meta::-webkit-scrollbar {
  display: none;
}

.hero-display-meta .meta-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: none;
}

@keyframes hero-shine {
  0% { background-position: -180% 50%; }
  100% { background-position: 180% 50%; }
}

@keyframes hero-current-shift {
  0% {
    transform: translate3d(-3%, 1%, 0) scale(1.02);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
    opacity: 0.44;
  }
  100% {
    transform: translate3d(6%, 2%, 0) scale(1.04);
    opacity: 0.28;
  }
}

@keyframes hero-liquid-surge {
  0% {
    transform: translate3d(-3%, 10%, 0) scaleX(1) scaleY(0.9) rotate(-3deg);
    border-radius: 40% 60% 0 0 / 45% 55% 0 0;
  }
  50% {
    transform: translate3d(2%, -3%, 0) scaleX(1.1) scaleY(1.05) rotate(0deg);
    border-radius: 55% 45% 0 0 / 50% 60% 0 0;
  }
  100% {
    transform: translate3d(5%, -10%, 0) scaleX(1.2) scaleY(1.1) rotate(3deg);
    border-radius: 45% 55% 0 0 / 60% 50% 0 0;
  }
}

@keyframes hero-liquid-roll {
  0% {
    transform: translate3d(-8%, 2%, 0) rotate(-5deg) scale(0.95);
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  }
  33% {
    transform: translate3d(3%, -6%, 0) rotate(0deg) scale(1.05);
    border-radius: 50% 50% 55% 45% / 45% 55% 50% 50%;
  }
  66% {
    transform: translate3d(6%, 3%, 0) rotate(3deg) scale(1.1);
    border-radius: 55% 45% 50% 50% / 50% 50% 55% 45%;
  }
  100% {
    transform: translate3d(-3%, 8%, 0) rotate(5deg) scale(1);
    border-radius: 48% 52% 45% 55% / 52% 48% 40% 60%;
  }
}

@keyframes hero-liquid-drift {
  0% {
    transform: translate3d(8%, -4%, 0) rotate(-8deg) scale(0.94);
  }
  50% {
    transform: translate3d(0, 2%, 0) rotate(0deg) scale(1.04);
  }
  100% {
    transform: translate3d(-10%, 7%, 0) rotate(9deg) scale(1.1);
  }
}

@keyframes hero-ripple-shift {
  0% {
    transform: translate3d(-2%, 2%, 0) scale(1) rotate(-2deg);
    opacity: 0.18;
  }
  50% {
    transform: translate3d(1%, -1%, 0) scale(1.04) rotate(1deg);
    opacity: 0.28;
  }
  100% {
    transform: translate3d(3%, -3%, 0) scale(1.08) rotate(3deg);
    opacity: 0.22;
  }
}


@keyframes hero-violet-bloom {
  0% {
    transform: translate3d(-3%, 6%, 0) scale(0.92);
    opacity: 0.48;
  }
  100% {
    transform: translate3d(4%, -2%, 0) scale(1.08);
    opacity: 0.72;
  }
}

.hero-duration {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  background: var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hero-title a {
  color: inherit;
}

.hero-summary {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #061018;
  font-weight: 700;
  font-size: 0.85rem;
  align-self: flex-start;
  transition: opacity 160ms;
}

.hero-cta:hover {
  opacity: 0.88;
}



/* ─── filter bar ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0 14px;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-h);
  background: var(--bg-elevated);
  z-index: 90;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

#videoGrid {
  scroll-margin-top: calc(var(--header-h) + 88px);
}

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

.filter-chip {
  flex-shrink: 0;
  border: 0;
  background: var(--bg-chip);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 140ms, color 140ms;
}

.filter-chip:hover {
  background: #3a3e47;
  color: var(--text);
}

:root[data-theme="light"] .filter-chip:hover {
  background: #4b5563;
  color: #ffffff;
}

.filter-chip.active {
  background: var(--text);
  color: var(--bg);
}

:root[data-theme="light"] .filter-chip.active {
  background: #0f0f0f;
  color: #fff;
}

/* ─── video grid ──────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px;
}

.grid-scroll-anchor {
  width: 100%;
  height: 1px;
}

.grid-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 18px 0 10px;
  color: var(--text-sub);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid-loading::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
  box-shadow: -11px 0 0 rgba(99, 103, 112, 0.25), 11px 0 0 rgba(99, 103, 112, 0.4);
}

@keyframes video-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── video card ──────────────────────────────────────── */
.video-card {
  background: transparent;
  border: 0;
  border-radius: 12px;
  overflow: visible;
  padding: 8px;
  margin: -8px;
  transition: background 150ms ease;
  cursor: pointer;
  animation: video-card-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-enter-index, 0) * 36ms);
}

.video-card:hover {
  background: var(--bg-card);
}

:root[data-theme="light"] .video-card:hover {
  background: #e5e5e5;
}

.video-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-card);
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.03);
}

.card-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* card body */
.video-card-body {
  padding: 10px 0 0;
}

.card-title {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
}

.card-summary {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 12px;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-sub);
  flex-shrink: 0;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.card-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  min-height: 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--tag-line-a);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.card-tag-pill:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.card-tag-pill.active {
  border-color: rgba(177, 231, 255, 0.58);
  background: rgba(143, 245, 255, 0.12);
  color: var(--text);
}

.card-tag-pill:focus-visible {
  outline: none;
  color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-card) 68%, transparent);
}

.card-tag-pill:nth-child(2n) {
  border-color: var(--tag-line-b);
}

.card-tag-pill:nth-child(3n) {
  border-color: var(--tag-line-c);
}

.card-tag-pill:nth-child(4n) {
  border-color: var(--tag-line-d);
}

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

.card-share-wrap {
  position: relative;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 140ms, color 140ms;
  line-height: 1;
}

.card-action-btn:hover {
  background: var(--bg-chip);
  color: var(--text);
}

.card-action-btn svg {
  flex-shrink: 0;
}

.card-share-btn {
  transition: background 140ms, color 140ms, transform 140ms;
}

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

.card-share-btn.is-copied {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.card-share-wrap.is-open .card-share-btn {
  background: var(--bg-chip);
  color: var(--text);
}

.card-share-wrap.is-open .card-share-menu {
  display: flex;
}

.card-share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 188px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.card-share-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.94rem;
  text-align: left;
  transition: background 140ms, color 140ms;
}

.card-share-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.card-share-menu-item svg {
  flex-shrink: 0;
  color: var(--text-sub);
}

/* ─── empty state ─────────────────────────────────────── */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
}

.hidden { display: none !important; }

/* ─── detail page ─────────────────────────────────────── */
.detail-shell {
  width: calc(100% - 680px);
  margin: 0 auto;
  padding: 0 0 64px;
}

.detail-header {
  margin-bottom: 0;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-back-link:hover {
  color: var(--text);
}

.detail-main {
  padding-top: 24px;
  display: grid;
  gap: 22px;
  align-content: start;
  grid-auto-rows: max-content;
}

.detail-main > * {
  min-width: 0;
}

.detail-player-card,
.detail-content-card {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.detail-player-shell {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.detail-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-player:fullscreen,
.detail-player:-webkit-full-screen,
.detail-player:-moz-full-screen,
.detail-player:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.detail-title {
  margin: 18px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.detail-meta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin: 16px 0 0;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  flex: 1;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-chip);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.detail-summary {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  line-height: 1.85;
  font-size: 1.05rem;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin: 0;
  flex-shrink: 0;
}

.detail-share-wrap {
  margin-left: auto;
}

.detail-share-btn {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
}

.detail-share-btn svg {
  width: 16px;
  height: 16px;
}

.detail-share-btn:hover,
.detail-share-wrap.is-open .detail-share-btn,
.detail-share-btn.is-copied {
  color: var(--text);
  background: var(--bg-chip);
}

.action-chip {
  border: 0;
  background: var(--bg-chip);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 140ms;
}

.action-chip:hover {
  background: #3a3e47;
}

:root[data-theme="light"] .action-chip {
  background: #e5e5e5;
}

:root[data-theme="light"] .action-chip:hover {
  background: #d0d0d0;
}

.detail-cta-row {
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-primary {
  background: var(--primary);
  color: #061018;
}

.cta-secondary {
  background: var(--bg-chip);
  color: var(--text);
}

:root[data-theme="light"] .cta-secondary {
  background: #e5e5e5;
}

/* detail content below the line */
.detail-content-card {
  padding-top: 4px;
  border-top: 0;
}

.detail-content-stack {
  min-width: 0;
  max-width: 980px;
  display: grid;
  gap: 26px;
}

.detail-section {
  display: grid;
  gap: 14px;
}

.detail-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.detail-section-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.9;
}

.detail-parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-parameter-card {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-parameter-label {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.detail-parameter-value {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.4;
}

.markdown-content {
  max-width: 920px;
  padding-top: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.95;
}

.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  color: var(--text);
  margin-top: 1.8em;
  font-weight: 700;
}

.markdown-content p,
.markdown-content li,
.markdown-content td,
.markdown-content th {
  font-size: 1.04rem;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0;
  padding-left: 1.4em;
}

.markdown-content blockquote {
  margin: 0 0 1.4em;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.markdown-content blockquote p {
  margin: 0;
}

.markdown-content img {
  max-width: 100%;
  border-radius: 12px;
}

.markdown-table-wrap {
  min-width: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.markdown-content table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  display: table;
  white-space: nowrap;
}

.markdown-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.markdown-content th,
.markdown-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}

.markdown-content th {
  background: var(--bg-card);
  color: var(--text);
}

.markdown-content tr:nth-child(even) td {
  background: rgba(127, 127, 127, 0.03);
}

@media (max-width: 860px) {
  .detail-meta-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .detail-actions {
    width: auto;
    justify-content: flex-start;
  }

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

@media (max-width: 1100px) {
  .page-shell,
  .detail-shell {
    width: calc(100% - 40px);
  }

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

  .detail-main {
    padding-top: 20px;
    gap: 18px;
  }

  .hero-section {
    margin-top: 16px;
  }

  .filter-bar {
    margin-bottom: 20px;
  }
}

/* ─── site footer ────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 38px;
  border-top: 1px solid var(--line);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
}

.footer-brand {
  display: contents;
}

.footer-brand-top {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-muted);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand-top img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.72;
}

.footer-slogan {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 0.92rem;
  transition: color 140ms;
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
}

.footer-contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-contact-link:hover {
  color: var(--text);
}

.footer-center {
  display: contents;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.footer-social-caption {
  color: var(--text-sub);
  font-size: 0.88rem;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition: color 140ms;
}

.footer-social a svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-social .footer-social-youtube:hover {
  color: #ff3131;
}

.footer-social .footer-social-linkedin:hover {
  color: #0a66c2;
}

.footer-social .footer-social-instagram:hover {
  color: #c13584;
}

.footer-social .footer-social-facebook:hover {
  color: #1877f2;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--text-sub);
  font-size: 0.92rem;
  transition: color 140ms;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:hover,
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-sub);
  font-size: 0.9rem;
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: max-content;
  grid-column: 3;
  grid-row: 1 / span 3;
  justify-self: end;
}

.footer-brand-top {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.footer-slogan {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.footer-links a {
  text-align: left;
}

.footer-links .footer-link-web:hover {
  color: #5aaeff;
}

.footer-links .footer-link-store:hover {
  color: #ffae4f;
}

.footer-links .footer-link-outpost:hover {
  color: #39e2d0;
}

.detail-shell + .site-footer,
.video-page-body .site-footer {
  display: none;
}

/* ─── contact sales page ─────────────────────────────── */
.contact-page-shell {
  width: calc(100% - 100px);
}

.contact-page-main {
  display: grid;
  gap: 28px;
  padding: 28px 0 56px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(143, 245, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.contact-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.contact-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contact-hero-note {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.contact-side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.contact-side-label {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-side-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.contact-checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-checklist li {
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.contact-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(143, 245, 255, 0.14);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-section-head {
  display: grid;
  gap: 8px;
}

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

.contact-person-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.contact-person-name {
  margin: 0;
  font-size: 1.4rem;
}

.contact-person-role {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-person-meta {
  display: grid;
  gap: 8px;
}

.contact-person-meta a {
  color: var(--text);
  font-size: 0.96rem;
}

.contact-person-meta a:hover {
  color: var(--primary);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.contact-card-kicker {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card-title {
  margin: 0;
  font-size: 1.22rem;
}

.contact-card-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-card-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--text-muted);
}

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

.contact-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-panel-title {
  margin: 0;
  font-size: 1.28rem;
}

.contact-panel-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

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

.contact-step {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-chip);
}

.contact-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #061018;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-step h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
}

.contact-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-info-list {
  display: grid;
  gap: 14px;
}

.contact-window-panel {
  gap: 18px;
}

.contact-window-panel .contact-info-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 18px;
}

.contact-window-panel .contact-info-item {
  align-content: start;
}

.contact-info-item {
  display: grid;
  gap: 4px;
}

.contact-info-label {
  color: var(--text-sub);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info-value,
.contact-info-value a {
  color: var(--text);
  font-size: 0.98rem;
}

.contact-info-value a:hover {
  color: var(--primary);
}

.contact-link-row .cta-button {
  min-width: 0;
}

/* ─── responsive ──────────────────────────────────────── */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  :root {
    --mobile-toolbar-h: 0px;
  }

  .page-shell,
  .detail-shell { width: calc(100% - 30px); }

  body.mobile-toolbar-pinned .page-shell {
    padding-top: var(--mobile-toolbar-h);
  }

  .detail-content-card,
  .markdown-content,
  .markdown-table-wrap {
    max-width: 100%;
  }

  .detail-main {
    padding-top: 18px;
    gap: 16px;
  }
  .detail-player {
    object-fit: contain;
    background: #000;
  }
  .detail-player-shell {
    border-radius: 10px;
  }
  .detail-meta-strip {
    margin-top: 12px;
  }
  .detail-content-card {
    padding-top: 0;
  }
  .markdown-content {
    font-size: 1rem;
    line-height: 1.82;
  }
  .site-header,
  .detail-header {
    gap: 10px;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 4px;
    flex-wrap: wrap;
  }
  .site-header {
    position: static;
    top: auto;
    z-index: 100;
    border-bottom: 0;
  }
  .brand-lockup {
    flex: 0 0 auto;
  }
  .header-center {
    position: relative;
    top: auto;
    z-index: 130;
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: stretch;
    padding: 10px 0 8px;
    background: var(--bg-elevated);
    border-bottom: 0;
  }
  body.mobile-toolbar-pinned .header-center {
    position: fixed;
    top: 0;
    left: 15px;
    right: 15px;
  }
  .header-search {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 34px;
    padding: 0 10px;
  }
  .mobile-filter-menu {
    display: block;
  }
  .mobile-filter-toggle {
    height: 34px;
    padding: 0 11px;
  }
  .mobile-filter-toggle::after {
    font-size: 0.82rem;
  }
  .header-actions {
    margin-left: auto;
  }
  .active-tag-bar {
    order: 4;
    flex: 1 0 100%;
    padding: 0 10px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .active-tag-list {
    flex: 1 1 100%;
  }
  .active-tag-chip-label { max-width: 96px; }
  .hero-cinematic { min-height: 420px; border-radius: 24px; }
  .hero-content-panel {
    max-width: calc(100% - 24px);
    margin: 16px;
    padding: 26px 22px 28px;
    transform: translateY(-10px);
  }
  .hero-liquid-one {
    inset: auto -14% -28% -18%;
    height: 52%;
  }
  .hero-liquid-two {
    inset: 36% 6% auto 18%;
    height: 30%;
  }
  .hero-liquid-three {
    width: 56%;
    height: 52%;
  }
  .hero-display-top,
  .hero-display-shiny { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .hero-display-top {
    font-size: 0.98rem;
    letter-spacing: 0.18em;
  }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { display: none; }

  .site-footer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 14px;
    text-align: center;
  }

  .footer-brand,
  .footer-center,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand-top,
  .footer-slogan,
  .footer-social,
  .footer-contact-link,
  .footer-copy,
  .footer-links {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }
  .footer-links {
    align-items: center;
    gap: 10px;
  }
  .footer-links a {
    text-align: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 760px) {
  .filter-bar {
    position: static;
    top: auto;
  }

  #videoGrid {
    scroll-margin-top: 0;
  }
}

@media (max-width: 480px) {
  .detail-main {
    gap: 14px;
  }
  .detail-meta-strip {
    gap: 10px;
  }
  .detail-meta-row {
    gap: 6px;
  }
  .meta-pill {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  .detail-actions {
    align-self: start;
  }
  .detail-share-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .hero-section { margin-top: 14px; }
  .hero-banner-module,
  .hero-cinematic { min-height: 360px; }
  .hero-banner-content {
    max-width: calc(100% - 20px);
    margin-left: 10px;
    padding: 22px 18px 72px;
    gap: 16px;
  }
  .hero-banner-kicker {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
  }
  .hero-banner-heading {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }
  .hero-banner-button {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  .hero-banner-actions {
    gap: 10px;
    margin-top: 10px;
  }
  .hero-banner-tagline {
    margin-top: 12px;
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .hero-banner-volume {
    right: 16px;
    bottom: 16px;
  }
  .hero-content-panel {
    max-width: calc(100% - 20px);
    margin: 10px;
    padding: 22px 18px 24px;
    gap: 18px;
    transform: translateY(-6px);
  }
  .hero-display-button {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  .hero-liquid-one,
  .hero-liquid-two,
  .hero-liquid-three,
  .hero-ripple-field {
    opacity: 0.3;
  }
  .hero-display-top {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
  }
  .hero-display-shiny {
    max-width: 9ch;
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }
  .video-grid { grid-template-columns: 1fr; }

  .detail-cta-row { flex-direction: column; }
  .cta-button { width: 100%; }

  .contact-page-shell {
    width: calc(100% - 30px);
  }

  .contact-page-main {
    padding-top: 18px;
    gap: 18px;
  }

  .contact-hero,
  .contact-process,
  .contact-grid,
  .contact-steps,
  .contact-team-grid {
    grid-template-columns: 1fr;
  }

  .contact-window-panel .contact-info-list {
    grid-template-columns: 1fr;
  }

  .contact-hero,
  .contact-panel,
  .contact-card,
  .contact-side-panel {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .contact-title {
    font-size: clamp(2rem, 13vw, 3.3rem);
  }

  .contact-link-row {
    flex-direction: column;
  }
}
