(function() {
const realShorts = [
'8a6asgELXVI',
'qBIEJJeHsEU',
'9oG7f1d7sbw',
'eZolKRjo2o0',
'NlwCfxuDsus',
'Y4rflM2G_0Q',
'jRT81OX0GxQ',
'RPZMvn53jic',
'cPmt-3hnXrk',
'skD0AQOZ8JY',
'MTXO3C9EXso',
'wLpJi1h1cAc',
'eVjQL6Fhu1A',
'pCmWGk682Pk',
'6Q9RfjCD1cE'
];
let currentIndex = 0;
const iframe = document.getElementById('rtv-shorts-iframe');
const counter = document.getElementById('rtv-short-count');
const btnPrev = document.getElementById('rtv-prev-short');
const btnNext = document.getElementById('rtv-next-short');
function updateShort(index) {
if (!iframe) return;
currentIndex = (index + realShorts.length) % realShorts.length;
iframe.src = 'https://www.youtube.com/embed/' + realShorts[currentIndex] + '?autoplay=1&rel=0&modestbranding=1';
if (counter) counter.innerText = (currentIndex + 1) + ' / ' + realShorts.length;
}
if (btnPrev) btnPrev.addEventListener('click', function() { updateShort(currentIndex - 1); });
if (btnNext) btnNext.addEventListener('click', function() { updateShort(currentIndex + 1); });
})();