/* DouyinHelper — display-only favorites wall
   Tokens & glass adapted from WyPlayer; Douyin magenta/cyan accents */

:root {
  --primary-color: #ffffff;
  --on-primary-color: #0a0a0f;
  --accent: #fe2c55;
  --accent-soft: rgba(254, 44, 85, 0.18);
  --accent-glow: rgba(254, 44, 85, 0.45);
  --accent2: #25f4ee;
  --accent2-soft: rgba(37, 244, 238, 0.12);

  --bg-base: #0a0a0f;
  --bg-elevated: #14141a;
  --bg-hover: #1e1e26;

  --surface-color: rgba(255, 255, 255, 0.08);
  --surface-container-color: rgba(255, 255, 255, 0.05);
  --surface-container-high-color: rgba(255, 255, 255, 0.12);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.45);

  --outline-color: rgba(255, 255, 255, 0.08);
  --outline-hover: rgba(255, 255, 255, 0.16);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-primary: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 320ms cubic-bezier(0.22, 1, 0.36, 1);

  --glass-blur: 32px;
  --glass-border: 1px solid var(--outline-color);
  --glass-bg: var(--surface-color);

  --danger: #ff6b7a;
  --ok: #3dd68c;
  --z-modal: 120;
  --z-toast: 200;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-base);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  background-attachment: fixed;
}

body.modal-open {
  overflow: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(980px 560px at 8% -10%, rgba(254, 44, 85, 0.22), transparent 55%),
    radial-gradient(720px 480px at 96% 4%, rgba(37, 244, 238, 0.12), transparent 50%),
    radial-gradient(640px 420px at 50% 110%, rgba(254, 44, 85, 0.08), transparent 55%),
    var(--bg-base);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.mobile-hide {
  display: block;
}

@media (max-width: 640px) {
  .mobile-hide {
    display: none !important;
  }
}

/* ---------- App shell ---------- */

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 96px;
}

@media (min-width: 768px) {
  .app {
    padding: 24px 28px 120px;
  }
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  animation: rise-in 0.45s var(--transition-base) both;
}

/* ---------- Viewer rail (inside topbar, scrolls; account stays fixed) ---------- */

.viewer-rail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px 4px 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
}

.viewer-rail:empty {
  display: none;
}

.viewer-rail::-webkit-scrollbar {
  display: none;
}

.viewer-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 58px;
  max-width: 68px;
  padding: 4px 6px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-spring);
}

.viewer-chip:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.viewer-chip:active {
  transform: scale(0.96);
}

.viewer-chip-ring {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-spring);
}

.viewer-chip-avatar,
.viewer-chip-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--bg-elevated);
}

.viewer-chip-fallback {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.28), rgba(37, 244, 238, 0.16));
}

.viewer-chip-name {
  max-width: 100%;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.viewer-chip.is-active {
  color: var(--text-primary);
}

.viewer-chip.is-active .viewer-chip-ring {
  background: linear-gradient(145deg, #fe2c55, #ff7a93 48%, #25f4ee);
  box-shadow:
    0 0 0 2px rgba(10, 10, 15, 0.95),
    0 8px 22px rgba(254, 44, 85, 0.35);
  transform: scale(1.05);
}

.viewer-chip.is-active .viewer-chip-name {
  font-weight: 750;
}

.viewer-chip.is-self:not(.is-active) .viewer-chip-ring {
  background: rgba(37, 244, 238, 0.22);
}

.topbar .account-entry {
  flex-shrink: 0;
}

/* Account capsule — WyPlayer phone/desktop account-entry idea */

.account-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(16rem, calc(100vw - 9rem));
  height: 44px;
  padding: 4px 14px 4px 5px;
  border-radius: var(--radius-full);
  border: var(--glass-border);
  background: var(--surface-container-high-color);
  color: var(--text-primary);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast), box-shadow var(--transition-fast);
}

.account-entry:hover {
  transform: translateY(-1px);
  border-color: var(--outline-hover);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(254, 44, 85, 0.12);
}

.account-entry:active {
  transform: scale(0.98);
}

.account-avatar,
.account-avatar-fb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.account-avatar {
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.35);
}

.account-avatar-fb {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.28), rgba(37, 244, 238, 0.18));
  color: #fff;
}

.account-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  line-height: 1.15;
  text-align: left;
}

.account-name {
  font-size: 0.78rem;
  font-weight: 700;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-hint {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.account-dot {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 2px rgba(10, 10, 15, 0.5);
}

.account-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.55);
}

.account-dot.warn {
  background: #f5c542;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.45);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #fe2c55, #ff4d6d 55%, #ff7a93);
  color: #fff;
  box-shadow: 0 0 28px rgba(254, 44, 85, 0.35), 0 6px 18px rgba(254, 44, 85, 0.25);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 36px rgba(254, 44, 85, 0.48), 0 8px 22px rgba(254, 44, 85, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-glass {
  background: var(--surface-container-high-color);
  color: var(--text-primary);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
}

.btn-glass:hover {
  background: var(--bg-hover);
  border-color: var(--outline-hover);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface-container-color);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(254, 44, 85, 0.18);
  color: #ffb3c0;
  border: 1px solid rgba(254, 44, 85, 0.35);
}

.btn-danger:hover {
  background: rgba(254, 44, 85, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ---------- Inputs ---------- */

.input,
.textarea {
  width: 100%;
  padding: 12px 16px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--outline-color);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-fast);
  color-scheme: dark;
}

.input:hover,
.textarea:hover {
  border-color: var(--outline-hover);
  background: var(--bg-hover);
}

.input:focus,
.textarea:focus {
  border-color: rgba(254, 44, 85, 0.55);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}

.textarea {
  min-height: 100px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.field {
  text-align: left;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hint {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  line-height: 1.55;
  margin: 0;
}

.pane-lead {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.error {
  color: var(--danger);
  font-size: var(--text-sm);
  margin-top: 10px;
  min-height: 1.2em;
}

.status-line {
  margin-top: 12px;
}

/* ---------- Card wall ---------- */

.wall-section {
  animation: rise-in 0.5s 0.05s var(--transition-base) both;
}

.card-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .card-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .card-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.fav-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-spring), box-shadow var(--transition-spring),
    border-color var(--transition-fast);
  animation: card-in 0.45s var(--transition-spring) both;
  animation-delay: calc(var(--i, 0) * 1ms);
  will-change: transform;
  /* Skip layout/paint for off-screen cards when many are loaded */
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.fav-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(254, 44, 85, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(254, 44, 85, 0.2),
    0 0 32px rgba(254, 44, 85, 0.12);
}

.fav-card:active {
  transform: translateY(-2px) scale(1.005);
}

.fav-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a1a22, #0e0e14);
  overflow: hidden;
}

.fav-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--transition-spring);
}

.fav-card:hover .fav-cover img {
  transform: scale(1.06);
}

.fav-cover-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.fav-open {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%) scale(0.92);
  opacity: 0;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(254, 44, 85, 0.92);
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.45);
  backdrop-filter: blur(8px);
  transition: opacity var(--transition-base), transform var(--transition-spring);
  pointer-events: none;
  white-space: nowrap;
}

.fav-card:hover .fav-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fav-digg {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #ffb3c0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fav-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.fav-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.fav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--text-tertiary);
}

.fav-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--accent2);
  opacity: 0.85;
  font-weight: 600;
}

.fav-time {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- Skeleton ---------- */

.skeleton-wall .skel-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.skel-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #16161e 25%, #22222c 40%, #16161e 55%);
  background-size: 200% 100%;
  animation: shimmer 1.35s ease-in-out infinite;
}

.skel-line {
  height: 10px;
  margin: 12px 12px 0;
  border-radius: 6px;
  background: linear-gradient(110deg, #1a1a22 25%, #2a2a34 40%, #1a1a22 55%);
  background-size: 200% 100%;
  animation: shimmer 1.35s ease-in-out infinite;
}

.skel-line.w90 { width: calc(90% - 24px); }
.skel-line.w95 { width: calc(95% - 24px); }
.skel-line.w85 { width: calc(85% - 24px); }
.skel-line.w80 { width: calc(80% - 24px); }
.skel-line.w75 { width: calc(75% - 24px); }
.skel-line.w70 { width: calc(70% - 24px); }
.skel-line.w65 { width: calc(65% - 24px); }
.skel-line.w60 { width: calc(60% - 24px); }
.skel-line.w55 { width: calc(55% - 24px); }
.skel-line.w50 { width: calc(50% - 24px); }
.skel-line.w40 { width: calc(40% - 24px); }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ---------- Empty ---------- */

.empty-state {
  position: relative;
  text-align: center;
  padding: 64px 24px;
  margin: 12px 0;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.empty-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(254, 44, 85, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.empty-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ff7a93;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.22), rgba(37, 244, 238, 0.1));
  border: 1px solid rgba(254, 44, 85, 0.28);
  box-shadow: 0 12px 36px rgba(254, 44, 85, 0.22);
}

.empty-state h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: var(--text-xl);
  font-weight: 800;
}

.empty-state p {
  position: relative;
  margin: 0 auto;
  max-width: 360px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.wall-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 8px;
}

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 4, 8, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.modal-backdrop.open {
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 28px;
  background: rgba(22, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(254, 44, 85, 0.08),
    0 0 60px rgba(254, 44, 85, 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.28s var(--transition-spring);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon {
  color: var(--accent);
  font-size: 0.9em;
}

.modal-pane {
  animation: rise-in 0.28s ease both;
}

.admin-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.admin-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar,
.admin-avatar-fb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-avatar {
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.3);
}

.admin-avatar-fb {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.25), rgba(37, 244, 238, 0.15));
  color: #fff;
}

.admin-card-text {
  min-width: 0;
  flex: 1;
}

.admin-name {
  font-size: var(--text-sm);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#logoutAdminBtn {
  margin-top: 14px;
}

.watch-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-title {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.watch-lead {
  margin: 0 0 12px;
  line-height: 1.45;
}

.watch-probe {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(37, 244, 238, 0.22);
  background: rgba(37, 244, 238, 0.06);
  display: flex;
  gap: 10px;
  align-items: center;
}

.watch-probe.is-bad {
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.08);
}

.watch-probe-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.watch-probe-text {
  min-width: 0;
  flex: 1;
}

.watch-probe-name {
  font-size: var(--text-sm);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-probe-msg {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.watch-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.watch-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.watch-row-text {
  min-width: 0;
  flex: 1;
}

.watch-row-name {
  font-size: var(--text-sm);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row .btn {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: var(--z-toast);
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
