/* Herald · TikTok — app tweaks. Base in glass-core.css. */

/* Home: vertically center the source pills in the content area. */
#home .content { justify-content: center; }

/* Source pills — fixed size, centered, fully rounded (true pill /
   stadium shape), with centered text. A tidy stack of identical pills
   rather than full-bleed cards. */
.tt-tile {
  width: 440px;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 80px;
  padding: 16px 34px;
  text-align: center;
  border-radius: 999px;
}
.tt-tile-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.tt-tile-sub { font-size: 12.5px; color: var(--text-secondary); }

/* ---- Player: always portrait ---------------------------------------
   The 9:16 video is centered on the 600×600 display; the only chrome
   is a small circular back button overlaid bottom-center. Reach it
   with a double-↓ (single ↑/↓ moves between clips). Mirrors the
   YouTube Shorts treatment — the video is the UI. */
#player { padding: 0; }
.tt-player {
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}
.tt-stage {
  aspect-ratio: 9 / 16;
  height: 100%;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  background: #000;
  position: relative;
  overflow: hidden;
}
#tt-frame { width: 100%; height: 100%; border: 0; display: block; }
#tt-sink {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: transparent;
  border: 0;
  outline: none;
}

/* Centered status overlay — loading / autoplay-blocked / no clips. */
.tt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.72);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  z-index: 2;
}

/* Bottom-center back button — dim until focused (double-↓ to reach). */
.tt-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.tt-back {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-primary, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 140ms ease, border-color 140ms ease,
              transform 140ms ease;
}
.tt-back:focus {
  opacity: 1;
  border-color: var(--focus-ring);
}
.tt-back .icon { width: 20px; height: 20px; }
