/* ===== TikTok feed ===== */

#tiktok-feed
{
  position: relative;
  height: min(80vh, 640px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding-top: 15%;
}

.tt-scroller
{
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border: 1px solid hsla(220 15% 22% / 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 32px hsla(220 60% 5% / 0.3);
  background-color: #0c1735;
}
.tt-scroller::-webkit-scrollbar { display: none; }
.tt-scroller:focus-visible { outline: 2px solid #F7F7F6; outline-offset: 2px; }

.tt-slide
{
  height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.tt-slide::before
{
  content: 'Loading…';
  grid-area: 1 / 1;
  color: #F7F7F6;
  opacity: 0.5;
  font-size: 16px;
}
.tt-slide iframe
{
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tt-nav
{
  position: absolute;
  top: 50%;
  right: -56px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-nav button
{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid hsla(220 15% 22% / 0.6);
  background-color: #0c1735;
  color: #F7F7F6;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 32px hsla(220 60% 5% / 0.3);
}
.tt-nav button:hover { opacity: 0.85; }

/* Touch screens swipe instead, so the buttons aren't needed */
@media (hover: none) { .tt-nav { display: none; } }
@media (max-width: 520px) { .tt-nav { right: 8px; } }
