@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

.kodra-ytc{
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 52px 26px;
  box-sizing: border-box;
  overflow: hidden;
}

.kodra-ytc,
.kodra-ytc *{
  box-sizing: border-box;
}

.kodra-ytc-viewport{
  overflow: hidden;
}

.kodra-ytc-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.kodra-ytc-grid > *{
  min-width: 0;
}

.kodra-ytc-heading{
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform, opacity;
}

.kodra-ytc-heading.kodra-ytc-heading--visible{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px){
  .kodra-ytc-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .kodra-ytc{ padding: 10px 20px 20px; }
  .kodra-ytc-viewport{ overflow: visible; }
  .kodra-ytc-grid{ grid-template-columns: 1fr; }
  .kodra-ytc-nav,
  .kodra-ytc-prev,
  .kodra-ytc-next{
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
  .kodra-ytc-prev{ left: 4px; }
  .kodra-ytc-next{ right: 4px; }
  .kodra-ytc-title{
    font-size: 12px;
    line-height: 20px;
    white-space: normal;
  }
}

.kodra-ytc-card{
	border: 4px #363d49 solid;
  background: #21242c;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  opacity: 0;
  transform: translate3d(-30px, 30px, 0);
  transition: transform var(--kodra-ytc-card-duration, 0.6s) ease, opacity var(--kodra-ytc-card-duration, 0.6s) ease, border-color 0.2s ease;
  will-change: transform, opacity;
}

.kodra-ytc-card.kodra-ytc-card--visible{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.kodra-ytc-card:hover{
  border-color: rgba(207, 23, 23, 0.5);
  transform: translate3d(0, -4px, 0);
  z-index: 2;
}

.kodra-ytc-thumb{
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(56,92,60,1) 0%, rgba(25,51,33,1) 100%);
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.kodra-ytc-thumb img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.0; /* if thumbnail exists we fade it in via JS */
  transition: opacity .25s ease;
}

.kodra-ytc-thumb.has-img img{ opacity: 1; }

.kodra-ytc-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.kodra-ytc-play span{
  width: 46px;
  height: 46px;
  background-color: #cf1717;
  display: grid;
  place-items: center;
  box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.2s ease;
}

.kodra-ytc-play svg{
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.kodra-ytc-card:hover .kodra-ytc-play span{
  transform: scale(1.12);
}

.kodra-ytc .kodra-ytc-duration{
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-family: "VT323", monospace;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  z-index: 2;
  padding: 4px 6px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.kodra-ytc-body{
  padding: 14px 14px 16px;
}

.kodra-ytc-title{
  margin: 0 0 6px;
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ede9de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kodra-ytc-subtitle{
  margin: 0;
  font: 600 11px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(160,190,255,0.7);
}

.kodra-ytc-link{
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.kodra-ytc-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 4px #363d49 solid;
  background: #14181f;
  color: #fff;
  box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  padding: 0;
  z-index: 30;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.kodra-ytc-nav span{
  font-size: 20px;
  line-height: 1;
}

.kodra-ytc-prev{ left: 8px; }
.kodra-ytc-next{ right: 8px; }

.kodra-ytc-nav:hover{
  background: rgba(0,0,0,0.55);
  border-color: #cf1717;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.kodra-ytc-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.kodra-ytc-dot{
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  border-radius: 0;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(0,0,0,0.45);
  box-shadow: rgba(255, 255, 255, 0.2) 4px 4px inset, rgba(0, 0, 0, 0.3) -4px -4px inset, rgba(0, 0, 0, 0.5) 4px 4px;
  cursor: pointer;
}

.kodra-ytc-dot.is-active{
  background: #c91919;
}

.kodra-ytc-dot:hover{
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  background: rgba(255,255,255,0.35);
}
