/* LEGACY */
.legacy-timeline-section {
  background: #ffffff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.tv-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 14px;
  width: 100%;
}

.tv-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tv-card {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.tv-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 2;
}

.tv-title {
  margin: 12px 0 0;
  font-size: 1.1rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #000;
}

/* Tablets: 2 columns */
@media (max-width: 900px) {
  .tv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile phones: 1 column */
@media (max-width: 550px) {
  .tv-grid {
  grid-template-columns: 1fr;
  }

  .tv-card {
  height: 240px;
  }
}

/* @media (max-width: 1100px) {
  .tv-grid {
    flex-wrap: wrap;
  }

  .tv-card {
    flex: 0 0 calc((100% - 28px) / 3);
    height: 220px;
  }
} */
/* Phones: 1 per row */
/* @media (max-width: 650px) {
  .tv-card {
    flex-basis: 100%;
    height: 220px;
  }
} */
/* Tablets: 3 per row */
@media (max-width: 1100px) {
  .tv-grid {
      flex-wrap: wrap;
  }

  .tv-item {
      flex: 0 0 calc((100% - 28px) / 3);
  }

  .tv-card {
      height: 220px;
  }
}

/* Phones: 1 per row */
@media (max-width: 650px) {
  .tv-item {
      flex-basis: 100%;
  }
}

.legacy-timeline-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.legacy-timeline-section .section-header .label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.legacy-timeline-section .section-header h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #111;
  margin-bottom: 8px;
}

.legacy-timeline-section .section-header p {
  color: #666;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

.timeline-start {
  text-align: center;
  padding: 0 0 48px;
  position: relative;
  z-index: 1;
}

.timeline-start .start-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.timeline-start .start-year {
  font-size: 56px;
  font-weight: 900;
  color: #111;
  letter-spacing: -2px;
  line-height: 1;
}

.timeline-start .start-year span {
  color: #aaa;
}

/* LEGACY TIMELINE VIDEO MODAL */
.legacy-video-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.legacy-video-modal.show {
  opacity: 1;
  visibility: visible;
}

.legacy-video-modal .legacy-video-backdrop {
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
  cursor: pointer;
}

.legacy-video-modal-content {
  position: relative;
  z-index: 2;
  background: #000;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
}

.legacy-video-modal.show .legacy-video-modal-content {
  transform: scale(1) translateY(0);
}

.legacy-video-modal .legacy-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legacy-video-modal .legacy-video-header .lv-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.legacy-video-modal .legacy-video-header .lv-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #55c2ff;
  margin-bottom: 2px;
}

.legacy-video-modal .legacy-video-header .lv-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legacy-video-modal .legacy-video-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.legacy-video-modal .legacy-video-close:hover {
  background: #fff;
  color: #111;
  transform: rotate(90deg);
}

.legacy-video-modal .legacy-video-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.legacy-video-modal .legacy-video-body video,
.legacy-video-modal .legacy-video-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

@media (max-width: 700px) {
  .legacy-video-modal {
      padding: 16px 12px;
  }

  .legacy-video-modal-content {
      border-radius: 14px;
  }

  .legacy-video-modal .legacy-video-header {
      padding: 12px 16px;
  }

  .legacy-video-modal .legacy-video-header .lv-title {
      font-size: 14px;
  }

  .legacy-video-modal .legacy-video-close {
      width: 36px;
      height: 36px;
      font-size: 20px;
  }
}
