:root {
  --vp-card: rgba(255, 255, 255, 0.04);
  --vp-border: rgba(255, 255, 255, 0.1);
  --vp-muted: #98a9bf;
  --vp-accent: #60a5fa;
}

.video-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 24px auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 28px;
}

body.video-page::before {
  opacity: 0.68;
}

body.video-page::after {
  opacity: 0.015;
}

.video-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  background: rgba(8, 22, 48, 0.9);
  border: 1px solid var(--vp-border);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vp-accent);
  margin-bottom: 10px;
}

.video-hero h1 {
  font-size: clamp(28px, 3.1vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--vp-muted);
  line-height: 1.6;
  font-size: 16px;
}

.hero-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.hero-panel ul {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d9e3ef;
}

.note {
  color: var(--vp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.video-section {
  background: rgba(8, 22, 48, 0.9);
  border: 1px solid var(--vp-border);
  border-radius: 18px;
  padding: 24px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section-head p {
  color: var(--vp-muted);
}

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

.tool-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 16, 37, 0.92);
  flex: 0 0 auto;
  overflow: hidden;
}

.tool-icon.sfm-bg {
  background: #f2efe7;
  border-color: rgba(0, 0, 0, 0.18);
}

.tool-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.tool-logo-sfm {
  width: 94%;
  height: 60%;
}

.tool-copy h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.tool-copy p {
  color: var(--vp-muted);
  line-height: 1.5;
  font-size: 14px;
}

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

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

.video-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-frame-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.25);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-meta {
  padding: 14px;
  display: grid;
  gap: 8px;
  grid-template-rows: 42px 20px 170px auto;
  flex: 1 1 auto;
}

.video-meta h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
}

.video-meta h3 a {
  color: #e8edf4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.video-meta h3 a:hover {
  text-decoration: underline;
}

.video-meta p {
  color: var(--vp-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.video-role {
  color: #aec1d8;
  font-size: 13px;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-note {
  color: #c6d4e4;
  line-height: 1.6;
  max-width: 66ch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.video-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.video-date {
  color: #bed0e6;
  font-size: 13px;
}

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

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

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

.period {
  color: #c1d2e8;
  font-size: 13px;
}

.timeline-card p {
  color: var(--vp-muted);
  line-height: 1.5;
}

.timeline-card a {
  color: #dcecff;
  font-size: 14px;
  text-decoration: none;
}

.timeline-card a:hover {
  text-decoration: underline;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #e6eef8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.archive-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.archive-main {
  display: grid;
  gap: 4px;
}

.archive-title {
  font-weight: 600;
}

.archive-role {
  color: var(--vp-muted);
  font-size: 13px;
  text-align: left;
}

.archive-note {
  color: #b8c8dc;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.archive-date {
  margin-left: auto;
  color: #bed0e6;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .tool-grid,
  .video-grid,
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .video-shell {
    padding: 0 16px;
  }

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

  .video-meta {
    grid-template-rows: 42px 20px 148px auto;
  }

  .video-note {
    -webkit-line-clamp: 6;
  }

  .archive-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-role {
    text-align: left;
  }

  .archive-date {
    margin-left: 0;
  }
}
