:root {
  --lime: #c6ff17;
  --text: #f4f8fb;
  --muted: rgba(244, 248, 251, 0.58);
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(203, 224, 232, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 9%, rgba(34, 144, 166, 0.22), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(198, 255, 23, 0.09), transparent 25%),
    linear-gradient(135deg, #030914 0%, #061321 54%, #071b27 100%);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(176, 211, 225, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 211, 225, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.video-page {
  position: relative;
  z-index: 1;
  width: min(92.5vw, 1680px);
  margin: 0 auto;
  padding: 28px 0 88px;
}

.video-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid rgba(203, 224, 232, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.video-header h1,
.video-header span {
  margin: 0;
}

.video-header h1 {
  color: #f7fbfc;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.video-header span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.video-category {
  margin-top: clamp(54px, 8vh, 92px);
}

.video-category__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.video-category__heading h2 {
  margin: 0;
  color: #f6f8fb;
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.video-category__heading span {
  color: var(--lime);
  font-family: "DIN Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.video-orientation {
  margin-top: 28px;
}

.video-orientation__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: rgba(244, 248, 251, 0.72);
  font-size: 18px;
  font-weight: 900;
}

.video-orientation__title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--lime);
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(198, 255, 23, 0.48);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}

.video-card {
  position: relative;
  display: block;
  min-height: 0;
  color: inherit;
  border: 1px solid rgba(203, 224, 232, 0.22);
  border-radius: 24px;
  padding: 10px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(4, 15, 23, 0.58);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 18px 52px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  border-color: rgba(198, 255, 23, 0.48);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 26px 72px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(198, 255, 23, 0.12);
  outline: none;
  transform: translateY(-4px);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(203, 224, 232, 0.14);
  border-radius: 17px;
  background: #0c1822;
}

.video-card.is-portrait .video-card__media {
  aspect-ratio: 9 / 13.2;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(0.62) contrast(0.96);
  transition:
    opacity 320ms ease,
    filter 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 8, 13, 0.52));
}

.video-card__index {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(198, 255, 23, 0.36);
  border-radius: 999px;
  color: #f7fbfc;
  background: rgba(3, 12, 19, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease;
}

.video-card:hover video,
.video-card:focus-visible video {
  opacity: 1;
  filter: saturate(1) contrast(1.05);
  transform: scale(1.035);
}

.video-card:hover .video-card__index,
.video-card:focus-visible .video-card__index {
  color: #07110f;
  background: var(--lime);
  border-color: var(--lime);
}

.video-empty {
  padding: 20px;
  border: 1px dashed rgba(203, 224, 232, 0.2);
  border-radius: 18px;
  color: var(--muted);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.video-modal__player {
  width: min(84vw, 1280px);
  max-height: 78vh;
  background: #000;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
}

.video-modal__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__caption {
  width: min(84vw, 1280px);
  margin-top: 16px;
  color: #fff;
}

.video-modal__caption p,
.video-modal__caption span {
  margin: 0;
}

.video-modal__caption p {
  font-size: 22px;
  font-weight: 900;
}

.video-modal__caption span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .video-page {
    width: calc(100% - 32px);
  }

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