/* =====================================================================
   Norynex v1.69 – Blockieren, Playlists, Altersabfrage, Kindersicherung
   ===================================================================== */

/* ---------- gemeinsame Bausteine ---------- */
.nx-modal-body { padding: 4px 18px 16px; overflow-y: auto; }
.nx-modal-wide { max-width: 640px; }
.nx-muted { color: var(--text-muted); font-size: 13px; }
.nx-pop { position: fixed; z-index: 100001; min-width: 210px; padding: 5px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: nxPop .14s ease; }
.nx-pop button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.nx-pop button i { width: 16px; text-align: center; color: var(--text-secondary); }
.nx-pop button:hover { background: var(--bg-hover); }
.nx-pop button.is-danger, .nx-pop button.is-danger i { color: #f87171; }
.nx-list { display: flex; flex-direction: column; gap: 4px; }
.nx-list-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.nx-list-row:hover { background: var(--bg-hover); }
.nx-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-list-main strong { font-size: 14px; }
.nx-list-main span { font-size: 12.5px; color: var(--text-muted); }
.nx-check-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.nx-check-row:hover { background: var(--bg-hover); }
.nx-check-row input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.nx-check-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-check-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-check-main span { font-size: 12px; color: var(--text-muted); }
.nx-check-vis { color: var(--text-muted); font-size: 12px; }
.nx-pl-new { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.st-badge-kids { color: #7dd3fc; border-color: rgba(125,211,252,.35); background: rgba(125,211,252,.08); }

/* ---------- Kanal: Mehr-Menü & Blockiert-Hinweis ---------- */
.ch-more-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); cursor: pointer; font-size: 14px; flex-shrink: 0; }
.ch-more-btn:hover { background: var(--bg-card); }
.nx-blocked-banner { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(248,113,113,.3); background: rgba(248,113,113,.06); }
.nx-blocked-banner > i { font-size: 20px; color: #f87171; }
.nx-blocked-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-blocked-banner strong { font-size: 14px; }
.nx-blocked-banner span { font-size: 13px; color: var(--text-muted); }
.dm-msg.is-them .dm-meta .dm-unsend { opacity: 0; }
.dm-msg.is-them:hover .dm-meta .dm-unsend { opacity: 1; }

/* ---------- Playlists ---------- */
.nx-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.nx-pl-card { cursor: pointer; }
.nx-pl-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 24px; box-shadow: 6px -6px 0 -2px var(--bg-hover); margin-top: 6px; }
.nx-pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-pl-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.nx-pl-count i { font-size: 10px; }
.nx-pl-info { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.nx-pl-info strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-pl-info span { font-size: 12.5px; color: var(--text-muted); }
.nx-pl-card:hover .nx-pl-thumb img { opacity: .9; }

.nx-pl-page { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.nx-pl-hero { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border); }
.nx-pl-hero-thumb { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 30px; margin-bottom: 16px; }
.nx-pl-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-pl-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; word-break: break-word; }
.nx-pl-owner { font-size: 14px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.nx-pl-owner:hover { text-decoration: underline; }
.nx-pl-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.nx-pl-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 12px 0 0; }
.nx-pl-actions { display: flex; gap: 8px; margin-top: 16px; }
.nx-pl-actions .st-btn { flex: 1; height: 40px; }
.nx-pl-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-pl-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; }
.nx-pl-item:hover { background: var(--bg-hover); }
.nx-pl-idx { width: 24px; text-align: center; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.nx-pl-item-thumb { position: relative; width: 160px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg-secondary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.nx-pl-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-pl-item-thumb span { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 700; }
.nx-pl-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nx-pl-item-info strong { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-pl-item-info span { font-size: 12.5px; color: var(--text-muted); }
.nx-pl-item-ctl { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.nx-pl-item:hover .nx-pl-item-ctl { opacity: 1; }
.nx-pl-item-ctl button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
.nx-pl-item-ctl button:hover:not(:disabled) { background: var(--bg-card); color: var(--text-primary); }
.nx-pl-item-ctl button:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .nx-pl-item-ctl { opacity: 1; } }
@media (max-width: 900px) {
  .nx-pl-page { grid-template-columns: 1fr; }
  .nx-pl-hero { position: static; }
  .nx-pl-item-thumb { width: 120px; }
}

/* ---------- Altersabfrage ---------- */
.ag-gate { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 20px; background:
  radial-gradient(1000px 600px at 50% -10%, rgba(168,59,255,.18), transparent 60%), rgba(8,7,12,.96); overflow-y: auto; animation: nxFade .2s ease; }
.ag-card { width: 100%; max-width: 480px; margin: auto; padding: 22px 26px 26px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: nxPop .22s ease; }
.ag-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ag-logo { width: 32px; height: 32px; }
.ag-steps { display: flex; gap: 6px; }
.ag-steps span { width: 26px; height: 4px; border-radius: 2px; background: var(--bg-hover); }
.ag-steps span.is-on { background: var(--accent); }
.ag-logout { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ag-logout:hover { color: var(--text-primary); }
.ag-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ag-lead { margin: 0 0 20px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.ag-choices { display: flex; flex-direction: column; gap: 10px; }
.ag-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ag-choice:hover { border-color: var(--accent); background: var(--bg-hover); transform: translateY(-1px); }
.ag-choice > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ag-choice b { font-size: 15px; }
.ag-choice small { font-size: 13px; color: var(--text-muted); }
.ag-choice > i { color: var(--text-muted); }
.ag-choice-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.ag-choice-icon.is-kids { background: rgba(125,211,252,.12); color: #7dd3fc; }
.ag-more { margin-top: 18px; border-top: 1px solid var(--border-light); padding-top: 14px; }
.ag-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); list-style: none; }
.ag-more summary::-webkit-details-marker { display: none; }
.ag-more summary::after { content: '+'; float: right; color: var(--text-muted); }
.ag-more[open] summary::after { content: '–'; }
.ag-tiers { display: grid; gap: 8px; margin-top: 12px; }
.ag-tier { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-secondary); }
.ag-tier i { width: 20px; text-align: center; color: var(--accent-text); }
.ag-tier div { display: flex; flex-direction: column; }
.ag-tier b { font-size: 13.5px; }
.ag-tier span { font-size: 12.5px; color: var(--text-muted); }
.ag-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; }
.ag-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 16px 0 8px; }
.ag-date { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.ag-sel { height: 50px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; text-align: center; text-align-last: center; }
.ag-sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ag-sel option { background: var(--bg-card); }
.ag-result { margin-top: 14px; }
.ag-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-light); }
.ag-note > i { font-size: 18px; color: var(--text-secondary); margin-top: 1px; }
.ag-note div { display: flex; flex-direction: column; gap: 2px; }
.ag-note b { font-size: 14px; }
.ag-note span { font-size: 13px; color: var(--text-muted); }
.ag-note.is-ok { border-color: rgba(74,222,128,.3); } .ag-note.is-ok > i { color: #4ade80; }
.ag-note.is-warn { border-color: rgba(245,185,66,.35); } .ag-note.is-warn > i { color: #f5b942; }
.ag-note.is-bad { border-color: rgba(248,113,113,.35); } .ag-note.is-bad > i { color: #f87171; }
.ag-pin { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ag-pin input { height: 52px; min-width: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 22px; font-weight: 800; text-align: center; }
.ag-pin input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ag-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 20px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.ag-primary:hover:not(:disabled) { background: var(--accent-hover); }
.ag-primary:disabled { opacity: .45; cursor: default; }
.ag-secondary { width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ag-hero-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent-text); }
.ag-hero-icon.is-ok { background: rgba(74,222,128,.12); color: #4ade80; }
.ag-hero-icon.is-bad { background: rgba(248,113,113,.12); color: #f87171; }
@media (max-width: 480px) {
  .ag-gate { padding: 0; align-items: stretch; }
  .ag-card { border-radius: 0; min-height: 100%; border: 0; padding: 18px 18px 28px; }
  .ag-pin { gap: 6px; } .ag-pin input { height: 46px; }
}

/* ---------- Kindersicherung & Kindermodus ---------- */
.pc-status { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 20px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border); flex-wrap: wrap; }
.pc-status.is-on { border-color: rgba(125,211,252,.35); background: linear-gradient(0deg, rgba(125,211,252,.05), rgba(125,211,252,.05)), var(--bg-secondary); }
.pc-status-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--bg-hover); color: var(--text-secondary); flex-shrink: 0; }
.pc-status.is-on .pc-status-icon { background: rgba(125,211,252,.14); color: #7dd3fc; }
.pc-status-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pc-status-text strong { font-size: 15px; }
.pc-status-text span { font-size: 13px; color: var(--text-muted); }
.pc-unlocked { font-size: 12.5px; font-weight: 700; color: #4ade80; display: inline-flex; gap: 6px; align-items: center; }
.nx-kids-badge { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin-right: 6px; border-radius: 16px; border: 1px solid rgba(125,211,252,.35); background: rgba(125,211,252,.1); color: #7dd3fc; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
html.nx-kids #upload-btn-header, html.nx-kids .create-post-bar, html.nx-kids #studio-link { display: none !important; }
html.nx-kids-nosearch .search-bar, html.nx-kids-nosearch #mobile-search-btn, html.nx-kids-nosearch .header-center { visibility: hidden; }
html.nx-kids-nocomments .comments-section, html.nx-kids-nocomments .short-action[id^="short-comment-"] { display: none !important; }
html.nx-kids-nomessages #messages-link, html.nx-kids-nomessages .ch-msg-btn, html.nx-kids-nomessages #notif-tab-btn-messages { display: none !important; }
@media (max-width: 600px) { .nx-kids-badge span { display: none; } .nx-kids-badge { padding: 0 10px; } }
