/* Video feed styles. Set these variables in the site's own CSS to match the brand. */
[data-yt-feed] {
  --yt-accent: var(--accent, #e63946);
  --yt-text: var(--text, inherit);
  --yt-card-bg: var(--surface, rgba(255, 255, 255, 0.06));
  --yt-radius: var(--radius, 14px);
}
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--yt-radius); overflow: hidden; background: #000; }
.yt-player iframe, .yt-facade, .yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { padding: 0; cursor: pointer; background: none; }
.yt-facade img { object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%);
  border-radius: 14px; background: var(--yt-accent); opacity: 0.92; transition: transform 0.15s, opacity 0.15s;
}
.yt-play::after {
  content: ""; position: absolute; left: 31px; top: 16px;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.yt-featured-title { margin: 0.8rem 0 0.2rem; }
.yt-featured-links a { color: var(--yt-accent); font-weight: 600; }

.yt-slider { position: relative; margin-top: 1.5rem; }
.yt-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 26%); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 0.5rem;
  scrollbar-width: thin;
}
.yt-card { scroll-snap-align: start; }
.yt-card-btn {
  display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--yt-card-bg); color: var(--yt-text); border-radius: var(--yt-radius); overflow: hidden; font: inherit;
}
.yt-card-btn img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-card-title { display: block; padding: 0.6rem 0.75rem 0.8rem; font-size: 0.95rem; line-height: 1.3; }
.yt-card-btn:hover img, .yt-card-btn:focus-visible img { filter: brightness(1.08); }
.yt-arrow {
  position: absolute; top: 35%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 1.6rem; line-height: 1;
}
.yt-prev { left: -10px; }
.yt-next { right: -10px; }
.yt-fits .yt-track { justify-content: center; }
.yt-fits .yt-arrow { display: none; }
@media (max-width: 640px) {
  .yt-track { grid-auto-columns: 72%; }
  .yt-arrow { display: none; }
}
