.youtube-main {
  padding: 0;
}

.youtube-page-section {
  padding: 0 0 56px;
}

body.youtube-page .youtube-page-section > .container {
  max-width: var(--home-page-max, 1180px);
  padding: 0;
}

@media (max-width: 1024px) {
  body.youtube-page .youtube-page-section > .container {
    padding: 0 var(--gutter, 28px);
  }
}

.youtube-page-card {
  background: linear-gradient(135deg, #ead4ab 0%, #f3e3c6 58%, #fbf1df 100%);
  border: 1px solid rgba(154, 122, 44, 0.22);
  border-left: 6px solid #b88712;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(91, 7, 16, 0.08);
  box-sizing: border-box;
  color: var(--dalesmen-ink, #221712);
  padding: var(--home-card-padding, clamp(28px, 4vw, 42px));
}

.youtube-page-intro {
  margin-bottom: 26px;
}

body.youtube-page .youtube-page-intro {
  background: linear-gradient(135deg, #3d040a 0%, #52070f 58%, #6f0b16 100%);
  border: 1px solid rgba(210, 168, 39, 0.46);
  border-left: 4px solid var(--dalesmen-gold, #d2a827);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: clamp(26px, 3vw, 34px) var(--home-card-padding, clamp(28px, 4vw, 42px));
}

.youtube-page-card h1 {
  margin: 0;
  color: var(--dalesmen-burgundy, #5b0710);
  font-family: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: var(--section-title-size, clamp(30px, 3.4vw, 42px));
  font-weight: 500;
  line-height: 1.08;
}

body.youtube-page .youtube-page-intro h1 {
  color: var(--dalesmen-gold, #d2a827);
}

.youtube-empty {
  margin: 0;
  font-style: italic;
  opacity: 0.82;
}

.youtube-page-card h1 + .youtube-empty {
  margin-top: 18px;
}

.youtube-section-list {
  display: grid;
  gap: 26px;
}

.yt-section-heading {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(154, 122, 44, 0.24);
  color: var(--dalesmen-burgundy, #5b0710);
  font-family: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

.yt-card {
  background: #fffaf0;
  border: 1px solid rgba(154, 122, 44, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(91, 7, 16, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.yt-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #3d040a;
}

.yt-frame-wrap iframe,
.yt-video-loader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-frame-wrap iframe {
  border: 0;
}

.yt-video-loader {
  border: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, #4a0610 0%, #6f0b16 100%);
  color: #fff7e8;
  font: inherit;
  text-align: center;
}

.yt-video-loader img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.yt-video-loader:hover img,
.yt-video-loader:focus-visible img {
  opacity: 0.88;
  transform: scale(1.02);
}

.yt-video-loader__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(34, 23, 18, 0.16), rgba(34, 23, 18, 0.46));
}

.yt-video-loader__play {
  width: 62px;
  height: 44px;
  border-radius: 8px;
  background: rgba(210, 168, 39, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  position: relative;
}

.yt-video-loader__play::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 12px;
  border-left: 17px solid #3d040a;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.yt-video-loader__text {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(61, 4, 10, 0.9);
  color: #fff7e8;
  font-size: 0.92rem;
  font-weight: 700;
}

.yt-video-loader.is-loading {
  cursor: progress;
}

.yt-video-loader.is-loading .yt-video-loader__text {
  display: inline-block;
}

.yt-video-loader.is-loading .yt-video-loader__play {
  display: none;
}

.yt-body {
  padding: 18px 20px 22px;
}

.yt-body h3 {
  margin: 0 0 10px;
  color: var(--dalesmen-burgundy, #5b0710);
  font-family: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}

.yt-body p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  body.youtube-page .youtube-page-section > .container {
    padding: 0 var(--gutter, 18px);
  }

  .youtube-page-card {
    padding: 20px;
  }

  body.youtube-page .youtube-page-intro {
    padding: 20px;
  }

  .yt-grid {
    grid-template-columns: 1fr;
  }
}
