/* ==========================================================================
   Homepage videos section — YouTube channel identity chrome
   ========================================================================== */

.videos-section__header {
  margin-bottom: var(--space-6);
}

.videos-section--compact .videos-section__header {
  margin-bottom: var(--space-4);
}

.videos-section--compact .video-card__body {
  padding: 0.75rem;
}

.videos-section--compact .video-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.videos-section--compact .video-card__kicker,
.videos-section--compact .video-card__meta-text {
  font-size: 0.6875rem;
}

.videos-section__fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0;
  color: rgb(var(--color-ink-muted));
  font-size: 0.95rem;
  line-height: 1.5;
}

.videos-section__fallback a {
  color: rgb(var(--color-accent));
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.videos-section__fallback-admin {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: rgb(var(--text-secondary));
  opacity: 0.85;
}

.videos-section__fallback a:hover {
  color: rgb(var(--palette-orange-600));
}

@media (min-width: 640px) {
  .videos-section__header {
    margin-bottom: var(--space-8);
  }
}

.videos-section__channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgb(var(--color-border));
}

@media (min-width: 640px) {
  .videos-section__channel {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
  }
}

.videos-section__channel-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

@media (min-width: 640px) {
  .videos-section__channel-identity {
    gap: var(--space-4);
  }
}

.videos-section__yt-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #ff0000;
}

.videos-section__yt-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}

.videos-section__avatar {
  display: block;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 2px solid rgb(var(--color-border));
  background: rgb(var(--color-surface));
}

.videos-section__channel-copy {
  min-width: 0;
}

.videos-section__channel-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0;
  line-height: 1.3;
}

.videos-section__channel-label {
  width: 100%;
  color: rgb(var(--color-ink-muted));
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.videos-section__channel-title {
  color: rgb(var(--color-ink));
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
}

@media (min-width: 640px) {
  .videos-section__channel-title {
    font-size: 1.25rem;
  }
}

.videos-section__channel-handle {
  color: rgb(var(--color-ink-muted));
  font-size: 0.875rem;
}

.videos-section__channel-stats {
  margin: 0.3rem 0 0;
  color: rgb(var(--color-ink-muted));
  font-size: 0.875rem;
  line-height: 1.4;
}

.videos-section__channel-cta {
  flex-shrink: 0;
  color: #fff;
  background: rgb(var(--color-accent));
  border-color: rgb(var(--color-accent));
  transition:
    transform var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard);
}

.videos-section__channel-cta:hover {
  color: #fff;
  background: rgb(var(--palette-orange-600));
  border-color: rgb(var(--palette-orange-600));
  filter: none;
  transform: scale(1.05);
}

.videos-section__channel-cta:focus-visible {
  color: #fff;
  background: rgb(var(--palette-orange-600));
  border-color: rgb(var(--palette-orange-600));
  filter: none;
  outline: 2px solid rgb(var(--color-focus));
  outline-offset: 3px;
  transform: scale(1.05);
}

.videos-section__channel-cta:active {
  transform: scale(0.95);
}

@media (max-width: 639px) {
  .videos-section__channel-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .videos-section__channel-identity {
    animation: gg-videos-channel-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .videos-section__channel-cta {
    animation: gg-videos-channel-fade 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .videos-section__channel-cta:hover,
  .videos-section__channel-cta:focus-visible,
  .videos-section__channel-cta:active {
    transform: none;
  }
}

@keyframes gg-videos-channel-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Opacity-only entrance so hover/active transform is not locked by fill-mode. */
@keyframes gg-videos-channel-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.light-mode .videos-section__channel {
  border-top-color: rgb(var(--color-border));
}

.light-mode .videos-section__avatar {
  border-color: rgb(var(--palette-neutral-200));
}
