/* TWB YouTube — kaydırmalı video listesi */
.twbyt {
    --twbyt-gap: 24px;
    --twbyt-cols: 3;
    position: relative;
    width: 100%;
    padding-bottom: 32px;
}
@media (max-width: 1024px) { .twbyt { --twbyt-cols: 2; } }
@media (max-width: 767px)  { .twbyt { --twbyt-cols: 1.15; --twbyt-gap: 14px; } }

.twbyt__track {
    display: flex;
    gap: var(--twbyt-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.twbyt__track::-webkit-scrollbar { display: none; }
.twbyt__track:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.twbyt__item {
    flex: 0 0 calc((100% - (var(--twbyt-cols) - 1) * var(--twbyt-gap)) / var(--twbyt-cols));
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twbyt__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #111;
    overflow: hidden;
    cursor: pointer;
}
.twbyt__media img,
.twbyt__media iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border: 0;
    display: block;
    transition: transform .5s ease;
}
.twbyt__media:hover img { transform: scale(1.03); }
.twbyt__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    transition: background .2s ease, transform .2s ease;
}
.twbyt__play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -11px 0 0 -6px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.twbyt__media:hover .twbyt__play { background: rgba(0, 0, 0, .5); transform: scale(1.06); }
.twbyt__media.is-playing { cursor: default; }

.twbyt__title {
    margin: 4px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.4;
    letter-spacing: .03em;
    text-transform: none;
}
.twbyt__more {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: inherit;
    text-decoration: none;
}
.twbyt__more:hover { color: var(--color-primary, #c9a236); }

/* Oklar: görselin dikey ortasında (JS --twbyt-mid değerini ayarlar) */
.twbyt__arrow {
    position: absolute;
    top: var(--twbyt-mid, 30%);
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease, transform .2s ease;
}
.twbyt__arrow:hover { transform: scale(1.06); }
.twbyt__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.twbyt__arrow--prev { left: -22px; }
.twbyt__arrow--next { right: -22px; }
.twbyt__arrow:disabled { opacity: 0; pointer-events: none; }
.twbyt[data-fits="1"] .twbyt__arrow { display: none; }
@media (max-width: 1400px) {
    .twbyt__arrow--prev { left: 10px; }
    .twbyt__arrow--next { right: 10px; }
}
@media (max-width: 767px) {
    .twbyt__arrow { width: 38px; height: 38px; margin-top: -19px; }
    .twbyt__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}
