@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&display=swap');

.videos-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.videos-header-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.videos-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.videos-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.videos-pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.videos-pill-nav .pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.videos-pill-nav .pill:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,100,0.05);
}

.videos-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.video-category {
  margin-bottom: 4rem;
}

.category-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.video-category h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.category-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-card {
  display: block;
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.video-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.video-card:hover .video-thumb img {
  opacity: 0.85;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-icon svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.15s;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  padding: 10px;
}

.video-card:hover .play-icon svg {
  opacity: 1;
  transform: scale(1.08);
}

.video-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.video-info {
  padding: 0.9rem 1rem;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.video-card:hover .video-title {
  color: var(--green);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.video-channel {
  font-size: 0.75rem;
  color: var(--green);
}

.video-date {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .videos-body {
    padding: 2.5rem 1.25rem 4rem;
  }
}
