/* ============================================================
   Fabavio — TikTok-style design system (2026-09-23)
   ------------------------------------------------------------
   Whole-app immersive dark theme in the TikTok layout language,
   wearing the Fabavio brand (violet #7C3CFF primary, coral #FF5C62
   reserved for Live/alerts/destructive per the brand board).

   Loaded last in template/head, so these rules win ties without
   touching the compiled theme files. All NEW layout primitives are
   namespaced `.tt-*` (opt-in via markup). Shell/component overrides
   below are additive and mobile-first.

   Tokens
     --tt-bg        #050507  app canvas (near-black, deeper than brand)
     --tt-surface   #14141A  cards (brand dark card)
     --tt-surface-2 #1E1E24  raised surfaces
     --tt-line      rgba(255,255,255,.09)  hairlines
     --tt-text      #FFFFFF
     --tt-text-2    rgba(255,255,255,.72)
     --tt-text-3    rgba(255,255,255,.48)
     --tt-violet    #7C3CFF  brand primary
     --tt-coral     #FF5C62  live/alerts only
   ============================================================ */

:root {
  --tt-bg: #050507;
  --tt-surface: #14141A;
  --tt-surface-2: #1E1E24;
  --tt-line: rgba(255, 255, 255, .09);
  --tt-text: #FFFFFF;
  --tt-text-2: rgba(255, 255, 255, .72);
  --tt-text-3: rgba(255, 255, 255, .48);
  --tt-violet: #7C3CFF;
  --tt-violet-soft: rgba(124, 60, 255, .16);
  --tt-coral: #FF5C62;
  --tt-tabbar-h: 64px;
  --tt-radius: 14px;
  --tt-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */

html { color-scheme: dark; }

body {
  background-color: var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--tt-font);
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--tt-text); }
a:hover { color: var(--tt-text); }

.text-muted { color: var(--tt-text-3) !important; }
.text-secondary { color: var(--tt-text-2) !important; }

/* Kill the light wrapper anywhere the old theme leaks through */
.neutral-bg { background-color: var(--tt-bg) !important; }
.bg-separator { background-color: var(--tt-surface) !important; }
.border-top, .border-bottom, .border-left, .border-right, .border {
  border-color: var(--tt-line) !important;
}

/* ---------- TikTok top bar ----------
   Transparent bar over immersive content:
   [LIVE]  Following | For You   [search]                       */
.tt-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  pointer-events: none;
}
.tt-topbar > * { pointer-events: auto; }

.tt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.tt-live-badge .tt-live-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}

.tt-feed-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tt-feed-tabs a, .tt-feed-tabs button {
  background: none; border: 0; padding: 4px 2px;
  color: var(--tt-text-2);
  font-size: 16px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  position: relative;
  text-decoration: none;
}
.tt-feed-tabs .active {
  color: #fff;
  font-weight: 700;
}
.tt-feed-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -2px;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: #fff;
}

.tt-topbar .tt-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
  background: none; border: 0;
}

/* ---------- Immersive vertical feed ----------
   Full-bleed snap-scroll viewport; each .tt-slide is one screen. */
.tt-viewport {
  position: relative;
  height: 100dvh;
  height: calc(100dvh - var(--tt-tabbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.tt-viewport::-webkit-scrollbar { display: none; }

.tt-slide {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #000;
}
.tt-slide video, .tt-slide img.tt-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* readability gradient behind the bottom overlay */
.tt-slide::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  pointer-events: none;
}

/* ---------- Right action rail ---------- */
.tt-rail {
  position: absolute;
  right: 6px;
  bottom: 86px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.tt-rail-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px;
  background: none; border: 0; padding: 0;
  color: #fff;
  font-size: 12px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.tt-rail-btn .tt-rail-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
}
.tt-rail-btn .tt-rail-icon ion-icon { font-size: 34px; }
.tt-rail-btn.liked .tt-rail-icon { color: var(--tt-coral); }
.tt-rail-btn.saved .tt-rail-icon { color: var(--tt-violet); }
.tt-rail-btn .tt-count { line-height: 1; }

.tt-rail-avatar {
  position: relative;
  width: 52px; height: 52px;
  margin-bottom: 6px;
}
.tt-rail-avatar img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.tt-rail-follow {
  position: absolute;
  left: 50%; bottom: -9px;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tt-coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0;
}
.tt-rail-follow.following { background: var(--tt-text-3); }

/* ---------- Bottom-left video meta ---------- */
.tt-meta {
  position: absolute;
  left: 12px; right: 84px; bottom: 18px;
  z-index: 15;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.75);
}
.tt-meta .tt-username {
  font-weight: 700; font-size: 17px;
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
}
.tt-meta .tt-caption { font-size: 14px; margin-bottom: 6px; }
.tt-meta .tt-desc {
  font-size: 14px;
  color: rgba(255,255,255,.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.tt-meta .tt-desc .tt-more { font-weight: 700; white-space: nowrap; }
.tt-music {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  max-width: 100%;
}
.tt-music .tt-music-track {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
@keyframes tt-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tt-music .tt-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: tt-marquee 8s linear infinite;
}

/* spinning disc, bottom-right */
.tt-disc {
  position: absolute;
  right: 10px; bottom: 16px;
  z-index: 15;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(20,20,20,.9);
  background: #111;
  animation: tt-spin 6s linear infinite;
}
.tt-disc img { width: 100%; height: 100%; object-fit: cover; }
@keyframes tt-spin { to { transform: rotate(360deg); } }

/* big center play/pause affordance */
.tt-center-toggle {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0;
}
.tt-center-toggle .tt-play-glyph {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.tt-center-toggle.show-glyph .tt-play-glyph { opacity: 1; }

/* double-tap heart burst */
@keyframes tt-heart-pop {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1.25); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}
.tt-heart-burst {
  position: absolute; inset: 0; z-index: 16;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  color: var(--tt-coral);
  opacity: 0;
}
.tt-heart-burst.pop { animation: tt-heart-pop .8s ease forwards; }
.tt-heart-burst ion-icon { font-size: 110px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }

/* ---------- Bottom tab bar — TikTok style ----------
   Overrides .mobile-bottom-nav (5 labeled tabs). */
/* TikTok-style transparent tab bar (2026-09-24, per Fabian: all menus
   transparent). Page content scrolls beneath it; a bottom-up gradient scrim
   plus text/icon shadows keep every tab readable. */
.mobile-bottom-nav {
  background: transparent !important;
  background-image: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%) !important;
  border-top: none !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
.mobile-bottom-nav .mobile-nav-tab {
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
}
.mobile-bottom-nav .mobile-nav-tab .mobile-nav-tab-icon {
  filter: drop-shadow(0 1px 5px rgba(0,0,0,0.95));
}
.mobile-bottom-nav .mobile-nav-tab {
  color: var(--tt-text-2);
  border-radius: 0 !important;
  background: none !important;
  min-height: 52px;
  flex: 1 1 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 4px !important;
}
.mobile-bottom-nav .mobile-nav-tab .mobile-nav-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
}
.mobile-bottom-nav .mobile-nav-tab .mobile-nav-tab-icon ion-icon { font-size: 26px; }
.mobile-bottom-nav .mobile-nav-tab.active { color: #fff !important; }
.mobile-bottom-nav .mobile-nav-tab.active .mobile-nav-tab-label { font-weight: 700; }
.mobile-bottom-nav .mobile-nav-tab.active .mobile-nav-tab-icon { color: #fff; }
/* TikTok create button: white pill with violet offset layers */
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon {
  position: relative;
  width: 48px; height: 32px;
  background: #fff;
  border-radius: 9px;
  display: flex !important; align-items: center; justify-content: center;
}
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon::before,
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 9px;
  z-index: -1;
}
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon::before {
  background: var(--tt-violet);
  transform: translate(-3px, -2px);
}
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon::after {
  background: #B79CFF;
  transform: translate(3px, 2px);
}
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon ion-icon,
.mobile-bottom-nav .mobile-create-toggle .mobile-nav-tab-icon img {
  color: #000; font-size: 22px;
}
.mobile-bottom-nav .mobile-create-toggle.active { color: #fff !important; }
.mobile-bottom-nav .menu-notification-badge {
  background: var(--tt-coral) !important;
  color: #fff !important;
}

/* body offset for the taller labeled tab bar */
body.has-mobile-bottom-nav .flex-fill { padding-bottom: var(--tt-tabbar-h); }

/* ---------- Immersive post cards (feed / for-you) ----------
   Full-bleed media, dark surface, TikTok density. */
.tt-post {
  background: var(--tt-surface);
  border-bottom: 1px solid var(--tt-line);
  color: var(--tt-text);
}
.tt-post .tt-post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.tt-post .tt-post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tt-post .tt-post-names { flex: 1; min-width: 0; }
.tt-post .tt-post-names .tt-name { font-weight: 700; font-size: 15px; display: block; }
.tt-post .tt-post-names .tt-sub { color: var(--tt-text-3); font-size: 12px; }
.tt-post .tt-post-media { position: relative; background: #000; }
.tt-post .tt-post-media img, .tt-post .tt-post-media video { width: 100%; display: block; }
.tt-post .tt-post-body { padding: 10px 14px 14px; font-size: 14.5px; }
.tt-post .tt-post-actions {
  display: flex; align-items: center; gap: 20px;
  padding: 8px 14px 2px;
}
.tt-post .tt-action {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 0;
  color: var(--tt-text-2);
  font-size: 13px; font-weight: 600;
}
.tt-post .tt-action ion-icon { font-size: 24px; }
.tt-post .tt-action.liked { color: var(--tt-coral); }
.tt-post .tt-action.saved { color: var(--tt-violet); }
.tt-post .tt-action.spacer { flex: 1; }

/* ---------- Profile — TikTok layout primitives ---------- */
.tt-profile-top { padding: 18px 16px 8px; text-align: center; }
.tt-profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 10px; display: block;
  border: 2px solid var(--tt-line);
}
.tt-profile-name { font-size: 20px; font-weight: 700; }
.tt-profile-handle { color: var(--tt-text-2); font-size: 14px; margin-bottom: 12px; }
.tt-stats-row {
  display: flex; justify-content: center; gap: 28px;
  margin: 6px 0 12px;
}
.tt-stat { text-align: center; }
.tt-stat b { display: block; font-size: 17px; }
.tt-stat span { color: var(--tt-text-3); font-size: 12.5px; }
.tt-profile-actions {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 12px;
}
.tt-profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--tt-line);
  position: sticky; top: 0; z-index: 5;
  background: var(--tt-bg);
}
.tt-profile-tabs a, .tt-profile-tabs button {
  flex: 1; padding: 12px 0 10px;
  background: none; border: 0;
  color: var(--tt-text-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  text-decoration: none;
}
.tt-profile-tabs a ion-icon, .tt-profile-tabs button ion-icon { font-size: 24px; }
.tt-profile-tabs .active { color: #fff; }
.tt-profile-tabs .active::after {
  content: ""; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2.5px; background: #fff; border-radius: 2px;
}
.tt-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tt-media-grid .tt-cell { position: relative; aspect-ratio: 3/4; background: #0a0a0c; overflow: hidden; }
.tt-media-grid .tt-cell img { width: 100%; height: 100%; object-fit: cover; }
.tt-media-grid .tt-cell .tt-cell-badge {
  position: absolute; left: 6px; bottom: 6px;
  color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

/* ---------- Buttons / inputs / sheets — dark ---------- */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 10px;
  font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer;
  text-decoration: none;
}
.tt-btn-primary { background: var(--tt-violet); color: #fff; }
.tt-btn-primary:hover { background: #6E2BEA; color: #fff; }
.tt-btn-ghost {
  background: var(--tt-surface-2); color: var(--tt-text);
  border: 1px solid var(--tt-line);
}
.tt-btn-block { width: 100%; }

.card {
  background-color: var(--tt-surface) !important;
  border-color: var(--tt-line) !important;
  color: var(--tt-text) !important;
  border-radius: var(--tt-radius);
}
.card-header, .card-footer {
  background-color: rgba(255,255,255,.02) !important;
  border-color: var(--tt-line) !important;
}

.modal-content {
  background-color: var(--tt-surface) !important;
  color: var(--tt-text) !important;
  border: 1px solid var(--tt-line) !important;
  border-radius: 18px !important;
}
.modal-header, .modal-footer { border-color: var(--tt-line) !important; }
.close { color: #fff !important; opacity: .7; text-shadow: none; }

.dropdown-menu {
  background-color: var(--tt-surface-2) !important;
  border: 1px solid var(--tt-line) !important;
  border-radius: 14px !important;
  color: var(--tt-text);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.dropdown-item { color: var(--tt-text-2) !important; }
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--tt-violet-soft) !important;
  color: #fff !important;
}
.dropdown-divider { border-color: var(--tt-line) !important; }

.form-control, .custom-select {
  background-color: var(--tt-surface-2) !important;
  border: 1px solid var(--tt-line) !important;
  color: var(--tt-text) !important;
  border-radius: 10px !important;
  min-height: 46px;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--tt-violet) !important;
  box-shadow: 0 0 0 3px rgba(124,60,255,.25) !important;
  background-color: var(--tt-surface-2) !important;
  color: var(--tt-text) !important;
}
.form-control::placeholder { color: var(--tt-text-3) !important; }
.input-group-text {
  background-color: var(--tt-surface-2) !important;
  border-color: var(--tt-line) !important;
  color: var(--tt-text-2) !important;
}
label, .col-form-label { color: var(--tt-text-2); }

.table { color: var(--tt-text) !important; }
.table th, .table td { border-color: var(--tt-line) !important; }
.table thead th { border-bottom: 2px solid var(--tt-line) !important; color: var(--tt-text-2); }
.table-hover tbody tr:hover { background: rgba(255,255,255,.03); }

.list-group-item {
  background-color: var(--tt-surface) !important;
  border-color: var(--tt-line) !important;
  color: var(--tt-text) !important;
}

.badge { border-radius: 999px; }
.nav-pills .nav-link { color: var(--tt-text-2); border-radius: 999px; }
.nav-pills .nav-link.active { background: var(--tt-violet) !important; color: #fff !important; }

.alert { border-radius: 12px; border: 1px solid var(--tt-line); }

.toast {
  background-color: var(--tt-surface-2) !important;
  border: 1px solid var(--tt-line) !important;
  color: var(--tt-text) !important;
  border-radius: 12px !important;
}

/* ---------- Chat (messages) ---------- */
.tt-chat-list .list-group-item { border-left: 0; border-right: 0; border-radius: 0; }
.tt-chat-list .tt-conv-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.tt-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
}
.tt-bubble-in {
  background: var(--tt-surface-2);
  color: var(--tt-text);
  border-bottom-left-radius: 6px;
}
.tt-bubble-out {
  background: var(--tt-violet);
  color: #fff;
  border-bottom-right-radius: 6px;
  margin-left: auto;
}

/* ---------- Desktop side menu — minimal dark ---------- */
@media (min-width: 768px) {
  .side-menu, .sidebar, #side-menu {
    background: var(--tt-bg) !important;
  }
  .side-menu .nav-link, .sidebar .nav-link {
    color: var(--tt-text-2) !important;
    border-radius: 10px;
    font-weight: 600;
  }
  .side-menu .nav-link:hover, .sidebar .nav-link:hover {
    background: rgba(255,255,255,.05) !important;
    color: #fff !important;
  }
  .side-menu .nav-link.active, .sidebar .nav-link.active {
    color: #fff !important;
    background: var(--tt-violet-soft) !important;
  }
}

/* ---------- Empty states ---------- */
.tt-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--tt-text-2);
}
.tt-empty .tt-empty-icon {
  width: 84px; height: 84px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--tt-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--tt-text-3);
}
.tt-empty .tt-empty-icon ion-icon { font-size: 38px; }
.tt-empty h5 { color: #fff; font-weight: 700; margin-bottom: 6px; }

/* ---------- Page headers (secondary screens) ---------- */
.tt-page-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5,5,7,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tt-line);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 10px;
  display: flex; align-items: center; gap: 10px;
}
.tt-page-head h1, .tt-page-head h2, .tt-page-head h5 {
  margin: 0; font-size: 17px; font-weight: 700; flex: 1;
  text-align: center;
}
.tt-back-btn {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; border-radius: 50%;
}
.tt-back-btn ion-icon { font-size: 24px; }

/* ---------- Utilities ---------- */
.tt-text-shadow { text-shadow: 0 1px 5px rgba(0,0,0,.75); }
.tt-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-divider { height: 8px; background: #000; border: 0; }
.tt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-line);
  color: var(--tt-text-2); font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.tt-chip.active { background: #fff; color: #000; border-color: #fff; }
.tt-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tt-coral);
  display: inline-block;
  animation: tt-pulse 1.6s ease infinite;
}
@keyframes tt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* story ring (aligns with story-indicators.css, TikTok gradient) */
.tt-story-ring {
  padding: 2.5px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--tt-violet), #B79CFF, var(--tt-violet));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tt-disc, .tt-music .tt-marquee-inner, .tt-live-dot { animation: none !important; }
  .tt-viewport { scroll-snap-type: none; }
  .tt-center-toggle .tt-play-glyph { transition: none; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .tt-rail { right: auto; left: 6px; }
[dir="rtl"] .tt-meta { left: 84px; right: 12px; }
[dir="rtl"] .tt-disc { right: auto; left: 10px; }
[dir="rtl"] .tt-bubble-out { margin-left: 0; margin-right: auto; }

/* ---------- Fabavio desktop nav — TikTok minimal (2026-09-23) ---------- */
@media (min-width: 768px) {
  .fab-desk-nav {
    display: flex; flex-direction: column; gap: 2px;
    padding: 20px 12px; position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
    background: var(--tt-bg, #000);
    border-right: 1px solid rgba(255,255,255,.08);
    min-width: 240px;
  }
  .fab-desk-logo { display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 18px; text-decoration: none; }
  .fab-desk-logo-mark { width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg,#7c3aed,#a855f7);
    color: #fff; font-weight: 800; display: flex;
    align-items: center; justify-content: center; font-size: 15px; }
  .fab-desk-logo-word { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
  .fab-desk-link { display: flex; align-items: center; gap: 14px;
    padding: 10px 12px; border-radius: 10px; color: #d4d4d4;
    font-size: 16px; font-weight: 600; text-decoration: none;
    border: 0; background: none; width: 100%; cursor: pointer; }
  .fab-desk-link:hover { background: rgba(255,255,255,.06); color: #fff; }
  .fab-desk-link.active { color: #fff; background: rgba(124,58,237,.18); }
  .fab-desk-link.active svg { color: #a855f7; }
  .fab-desk-create { display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px 4px 6px; padding: 12px; border-radius: 12px;
    background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff;
    font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
  .fab-desk-create:hover { filter: brightness(1.1); color: #fff; }
  .fab-desk-section { margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08); }
  .fab-desk-more { position: relative; margin-top: auto; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08); }
  .fab-desk-more-menu { position: absolute; bottom: calc(100% + 6px); left: 0;
    min-width: 200px; background: #171717; border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 6px; z-index: 60;
    box-shadow: 0 12px 32px rgba(0,0,0,.5); }
  .fab-desk-more-menu a { display: block; padding: 10px 12px; border-radius: 8px;
    color: #e5e5e5; text-decoration: none; font-size: 14px; font-weight: 600; }
  .fab-desk-more-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .fab-desk-user { display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 8px; border-radius: 12px;
    text-decoration: none; color: #e5e5e5; }
  .fab-desk-user:hover { background: rgba(255,255,255,.05); }
  .fab-desk-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .fab-desk-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
  .fab-desk-user-meta strong { font-size: 14px; color: #fff; }
  .fab-desk-user-meta small { font-size: 12px; color: #a3a3a3; }
}
