/* ==========================================================================
   Canal VE — Página Vídeos YouTube
   ========================================================================== */

.videos-page {
  padding: 48px 0 80px;
  background: var(--color-bg, #fbfaf8);
}

.videos-page__header {
  margin-bottom: 40px;
  max-width: 640px;
}
.videos-page__title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--color-text);
}
.videos-page__subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-tertiary);
  margin: 0;
}

.videos-page__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-meta);
}
.videos-page__loading[hidden] {
  display: none !important;
}

/* ---- Featured ---- */
.videos-featured {
  margin-bottom: 56px;
}
.videos-featured[hidden] {
  display: none !important;
}
.videos-featured__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.videos-featured__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.videos-featured__meta {
  margin-top: 20px;
}
.videos-featured__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.videos-featured__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  margin: 0;
}
.videos-featured__stats span + span::before {
  content: '·';
  margin-right: 16px;
  color: var(--color-border);
}

/* ---- Blocks ---- */
.videos-block {
  margin-bottom: 48px;
}
.videos-block[hidden] {
  display: none !important;
}
.videos-page .shorts-header {
  margin: 0 0 20px;
}
.videos-page .shorts-header h2 {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.videos-page__grid {
  grid-template-columns: repeat(4, 1fr);
}
.videos-page__shorts {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- CTA ---- */
.videos-page__cta {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.videos-page__cta[hidden] {
  display: none !important;
}
.videos-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.videos-page__btn:hover {
  background: var(--color-brand-dark);
  color: #fff;
}
.videos-page__btn svg {
  flex-shrink: 0;
}

.videos-page__error {
  margin: 0;
  text-align: center;
  color: var(--color-text-meta);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .videos-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .videos-page__shorts {
    grid-template-columns: repeat(3, 1fr);
  }
  .videos-featured__title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .videos-page {
    padding: 32px 0 56px;
  }
  .videos-page__header {
    margin-bottom: 28px;
  }
  .videos-page__title {
    font-size: 28px;
  }
  .videos-page__subtitle {
    font-size: 14.5px;
  }

  .videos-featured {
    margin-bottom: 40px;
  }
  .videos-featured__player {
    border-radius: 12px;
  }
  .videos-featured__title {
    font-size: 18px;
  }
  .videos-featured__stats {
    font-size: 12.5px;
  }

  .videos-block {
    margin-bottom: 36px;
  }

  .videos-page__grid,
  .videos-page__shorts {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    margin: 0 calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .videos-page__grid::-webkit-scrollbar,
  .videos-page__shorts::-webkit-scrollbar {
    display: none;
  }
  .videos-page__grid .video-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
  .videos-page__shorts .short-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
}
