/* =========================================================
   YouTube Landing Page (scoped to .youtube-theme)
   ========================================================= */

.youtube-theme {
  /* Palette inspired by YouTube branding */
  --yt-red: #ff0000;
  --yt-deep-red: #b11217;
  --yt-darker-red: #8c0d13;
  --yt-cream: #f5f5f0;

  --yt-ink: #1f2937;
  --yt-card: #ffffff;
  --yt-border: rgba(0, 0, 0, 0.08);

  color: var(--yt-ink);
}

/* =========================================================
   Hero
   ========================================================= */

.youtube-theme .yt-hero {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.06),
    rgba(177, 18, 23, 0.02)
  );
  border: 1px solid var(--yt-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.06);
}

.youtube-theme .yt-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.youtube-theme .yt-hero-body {
  padding: 1rem;
}

.youtube-theme .yt-avatar {
  width: 84px;
  height: 84px;
  border-radius: 1rem;
  border: 2px solid rgba(255, 0, 0, 0.25);
  background: var(--yt-cream);
  object-fit: cover;
}

.youtube-theme .yt-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.youtube-theme .yt-subtitle {
  margin: 0.35rem 0 0 0;
  color: rgba(31, 41, 55, 0.8);
}

.youtube-theme .yt-accent-rule {
  height: 4px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yt-red), var(--yt-deep-red));
  margin-top: 0.75rem;
}

/* =========================================================
   Section Headings
   ========================================================= */

.youtube-theme .yt-section {
  margin-top: 1.25rem;
}

.youtube-theme .yt-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  margin: 0;
}

.youtube-theme .yt-section-title i {
  color: var(--yt-red);
}

/* =========================================================
   Cards
   ========================================================= */

.youtube-theme .yt-card {
  background: var(--yt-card);
  border: 1px solid var(--yt-border);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
}

.youtube-theme .yt-card:hover {
  border-color: rgba(255, 0, 0, 0.35);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.youtube-theme .yt-card:focus-within {
  outline: 3px solid rgba(255, 0, 0, 0.35);
  outline-offset: 2px;
}

/* Embedded videos */
.youtube-theme .yt-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

/* =========================================================
   Random / Tile Videos
   ========================================================= */

.youtube-theme .yt-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.youtube-theme .yt-thumb {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.1),
    rgba(177, 18, 23, 0.06)
  );
  border-bottom: 1px solid var(--yt-border);
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.youtube-theme .yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--yt-cream);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.youtube-theme .yt-tile-title {
  font-weight: 700;
  margin: 0;
}

.youtube-theme .yt-meta {
  margin: 0.25rem 0 0 0;
  color: rgba(31, 41, 55, 0.75);
  font-size: 0.95rem;
}

/* =========================================================
   CTA
   ========================================================= */

.youtube-theme .yt-cta {
  background: linear-gradient(135deg, var(--yt-deep-red), var(--yt-red));
  color: var(--yt-cream);
  border-radius: 0.9rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.youtube-theme .btn-yt {
  background: var(--yt-cream);
  color: var(--yt-darker-red);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.youtube-theme .btn-yt:hover,
.youtube-theme .btn-yt:focus {
  background: #ffffff;
  color: var(--yt-darker-red);
  border-color: #ffffff;
}

.youtube-theme .btn-yt:focus-visible {
  outline: 2px solid rgba(245, 245, 240, 0.9);
  outline-offset: 2px;
}
