/* Video Center Page */
.video-center-page {
  background: #f8fafc;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.video-center-page *,
.video-center-page *::before,
.video-center-page *::after,
.video-modal,
.video-modal * {
  box-sizing: border-box;
}

.video-center-hero {
  padding: 92px 0 58px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4f9 100%);
  max-width: 100%;
  overflow: hidden;
}

.video-center-hero .container,
.video-center-list-section .container {
  max-width: 1480px;
  padding-left: 24px;
  padding-right: 24px;
}

.video-center-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-center-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  color: #0f172a;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
}

.video-center-hero p {
  max-width: 720px;
  margin: 0;
  color: #526171;
  font-size: 18px;
  line-height: 1.75;
}

.video-center-list-section {
  padding: 70px 0 96px;
  max-width: 100%;
  overflow: hidden;
}

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

.video-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8f1;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 95, 23, 0.34);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
}

.video-card-trigger {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.video-card-trigger:disabled {
  cursor: default;
}

.video-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.video-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.video-card:hover .video-card-media img {
  transform: scale(1.04);
}

.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(253, 95, 23, 0.92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(253, 95, 23, 0.28);
}

.video-card-play svg {
  display: block;
  margin-left: 3px;
}

.video-card-body {
  padding: 24px 24px 28px;
}

.video-card-body h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.35;
}

.video-card-body p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.video-center-empty {
  padding: 44px;
  background: #fff;
  border: 1px solid #dfe8f1;
  text-align: center;
  color: #64748b;
}

.video-modal-open {
  overflow: hidden;
}

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

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
}

.video-modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  background: #020617;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.video-modal-close {
  position: absolute;
  right: 0;
  top: -48px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-player {
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-modal-player video,
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 1024px) {
  .video-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  html:has(.video-center-page),
  body:has(.video-center-page),
  body.linghang-video-center-template {
    overflow-x: hidden;
  }

  .video-center-page {
    min-width: 0;
  }

  .video-center-hero {
    padding: 52px 0 34px;
  }

  .video-center-hero .container,
  .video-center-list-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .video-center-hero h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.16;
    word-break: break-word;
  }

  .video-center-hero p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.68;
  }

  .video-center-list-section {
    padding: 30px 0 54px;
  }

  .video-center-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-card {
    min-width: 0;
    width: 100%;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  }

  .video-card-trigger,
  .video-card-media,
  .video-card-body {
    min-width: 0;
    max-width: 100%;
  }

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

  .video-card-media {
    aspect-ratio: 16 / 10;
  }

  .video-card-body {
    padding: 18px 18px 20px;
  }

  .video-card-body h2 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.34;
  }

  .video-card-body p {
    font-size: 14px;
    line-height: 1.65;
  }

  .video-card-play {
    width: 50px;
    height: 50px;
  }

  .video-card-play svg {
    width: 24px;
    height: 24px;
  }

  .video-modal {
    align-items: center;
    padding: 56px 12px 20px;
  }

  .video-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 92px);
  }

  .video-modal-close {
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .video-modal-player {
    width: 100%;
    max-height: calc(100vh - 110px);
  }

  .video-modal-player video,
  .video-modal-player iframe {
    object-fit: contain;
  }
}

@media (max-width: 380px) {
  .video-center-hero h1 {
    font-size: 28px;
  }

  .video-center-eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
  }

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