/* ===============================
   COMMON WRAPPER
================================ */

.yt-marquee,
.yt-shorts {
    width: 100%;
    overflow: hidden;
}

.yt-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

/* ===============================
   NORMAL YOUTUBE VIDEOS (16:9)
================================ */

.yt-marquee .yt-item {
    flex: 0 0 25%;
    position: relative;
}

.yt-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.yt-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Icon */
.yt-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-play-icon::before {
    content: '';
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
}

.yt-play-icon::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.yt-video-thumb:hover .yt-play-icon::before {
    transform: scale(1.1);
    transition: 0.2s ease;
}

/* ===============================
   YOUTUBE SHORTS (9:16)
================================ */

.yt-shorts .yt-item {
    flex: 0 0 25%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.yt-shorts iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .yt-marquee .yt-item,
    .yt-shorts .yt-item {
        flex: 0 0 50%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .yt-marquee .yt-item,
    .yt-shorts .yt-item {
        flex: 0 0 100%;
    }
}
