.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt {
  /* YouTube brand red — no design-system token exists for it. */
  --tc-yt-brand: rgb(255, 0, 0);
  width: 100%;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__band {
  padding: 1rem;
  border: 1px solid var(--kombos-gray-200);
  border-radius: 20px;
  background: var(--kombos-white);
}

/* ---- Layout ----
   Mobile/tablet: one column, featured video first, then header, then list.
   IkasComponentRenderer's wrapper is display:contents, so in manual mode every
   child's container is a direct flex/grid item of .tc-yt__layout. */
.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__featured {
  order: -1;
  min-width: 0;
}

/* Manual mode: the first YouTubeVideoItem becomes the featured player.
   Its card reads these inherited custom properties (see YouTubeVideoCard). */
.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > :first-child {
  order: -1;
  --tc-yt-dir: column;
  --tc-yt-align: stretch;
  --tc-yt-media-w: 100%;
  --tc-yt-radius: 14px;
  --tc-yt-row-title: none;
  --tc-yt-feat-title: block;
  --tc-yt-badge: flex;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > * {
  min-width: 0;
}

/* ---- Header ---- */
.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__logo {
  flex-shrink: 0;
  font-size: 1.75rem;
  color: var(--tc-yt-brand);
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__eyebrow {
  margin: 0;
  color: var(--tencerecim-gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__title {
  margin: 0;
  color: var(--tencerecim-navy);
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__subscribe {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--tc-yt-brand);
  color: var(--kombos-white);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__subscribe-icon {
  font-size: 1rem;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__subscribe:focus-visible {
  outline: 2px solid var(--tencerecim-navy);
  outline-offset: 2px;
}

/* ---- List (API mode) ---- */
.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__list-item {
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__band {
    padding: 1.5rem;
  }
}

/* Desktop: featured player left, header + list in a ~26rem right column. */
@media (min-width: 1024px) {
  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__band {
    padding: 1.75rem;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem;
    column-gap: 2rem;
    row-gap: 0.75rem;
    align-items: start;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__header {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0.25rem;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__layout--api {
    grid-template-rows: auto 1fr;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__featured {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__list {
    grid-column: 2;
    grid-row: 2;
  }

  /* Manual mode: 11 content rows + a flexible last row. The featured item spans
     them all; its extra height lands in the 1fr row instead of spreading the list. */
  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__layout--manual {
    grid-template-rows: repeat(11, auto) 1fr;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > * {
    grid-column: 2;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > :first-child {
    grid-column: 1;
    grid-row: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__subscribe {
    transition: none;
  }
}

/* Renderer'ın çocuk sarmalayıcıları da display:contents; grid-column ve order ancak
   gerçek karta (bir seviye daha derin) uygulanınca etkili oluyor. Özel değişkenler
   kalıtımla zaten iniyor. */
.cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > :first-child > * {
  order: -1;
}

@media (min-width: 1024px) {
  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > * > * {
    grid-column: 2;
  }

  .cc_3l4dbrl8_IF0oTxV0Cr .tc-yt__manual > :first-child > * {
    grid-column: 1;
    grid-row: 1 / -1;
  }
}
