/* Ted Stars - big send star, count, modal, leaderboard (blue) */
/* ---- Count (stats row) ---- */
.ted-star-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: default;
  text-decoration: none;
  line-height: 1.2;
}
a.ted-star-count:hover {
  text-decoration: none;
  opacity: 0.92;
}
.ted-star-count-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
}
.ted-star-count.is-filled .ted-star-count-icon {
  filter: none;
}
.ted-star-count strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--social-blue, #1d9bf0);
}
a.ted-star-count {
  cursor: pointer;
  text-decoration: none !important;
}
a.ted-star-count:hover .ted-star-count-label,
a.ted-star-count:hover strong {
  color: var(--social-blue-hover, #1a8cd8);
}
.ted-star-count .ted-star-count-label {
  color: var(--social-blue, #1d9bf0);
  opacity: 0.9;
}
.ted-star-count .ted-star-count-label {
  opacity: 0.72;
  font-size: 0.92em;
}

/* ---- Big send button (profile header actions) ---- */
.ted-star-send {
  appearance: none;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.ted-star-send:hover {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.ted-star-send:active {
  transform: scale(0.94);
}
.ted-star-send:focus,
.ted-star-send:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.ted-star-send.is-filled,
.ted-star-send.is-empty {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ted-star-send-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: transform .18s ease, filter .18s ease;
  pointer-events: none;
  user-select: none;
}
.ted-star-send:hover .ted-star-send-icon {
  transform: scale(1.1) rotate(-8deg);
  filter: none;
}
.ted-star-send.is-filled .ted-star-send-icon {
  filter: none;
  animation: tedStarPopFill .35s cubic-bezier(.2, .9, .3, 1.2);
}
.ted-star-send.is-empty .ted-star-send-icon {
  opacity: 0.95;
}
/* Pulse hint for unfilled */
/* no outline / pulse ring around star png */
@keyframes tedStarPulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.35); opacity: 1; }
  70% { box-shadow: 0 0 0 12px rgba(29, 155, 240, 0); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes tedStarPopFill {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Align with profile action buttons */
.profile-header-actions .ted-star-send {
  align-self: center;
}
@media (max-width: 560px) {
  .ted-star-send {
    width: 44px;
    height: 44px;
  }
  .ted-star-send-icon {
    width: 36px;
    height: 36px;
  }
}

/* Legacy single-stat (if any remain) */
.ted-star-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: default;
  text-decoration: none;
  line-height: 1.2;
}

/* ---- Send modal ---- */
.ted-stars-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2147483646 !important;
  display: none;
  font-family: Chirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ted-stars-modal-root.open {
  display: block;
}
.ted-stars-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: tedStarsFadeIn .18s ease;
}
.ted-stars-modal-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}
.ted-stars-modal {
  pointer-events: auto;
  width: min(380px, 100%);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(18, 40, 64, 0.98), rgba(12, 16, 24, 0.99) 55%, rgba(10, 12, 18, 0.99));
  border: 1px solid rgba(29, 155, 240, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 22px 20px 18px;
  color: #e8f4ff;
  animation: tedStarsPop .22s cubic-bezier(.2, .9, .3, 1.15);
}
.ted-stars-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.ted-stars-modal-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: none;
  flex-shrink: 0;
}
.ted-stars-modal-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #f0f8ff;
}
.ted-stars-modal-head p {
  margin: 0;
  color: #9ec8e8;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ted-stars-modal-close {
  margin-left: auto;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #d0e8ff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.ted-stars-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ted-stars-amount-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 8px;
}
.ted-stars-amount-btn {
  appearance: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(29, 155, 240, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #b8e0ff;
  font-weight: 900;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.ted-stars-amount-btn small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ted-stars-amount-btn:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.12);
  border-color: rgba(29, 155, 240, 0.45);
  transform: translateY(-2px);
}
.ted-stars-amount-btn.is-selected {
  background: linear-gradient(180deg, rgba(29, 155, 240, 0.28), rgba(29, 155, 240, 0.18));
  border-color: rgba(29, 155, 240, 0.7);
  box-shadow: 0 8px 22px rgba(29, 155, 240, 0.25);
  color: #e8f6ff;
}
.ted-stars-amount-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.ted-stars-modal-meta {
  text-align: center;
  color: #7aa8c8;
  font-size: 0.82rem;
  margin: 10px 0 16px;
}
.ted-stars-modal-meta strong {
  color: var(--social-blue, #1d9bf0);
}

.ted-stars-modal-actions {
  display: flex;
  gap: 10px;
}
.ted-stars-btn {
  appearance: none;
  flex: 1;
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.ted-stars-btn-primary {
  color: #fff;
  background: var(--social-blue, #1d9bf0);
  box-shadow: 0 8px 22px rgba(29, 155, 240, 0.32);
}
.ted-stars-btn-primary:hover:not(:disabled) {
  background: var(--social-blue-hover, #1a8cd8);
  filter: none;
}
.ted-stars-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}
.ted-stars-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ted-stars-btn-ghost {
  color: #c8e4f8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(29, 155, 240, 0.16);
}

.ted-stars-modal-empty {
  text-align: center;
  padding: 8px 4px 4px;
}
.ted-stars-modal-empty img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 10px;
  filter: grayscale(0.15);
}
.ted-stars-modal-empty h3 {
  margin: 0 0 6px;
  color: #e8f4ff;
  font-size: 1.05rem;
}
.ted-stars-modal-empty p {
  margin: 0 0 16px;
  color: #8eb0c8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ted-stars-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 2147483647 !important;
  background: rgba(20, 18, 12, 0.94);
  color: #e8f4ff;
  border: 1px solid rgba(29, 155, 240, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ted-stars-toast img {
  width: 18px;
  height: 18px;
}
.ted-stars-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes tedStarsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tedStarsPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Leaderboard page ---- */
.ted-stars-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 14px 48px;
}
.ted-stars-hero {
  text-align: center;
  padding: 26px 16px 20px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(29, 155, 240, 0.16), rgba(12, 24, 40, 0.65) 42%, rgba(10, 14, 20, 0.95));
  border: 1px solid rgba(29, 155, 240, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
}
.ted-stars-hero-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.ted-stars-hero-icons img {
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(29, 155, 240, 0.4));
}
.ted-stars-hero-ghost {
  opacity: 0.55;
  margin-bottom: 4px;
}
.ted-stars-hero h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #f0f8ff;
}
.ted-stars-tagline {
  margin: 0 auto;
  max-width: 32em;
  color: #9ec8e8;
  font-size: 0.95rem;
  line-height: 1.45;
}
.ted-stars-my-balance {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.22);
  color: #d8ecff;
  font-size: 0.88rem;
}
.ted-stars-my-balance img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.ted-stars-my-balance strong {
  color: var(--social-blue, #1d9bf0);
}
.ted-stars-refresh-hint {
  color: #7aa8c8;
  font-size: 0.82rem;
}
.ted-stars-login-hint {
  margin: 12px 0 0;
  color: #9ec8e8;
}
.ted-stars-login-hint a {
  color: var(--social-blue, #1d9bf0);
  font-weight: 700;
}

.ted-stars-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ted-stars-tab {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  color: #9ec8e8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ted-stars-tab:hover {
  background: rgba(29, 155, 240, 0.08);
  color: #b8e0ff;
  text-decoration: none;
}
.ted-stars-tab.is-active {
  color: #fff;
  background: var(--social-blue, #1d9bf0);
  border-color: transparent;
}

.ted-stars-board {
  padding: 14px 12px 8px;
  border-radius: 18px;
}
.ted-stars-board-title {
  margin: 0 8px 12px;
  font-size: 1rem;
  color: #d8ecff;
}
.ted-stars-empty {
  text-align: center;
  padding: 28px 16px 32px;
  color: #7aa8c8;
}
.ted-stars-empty img {
  opacity: 0.7;
  margin-bottom: 10px;
}
.ted-stars-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ted-stars-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  margin-bottom: 4px;
}
.ted-stars-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ted-stars-row--gold {
  background: linear-gradient(90deg, rgba(29, 155, 240, 0.14), transparent 70%);
}
.ted-stars-row--silver {
  background: linear-gradient(90deg, rgba(200, 210, 220, 0.1), transparent 70%);
}
.ted-stars-row--bronze {
  background: linear-gradient(90deg, rgba(200, 130, 70, 0.12), transparent 70%);
}
.ted-stars-rank {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  color: #9ec8e8;
  background: rgba(255, 255, 255, 0.05);
}
.ted-stars-row--gold .ted-stars-rank {
  background: rgba(29, 155, 240, 0.22);
  color: var(--social-blue, #1d9bf0);
}
.ted-stars-row--silver .ted-stars-rank {
  background: rgba(200, 210, 220, 0.16);
  color: #e0e8f0;
}
.ted-stars-row--bronze .ted-stars-rank {
  background: rgba(200, 130, 70, 0.18);
  color: #e8b080;
}
.ted-stars-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.ted-stars-user:hover {
  text-decoration: none;
}
.ted-stars-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ted-stars-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.ted-stars-display {
  font-size: 0.95rem;
  color: #e8f4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ted-stars-handle {
  font-size: 0.82rem;
  color: #7aa0c0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ted-stars-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--social-blue, #1d9bf0);
  font-variant-numeric: tabular-nums;
  padding-right: 4px;
}
.ted-stars-count img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ted-stars-footnote {
  margin: 18px 8px 0;
  color: #6a88a0;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.45;
}

/* Preview: big send + count */
.tb-profile-preview-stat-stars-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-size: 14px;
}
.tb-profile-preview-stat-stars-count img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.tb-profile-preview-stat-stars-count strong {
  font-weight: 800;
}
.tb-profile-preview-star-send {
  appearance: none;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 2px;
}
.tb-profile-preview-star-send:hover {
  background: transparent !important;
  border: 0 !important;
}
.tb-profile-preview-star-send img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: none;
  display: block;
}
.tb-profile-preview-star-send.is-filled img {
  filter: drop-shadow(0 3px 10px rgba(29, 155, 240, 0.65));
}

@media (max-width: 560px) {
  .ted-stars-page {
    padding: 8px 10px 40px;
  }
  .ted-stars-amount-btn {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
  }
  .ted-stars-modal {
    padding: 18px 16px 16px;
  }
}


/* Profile music pill (next to stars) - replaces sticky dock */
.profile-music-dock { display: none !important; }

.profile-music-pill {
  appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  max-width: min(92vw, 420px);
  height: 30px;
  padding: 0 11px 0 9px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(29, 155, 240, 0.38) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.16), rgba(29, 155, 240, 0.06)) !important;
  color: var(--social-blue, #1d9bf0) !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.06) inset, 0 4px 14px rgba(29, 155, 240, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1;
  vertical-align: middle;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.profile-music-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}
.profile-music-pill:hover {
  border-color: rgba(29, 155, 240, 0.6) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.24), rgba(29, 155, 240, 0.1)) !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.1) inset, 0 6px 18px rgba(29, 155, 240, 0.18);
}
.profile-music-pill:active {
  transform: scale(0.97);
}
.profile-music-pill:focus-visible {
  outline: 2px solid rgba(29, 155, 240, 0.65);
  outline-offset: 2px;
}
.profile-music-pill.is-playing {
  border-color: rgba(29, 155, 240, 0.7) !important;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.28), rgba(20, 120, 200, 0.14)) !important;
  color: #e8f6ff !important;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.15) inset, 0 0 20px rgba(29, 155, 240, 0.22);
}
.profile-music-pill.is-playing::before {
  animation: profileMusicSheen 2.4s ease-in-out infinite;
}
.profile-music-pill-icon {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
}
.profile-music-pill.is-playing .profile-music-pill-icon {
  font-size: 9px;
  letter-spacing: -1px;
}
.profile-music-pill-label {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.95;
}
.profile-music-pill-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}
.profile-music-pill.is-playing .profile-music-pill-eq {
  display: inline-flex;
}
.profile-music-pill.is-playing .profile-music-pill-icon {
  display: none;
}
.profile-music-pill-eq i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom center;
  animation: profileMusicBar 0.9s ease-in-out infinite;
}
.profile-music-pill-eq i:nth-child(1) { animation-delay: 0s; height: 5px; }
.profile-music-pill-eq i:nth-child(2) { animation-delay: 0.15s; height: 10px; }
.profile-music-pill-eq i:nth-child(3) { animation-delay: 0.28s; height: 7px; }
/* fourth bar removed — 3-bar equalizer */

@keyframes profileMusicBar {
  0%, 100% { transform: scaleY(0.35); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes profileMusicSheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

@media (max-width: 560px) {
  .profile-music-pill {
    max-width: min(94vw, 360px);
    height: 30px;
    padding: 0 10px 0 8px !important;
    font-size: 12px !important;
  }
  .profile-music-pill-label {
    max-width: none;
  }
}

/* Music pill marquee removed — static pill + eq bars (handled in ui-fix) */
  20% { transform: translateX(0); }
  80% { transform: translateX(calc(-100% + 12ch)); }
  100% { transform: translateX(calc(-100% + 12ch)); }
}
.profile-stats-row {
  row-gap: 8px !important;
}

