/* Tartiliya Clips — readable meta, no bogus letterboxing */
.clips-reel-full {
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  background: #0b1210;
  color: #f3eddf;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.clips-top {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem 0.35rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
  background: rgba(10, 18, 16, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  z-index: 5;
}
.clips-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.clips-top h1 {
  margin: 0;
  font-size: 1.05rem;
  color: #f3eddf;
}
.clips-top a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.clips-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem 0 0.15rem;
  scrollbar-width: none;
}
.clips-tabs::-webkit-scrollbar { display: none; }
.clips-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 237, 223, 0.2);
  color: rgba(243, 237, 223, 0.85);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.clips-tabs a.is-active {
  background: #d4af37;
  color: #10251e;
  border-color: #d4af37;
}
.clips-scroller {
  flex: 1 1 auto;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}
.clip-slide {
  min-height: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  background: #000;
}
.clip-media {
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
  position: relative;
}
.clip-media video {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  background: #000;
}
.clip-mute {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 0.75rem;
  border: 1px solid rgba(212,175,55,0.5);
  background: rgba(0,0,0,0.45);
  color: #f3eddf;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}
.clip-meta {
  padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f3eddf;
}
.clip-meta .who {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f3eddf;
  text-decoration: none;
  font-weight: 700;
}
.clip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.clip-badge {
  font-style: normal;
  font-size: 0.75rem;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.clip-title {
  display: block;
  margin: 0.35rem 0 0.15rem;
  color: #fff;
  font-size: 1rem;
}
.clip-body {
  margin: 0;
  color: rgba(243, 237, 223, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
}
.clip-stats { color: rgba(243, 237, 223, 0.7) !important; }
.clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.clip-actions button,
.clip-actions a {
  color: #f3eddf;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.45);
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 36px;
}
.clips-empty { color: rgba(243,237,223,0.85); padding: 2rem 1rem; }
.clips-empty a { color: #d4af37; }

/* Keep bottom nav; shrink reel above it. Hide bulky desktop header on small screens only. */
@media (max-width: 860px) {
  body:has(.clips-reel-full) {
    padding-bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.clips-reel-full) .site-header {
    display: none;
  }
  body:has(.clips-reel-full) .music-mini {
    display: none !important;
  }
  .clips-reel-full {
    height: calc(100dvh - 3.8rem - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 3.8rem - env(safe-area-inset-bottom, 0px));
  }
}
