:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #1f2937;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --indigo: #6366f1;
  --indigo-deep: #4f46e5;
  --pink: #ec4899;
  --emerald: #10b981;
  --amber: #f59e0b;
  --shadow-soft: 0 18px 50px rgba(148, 163, 184, 0.16);
  --shadow-card: 0 20px 52px rgba(148, 163, 184, 0.2);
  --shadow-card-hover: 0 28px 70px rgba(99, 102, 241, 0.2);
  --shadow-primary: 0 18px 40px rgba(99, 102, 241, 0.28);
  --radius-card: 28px;
  --radius-large: 36px;
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Avenir Next",
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.18),
    0 14px 32px rgba(99, 102, 241, 0.2);
}

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

svg {
  display: block;
}

[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;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(248, 250, 252, 0.96);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100%);
  min-height: 56px;
  margin: 0 auto;
  padding: 7px 8px 7px 10px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--indigo);
  color: #ffffff;
  box-shadow:
    0 12px 26px rgba(99, 102, 241, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__mark .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  transform: translateX(1px);
}

.brand__text {
  display: grid;
  min-width: 0;
}

.brand__text strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__text small {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-button,
.category-trigger,
.text-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 220ms var(--ease-soft),
    box-shadow 220ms var(--ease-soft),
    background-color 220ms var(--ease-soft),
    color 220ms var(--ease-soft);
}

.icon-button:hover,
.category-trigger:hover,
.text-button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: var(--indigo-deep);
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.15);
}

.icon-button:active,
.category-trigger:active,
.text-button:active {
  transform: scale(0.95);
  box-shadow: inset 0 4px 10px rgba(100, 116, 139, 0.1);
}

.icon-button--indigo {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.25);
}

.icon-button--indigo:hover {
  background: var(--indigo-deep);
  color: #ffffff;
}

.category-trigger {
  gap: 8px;
  width: auto;
  padding: 0 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.category-trigger .icon {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 470px;
  margin: 4px auto 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: #334155;
  box-shadow: 0 30px 80px rgba(71, 85, 105, 0.24);
  isolation: isolate;
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero__scrim {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.08) 0%,
    rgba(30, 41, 59, 0.2) 42%,
    rgba(30, 41, 59, 0.88) 100%
  );
}

.hero__content {
  display: flex;
  width: min(100%, 630px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 48px 24px 112px;
  color: #ffffff;
}

.hero__label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero h1 {
  margin: 16px 0 6px;
  font-size: clamp(42px, 10vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__content > p {
  max-width: 28em;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 0;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 240ms var(--ease-soft),
    box-shadow 240ms var(--ease-soft),
    background-color 240ms var(--ease-soft);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.96);
  box-shadow: inset 0 5px 12px rgba(71, 85, 105, 0.12);
}

.button--primary {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.button--primary:hover {
  background: var(--indigo-deep);
  box-shadow: 0 22px 46px rgba(99, 102, 241, 0.34);
}

.button--soft {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 14px 34px rgba(100, 116, 139, 0.17);
}

.button--soft:hover {
  color: var(--indigo-deep);
  box-shadow: 0 20px 42px rgba(99, 102, 241, 0.18);
}

.hero__foot {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: none;
  gap: 9px;
}

.hero__foot span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.16);
}

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

.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 58px 16px;
}

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

.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(27px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-heading p,
.contact-band p {
  max-width: 62ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  display: none;
  width: auto;
  min-width: 0;
  padding: 0 14px;
  color: var(--indigo-deep);
  font-size: 13px;
  font-weight: 700;
}

.category-nav,
.subcategory-nav {
  display: flex;
  gap: 9px;
  margin: 0 -16px 10px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar,
.subcategory-nav::-webkit-scrollbar {
  display: none;
}

.category-nav:empty,
.subcategory-nav:empty {
  display: none;
}

.category-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.14);
  transition:
    transform 220ms var(--ease-soft),
    box-shadow 220ms var(--ease-soft),
    background-color 220ms var(--ease-soft),
    color 220ms var(--ease-soft);
}

.category-chip .icon {
  width: 17px;
  height: 17px;
}

.category-chip:hover {
  transform: translateY(-2px);
  color: var(--indigo-deep);
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.17);
}

.category-chip:active {
  transform: scale(0.96);
}

.category-chip.is-active {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.28);
}

.subcategory-nav {
  padding-top: 0;
  padding-bottom: 14px;
}

.subcategory-nav[hidden] {
  display: none;
}

.subcategory-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 14px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-soft),
    background-color 200ms var(--ease-soft),
    box-shadow 200ms var(--ease-soft);
}

.subcategory-chip:hover {
  transform: translateY(-1px);
  background: #e0e7ff;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.14);
}

.subcategory-chip:active {
  transform: scale(0.96);
}

.subcategory-chip.is-active {
  background: #ffffff;
  color: var(--indigo-deep);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.16);
}

.result-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted-soft);
  font-size: 12px;
}

.result-line__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.video-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--ease-soft),
    transform 500ms var(--ease-soft),
    box-shadow 300ms var(--ease-soft);
}

.video-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.video-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.02) 45%, rgba(30, 41, 59, 0.46) 100%);
  content: "";
  pointer-events: none;
}

.video-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-soft);
}

.video-card:hover .video-card__image {
  transform: scale(1.045);
}

.video-card__play {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(30, 41, 59, 0.24);
  transition:
    transform 220ms var(--ease-soft),
    box-shadow 220ms var(--ease-soft);
}

.video-card__play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 40px rgba(99, 102, 241, 0.34);
}

.video-card__play:active {
  transform: scale(0.94);
}

.video-card__play .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  transform: translateX(1px);
}

.video-card__duration {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.15);
}

.video-card__duration .icon {
  width: 13px;
  height: 13px;
}

.video-card__body {
  padding: 21px 21px 23px;
}

.video-card__category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo-deep);
  font-size: 11px;
  font-weight: 700;
}

.video-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.35;
  text-wrap: pretty;
}

.video-card__summary {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.9);
}

.video-card__meta {
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__share {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 220ms var(--ease-soft),
    background-color 220ms var(--ease-soft),
    box-shadow 220ms var(--ease-soft),
    color 220ms var(--ease-soft);
}

.video-card__share:hover {
  transform: translateY(-2px);
  background: #eef2ff;
  color: var(--indigo-deep);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.16);
}

.video-card__share:active {
  transform: scale(0.94);
}

.video-card__share .icon {
  width: 17px;
  height: 17px;
}

.empty-state {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  padding: 36px 22px;
  border-radius: var(--radius-large);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state__icon,
.contact-band__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo);
}

.empty-state h3 {
  margin: 17px 0 3px;
  font-size: 19px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.contact-band {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 26px;
  border-radius: var(--radius-large);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.contact-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-band__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.contact-band h2 {
  font-size: clamp(23px, 6vw, 33px);
}

.footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  padding: 28px 4px 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer strong {
  color: var(--text);
  font-size: 16px;
}

.footer p {
  max-width: 68ch;
  margin: 4px 0 0;
  line-height: 1.7;
}

.footer > span {
  color: var(--muted-soft);
}

.overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 0 0;
  background: rgba(51, 65, 85, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease-in-out;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: min(100%, 880px);
  max-height: calc(100vh - max(12px, env(safe-area-inset-top)));
  overflow-y: auto;
  border-radius: 32px 32px 0 0;
  background: var(--bg);
  box-shadow: 0 -26px 80px rgba(71, 85, 105, 0.22);
  transform: translateY(36px);
  transition: transform 340ms var(--ease-soft);
  overscroll-behavior: contain;
}

.overlay.is-open .sheet {
  transform: translateY(0);
}

.sheet__head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  background: rgba(248, 250, 252, 0.97);
}

.player-sheet__head {
  justify-content: flex-start;
}

.player-sheet__head .icon-button:last-child {
  margin-left: auto;
}

.sheet__title-wrap {
  min-width: 0;
}

.sheet__eyebrow {
  display: block;
  color: var(--indigo);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sheet__title {
  max-width: 26ch;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 16px;
  overflow: hidden;
  border-radius: 24px;
  background: #e2e8f0;
  box-shadow: 0 20px 48px rgba(71, 85, 105, 0.18);
}

.video-stage video {
  width: 100%;
  height: 100%;
  background: #334155;
  object-fit: contain;
}

.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e2e8f0;
  color: var(--muted);
  font-size: 12px;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.video-loading.is-hidden {
  opacity: 0;
}

.video-loading__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.12);
  animation: soft-pulse 1.6s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.68;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.player-details {
  padding: 24px 20px max(28px, env(safe-area-inset-bottom));
}

.player-details > p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px 0 0;
}

.meta-list > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.12);
}

.meta-list dt {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.meta-list dd {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-actions,
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.category-sheet,
.share-sheet {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.category-tree {
  display: grid;
  gap: 12px;
  padding: 6px 16px 20px;
}

.tree-group {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.16);
}

.tree-group__button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.tree-group__button:hover {
  background: #f8fafc;
}

.tree-group__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo);
}

.tree-group__button span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.tree-group__button strong {
  display: block;
  font-size: 14px;
}

.tree-group__button small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.tree-group__chevron {
  transition: transform 220ms var(--ease-soft);
}

.tree-group.is-open .tree-group__chevron {
  transform: rotate(180deg);
}

.tree-group__content {
  display: none;
  padding: 0 12px 12px;
}

.tree-group.is-open .tree-group__content {
  display: block;
}

.tree-second {
  padding: 2px 0 2px 14px;
}

.tree-second__button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 15px;
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.tree-second__button:hover {
  background: #eef2ff;
  color: var(--indigo-deep);
}

.tree-second__count {
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 600;
}

.tree-third {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 0 10px 8px;
}

.tree-third button {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 13px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.13);
  transition:
    transform 200ms var(--ease-soft),
    color 200ms var(--ease-soft),
    background-color 200ms var(--ease-soft);
}

.tree-third button:hover {
  transform: translateY(-1px);
  background: #eef2ff;
  color: var(--indigo-deep);
}

.share-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 16px 0;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(148, 163, 184, 0.16);
}

.share-preview img {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #f1f5f9;
}

.share-preview strong {
  display: block;
  font-size: 15px;
}

.share-preview p {
  max-width: 24ch;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px;
  padding: 9px 9px 9px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.13);
}

.share-link span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-actions {
  padding: 0 16px;
}

.overlay--search {
  align-items: flex-start;
  padding: max(14px, env(safe-area-inset-top)) 14px 0;
}

.search-sheet {
  width: min(720px, 100%);
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(71, 85, 105, 0.24);
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity 260ms ease-in-out,
    transform 300ms var(--ease-soft);
}

.overlay--search.is-open .search-sheet {
  opacity: 1;
  transform: translateY(0);
}

.search-sheet__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 17px;
  color: var(--muted);
}

.search-sheet__bar > .icon {
  width: 21px;
  height: 21px;
  color: var(--indigo);
}

.search-sheet__bar input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  padding: 12px 8px;
  border: 0;
  border-radius: 16px;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-sheet__bar input::placeholder {
  color: var(--muted-soft);
}

.search-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 14px 16px;
}

.search-suggestion {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 15px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-soft),
    background-color 200ms var(--ease-soft),
    color 200ms var(--ease-soft);
}

.search-suggestion:hover {
  transform: translateY(-1px);
  background: #eef2ff;
  color: var(--indigo-deep);
}

.search-suggestion:active {
  transform: scale(0.97);
}

.toast {
  position: fixed;
  z-index: 110;
  right: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  padding: 11px 17px;
  border-radius: 999px;
  background: #334155;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 18px 44px rgba(51, 65, 85, 0.24);
  opacity: 0;
  transform: translate(50%, 14px);
  transition:
    opacity 220ms ease-in-out,
    transform 260ms var(--ease-soft);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (min-width: 640px) {
  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    width: min(1120px, calc(100% - 48px));
  }

  .hero__content {
    padding: 58px 44px 118px;
  }

  .hero__actions {
    flex-direction: row;
  }

  .button {
    width: auto;
  }

  .section {
    padding: 72px 24px;
  }

  .category-nav,
  .subcategory-nav {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }

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

  .video-card__body {
    padding: 23px 23px 25px;
  }

  .contact-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 34px 38px;
  }

  .contact-band__content {
    flex-direction: row;
    align-items: center;
  }

  .contact-band .button {
    flex: 0 0 auto;
  }

  .footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    width: min(1120px, calc(100% - 48px));
  }

  .overlay {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    max-height: min(880px, calc(100vh - 48px));
    border-radius: 36px;
  }

  .sheet__head {
    padding: 22px 24px 16px;
  }

  .player-sheet {
    width: min(920px, 100%);
  }

  .video-stage {
    margin: 0 24px;
  }

  .player-details {
    padding: 26px 24px 32px;
  }

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

  .player-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .category-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 24px 28px;
  }

  .share-sheet {
    width: min(480px, 100%);
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: 600px;
  }

  .hero__content {
    padding: 72px 58px 118px;
  }

  .hero__content > p {
    font-size: 16px;
  }

  .hero__foot {
    display: flex;
  }

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

  .text-button {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .video-card {
    opacity: 1;
    transform: none;
  }
}
