/* =====================================================================
   Norynex v1.68 – Einstellungen, Verlauf, Glücksrad, Sticker, Upload,
   Hashtags, Nachrichten, Anmeldung
   Bewusst ruhig gehalten: flache Flächen, klare Linien, eine Akzentfarbe.
   ===================================================================== */

html.nx-reduce-motion *, html.nx-reduce-motion *::before, html.nx-reduce-motion *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important; scroll-behavior: auto !important;
}

/* ---------- gemeinsame Bausteine ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.st-btn:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.18); }
.st-btn:disabled { opacity: .5; cursor: default; }
.st-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.st-btn-danger { color: #f87171; border-color: rgba(248,113,113,0.35); background: transparent; }
.st-btn-danger:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.55); }

.st-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-switch-track { position: absolute; inset: 0; border-radius: 22px; background: var(--bg-hover); border: 1px solid var(--border); transition: background .18s, border-color .18s; }
.st-switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .18s; }
.st-switch input:checked + .st-switch-track { background: var(--accent); border-color: var(--accent); }
.st-switch input:checked + .st-switch-track .st-switch-thumb { transform: translateX(18px); }
.st-switch input:focus-visible + .st-switch-track { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.st-switch.is-disabled { opacity: .5; cursor: default; }

.st-select {
  height: 34px; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa4b6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.st-select option { background: var(--bg-card); color: var(--text-primary); }

.st-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-hover); border: 1px solid var(--border); }
.st-seg button { height: 28px; padding: 0 12px; border-radius: 6px; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-seg button.is-on { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* ---------- Einstellungen ---------- */
.st-page { max-width: 1040px; }
.st-head h2 { font-size: 22px; font-weight: 800; margin: 4px 0 20px; }
.st-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.st-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.st-nav-item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.st-nav-item i { width: 18px; text-align: center; font-size: 14px; color: var(--text-muted); }
.st-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.st-nav-item.is-active { background: var(--bg-hover); color: var(--text-primary); }
.st-nav-item.is-active i { color: var(--accent-text); }
.st-content { min-width: 0; }
.st-section-title { font-size: 18px; font-weight: 700; margin: 2px 0 16px; }
.st-group { margin-bottom: 24px; }
.st-group-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px 2px; }
.st-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; }
.st-row + .st-row { border-top: 1px solid var(--border-light); }
.st-row.is-link { cursor: pointer; }
.st-row.is-link:hover { background: var(--bg-hover); }
.st-row-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-secondary); font-size: 14px; }
.st-row-text { flex: 1; min-width: 0; }
.st-row-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.st-row-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.st-row-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.st-chev { color: var(--text-muted); font-size: 12px; }
.st-row.is-danger .st-row-title { color: #f87171; }
.st-row.is-danger .st-row-icon { color: #f87171; background: rgba(248,113,113,0.1); }
.st-note { font-size: 12px; color: var(--text-muted); margin: 8px 2px 0; }
.st-profile { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); margin-bottom: 24px; }
.st-profile-text { flex: 1; min-width: 0; }
.st-profile-name { font-size: 17px; font-weight: 700; }
.st-profile-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.st-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); }
.st-badge-gold { color: #f5b942; border-color: rgba(245,185,66,0.35); background: rgba(245,185,66,0.08); }
.st-login-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); margin-bottom: 24px; }
.st-login-hint strong { display: block; font-size: 14px; }
.st-login-hint span { font-size: 13px; color: var(--text-muted); }
.st-login-actions { display: flex; gap: 8px; }

@media (max-width: 820px) {
  .st-layout { grid-template-columns: 1fr; gap: 16px; }
  .st-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin: 0 -4px; scrollbar-width: none; }
  .st-nav::-webkit-scrollbar { display: none; }
  .st-nav-item { flex-shrink: 0; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 18px; font-size: 13px; }
  .st-nav-item i { display: none; }
  .st-nav-item.is-active { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
  .st-row { flex-wrap: wrap; }
  .st-row-control { margin-left: 48px; }
  .st-row:has(.st-switch) { flex-wrap: nowrap; }
  .st-row:has(.st-switch) .st-row-control { margin-left: 0; }
  .st-profile { flex-wrap: wrap; }
}

/* ---------- Verlauf ---------- */
.hist-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; max-width: 1100px; }
.hist-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 6px; padding-top: 52px; }
.hist-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; color: var(--text-muted); }
.hist-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text-primary); font: inherit; font-size: 14px; }
.hist-action { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.hist-action i { width: 18px; text-align: center; color: var(--text-secondary); }
.hist-action:hover { background: var(--bg-hover); }
.hist-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 8px 12px 0; }
.hist-paused-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); margin-bottom: 14px; }
.hist-paused-banner i { font-size: 20px; color: var(--text-secondary); }
.hist-paused-banner strong { display: block; font-size: 14px; }
.hist-paused-banner span { font-size: 12.5px; color: var(--text-muted); }
.hist-list .history-item { position: relative; align-items: flex-start; }
.hist-list .history-item:hover { transform: none; background: var(--bg-hover); }
.hist-remove { margin-left: auto; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.history-item:hover .hist-remove, .hist-remove:focus-visible { opacity: 1; }
.hist-remove:hover { background: var(--bg-card); color: var(--text-primary); }
@media (hover: none) { .hist-remove { opacity: 1; } }
@media (max-width: 900px) {
  .hist-layout { grid-template-columns: 1fr; gap: 0; }
  .hist-side { position: static; order: -1; padding-top: 0; flex-direction: row; flex-wrap: wrap; margin-bottom: 12px; }
  .hist-search { flex: 1 1 100%; }
  .hist-action { border: 1px solid var(--border); height: 34px; font-size: 13px; }
  .hist-note { display: none; }
}

/* ---------- Modale (gemeinsam) ---------- */
.nxv-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,3,8,0.72); backdrop-filter: blur(4px); animation: nxFade .15s ease; }
@keyframes nxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nxPop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.nx-modal { width: 100%; max-width: 480px; max-height: min(88vh, 760px); display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); overflow: hidden; animation: nxPop .18s ease; }
.nx-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.nx-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.nx-modal-head p { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.nx-modal-x { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.nx-modal-x:hover { background: var(--bg-hover); color: var(--text-primary); }
.nx-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-light); background: var(--bg-secondary); }

/* ---------- Glücksrad-Dialog ---------- */
.wh-tabs { display: flex; gap: 4px; margin: 0 18px; padding: 3px; border-radius: 10px; background: var(--bg-hover); }
.wh-modal .wheel-tab-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.wh-modal .wheel-tab-btn i { font-size: 12px; opacity: .8; }
.wh-modal .wheel-tab-btn.active { background: var(--bg-card); color: var(--text-primary); border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wh-crown { color: #f5b942; font-size: 10px !important; opacity: 1 !important; }
.wh-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.wh-count:empty { display: none; }
.wh-body { padding: 14px 18px; overflow-y: auto; flex: 1; min-height: 180px; }
.wh-info { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.wh-modal .wheel-pick-list { gap: 6px; }
.wh-modal .wheel-pick-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-light); font-size: 13.5px; font-weight: 600; }
.wh-idx { width: 22px; text-align: center; font-size: 12px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.wh-thumb { width: 72px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--bg-hover); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.wh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wh-modal .wheel-pick-item .wh-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-modal .wheel-pick-item button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
.wh-modal .wheel-pick-item button:hover { background: var(--bg-hover); color: var(--text-primary); }
.wh-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 26px 10px; min-height: 160px; }
.wh-empty-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-secondary); margin-bottom: 6px; }
.wh-empty strong { font-size: 14.5px; }
.wh-empty p { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); max-width: 320px; line-height: 1.5; }
.wh-foot-info { margin-right: auto; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* ---------- Glücksrad: Drehen ---------- */
.wh-spin-overlay { position: fixed; inset: 0; z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; background: rgba(6,5,10,0.94); animation: nxFade .2s ease; }
.wh-spin-x { position: absolute; top: 16px; right: 16px; color: #fff; }
.wh-spin-head { text-align: center; }
.wh-spin-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.wh-spin-head h3 { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: #fff; }
.wh-stage { position: relative; width: min(360px, 78vw); aspect-ratio: 1; transition: transform .35s ease, width .35s ease; }
.wh-disc { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #1b1722, 0 0 0 7px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.6); overflow: hidden; will-change: transform; }
.wh-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; width: 28px; height: 34px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.wh-hub { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%,-50%); border-radius: 50%; background: #16131c; border: 3px solid rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.wh-hub i { margin-left: 3px; }
.wh-pool { margin: 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.wh-spin-overlay.is-done .wh-stage { width: min(200px, 46vw); }
.wh-spin-overlay.is-done .wh-pool { display: none; }
.wh-result { width: 100%; max-width: 360px; padding: 14px; border-radius: 14px; background: #16131c; border: 1px solid rgba(255,255,255,0.1); animation: nxPop .25s ease; }
.wh-result-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #221d2b; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 26px; }
.wh-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wh-result-thumb span { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 800; }
.wh-result-title { color: #fff; font-weight: 700; font-size: 15px; margin: 12px 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wh-result-actions { display: flex; gap: 8px; }
.wh-result-actions .st-btn { flex: 1; height: 40px; }
.wh-result .st-btn:not(.st-btn-primary) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Sticker-Auswahl ---------- */
.st-pop.stp { width: min(340px, calc(100vw - 24px)); padding: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); overflow: hidden; }
.stp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.stp-head strong { font-size: 14px; }
.stp-link { border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.stp-link i { font-size: 10px; margin-left: 2px; }
.stp-scroll { max-height: 300px; overflow-y: auto; padding: 4px 12px 12px; }
.stp-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 10px 2px 8px; }
.stp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stp-item { position: relative; height: 64px; min-width: 0; border-radius: 10px; border: 1px solid var(--border-light); background: var(--bg-secondary); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; overflow: hidden; }
.stp-item:hover { border-color: var(--border); background: var(--bg-hover); }
.stp-item.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.stp-art { display: flex; align-items: center; justify-content: center; max-width: 100%; transform: scale(.9); }
.stp-art .nx-sticker { max-width: 100%; white-space: nowrap; }
.stp-item.is-locked { height: 76px; }
.stp-item.is-locked .stp-art { opacity: .55; filter: saturate(.5); transform: scale(.8); }
.stp-price { font-size: 11px; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
.stp-price i { font-size: 9px; color: var(--text-muted); }
.stp-empty { display: flex; gap: 10px; align-items: center; padding: 12px; margin-top: 10px; border-radius: 10px; background: var(--bg-secondary); font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.stp-empty i { font-size: 20px; color: var(--text-secondary); }
@media (max-width: 600px) {
  .st-pop.stp { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; z-index: 100000; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .stp-scroll { max-height: 50vh; }
}

/* ---------- Upload-Dialog ---------- */
.upload-modal-box { max-width: 640px; padding: 24px 26px 22px; border-radius: 16px; }
.upload-modal-box > h2 { font-size: 19px; font-weight: 800; margin: 0 0 16px; }
.upload-modal-box .modal-close { top: 18px; right: 18px; border-radius: 8px; background: transparent; }
.upload-modal-box .modal-close:hover { background: var(--bg-hover); }
.upload-modal-box .upload-type-tabs { gap: 4px; padding: 3px; border-radius: 10px; background: var(--bg-hover); margin-bottom: 18px; }
.upload-modal-box .upload-tab { height: 36px; padding: 0 10px; border: 0; border-radius: 8px; font-size: 13.5px; color: var(--text-secondary); background: transparent; }
.upload-modal-box .upload-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.upload-modal-box .upload-tab.active i { color: var(--accent-text); }
.upload-modal-box .drop-zone { border: 1.5px dashed var(--border); border-radius: 12px; background: var(--bg-secondary); padding: 34px 20px; transition: border-color .15s, background .15s; }
.upload-modal-box .drop-zone i { font-size: 30px; color: var(--text-secondary); margin-bottom: 10px; }
.upload-modal-box .drop-zone p { font-size: 14.5px; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; }
.upload-modal-box .drop-zone:hover, .upload-modal-box .drop-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-modal-box .drop-zone:hover i { color: var(--accent-text); }
.upload-modal-box #video-preview-section video { width: 100%; max-height: 300px; border-radius: 12px; background: #000; }
.upload-modal-box .upload-tabs-nav { margin: 18px 0 16px; gap: 4px; }
.upload-modal-box .utab { padding: 10px 12px; font-size: 13.5px; }
.upload-modal-box .utab.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.upload-modal-box .form-group { margin-bottom: 16px; }
.upload-modal-box .form-group label, .upload-modal-box .up-label-row label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.upload-modal-box input[type="text"], .upload-modal-box textarea, .upload-modal-box select, .upload-modal-box input[type="datetime-local"] {
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); font-size: 14px;
}
.upload-modal-box input[type="text"]:focus, .upload-modal-box textarea:focus, .upload-modal-box select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.up-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.up-label-row label { margin: 0 !important; }
.up-count { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.up-count.is-near { color: #f5b942; }
.up-hashtags { margin: -6px 0 16px; }
.up-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.up-hint i { color: var(--text-secondary); margin-top: 2px; font-size: 11px; }
.up-hint b { color: var(--text-secondary); }
.up-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.up-tags[hidden] { display: none; }
.up-tags-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.up-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--bg-hover); border: 1px solid var(--border); color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.up-tag.is-over { color: var(--text-muted); text-decoration: line-through; }
.up-tag-btn { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.up-tag-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-modal-box .thumb-drop { border-radius: 12px; border: 1.5px dashed var(--border); background: var(--bg-secondary); }
.upload-modal-box .nxd-select-btn { height: 42px; border-radius: 10px; }
.upload-modal-box .nxd-select-menu { border-radius: 12px; padding: 4px; }
.upload-modal-box .nxd-select-option { border-radius: 8px; padding: 10px 12px; }
.nxd-select-option.is-selected { background: var(--bg-hover); }
.upload-modal-box #submit-video-btn { height: 46px; border-radius: 12px; font-size: 15px; margin-top: 6px; }
@media (max-width: 640px) {
  .upload-modal-box { padding: 18px 16px 20px !important; }
  .upload-modal-box .form-row { flex-direction: column; }
  .upload-modal-box .form-row > div { width: 100%; }
}

/* ---------- Hashtags ---------- */
a.nx-hashtag { color: var(--accent-text); font-weight: 600; text-decoration: none; }
a.nx-hashtag:hover { text-decoration: underline; }
.ht-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.ht-icon { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; color: var(--accent-text); background: var(--bg-secondary); border: 1px solid var(--border); }
.ht-head h2 { margin: 0; font-size: 26px; font-weight: 800; word-break: break-word; }
.ht-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.ht-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.ht-tab { height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.ht-tab span { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.ht-tab.is-on { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.ht-related { margin-top: 28px; }
.ht-related h3 { font-size: 15px; margin: 0 0 10px; }
.ht-related > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ht-chip span { color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.ht-chip:hover { background: var(--bg-hover); }
@media (max-width: 600px) { .ht-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; } .ht-head h2 { font-size: 21px; } }

/* ---------- Warteschlange & Speichern ---------- */
.video-card .video-thumb .queue-add-btn { top: 8px; right: 8px; bottom: auto; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,0.72); border: 0; font-size: 12px; }
.queue-add-btn.is-in { opacity: 1 !important; background: var(--accent) !important; }
.queue-add-btn:hover { transform: none !important; }
@media (hover: none) { .video-card .video-thumb .queue-add-btn { opacity: .9; } }
.action-btn.nx-save-btn.active { color: var(--text-primary); background: var(--bg-hover); }
.action-btn.nx-save-btn.active i { color: var(--accent-text); }

/* ---------- Anmeldung ---------- */
#auth-modal .modal-close { z-index: 6; }          /* X lag hinter dem Kopfbereich und war nicht klickbar */
#auth-modal .auth-hero { z-index: 1; }
.reg-hint { display: block; min-height: 16px; margin-top: 5px; font-size: 12px; color: var(--text-muted); }
.reg-hint.is-ok, #gs-username-hint.is-ok { color: #4ade80; }
.reg-hint.is-bad, #gs-username-hint.is-bad { color: #f87171; }
.gs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.45; cursor: pointer; }
.gs-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.gs-check a { color: var(--accent-text); font-weight: 600; }
.gs-modal { max-width: 440px; }
.gs-body { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.gs-account { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-light); }
.gs-account img, .gs-account-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gs-account-fallback { display: flex; align-items: center; justify-content: center; background: var(--bg-hover); color: var(--text-secondary); }
.gs-account > div:not(.gs-account-fallback) { flex: 1; min-width: 0; }
.gs-account-label { font-size: 11.5px; color: var(--text-muted); }
.gs-account-mail { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-account-ok { color: #4ade80; }
.gs-field { display: flex; flex-direction: column; gap: 6px; }
.gs-field > span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.gs-field input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 14px; outline: none; width: 100%; box-sizing: border-box; }
.gs-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gs-field small { font-size: 12px; color: var(--text-muted); }
.gs-input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-secondary); overflow: hidden; }
.gs-input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gs-input-prefix em { font-style: normal; padding: 0 0 0 12px; color: var(--text-muted); font-weight: 600; }
.gs-input-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 4px; }
.gs-error { min-height: 18px; font-size: 13px; color: #f87171; }

/* ---------- Direktnachrichten ---------- */
.nav-item .dm-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.nav-item .dm-badge[hidden] { display: none; }
.ch-msg-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ch-msg-btn:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.18); }
.dm-panel-all { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 20px); margin: 8px 10px 12px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.dm-shell { display: grid; grid-template-columns: 340px 1fr; height: calc(100dvh - var(--header-h) - 40px); min-height: 440px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-secondary); }
.dm-list { display: flex; flex-direction: column; border-right: 1px solid var(--border-light); min-height: 0; }
.dm-list-head { padding: 16px 16px 10px; }
.dm-list-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.dm-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--bg-hover); color: var(--text-muted); font-size: 13px; }
.dm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; }
.dm-convs { flex: 1; overflow-y: auto; padding: 4px 6px 10px; }
.dm-conv { display: flex; gap: 12px; width: 100%; align-items: center; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.dm-conv:hover { background: var(--bg-hover); }
.dm-conv.is-active { background: var(--bg-hover); }
.dm-conv-av { flex-shrink: 0; }
.dm-conv-main { flex: 1; min-width: 0; }
.dm-conv-top, .dm-conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-conv-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-conv-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
.dm-conv-last { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.dm-conv.is-unread .dm-conv-name, .dm-conv.is-unread .dm-conv-last { color: var(--text-primary); font-weight: 700; }
.dm-conv-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dm-empty { padding: 30px 18px; text-align: center; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.dm-loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--text-muted); font-size: 18px; }

.dm-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-primary); }
.dm-thread-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); background: var(--bg-secondary); }
.dm-back { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 16px; }
.dm-thread-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.dm-thread-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; }
.dm-thread-sub { font-size: 12.5px; color: var(--text-muted); }
.dm-thread-sub.is-typing { color: var(--accent-text); }
.dm-msgs { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 2px; }
.dm-day { text-align: center; margin: 14px 0 8px; }
.dm-day span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-secondary); padding: 3px 10px; border-radius: 10px; }
.dm-msg { display: flex; flex-direction: column; max-width: min(72%, 560px); margin-top: 4px; }
.dm-msg.is-me { align-self: flex-end; align-items: flex-end; }
.dm-msg.is-them { align-self: flex-start; align-items: flex-start; }
.dm-bubble { padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; }
.dm-msg.is-me .dm-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.dm-msg.is-me .dm-bubble a, .dm-msg.is-me .dm-bubble .mention-tag, .dm-msg.is-me .dm-bubble .nx-hashtag { color: #fff !important; text-decoration: underline; }
.dm-msg.is-them .dm-bubble { background: var(--bg-card); border: 1px solid var(--border-light); border-bottom-left-radius: 5px; }
.dm-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); margin: 3px 4px 0; }
.dm-read { font-size: 10px; }
.fa-check-double.dm-read { color: var(--accent-text); }
.dm-unsend { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; padding: 0 2px; opacity: 0; }
.dm-msg:hover .dm-unsend { opacity: 1; }
.dm-msg.is-pending { opacity: .65; }
.dm-msg.is-failed .dm-bubble { background: rgba(248,113,113,.2); color: var(--text-primary); }
.dm-first { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px; }
.dm-first strong { font-size: 16px; margin-top: 8px; }
.dm-first span { font-size: 13px; color: var(--text-muted); }
.dm-first p { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; max-width: 280px; }
.dm-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border-light); background: var(--bg-secondary); }
.dm-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 10px 14px; border-radius: 21px; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 14.5px; line-height: 1.4; outline: none; box-sizing: border-box; }
.dm-compose textarea:focus { border-color: var(--accent); }
.dm-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.dm-send:disabled { background: var(--bg-hover); color: var(--text-muted); cursor: default; }
.dm-blocked { padding: 16px; text-align: center; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-light); }
.dm-placeholder { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px; color: var(--text-muted); }
.dm-placeholder-icon { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-secondary); margin-bottom: 8px; }
.dm-placeholder strong { color: var(--text-primary); font-size: 17px; }
.dm-placeholder p { margin: 0; font-size: 13.5px; max-width: 300px; }
@media (max-width: 820px) {
  .dm-shell { grid-template-columns: 1fr; height: calc(100dvh - var(--header-h) - 76px); border-radius: 0; border-left: 0; border-right: 0; margin: 0 -12px; }
  .dm-shell .dm-thread { display: none; }
  .dm-shell.has-thread .dm-list { display: none; }
  .dm-shell.has-thread .dm-thread { display: flex; }
  .dm-back { display: inline-flex; align-items: center; justify-content: center; }
  .dm-msg { max-width: 85%; }
  .dm-unsend { opacity: 1; }
}
.wh-modal .wheel-pick-item .wh-idx { flex: 0 0 22px; }
.gs-account > .gs-account-fallback { flex: 0 0 36px; }
