/* ÖSIF Play */
.yt-latest { --ytl-red: #d61827; --ytl-yellow: #f6b800; --ytl-radius: 16px; margin: 0 0 24px; }
.yt-latest *, .yt-latest *::before, .yt-latest *::after { box-sizing: border-box; }
.ytl-empty { color: #6b6b6b; }

/* Rullning */
.yt-latest .ytl-carousel { --ytl-card-w: 440px; position: relative; margin: 0 0 8px; }
.yt-latest .ytl-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px calc(50% - var(--ytl-card-w) / 2) 26px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.yt-latest .ytl-track::-webkit-scrollbar { display: none; }
@media (min-width: 601px) {
  .yt-latest .ytl-track {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
}
.yt-latest .ytl-track > .ytl-card {
  flex: 0 0 var(--ytl-card-w); scroll-snap-align: center; opacity: .7;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.yt-latest .ytl-track > .ytl-card.is-current { opacity: 1; transform: scale(1.05); box-shadow: 0 16px 44px rgba(0,0,0,.32); z-index: 1; }
.yt-latest .ytl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
  padding: 0 !important; margin: 0; border-radius: 50% !important; border: 2px solid var(--ytl-red) !important;
  background: #fff !important; color: var(--ytl-red) !important; font: 700 26px/1 serif !important; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; outline: none !important;
}
.yt-latest .ytl-arrow:hover { background: var(--ytl-red) !important; color: #fff !important; }
.yt-latest .ytl-arrow--prev { left: 0; }
.yt-latest .ytl-arrow--next { right: 0; }
.yt-latest .ytl-arrow[disabled] { opacity: .3; cursor: default; }
@media (max-width: 600px) {
  .yt-latest .ytl-carousel { --ytl-card-w: 80vw; }
  .yt-latest .ytl-track { gap: 12px; }
  .yt-latest .ytl-arrow { display: none; }
}

.yt-latest .ytl-card {
  display: flex; flex-direction: column; border-radius: var(--ytl-radius); overflow: hidden;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.yt-latest .ytl-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #091224; overflow: hidden; }
.yt-latest .ytl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.yt-latest .ytl-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.55));
}
.yt-latest .ytl-play {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #111827;
  background: radial-gradient(circle at 30% 30%, #fff, #dbeafe); box-shadow: 0 12px 40px rgba(34,211,238,.45);
  transform: scale(.98); transition: transform .12s;
}
.yt-latest .ytl-thumb:hover .ytl-play { transform: scale(1.06); }

.yt-latest .ytl-meta { padding: 12px 16px 14px; background: var(--ytl-red); color: #fff; min-height: 88px; display: flex; flex-direction: column; justify-content: center; }
.yt-latest .ytl-meta h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #fff !important; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.yt-latest .ytl-muted { color: #fff; font-size: 13px; }

.yt-latest .ytl-more { text-align: center; margin: 20px 0 0; }
.yt-latest .ytl-btn-more {
  display: inline-block; padding: 12px 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: #1c1c1c !important; background: var(--ytl-yellow); border-radius: 6px; text-decoration: none !important;
}
.yt-latest .ytl-btn-more:hover { background: #e2a900; }

/* Modal */
.yt-latest .ytl-modal {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.7); z-index: 99999;
}
.yt-latest .ytl-modal[hidden] { display: none; }
.yt-latest .ytl-close {
  position: absolute; top: 14px; right: 14px; border: 1px solid rgba(255,255,255,.3) !important; background: rgba(255,255,255,.1) !important;
  color: #fff !important; border-radius: 999px !important; padding: 10px 14px !important; font-weight: 700; cursor: pointer;
}
.yt-latest .ytl-player { width: min(100%, 980px); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.yt-latest .ytl-player iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (prefers-reduced-motion: reduce) {
  .yt-latest .ytl-play { transition: none; }
}
