.rt-container {
  min-height: 100vh;
}

.rt-feed {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  background: #000;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.rt-feed-wrap {
  min-height: 100vh;
}

.rt-filterBar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,0.9);
}

.rt-filterChip {
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.rt-filterChip.is-active {
  background: #fff;
  color: #000;
}

.rt-searchBar {
  display: flex;
  gap: 8px;
  padding: 10px 12px 4px;
}

.rt-searchBar input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 10px;
}

.rt-searchBar button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.rt-sortBar {
  display: flex;
  gap: 8px;
  padding: 0 12px 6px;
}

.rt-feed__loading,
.rt-feed__noscript {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.rt-reel {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-reel__video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  background: #000;
}

.rt-reel__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 90px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
}

.rt-reel__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.rt-reel__desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  max-width: 78ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rt-reel__actions {
  position: absolute;
  right: 10px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rt-reel__action {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.rt-reel__limitOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rt-reel__limitOverlay.is-visible {
  display: flex;
}

.rt-reel__continueBtn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 16px;
}

/* Reduce accidental bounce on Android */
@supports (overscroll-behavior: contain) {
  .rt-feed {
    overscroll-behavior: contain;
  }
}

/* Ad containers */
.rt-sticky {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.rt-sticky--top { top: env(safe-area-inset-top); }
.rt-sticky--bottom { bottom: env(safe-area-inset-bottom); }

.rt-ad-slot {
  pointer-events: auto;
}

.rt-ad-slot--top,
.rt-ad-slot--bottom {
  display: flex;
  justify-content: center;
}

.rt-ad-slot--feed-end {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #000;
}

.rt-single__layout {
  display: block;
}

.rt-ad-slot--single-incontent {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.rt-single__aside {
  display: none;
}

@media (min-width: 992px) {
  .rt-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: start;
  }

  .rt-single__aside {
    display: block;
    position: sticky;
    top: 12px;
  }
}

/* Related reels (single page) */
.rt-related {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.rt-related__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.rt-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .rt-related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rt-related__card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.rt-related__thumb img,
.rt-related__thumbFallback {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.rt-related__meta {
  padding: 8px 10px;
}

.rt-related__name {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
