:root {
  --bg:        #141820;
  --bg2:       #1c2232;
  --bg3:       #232d42;
  --surface:   #2a3550;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --coral:     #ff6b6b;
  --coral-dk:  #e05555;
  --coral-lt:  rgba(255,107,107,0.12);
  --amber:     #fbbf24;
  --amber-lt:  rgba(251,191,36,0.12);
  --teal:      #2dd4bf;
  --teal-lt:   rgba(45,212,191,0.12);
  --blue:      #60a5fa;
  --blue-lt:   rgba(96,165,250,0.12);
  --red:       #f87171;
  --red-lt:    rgba(248,113,113,0.12);
  --text:      #f1f5f9;
  --text2:     #94a3b8;
  --muted:     #64748b;
  --muted2:    #475569;
  --font-d:    'Syne', sans-serif;
  --font-b:    'Outfit', sans-serif;
  --r:         10px;
  --sidebar-w: 232px;
  --trans:     0.18s cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow:    0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 15px; min-height: 100vh; display: flex; overflow-x: hidden; }

#toastContainer { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.1rem; border-radius: var(--r); font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn 0.28s cubic-bezier(.34,1.56,.64,1) both; pointer-events: all; min-width: 240px; max-width: 340px; border: 1px solid; }
.toast.success { background: var(--teal-lt); color: var(--teal); border-color: rgba(45,212,191,0.3); }
.toast.error   { background: var(--red-lt);  color: var(--red);  border-color: rgba(248,113,113,0.3); }
.toast.info    { background: var(--blue-lt); color: var(--blue); border-color: rgba(96,165,250,0.3); }
.toast-out { animation: toastOut 0.22s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateX(20px); } }
.field-error { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-size: 0.76rem; color: var(--red); font-weight: 600; }
.field-error::before { content: '⚠'; }
input.invalid, textarea.invalid { border-color: var(--red) !important; }

/* SIDEBAR */
.sidebar { width: var(--sidebar-w); min-height: 100vh; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.4rem 1rem; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; transition: transform var(--trans); }
.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }
.sidebar-logo { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.logo-favicon { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }
.logo-text { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; color: var(--text); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.5rem; }
.nav-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: background var(--trans), color var(--trans); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg3); color: var(--text2); }
.nav-item.active { background: var(--coral-lt); color: var(--coral); font-weight: 600; }
.sidebar-divider { height: 1px; background: var(--border); margin: 0.8rem 0; }
.sidebar-label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); padding: 0 0.75rem 0.5rem; font-weight: 600; }
.status-filter-group { display: flex; flex-direction: column; gap: 0.1rem; }
.status-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; background: none; border: none; color: var(--muted); padding: 0.45rem 0.75rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.83rem; cursor: pointer; transition: background var(--trans), color var(--trans); font-weight: 400; }
.status-btn:hover { background: var(--bg3); color: var(--text2); }
.status-btn.active { color: var(--amber); font-weight: 600; background: var(--amber-lt); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.all       { background: var(--text2); }
.status-dot.completed { background: var(--teal); }
.status-dot.watching  { background: var(--blue); }
.status-dot.planned   { background: var(--amber); }
.status-dot.dropped   { background: var(--red); }
.btn-add-sidebar { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; background: var(--coral); color: #fff; border: none; padding: 0.75rem; border-radius: var(--r); font-family: var(--font-b); font-size: 0.9rem; font-weight: 600; cursor: pointer; letter-spacing: 0.3px; transition: background var(--trans), transform var(--trans), box-shadow var(--trans); box-shadow: 0 4px 16px rgba(255,107,107,0.35); }
.btn-add-sidebar:hover { background: var(--coral-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,107,0.45); }
.sidebar-credit { margin-top: 1rem; padding: 0.85rem 0.75rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--r); }
.credit-label { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted2); margin-bottom: 0.5rem; font-weight: 600; }
.credit-discord { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.discord-icon { width: 22px; height: 22px; background: #5865f2; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.credit-name { font-family: var(--font-d); font-size: 0.92rem; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.credit-sub { font-size: 0.7rem; color: var(--muted); line-height: 1.4; }

/* MAIN */
.main-wrap { margin-left: var(--sidebar-w); flex: 1; min-width: 0; min-height: 100vh; background: var(--bg); transition: margin-left var(--trans); }
.main-wrap.full { margin-left: 0; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(20,24,32,0.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 2rem; }
.sidebar-toggle { background: none; border: 1px solid var(--border2); color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: color var(--trans), border-color var(--trans), background var(--trans); }
.sidebar-toggle:hover { background: var(--bg3); color: var(--text); border-color: var(--border2); }
.topbar-search { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 0.5rem; background: var(--bg2); border: 1px solid var(--border2); border-radius: 30px; padding: 0.45rem 1rem; transition: border-color var(--trans), box-shadow var(--trans); }
.topbar-search:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,107,0.12); }
.search-icon { color: var(--muted); flex-shrink: 0; }
.topbar-search input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font-b); font-size: 0.88rem; outline: none; }
.topbar-search input::placeholder { color: var(--muted); }
.topbar-right { display: flex; gap: 0.5rem; margin-left: auto; }
.topbar-select { background: var(--bg2); border: 1px solid var(--border2); color: var(--text2); padding: 0.45rem 0.75rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.82rem; outline: none; cursor: pointer; transition: border-color var(--trans); }
.topbar-select:focus { border-color: var(--coral); }
.topbar-select option { background: var(--bg2); }
.content-pad { padding: 0 2rem 3rem; }
.view { display: none; }
.view.active { display: block; }

/* HERO */
.hero { position: relative; min-height: 380px; overflow: hidden; border-radius: 0 0 20px 20px; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #ff6b6b 0%, #fbbf24 50%, #2dd4bf 100%); background-size: cover; background-position: center top; transform: scale(1.06); transition: all 0.8s ease; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,24,32,0.96) 0%, rgba(20,24,32,0.7) 45%, rgba(20,24,32,0.1) 100%), linear-gradient(to top, rgba(20,24,32,1) 0%, transparent 40%); }
.hero-content { position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; max-width: 580px; }
.hero-eyebrow { font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--coral); margin-bottom: 0.5rem; font-weight: 700; }
.hero-title { font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.08; margin-bottom: 0.5rem; color: var(--text); }
.hero-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 0.8rem; }
.hero-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hero-badge { font-size: 0.72rem; padding: 0.22rem 0.7rem; border-radius: 20px; border: 1px solid; letter-spacing: 0.4px; font-weight: 600; }
.hero-badge.rating { border-color: rgba(251,191,36,0.4); color: var(--amber); background: var(--amber-lt); }
.hero-badge.status { border-color: rgba(45,212,191,0.4); color: var(--teal); background: var(--teal-lt); }
.hero-badge.tag    { border-color: var(--border2); color: var(--text2); background: rgba(255,255,255,0.05); }
.hero-actions { display: flex; gap: 0.7rem; }
.hero-cta { background: var(--coral); color: #fff; border: none; padding: 0.65rem 1.4rem; border-radius: var(--r); font-family: var(--font-b); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background var(--trans), transform var(--trans); box-shadow: 0 4px 16px rgba(255,107,107,0.35); }
.hero-cta:hover { background: var(--coral-dk); transform: translateY(-1px); }

/* STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.9rem; padding: 1.8rem 0 0; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform var(--trans), box-shadow var(--trans); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; border-radius: 2px 0 0 2px; }
.stat-card.s1::before { background: var(--coral); }
.stat-card.s2::before { background: var(--teal); }
.stat-card.s3::before { background: var(--amber); }
.stat-card.s4::before { background: var(--blue); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-d); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-card.s1 .stat-num { color: var(--coral); }
.stat-card.s2 .stat-num { color: var(--teal); }
.stat-card.s3 .stat-num { color: var(--amber); }
.stat-card.s4 .stat-num { color: var(--blue); }
.stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* SECTION */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; margin-top: 1.8rem; }
.section-title { font-family: var(--font-d); font-size: 1rem; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.see-all { font-size: 0.78rem; color: var(--coral); text-decoration: none; font-weight: 600; transition: opacity var(--trans); }
.see-all:hover { opacity: 0.75; }

/* TAG CLOUD */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-chip { padding: 0.28rem 0.8rem; border-radius: 20px; border: 1px solid var(--border2); color: var(--text2); font-size: 0.77rem; cursor: pointer; background: var(--bg2); transition: all var(--trans); user-select: none; font-weight: 500; }
.tag-chip:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-lt); }
.tag-chip.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; }

/* HORIZONTAL SCROLL */
.horizontal-scroll { display: flex; gap: 0.9rem; overflow-x: auto; padding-bottom: 0.8rem; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
.horizontal-scroll::-webkit-scrollbar { height: 4px; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }
.h-card { flex: 0 0 148px; border-radius: var(--r); overflow: hidden; position: relative; cursor: pointer; transition: transform var(--trans), box-shadow var(--trans); border: 1px solid var(--border); background: var(--bg2); }
.h-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.h-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.h-card-footer { padding: 0.55rem 0.65rem; }
.h-card-title { font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-card-rating { font-size: 0.7rem; color: var(--amber); margin-top: 0.15rem; font-weight: 600; }
.h-card-fav { position: absolute; top: 5px; right: 5px; background: rgba(20,24,32,0.75); border: none; color: var(--amber); width: 26px; height: 26px; border-radius: 50%; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--trans); }
.h-card:hover .h-card-fav { opacity: 1; }

/* ANIME GRID */
.anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 1.1rem; }
.anime-grid.list-mode { grid-template-columns: 1fr; gap: 0.55rem; }
.anime-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); position: relative; animation: fadeUp 0.28s ease both; box-shadow: var(--shadow-sm); }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.anime-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,107,107,0.3); }
.anime-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.card-no-img { width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; background: var(--bg3); font-size: 2.5rem; }
.status-ribbon { position: absolute; top: 0; left: 0; padding: 0.2rem 0.55rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom-right-radius: 7px; }
.status-ribbon.completed { background: var(--teal-lt); color: var(--teal); border: 1px solid rgba(45,212,191,0.25); border-top: none; border-left: none; }
.status-ribbon.watching  { background: var(--blue-lt); color: var(--blue); border: 1px solid rgba(96,165,250,0.25); border-top: none; border-left: none; }
.status-ribbon.planned   { background: var(--amber-lt); color: var(--amber); border: 1px solid rgba(251,191,36,0.25); border-top: none; border-left: none; }
.status-ribbon.dropped   { background: var(--red-lt); color: var(--red); border: 1px solid rgba(248,113,113,0.25); border-top: none; border-left: none; }
.fav-star { position: absolute; top: 6px; right: 8px; font-size: 1rem; color: var(--amber); pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4)); }
.card-body { padding: 0.7rem; }
.card-title { font-weight: 600; font-size: 0.83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.3rem; color: var(--text); }
.card-rating { color: var(--amber); font-size: 0.76rem; font-weight: 600; margin-bottom: 0.35rem; }
.ep-bar-wrap { margin-bottom: 0.35rem; }
.ep-label { font-size: 0.65rem; color: var(--muted); margin-bottom: 0.18rem; }
.ep-bar { height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.ep-fill { height: 100%; background: linear-gradient(90deg, var(--coral), var(--amber)); border-radius: 2px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.22rem; }
.card-tag { background: var(--bg3); color: var(--muted); font-size: 0.62rem; padding: 0.1rem 0.42rem; border-radius: 8px; }
.card-actions { display: flex; gap: 0.35rem; position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem; background: linear-gradient(to top, rgba(20,24,32,0.95), transparent); opacity: 0; transition: opacity var(--trans); justify-content: flex-end; }
.anime-card:hover .card-actions { opacity: 1; }
.ca-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--text2); width: 28px; height: 28px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.ca-btn:hover     { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.ca-btn.del:hover { border-color: var(--red); color: var(--red); background: var(--red-lt); }
.ca-btn.fav:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-lt); }
.anime-grid.list-mode .anime-card { display: flex; flex-direction: row; }
.anime-grid.list-mode .anime-card img, .anime-grid.list-mode .card-no-img { width: 55px; aspect-ratio: 2/3; flex-shrink: 0; }
.anime-grid.list-mode .card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.anime-grid.list-mode .card-title { white-space: normal; font-size: 0.9rem; }
.anime-grid.list-mode .anime-card:hover { transform: translateX(4px) translateY(0); }
.view-toggle { display: flex; gap: 0.3rem; }
.vtog { background: var(--bg2); border: 1px solid var(--border2); color: var(--muted); width: 32px; height: 32px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.vtog.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 4rem 0; color: var(--muted); }
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; opacity: 0.3; }

/* STATS DETAIL */
.stats-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; }
.stats-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.stats-block h3 { font-family: var(--font-d); font-size: 0.75rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.rating-bar-row { display: flex; flex-direction: column; gap: 0.42rem; }
.r-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; }
.r-row .r-label { color: var(--amber); min-width: 26px; font-weight: 700; }
.r-bar-bg { flex: 1; height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.r-bar-fill { height: 100%; background: linear-gradient(90deg, var(--coral), var(--amber)); border-radius: 3px; }
.r-row .r-count { color: var(--muted); min-width: 18px; text-align: right; }
.genre-list { display: flex; flex-direction: column; gap: 0.42rem; }
.genre-row { display: flex; align-items: center; justify-content: space-between; }
.genre-row span { font-size: 0.82rem; color: var(--text2); }
.genre-row .genre-count { color: var(--coral); font-size: 0.78rem; font-weight: 700; }
.status-donut { display: flex; flex-direction: column; gap: 0.55rem; }
.donut-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text2); }
.donut-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* MODALS */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(6px); animation: modalIn 0.18s ease; }
@keyframes modalIn { from { opacity:0; } to { opacity:1; } }
.modal.hidden { display: none; }
.modal-box { background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px; padding: 1.8rem; width: 100%; max-width: 490px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: boxIn 0.24s cubic-bezier(.34,1.56,.64,1); }
@keyframes boxIn { from { transform:scale(0.94) translateY(16px); } to { transform:scale(1) translateY(0); } }
.modal-title { font-family: var(--font-d); font-size: 1.35rem; font-weight: 800; color: var(--coral); margin-bottom: 1.3rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.modal-close:hover { color: var(--red); border-color: var(--red); background: var(--red-lt); }

/* FORM */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 0.45rem; }
.form-group .hint { font-size: 0.67rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.input-row { display: flex; gap: 0.5rem; align-items: center; }
.input-sep { color: var(--muted); align-self: center; }
.form-group input[type="text"], .form-group input[type="number"], .form-group input[type="password"], .form-group textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border2); color: var(--text); padding: 0.58rem 0.85rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.9rem; outline: none; transition: border-color var(--trans), box-shadow var(--trans); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,107,0.12); }
.form-group textarea { resize: none; }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); padding: 0.58rem 1rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.85rem; cursor: pointer; white-space: nowrap; transition: all var(--trans); }
.btn-secondary:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.status-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sp-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.4rem 0.85rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.8rem; cursor: pointer; transition: all var(--trans); }
.sp-btn:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.sp-btn[data-val="completed"].active { background: var(--teal-lt); border-color: var(--teal); color: var(--teal); font-weight: 700; }
.sp-btn[data-val="watching"].active  { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); font-weight: 700; }
.sp-btn[data-val="planned"].active   { background: var(--amber-lt); border-color: var(--amber); color: var(--amber); font-weight: 700; }
.sp-btn[data-val="dropped"].active   { background: var(--red-lt); border-color: var(--red); color: var(--red); font-weight: 700; }
.star-row { display: flex; gap: 0.18rem; flex-wrap: wrap; }
.star-btn { font-size: 1.5rem; background: none; border: none; color: var(--bg3); cursor: pointer; padding: 0; line-height: 1; transition: color var(--trans), transform var(--trans); }
.star-btn.lit { color: var(--amber); }
.star-btn:hover { transform: scale(1.2); }
.char-count { display: block; text-align: right; font-size: 0.7rem; color: var(--muted); margin-top: 0.22rem; }
.fav-row { display: flex; align-items: center; justify-content: space-between; }
.fav-toggle { background: none; border: 1px solid var(--border2); color: var(--muted); font-size: 1.3rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; transition: all var(--trans); display: flex; align-items: center; justify-content: center; }
.fav-toggle[data-active="true"] { color: var(--amber); border-color: var(--amber); background: var(--amber-lt); }
.search-results { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--r); max-height: 190px; overflow-y: auto; margin-bottom: 0.9rem; box-shadow: var(--shadow); }
.search-results.hidden { display: none; }
.search-result-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--trans); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface); }
.search-result-item img { width: 36px; height: 52px; object-fit: cover; border-radius: 4px; }
.sri-info { display: flex; flex-direction: column; gap: 0.18rem; }
.sri-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.sri-meta  { font-size: 0.71rem; color: var(--muted); }
.search-loading { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.selected-preview { display: flex; gap: 1rem; background: var(--coral-lt); border: 1px solid rgba(255,107,107,0.25); border-radius: var(--r); padding: 0.85rem; margin-bottom: 0.9rem; }
.selected-preview.hidden { display: none; }
.selected-preview img { width: 52px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; }
.preview-name   { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text); }
.preview-genres { font-size: 0.74rem; color: var(--text2); margin-bottom: 0.2rem; }
.preview-score  { font-size: 0.74rem; color: var(--amber); font-weight: 600; }
.btn-primary { width: 100%; background: var(--coral); color: #fff; border: none; padding: 0.85rem; border-radius: var(--r); font-family: var(--font-d); font-size: 1rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; margin-top: 0.4rem; transition: background var(--trans), transform var(--trans), box-shadow var(--trans); box-shadow: 0 4px 16px rgba(255,107,107,0.35); }
.btn-primary:hover { background: var(--coral-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,107,0.45); }

/* DETAIL MODAL */
.detail-box { max-width: 580px; padding: 0; overflow: hidden; }
.detail-hero { width: 100%; height: 240px; object-fit: cover; object-position: center 20%; display: block; }
.detail-body { padding: 1.6rem 1.8rem 1.8rem; }
.detail-eyebrow { font-size: 0.67rem; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); margin-bottom: 0.35rem; font-weight: 700; }
.detail-title { font-family: var(--font-d); font-size: 1.7rem; font-weight: 800; margin-bottom: 0.45rem; color: var(--text); }
.detail-rating-row { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.7rem; }
.detail-stars { font-size: 1.1rem; }
.detail-score { font-size: 0.82rem; color: var(--muted); }
.detail-genres { font-size: 0.79rem; color: var(--text2); margin-bottom: 0.9rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; }
.detail-tag { background: var(--coral-lt); border: 1px solid rgba(255,107,107,0.2); color: var(--coral); font-size: 0.74rem; padding: 0.22rem 0.6rem; border-radius: 10px; font-weight: 600; }
.detail-ep { margin-bottom: 0.9rem; }
.detail-ep-label { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 600; }
.detail-notes { background: var(--bg3); border-left: 3px solid var(--coral); padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; line-height: 1.6; color: var(--text2); }
.detail-actions { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.detail-btn { flex: 1; background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); padding: 0.6rem; border-radius: var(--r); font-family: var(--font-b); font-size: 0.83rem; cursor: pointer; transition: all var(--trans); text-align: center; font-weight: 500; }
.detail-btn:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.detail-btn.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-lt); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* POPULAR */
.popular-filters { display: flex; gap: 0.4rem; }
.pop-filter-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.38rem 0.85rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.78rem; cursor: pointer; transition: all var(--trans); font-weight: 500; }
.pop-filter-btn:hover { border-color: var(--coral); color: var(--coral); }
.pop-filter-btn.active { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 600; }
.popular-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 0; color: var(--muted); }
.popular-loading.hidden { display: none; }
.loading-spinner { width: 32px; height: 32px; border: 3px solid var(--bg3); border-top-color: var(--coral); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.popular-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.5rem; }
.pop-item { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 0.9rem; cursor: pointer; transition: all var(--trans); animation: fadeUp 0.3s ease both; position: relative; overflow: hidden; }
.pop-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--coral); transform: scaleY(0); transform-origin: bottom; transition: transform var(--trans); }
.pop-item:hover { border-color: rgba(255,107,107,0.3); box-shadow: var(--shadow); transform: translateX(3px); }
.pop-item:hover::before { transform: scaleY(1); }
.pop-rank { font-family: var(--font-d); font-size: 1.4rem; font-weight: 800; color: var(--bg3); min-width: 36px; text-align: center; padding-top: 0.2rem; flex-shrink: 0; line-height: 1; }
.pop-item:nth-child(1) .pop-rank { color: var(--amber); }
.pop-item:nth-child(2) .pop-rank { color: var(--text2); }
.pop-item:nth-child(3) .pop-rank { color: #cd7f32; }
.pop-cover { width: 70px; flex-shrink: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pop-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.pop-cover-placeholder { width: 100%; aspect-ratio: 2/3; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.pop-info { flex: 1; min-width: 0; }
.pop-title { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-title-jp { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.5rem; }
.pop-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem; align-items: center; }
.pop-badge { font-size: 0.7rem; padding: 0.18rem 0.6rem; border-radius: 20px; border: 1px solid; font-weight: 600; letter-spacing: 0.3px; }
.pop-badge.score      { border-color: rgba(251,191,36,0.4);  color: var(--amber); background: var(--amber-lt); }
.pop-badge.eps        { border-color: var(--border2); color: var(--text2); background: rgba(255,255,255,0.04); }
.pop-badge.status-air { border-color: rgba(45,212,191,0.4);  color: var(--teal);  background: var(--teal-lt); }
.pop-badge.status-up  { border-color: rgba(96,165,250,0.4);  color: var(--blue);  background: var(--blue-lt); }
.pop-badge.status-fin { border-color: var(--border2); color: var(--muted); background: transparent; }
.pop-badge.lang-de    { border-color: rgba(255,107,107,0.4); color: var(--coral); background: var(--coral-lt); }
.pop-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.5rem; }
.pop-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pop-tag { background: var(--bg3); color: var(--muted); font-size: 0.66rem; padding: 0.1rem 0.42rem; border-radius: 8px; }
.pop-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; min-width: 80px; }
.pop-score-big { font-family: var(--font-d); font-size: 1.6rem; font-weight: 800; color: var(--amber); line-height: 1; }
.pop-score-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pop-airing-badge { font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 20px; background: var(--coral-lt); border: 1px solid rgba(255,107,107,0.3); color: var(--coral); font-weight: 700; }
.pop-release { font-size: 0.72rem; color: var(--blue); font-weight: 600; text-align: right; line-height: 1.3; }
.popular-detail-box { max-width: 620px; padding: 0; overflow: hidden; }
.pop-detail-hero { width: 100%; height: 260px; object-fit: cover; object-position: center 20%; display: block; }
.pop-detail-body { padding: 1.6rem 1.8rem 1.8rem; }
.pop-detail-title { font-family: var(--font-d); font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 0.3rem; }
.pop-detail-jp { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; }
.pop-detail-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.pop-detail-desc { font-size: 0.88rem; color: var(--text2); line-height: 1.65; margin-bottom: 1rem; max-height: 140px; overflow-y: auto; }
.pop-detail-section { margin-bottom: 0.8rem; }
.pop-detail-section-title { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.4rem; }
.pop-detail-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pop-detail-tag { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); font-size: 0.75rem; padding: 0.22rem 0.6rem; border-radius: 10px; font-weight: 500; }
.pop-detail-lang { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lang-badge { font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 10px; font-weight: 600; border: 1px solid; }
.lang-badge.de-sync { background: var(--coral-lt); border-color: rgba(255,107,107,0.3); color: var(--coral); }
.lang-badge.de-sub  { background: var(--blue-lt);  border-color: rgba(96,165,250,0.3);  color: var(--blue); }
.lang-badge.jp      { background: var(--amber-lt); border-color: rgba(251,191,36,0.3);  color: var(--amber); }
.pop-detail-add-btn { width: 100%; background: var(--coral); color: #fff; border: none; padding: 0.8rem; border-radius: var(--r); font-family: var(--font-d); font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; margin-top: 1rem; transition: background var(--trans), transform var(--trans), box-shadow var(--trans); box-shadow: 0 4px 16px rgba(255,107,107,0.3); }
.pop-detail-add-btn:hover { background: var(--coral-dk); transform: translateY(-1px); }

/* SEARCH MODE TOGGLE */
.search-mode-toggle { display: flex; background: var(--bg3); border: 1px solid var(--border2); border-radius: 30px; padding: 3px; gap: 2px; flex-shrink: 0; }
.smt-btn { display: flex; align-items: center; gap: 0.4rem; background: none; border: none; color: var(--muted); padding: 0.35rem 0.8rem; border-radius: 26px; font-family: var(--font-b); font-size: 0.78rem; cursor: pointer; font-weight: 500; transition: background var(--trans), color var(--trans); white-space: nowrap; }
.smt-btn:hover { color: var(--text2); }
.smt-btn.active { background: var(--coral); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(255,107,107,0.35); }
.smt-btn[data-mode="global"].active { background: var(--blue); box-shadow: 0 2px 8px rgba(96,165,250,0.35); }
.search-spinner { width: 14px; height: 14px; flex-shrink: 0; border: 2px solid var(--bg3); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
.search-spinner.hidden { display: none; }
.global-search-panel { background: var(--bg2); border-bottom: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.4); max-height: 75vh; overflow-y: auto; }
.global-search-panel.hidden { display: none; }
.gsp-header { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 2rem; border-bottom: 1px solid var(--border); background: var(--bg3); position: sticky; top: 0; z-index: 1; }
.gsp-label { font-size: 0.8rem; color: var(--text2); font-weight: 600; }
.gsp-label strong { color: var(--blue); }
.gsp-close { background: none; border: 1px solid var(--border2); color: var(--muted); padding: 0.28rem 0.65rem; border-radius: 6px; font-family: var(--font-b); font-size: 0.76rem; cursor: pointer; transition: all var(--trans); }
.gsp-close:hover { border-color: var(--red); color: var(--red); }
.gsp-results { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.9rem 2rem 1.2rem; }
.gsp-empty { text-align: center; padding: 2.5rem 0; color: var(--muted); font-size: 0.88rem; }
.gsp-empty-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; opacity: 0.3; }
.gsp-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r); padding: 0.8rem; cursor: pointer; transition: all var(--trans); position: relative; overflow: hidden; }
.gsp-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform var(--trans); }
.gsp-item:hover { border-color: rgba(96,165,250,0.3); box-shadow: var(--shadow); transform: translateX(3px); }
.gsp-item:hover::before { transform: scaleY(1); }
.gsp-cover { width: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gsp-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.gsp-cover-ph { width: 100%; aspect-ratio: 2/3; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.gsp-info { flex: 1; min-width: 0; }
.gsp-title-en { font-family: var(--font-d); font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsp-title-jp { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.38rem; }
.gsp-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.38rem; }
.gsp-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.38rem; }
.gsp-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.gsp-tag { background: var(--bg2); color: var(--muted); font-size: 0.62rem; padding: 0.08rem 0.38rem; border-radius: 7px; }
.gsp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.38rem; flex-shrink: 0; min-width: 68px; }
.gsp-score { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; color: var(--amber); line-height: 1; }
.gsp-score-lbl { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.gsp-add-btn { background: var(--blue-lt); border: 1px solid rgba(96,165,250,0.3); color: var(--blue); padding: 0.28rem 0.6rem; border-radius: 6px; font-family: var(--font-b); font-size: 0.72rem; cursor: pointer; font-weight: 700; white-space: nowrap; transition: all var(--trans); }
.gsp-add-btn:hover { background: var(--blue); color: #fff; }
.gsp-add-btn[data-in-lib="true"] { background: var(--teal-lt); border-color: rgba(45,212,191,0.3); color: var(--teal); cursor: default; }
.gsp-loading { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 2.5rem 0; color: var(--muted); font-size: 0.86rem; }
.gsp-loading .loading-spinner { border-top-color: var(--blue); }

/* --- Alle Animes: Tag-Suche --- */
.gsp-mode-toggle { display: flex; background: var(--bg2); border: 1px solid var(--border2); border-radius: 24px; padding: 3px; gap: 2px; flex-shrink: 0; }
.gsp-mode-btn { background: none; border: none; color: var(--muted); padding: 0.3rem 0.75rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.74rem; cursor: pointer; font-weight: 600; transition: background var(--trans), color var(--trans); white-space: nowrap; }
.gsp-mode-btn:hover { color: var(--text2); }
.gsp-mode-btn.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(96,165,250,0.35); }
.gsp-tag-section { padding: 0.9rem 2rem; border-bottom: 1px solid var(--border); background: var(--bg2); }
.gsp-tag-section.hidden { display: none; }
.gsp-tag-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.gsp-tag-section-title { font-family: var(--font-d); font-size: 0.88rem; font-weight: 700; color: var(--text); }
.gsp-tag-hint { color: var(--muted); font-size: 0.72rem; font-weight: 500; margin-left: 0.35rem; }
.gsp-tag-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.gsp-tag-counter { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.gsp-tag-clear { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.3rem 0.7rem; border-radius: 6px; font-family: var(--font-b); font-size: 0.72rem; cursor: pointer; transition: all var(--trans); }
.gsp-tag-clear:hover { border-color: var(--red); color: var(--red); }
.gsp-tag-search-btn { background: var(--blue); border: 1px solid var(--blue); color: #fff; padding: 0.36rem 0.9rem; border-radius: 6px; font-family: var(--font-b); font-size: 0.76rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(96,165,250,0.35); transition: all var(--trans); }
.gsp-tag-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(96,165,250,0.45); }
.gsp-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; max-height: 200px; overflow-y: auto; padding: 0.2rem; }
.gsp-tag-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); border-radius: 20px; padding: 0.32rem 0.75rem; font-family: var(--font-b); font-size: 0.76rem; font-weight: 600; cursor: pointer; user-select: none; transition: all var(--trans); }
.gsp-tag-chip:hover { border-color: rgba(96,165,250,0.5); color: var(--text); transform: translateY(-1px); }
.gsp-tag-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(96,165,250,0.35); }
.gsp-tag-count { background: rgba(0,0,0,0.18); color: inherit; padding: 0.05rem 0.4rem; border-radius: 10px; font-size: 0.62rem; font-weight: 700; opacity: 0.85; }
.gsp-tag-chip.active .gsp-tag-count { background: rgba(255,255,255,0.25); }
.gsp-tag-loading { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.8rem; padding: 0.6rem 0; }
.gsp-tag-loading .loading-spinner { width: 18px; height: 18px; border-width: 2px; border-top-color: var(--blue); }

/* SCHEDULE / KALENDER */
.schedule-week-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.schedule-days-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; margin-top: 0.5rem; }
.schedule-day-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.45rem 1rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.82rem; cursor: pointer; transition: all var(--trans); font-weight: 500; position: relative; }
.schedule-day-btn:hover { border-color: var(--coral); color: var(--coral); }
.schedule-day-btn.active { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 700; }
.schedule-day-btn.today { border-color: var(--amber); color: var(--amber); }
.schedule-day-btn.today.active { background: var(--amber); border-color: var(--amber); color: #111; }
.schedule-day-count { position: absolute; top: -6px; right: -6px; background: var(--coral); color: #fff; font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.schedule-day-btn.today .schedule-day-count { background: var(--amber); color: #111; }
.schedule-content { display: flex; flex-direction: column; gap: 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; animation: fadeUp 0.28s ease both; }
.sched-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); position: relative; box-shadow: var(--shadow-sm); }
.sched-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,107,107,0.35); }
.sched-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.sched-card-no-img { width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; background: var(--bg3); font-size: 2.2rem; }
.sched-ep-badge { position: absolute; top: 6px; left: 6px; background: rgba(20,24,32,0.85); border: 1px solid rgba(255,255,255,0.15); color: var(--text); font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 6px; backdrop-filter: blur(4px); }
.sched-score-badge { position: absolute; top: 6px; right: 6px; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35); color: var(--amber); font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 6px; }
.sched-card-body { padding: 0.6rem 0.7rem; }
.sched-card-title { font-weight: 600; font-size: 0.78rem; line-height: 1.3; margin-bottom: 0.3rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sched-card-time { font-size: 0.65rem; color: var(--muted); }
.sched-card-genres { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.3rem; }
.sched-card-genre { background: var(--bg3); color: var(--muted); font-size: 0.58rem; padding: 0.08rem 0.35rem; border-radius: 6px; }
.schedule-empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.schedule-empty-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; opacity: 0.3; }

/* CREDITS */
.cr-section { margin-bottom: 2.2rem; }
.cr-section-title { font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted2); font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.9rem; }
.cr-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1rem 1.1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; text-decoration: none; transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans); cursor: pointer; }
.cr-card:hover { border-color: #5865f2; transform: translateY(-4px); box-shadow: var(--shadow); }
.cr-avatar-wrap { position: relative; }
.cr-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--border2); }
.cr-avatar-ph { width: 64px; height: 64px; border-radius: 50%; background: #5865f2; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; font-family: var(--font-d); font-weight: 800; border: 2px solid var(--border2); }
.cr-discord-dot { position: absolute; bottom: 1px; right: 1px; width: 20px; height: 20px; border-radius: 50%; background: #5865f2; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg2); }
.cr-discord-dot svg { width: 10px; height: 10px; }
.cr-rank { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; padding: 0.18rem 0.65rem; border-radius: 20px; border: 1px solid; }
.cr-rank.dev    { color: var(--coral); background: var(--coral-lt); border-color: rgba(255,107,107,0.3); }
.cr-rank.mod    { color: var(--teal);  background: var(--teal-lt);  border-color: rgba(45,212,191,0.3); }
.cr-rank.tester { color: var(--blue);  background: var(--blue-lt);  border-color: rgba(96,165,250,0.3); }
.cr-rank.supp   { color: var(--amber); background: var(--amber-lt); border-color: rgba(251,191,36,0.3); }
.cr-username { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.cr-username::before { content: '@'; color: var(--muted); font-weight: 400; }
.cr-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; flex-wrap: wrap; justify-content: center; }
.cr-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); padding: 0.35rem 0.7rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.72rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all var(--trans); display: inline-flex; align-items: center; gap: 0.25rem; }
.cr-btn.discord { background: rgba(88,101,242,0.12); border-color: rgba(88,101,242,0.35); color: #818cf8; }
.cr-btn.discord:hover { background: #5865f2; color: #fff; }
.cr-btn.profile { background: var(--blue-lt); border-color: rgba(96,165,250,0.35); color: var(--blue); }
.cr-btn.profile:hover { background: var(--blue); color: #fff; }
.cr-btn.hidden { display: none !important; }

/* BLOG */
.blog-admin-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.38rem 0.85rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.78rem; cursor: pointer; transition: all var(--trans); font-weight: 500; }
.blog-admin-btn:hover { border-color: var(--coral); color: var(--coral); }
.blog-admin-btn.unlocked { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.blog-filter-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--muted); padding: 0.3rem 0.75rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.75rem; cursor: pointer; transition: all var(--trans); font-weight: 500; }
.blog-filter-btn:hover  { border-color: var(--blue); color: var(--blue); }
.blog-filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.blog-list { display: flex; flex-direction: column; gap: 0.9rem; }
.blog-post { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; cursor: pointer; transition: all var(--trans); position: relative; overflow: hidden; animation: fadeUp 0.28s ease both; }
.blog-post::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; transform: scaleY(0); transform-origin: bottom; transition: transform var(--trans); }
.blog-post:hover { border-color: rgba(96,165,250,0.3); box-shadow: var(--shadow); transform: translateX(4px); }
.blog-post:hover::before { transform: scaleY(1); }
.blog-post.cat-update::before       { background: var(--teal); }
.blog-post.cat-feature::before      { background: var(--blue); }
.blog-post.cat-bugfix::before       { background: var(--red); }
.blog-post.cat-news::before         { background: var(--amber); }
.blog-post.cat-announcement::before { background: var(--coral); }
.blog-post.pinned { border-color: rgba(251,191,36,0.3); background: linear-gradient(135deg, var(--bg2) 0%, rgba(251,191,36,0.04) 100%); }
.blog-post-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.blog-post-left { flex: 1; min-width: 0; }
.blog-post-pin { font-size: 0.9rem; flex-shrink: 0; opacity: 0.7; }
.blog-post-title { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.65rem; }
.blog-cat-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; padding: 0.15rem 0.6rem; border-radius: 20px; border: 1px solid; }
.blog-cat-badge.cat-update       { color: var(--teal);  background: var(--teal-lt);  border-color: rgba(45,212,191,0.3); }
.blog-cat-badge.cat-feature      { color: var(--blue);  background: var(--blue-lt);  border-color: rgba(96,165,250,0.3); }
.blog-cat-badge.cat-bugfix       { color: var(--red);   background: var(--red-lt);   border-color: rgba(248,113,113,0.3); }
.blog-cat-badge.cat-news         { color: var(--amber); background: var(--amber-lt); border-color: rgba(251,191,36,0.3); }
.blog-cat-badge.cat-announcement { color: var(--coral); background: var(--coral-lt); border-color: rgba(255,107,107,0.3); }
.blog-post-date   { font-size: 0.72rem; color: var(--muted); }
.blog-post-author { font-size: 0.72rem; color: var(--text2); font-weight: 600; }
.blog-post-author::before { content: '@'; color: var(--muted); font-weight: 400; }
.blog-post-excerpt { font-size: 0.84rem; color: var(--text2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-post-actions { display: flex; gap: 0.4rem; position: absolute; top: 0.9rem; right: 0.9rem; opacity: 0; transition: opacity var(--trans); }
.blog-post:hover .blog-post-actions { opacity: 1; }
.blog-action-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border2); color: var(--muted); width: 26px; height: 26px; border-radius: 6px; font-size: 0.72rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.blog-action-btn:hover         { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.blog-action-btn.del:hover     { border-color: var(--red);   color: var(--red);   background: var(--red-lt); }
.blog-action-btn.pin-btn:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-lt); }
.blog-empty { text-align: center; padding: 4rem 0; color: var(--muted); font-size: 0.9rem; }
.blog-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; opacity: 0.3; }
.blog-detail-box { max-width: 620px; }
.blog-detail-header { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.blog-detail-title { font-family: var(--font-d); font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; line-height: 1.15; }
.blog-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.78rem; }
.blog-detail-body { font-size: 0.9rem; line-height: 1.75; color: var(--text2); }
.blog-detail-body h2 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.2rem 0 0.4rem; }
.blog-detail-body h3 { font-family: var(--font-d); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 1rem 0 0.3rem; }
.blog-detail-body strong { color: var(--text); font-weight: 700; }
.blog-detail-body em { color: var(--coral); font-style: italic; }
.blog-detail-body ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.blog-detail-body li { margin-bottom: 0.3rem; }
.blog-detail-body p  { margin-bottom: 0.7rem; }
.blog-detail-body code { background: var(--bg3); border: 1px solid var(--border2); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.82rem; color: var(--coral); font-family: monospace; }

/* RESPONSIVE */
@media (max-width: 768px) {
  :root { --sidebar-w: 210px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .topbar, .content-pad { padding-left: 1rem; padding-right: 1rem; }
  .schedule-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 520px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .main-wrap { margin-left: 0; }
  .topbar-right { display: none; }
}

/* =============================================
   SAISONÜBERSICHT
   ============================================= */

/* Header nav */
.season-nav-arrows {
  display: flex; align-items: center; gap: 0.5rem;
}
.season-arrow-btn {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); width: 30px; height: 30px; border-radius: 8px;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--trans); line-height: 1;
}
.season-arrow-btn:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-lt); }
.season-nav-label {
  font-size: 0.82rem; color: var(--text2); font-weight: 600;
  min-width: 130px; text-align: center;
}

/* Season tabs (Winter / Frühling / Sommer / Herbst) */
.season-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.season-tab {
  display: flex; align-items: center; gap: 0.45rem;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--muted); padding: 0.45rem 1.1rem; border-radius: 20px;
  font-family: var(--font-b); font-size: 0.82rem; cursor: pointer;
  transition: all var(--trans); font-weight: 500;
}
.season-tab:hover { border-color: var(--coral); color: var(--coral); }
.season-tab.active { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 700; box-shadow: 0 3px 12px rgba(255,107,107,0.35); }
.season-tab.winter.active  { background: var(--blue);  border-color: var(--blue);  box-shadow: 0 3px 12px rgba(96,165,250,0.35); }
.season-tab.spring.active  { background: #f472b6; border-color: #f472b6; box-shadow: 0 3px 12px rgba(244,114,182,0.35); }
.season-tab.summer.active  { background: var(--amber); border-color: var(--amber); color: #111; box-shadow: 0 3px 12px rgba(251,191,36,0.35); }
.season-tab.autumn.active  { background: var(--coral); border-color: var(--coral); box-shadow: 0 3px 12px rgba(255,107,107,0.35); }

/* Grid */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
  animation: fadeUp 0.28s ease both;
}

/* Card */
.season-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative; box-shadow: var(--shadow-sm);
}
.season-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,107,107,0.3); }
.season-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.season-card-no-img { width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; background: var(--bg3); font-size: 2.5rem; }

/* Score badge top-right */
.season-score-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(20,24,32,0.82); border: 1px solid rgba(251,191,36,0.4);
  color: var(--amber); font-size: 0.62rem; font-weight: 700;
  padding: 0.18rem 0.5rem; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* "In Bibliothek" ribbon top-left */
.season-in-lib {
  position: absolute; top: 0; left: 0;
  padding: 0.2rem 0.5rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  background: var(--teal-lt); color: var(--teal);
  border: 1px solid rgba(45,212,191,0.25);
  border-top: none; border-left: none;
  border-bottom-right-radius: 7px;
}

.season-card-body { padding: 0.65rem 0.75rem; }
.season-card-title {
  font-weight: 600; font-size: 0.8rem; line-height: 1.3;
  color: var(--text); margin-bottom: 0.28rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.season-card-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.28rem; }
.season-card-eps  { font-size: 0.65rem; color: var(--muted); }
.season-card-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.season-card-tag  { background: var(--bg3); color: var(--muted); font-size: 0.6rem; padding: 0.08rem 0.38rem; border-radius: 7px; }

/* Add-to-lib button appears on hover */
.season-card-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(to top, rgba(20,24,32,0.95), transparent);
  opacity: 0; transition: opacity var(--trans);
  display: flex; justify-content: flex-end; gap: 0.35rem;
}
.season-card:hover .season-card-add { opacity: 1; }
.season-add-btn {
  background: var(--coral); border: none; color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.65rem;
  border-radius: 6px; cursor: pointer; font-family: var(--font-b);
  transition: background var(--trans);
  white-space: nowrap;
}
.season-add-btn:hover { background: var(--coral-dk); }
.season-add-btn.in-lib {
  background: var(--teal-lt); border: 1px solid rgba(45,212,191,0.3);
  color: var(--teal); cursor: default;
}

/* Empty / loading */
.season-empty {
  grid-column: 1/-1; text-align: center; padding: 4rem 0; color: var(--muted);
}
.season-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; opacity: 0.3; }

/* =========================================
   AUTH (Login/Register + Topbar Button + Menu)
   ========================================= */
.topbar-auth { position: relative; display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.auth-login-btn { display: flex; align-items: center; gap: 0.4rem; background: var(--blue); border: 1px solid var(--blue); color: #fff; padding: 0.4rem 0.85rem; border-radius: 20px; font-family: var(--font-b); font-size: 0.78rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(96,165,250,0.35); transition: all var(--trans); }
.auth-login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(96,165,250,0.45); }
.auth-login-btn.hidden, .auth-user-btn.hidden, .auth-menu.hidden { display: none !important; }
.auth-user-btn { display: flex; align-items: center; gap: 0.55rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text); padding: 0.32rem 0.8rem 0.32rem 0.32rem; border-radius: 22px; font-family: var(--font-b); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all var(--trans); }
.auth-user-btn:hover { border-color: var(--blue); }
.auth-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--coral)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 0.78rem; overflow: hidden; }
.auth-username { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px; padding: 0.35rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 50; display: flex; flex-direction: column; gap: 2px; }
.auth-menu-item { background: none; border: none; color: var(--text2); padding: 0.5rem 0.7rem; border-radius: 6px; font-family: var(--font-b); font-size: 0.8rem; cursor: pointer; text-align: left; transition: all var(--trans); }
.auth-menu-item:hover { background: var(--bg3); color: var(--text); }
.auth-menu-item.danger:hover { background: rgba(239,68,68,0.12); color: var(--red); }
.auth-box { max-width: 410px; padding: 0; overflow: hidden; }
.auth-box .modal-close { z-index: 3; color: rgba(255,255,255,0.85); }
.auth-box .modal-close:hover { color: #fff; }

.auth-hero {
  position: relative;
  padding: 1.8rem 1.6rem 1.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(96,165,250,0.45), transparent 60%),
    radial-gradient(circle at 90% 110%, rgba(255,107,107,0.40), transparent 55%),
    linear-gradient(135deg, #1a1f2e 0%, #2a1f35 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.auth-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none; opacity: 0.4;
}
.auth-logo-wrap {
  width: 64px; height: 64px; margin: 0 auto 0.9rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  position: relative; z-index: 1;
}
.auth-logo { width: 38px; height: 38px; object-fit: contain; }
.auth-title {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 800;
  color: #fff; margin: 0 0 0.35rem; letter-spacing: -0.5px;
  position: relative; z-index: 1;
}
.auth-subtitle {
  font-size: 0.82rem; color: rgba(255,255,255,0.72);
  margin: 0; line-height: 1.45; max-width: 280px; margin-inline: auto;
  position: relative; z-index: 1;
}

.auth-tabs {
  display: flex; gap: 0.25rem;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 10px; padding: 3px;
  margin: 1.4rem 1.6rem 0.4rem;
}
.auth-tab {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 0.55rem; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all var(--trans);
}
.auth-tab:hover { color: var(--text2); }
.auth-tab.active {
  background: linear-gradient(135deg, var(--blue), #7aa9ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(96,165,250,0.45);
}

.auth-form { padding: 1rem 1.6rem 1.6rem; }
.auth-field { margin-bottom: 0.85rem; }
.auth-field label {
  display: block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 0.4rem;
}
.auth-field .hint {
  font-size: 0.65rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--muted); opacity: 0.7;
}
.auth-input-wrap {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.auth-input-wrap:focus-within {
  border-color: var(--blue);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
.auth-input-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted);
  transition: color var(--trans); pointer-events: none;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--blue); }
.auth-input-wrap input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  color: var(--text);
  padding: 0.7rem 0.85rem 0.7rem 2.5rem !important;
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 0.92rem;
  outline: none;
  box-shadow: none !important;
}
.auth-input-wrap input::placeholder { color: var(--muted); opacity: 0.55; }
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg3) inset;
  caret-color: var(--text);
}
.auth-eye {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  padding: 0.4rem; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--trans), background var(--trans);
}
.auth-eye:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.auth-eye.open { color: var(--blue); }

.auth-submit {
  width: 100%; margin-top: 0.4rem;
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: linear-gradient(135deg, var(--blue) 0%, #7aa9ff 100%);
  border: none; color: #fff;
  padding: 0.85rem; border-radius: 10px;
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(96,165,250,0.4);
  transition: transform var(--trans), box-shadow var(--trans), opacity var(--trans);
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(96,165,250,0.55);
}
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.65; cursor: wait; }
.auth-submit-arrow { width: 16px; height: 16px; transition: transform var(--trans); }
.auth-submit:hover:not(:disabled) .auth-submit-arrow { transform: translateX(3px); }

.auth-error {
  color: var(--red); font-size: 0.78rem; font-weight: 600;
  margin: 0.8rem 0 0; min-height: 1rem; text-align: center;
}
.auth-switch {
  font-size: 0.8rem; color: var(--muted);
  text-align: center; margin: 0.9rem 0 0;
}
.auth-switch-btn {
  background: none; border: none; padding: 0;
  color: var(--blue); font-family: var(--font-b); font-size: 0.8rem;
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: color var(--trans);
}
.auth-switch-btn:hover { color: #7aa9ff; text-decoration: underline; }

/* =========================================
   USER SEARCH + PROFILE
   ========================================= */
.user-search-wrap { max-width: 720px; margin: 0 auto; }
.user-search-bar { position: relative; margin-bottom: 1rem; }
.user-search-bar .search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.user-search-bar input { width: 100%; background: var(--bg2); border: 1px solid var(--border2); color: var(--text); padding: 0.75rem 1rem 0.75rem 2.4rem; border-radius: 12px; font-family: var(--font-b); font-size: 0.92rem; outline: none; transition: border-color var(--trans); }
.user-search-bar input:focus { border-color: var(--blue); }
.user-search-results { display: flex; flex-direction: column; gap: 0.55rem; }
.user-result { display: flex; align-items: center; gap: 0.9rem; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 0.75rem 0.9rem; cursor: pointer; transition: all var(--trans); }
.user-result:hover { border-color: rgba(96,165,250,0.4); transform: translateX(3px); box-shadow: var(--shadow); }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--coral)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; }
.user-result-info { flex: 1; min-width: 0; }
.user-result-name { font-family: var(--font-d); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.user-result-meta { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.user-result-btn { background: var(--blue-lt); border: 1px solid rgba(96,165,250,0.3); color: var(--blue); padding: 0.4rem 0.8rem; border-radius: 8px; font-family: var(--font-b); font-size: 0.75rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all var(--trans); pointer-events: none; }
.user-result:hover .user-result-btn { background: var(--blue); color: #fff; }
/* Container nicht mehr als flex — Profil-Sektionen stapeln sich vertikal mit Abstand */
.profile-header { display: block; padding: 1.5rem 0 0; }

/* ============ BANNER ============ */
.profile-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  min-height: 200px;
  margin-bottom: 1.4rem;
}
.profile-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(3px) brightness(0.55) saturate(1.1);
  transform: scale(1.06);
  background-color: var(--bg2);
}
.profile-banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,24,32,0.95) 0%, rgba(20,24,32,0.5) 60%, rgba(20,24,32,0.25) 100%),
    linear-gradient(135deg, rgba(96,165,250,0.18), rgba(255,107,107,0.10));
}
.profile-banner-actions {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 3;
}
.profile-banner-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1.8rem;
  padding: 1.8rem 2rem;
  min-height: 200px;
}
.profile-banner-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.profile-banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.profile-banner-meta .profile-rank,
.profile-banner-meta .profile-joined { margin-top: 0 !important; }
.profile-banner-side {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.profile-avatar-big { width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--coral)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 3.2rem; flex-shrink: 0; box-shadow: 0 10px 32px rgba(0,0,0,0.5), 0 0 0 4px rgba(255,255,255,0.06); overflow: hidden; position: relative; }

/* Avatar image — füllt jeden Circle-Avatar voll aus */
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Wrapper + Edit-Overlay nur am eigenen Profil */
.profile-avatar-big-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.profile-avatar-edit {
  position: absolute; right: 0; bottom: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff;
  border: 4px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  box-shadow: 0 2px 12px rgba(96,165,250,0.5);
  transition: all var(--trans);
}
.profile-avatar-edit:hover {
  transform: scale(1.1);
  background: var(--coral);
  box-shadow: 0 4px 14px rgba(255,107,107,0.5);
}
.profile-username { font-family: var(--font-d); font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; line-height: 1.15; }
.profile-me { font-size: 0.95rem; color: var(--blue); font-weight: 700; margin-left: 0.5rem; }
.profile-sub { font-size: 0.95rem; color: var(--muted); margin-top: 0.6rem; }
.profile-rank { display: inline-block; margin-top: 0.6rem; text-transform: uppercase; font-size: 0.75rem; padding: 0.28rem 0.85rem; }

/* =========================================
   VETERAN BADGE — Dark Premium mit Gold-Shimmer
   ========================================= */
.profile-veteran-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.7rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem 0.4rem 0.85rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15,20,30,0.92), rgba(35,28,15,0.95));
  color: transparent;
  background-clip: padding-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 0 1px rgba(251,191,36,0.45),
    0 0 18px rgba(251,191,36,0.30),
    0 6px 18px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: help;
  isolation: isolate;
  overflow: hidden;
  -webkit-background-clip: padding-box;
}
/* Goldener Glanz-Stroke um den Pill (animiert wandernd) */
.profile-veteran-badge::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    #fde08a 0%, #f0a020 18%, #b8770b 28%, #fde08a 45%,
    #fff4d6 55%, #f0a020 72%, #b8770b 82%, #fde08a 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: veteranSpin 6s linear infinite;
  z-index: -1;
}
@keyframes veteranSpin { to { transform: rotate(360deg); } }

/* Schimmer-Streifen, der über den Text läuft */
.profile-veteran-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,250,220,0.55) 47%,
    rgba(255,250,220,0.85) 50%,
    rgba(255,250,220,0.55) 53%,
    transparent 70%);
  transform: translateX(-100%);
  animation: veteranShimmer 4.5s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
@keyframes veteranShimmer {
  0%, 25%, 100% { transform: translateX(-100%); }
  60%           { transform: translateX(100%);  }
}

/* Text in Goldfarbe mit Gradient-Fill */
.profile-veteran-badge .vet-text {
  background: linear-gradient(180deg, #fff4d6 0%, #f5c66d 55%, #d99a16 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative; z-index: 2;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(251,191,36,0.35));
}
.profile-veteran-badge .vet-star {
  position: relative; z-index: 2;
  color: #fde08a;
  filter:
    drop-shadow(0 0 6px rgba(253,224,138,0.85))
    drop-shadow(0 0 12px rgba(251,191,36,0.45));
  animation: vetStarPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes vetStarPulse {
  0%, 100% { transform: scale(1)    rotate(0deg);  filter: drop-shadow(0 0 6px rgba(253,224,138,0.85)) drop-shadow(0 0 12px rgba(251,191,36,0.45)); }
  50%      { transform: scale(1.15) rotate(8deg);  filter: drop-shadow(0 0 9px rgba(255,244,214,1))   drop-shadow(0 0 18px rgba(251,191,36,0.65)); }
}
.profile-veteran-badge:hover {
  box-shadow:
    0 0 0 1px rgba(253,224,138,0.7),
    0 0 28px rgba(251,191,36,0.55),
    0 8px 22px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.profile-joined { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; padding: 0.32rem 0.8rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; }
.profile-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }

/* --- Profile: Banned badge + Admin 3-dot menu --- */
.profile-username-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
/* =========================================
   PROFILE BIO
   ========================================= */
.profile-bio {
  position: relative;
  margin: 0;
  width: fit-content;
  padding: 1.3rem 1.5rem 1.3rem 3.3rem;
  background:
    linear-gradient(135deg, rgba(96,165,250,0.08), rgba(255,107,107,0.05)),
    var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 720px;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.profile-bio::before {
  content: '"';
  position: absolute;
  left: 0.85rem; top: 0.1rem;
  font-family: 'Georgia', serif;
  font-size: 3.2rem; font-weight: 700;
  line-height: 1;
  color: var(--blue);
  opacity: 0.55;
  pointer-events: none;
}
.profile-bio.empty {
  background: none;
  border: 1.5px dashed var(--border2);
  color: var(--muted);
  font-style: italic;
  padding: 1rem 1.3rem;
  box-shadow: none;
}
.profile-bio.empty::before { content: none; }

.profile-bio-edit {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue-lt);
  border: 1px solid rgba(96,165,250,0.35);
  color: var(--blue);
  padding: 0.42rem 0.95rem;
  margin-top: 0.7rem;
  border-radius: 20px;
  font-family: var(--font-b);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}
.profile-bio-edit:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(96,165,250,0.4);
}

/* Bio Edit Modal */
.bio-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.bio-actions .btn-primary,
.bio-actions .btn-secondary { flex: 1; }

#bioInput {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
#bioInput:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
#bioInput::placeholder { color: var(--muted); opacity: 0.55; }
#bioCharCount {
  background: var(--bg3);
  color: var(--muted);
  padding: 0.1rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border2);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

/* =========================================
   ADMIN PANEL + REPORTS
   ========================================= */
.nav-item.hidden { display: none !important; }
.nav-item { position: relative; }
.nav-badge {
  position: absolute; top: 50%; right: 0.85rem; transform: translateY(-50%);
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff;
  border-radius: 9px;
  font-family: var(--font-d); font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg);
  animation: navBadgePulse 1.8s ease-in-out infinite;
}
.nav-badge.hidden { display: none; }
@keyframes navBadgePulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 0 rgba(239,68,68,0.55); }
  50%      { box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px rgba(239,68,68,0); }
}

.admin-tabs {
  display: flex; gap: 0.4rem; margin: 1rem 0 1.2rem;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 4px;
}
.admin-tab {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 0.65rem 0.9rem; border-radius: 9px;
  font-family: var(--font-b); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all var(--trans);
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.admin-tab:hover { color: var(--text2); }
.admin-tab.active {
  background: linear-gradient(135deg, var(--blue), #7aa9ff);
  color: #fff; box-shadow: 0 4px 14px rgba(96,165,250,0.4);
}
.admin-tab-count {
  background: var(--red); color: #fff;
  min-width: 18px; padding: 0 5px; height: 18px;
  border-radius: 9px;
  font-size: 0.65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-tab-count.hidden { display: none; }
.admin-tab-panel.hidden { display: none; }

/* --- Team Section --- */
.admin-team-section { margin-bottom: 1.8rem; }
.admin-team-title {
  font-family: var(--font-d); font-size: 1rem; font-weight: 700;
  color: var(--text); margin: 0 0 0.7rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.admin-team-count {
  background: var(--bg3); color: var(--muted);
  font-family: var(--font-b); font-size: 0.7rem; font-weight: 700;
  padding: 0.1rem 0.55rem; border-radius: 10px;
  border: 1px solid var(--border2);
}
.admin-team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.9rem;
}
.admin-team-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.2rem;
  transition: all var(--trans);
  min-height: 84px;
}
.admin-team-card:hover { border-color: rgba(96,165,250,0.35); transform: translateY(-1px); box-shadow: var(--shadow); }
.admin-team-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}
.admin-team-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.admin-team-name {
  font-family: var(--font-d); font-weight: 700; font-size: 1rem;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.admin-team-info .cr-rank {
  font-size: 0.7rem;
  padding: 0.22rem 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.6px;
}
.admin-team-missing { font-size: 0.72rem; color: var(--amber); font-weight: 600; }
.admin-team-btn {
  background: var(--blue-lt); border: 1px solid rgba(96,165,250,0.3);
  color: var(--blue);
  padding: 0.55rem 1rem; border-radius: 9px;
  font-family: var(--font-b); font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all var(--trans);
  flex-shrink: 0;
}
.admin-team-btn:hover:not(.disabled) { background: var(--blue); color: #fff; }
.admin-team-btn.disabled { opacity: 0.4; cursor: not-allowed; background: var(--bg3); border-color: var(--border2); color: var(--muted); }

/* --- Report Cards --- */
.report-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--r); padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.report-id {
  font-family: var(--font-d); font-weight: 800; font-size: 0.95rem;
  color: var(--red);
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  padding: 0.15rem 0.7rem; border-radius: 12px;
}
.report-date { font-size: 0.74rem; color: var(--muted); }
.report-row { display: flex; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; }
.report-key {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted);
  flex-shrink: 0; min-width: 130px; padding-top: 0.35rem;
}
.report-user-link {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.32rem 0.75rem; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all var(--trans);
}
.report-user-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.report-user-link.reported:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.1); }
.report-reason {
  flex: 1; font-size: 0.86rem; color: var(--text);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 0.5rem 0.7rem; border-radius: 8px;
  white-space: pre-wrap; word-break: break-word; line-height: 1.45;
}
.report-row.reason .report-key { padding-top: 0.65rem; }
.report-done-btn {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--teal), #34d399);
  border: none; color: #fff;
  padding: 0.55rem 1rem; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 12px rgba(45,212,191,0.35);
  transition: transform var(--trans), box-shadow var(--trans);
}
.report-done-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(45,212,191,0.5); }

/* --- Report Button on Profile --- */
.profile-report-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem; margin-left: 0.5rem;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--muted);
  padding: 0.32rem 0.7rem; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.74rem; font-weight: 600;
  cursor: pointer; transition: all var(--trans);
}
.profile-report-btn:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }

.profile-banned-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.5rem; padding: 0.28rem 0.7rem;
  background: rgba(239,68,68,0.14); color: var(--red);
  border: 1px solid rgba(239,68,68,0.4); border-radius: 14px;
  font-family: var(--font-b); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.profile-admin-wrap { position: relative; }
.profile-admin-dots {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.profile-admin-dots:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.profile-admin-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 10px; padding: 0.35rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 50;
  display: flex; flex-direction: column; gap: 2px;
}
.profile-admin-menu.hidden { display: none !important; }
.profile-admin-item {
  background: none; border: none; color: var(--text2);
  padding: 0.55rem 0.8rem; border-radius: 6px; text-align: left;
  font-family: var(--font-b); font-size: 0.82rem; cursor: pointer;
  transition: all var(--trans);
}
.profile-admin-item:hover { background: var(--bg3); color: var(--text); }
.profile-admin-item.danger:hover  { background: rgba(239,68,68,0.12); color: var(--red); }
.profile-admin-item.success:hover { background: rgba(45,212,191,0.12); color: var(--teal); }

/* --- User search: banned indicator --- */
.user-result.banned { opacity: 0.78; border-color: rgba(239,68,68,0.35); }
.user-result.banned .user-avatar { filter: grayscale(0.5); }
.user-result-banned {
  display: inline-block; margin-left: 0.5rem;
  background: rgba(239,68,68,0.14); color: var(--red);
  border: 1px solid rgba(239,68,68,0.35); border-radius: 10px;
  font-size: 0.65rem; padding: 0.08rem 0.5rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  vertical-align: middle;
}

/* --- Admin Modals --- */
.admin-modal-sub { font-size: 0.8rem; color: var(--muted); margin: -0.4rem 0 1rem; }
.admin-info-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-info-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.6rem 0.8rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
}
.admin-info-key {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); flex-shrink: 0; min-width: 90px;
}
.admin-info-val {
  font-family: var(--font-b); font-size: 0.85rem; color: var(--text);
  text-align: right; word-break: break-word; min-width: 0; flex: 1;
}
.admin-info-box { max-width: 480px; }
.ban-duration-pick .sp-btn.active {
  background: var(--red-lt); color: var(--red);
  border-color: var(--red); font-weight: 700;
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.ban-duration-pick .sp-btn[data-days="perm"].active {
  background: var(--red); color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(239,68,68,0.45);
}
.btn-primary.danger { background: var(--red); }
.btn-primary.danger:hover { background: #dc2626; }
.profile-stats-row { display: none; }

/* ============ STAT-BAR (alle Zahlen horizontal mit Trennstrichen) ============ */
.profile-statbar {
  display: flex; align-items: stretch;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem 0;
  margin-bottom: 1.6rem;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.psb-item {
  flex: 1; min-width: 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.25rem;
  padding: 0.9rem 1.2rem;
  background: none; border: none;
  color: var(--text);
  font-family: inherit;
  position: relative;
  transition: background var(--trans);
}
.psb-item:not(.static) { cursor: pointer; }
.psb-item:not(.static):hover { background: rgba(96,165,250,0.06); }
.psb-item + .psb-item::before {
  content: '';
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--border);
}
.psb-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1.6rem; line-height: 1;
  color: var(--text);
}
.psb-item:not(.static):hover .psb-num { color: var(--blue); }

/* Stat-Farben wie früher bei den Cards */
.psb-item.c-animes    .psb-num { color: var(--coral); }
.psb-item.c-completed .psb-num { color: var(--teal);  }
.psb-item.c-rating    .psb-num { color: var(--amber); }
.psb-item.c-fav       .psb-num { color: var(--blue);  }

.psb-lbl {
  font-size: 0.72rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ============ BIO als eigene Sektion unter der Statbar ============ */
.profile-bio-section {
  margin-bottom: 1.4rem;
  display: flex; flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .auth-username { display: none; }
  .profile-banner-row { flex-direction: column; text-align: center; gap: 1rem; padding: 1.4rem 1.2rem; min-height: auto; }
  .profile-banner-side { align-items: center; }
  .profile-banner-meta { justify-content: center; }
  .profile-avatar-big { width: 104px; height: 104px; font-size: 2.6rem; }
  .profile-username { font-size: 1.8rem; }
  .psb-item { min-width: 90px; padding: 0.7rem 0.6rem; }
  .psb-num { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .season-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* =========================================
   PROFILE HEATMAP (GitHub style)
   ========================================= */
.profile-heatmap { margin-top: 2rem; }
.heatmap-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.heatmap-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.heatmap-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1rem; color: var(--text);
}
.heatmap-sub {
  font-size: 0.78rem; color: var(--muted);
  margin-top: 0.15rem;
}
.heatmap-legend {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-size: 0.7rem; color: var(--muted);
}
.hm-legend-label { font-size: 0.7rem; color: var(--muted); }

.heatmap-scroll {
  overflow-x: auto;
  margin: 0 -0.4rem;
  padding: 0 0.4rem 0.3rem;
  scrollbar-width: thin;
}
.heatmap-scroll::-webkit-scrollbar { height: 6px; }
.heatmap-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.heatmap-body { display: flex; gap: 0.45rem; align-items: flex-start; min-width: max-content; }
.hm-day-labels {
  display: grid; grid-template-rows: repeat(7, 1fr);
  row-gap: 3px;
  padding-top: 18px; /* align with grid (skip month-label row) */
  font-size: 0.62rem; color: var(--muted);
  user-select: none;
}
.hm-day-labels span { height: 11px; line-height: 11px; }

.hm-cols { display: flex; flex-direction: column; gap: 4px; }
.hm-months {
  display: flex; gap: 3px;
  font-size: 0.62rem; color: var(--muted);
  user-select: none;
  margin-bottom: 1px;
}
.hm-months span { width: 11px; text-align: left; white-space: nowrap; }
.hm-grid { display: flex; gap: 3px; }
.hm-week { display: grid; grid-template-rows: repeat(7, 11px); row-gap: 3px; }
.hm-cell {
  width: 11px; height: 11px; border-radius: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform var(--trans), outline var(--trans);
  display: block;
  cursor: default;
}
.hm-cell[data-level="0"] { background: rgba(255,255,255,0.06); }
.hm-cell[data-level="1"] { background: rgba(45,212,191,0.32); border-color: rgba(45,212,191,0.2); }
.hm-cell[data-level="2"] { background: rgba(45,212,191,0.55); border-color: rgba(45,212,191,0.35); }
.hm-cell[data-level="3"] { background: rgba(34,197,94,0.78); border-color: rgba(34,197,94,0.55); }
.hm-cell[data-level="4"] { background: rgb(34,197,94); border-color: rgba(34,197,94,0.85);
  box-shadow: 0 0 6px rgba(34,197,94,0.35); }
.hm-cell.future { background: transparent; border-color: transparent; }
.hm-cell:hover:not(.future) {
  transform: scale(1.45);
  outline: 1.5px solid var(--text);
  outline-offset: 0;
  position: relative; z-index: 2;
}
.heatmap-legend .hm-cell { width: 10px; height: 10px; }

/* =========================================
   PROFILE ACHIEVEMENTS
   ========================================= */
.profile-achievements { margin-top: 2rem; margin-bottom: 1rem; }
.ach-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.ach-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1rem;
}
.ach-title { font-family: var(--font-d); font-weight: 800; font-size: 1rem; color: var(--text); }
.ach-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.ach-progress-wrap { display: flex; align-items: center; gap: 0.7rem; min-width: 200px; }
.ach-progress-bar {
  flex: 1; height: 8px;
  background: var(--bg3);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border);
}
.ach-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(96,165,250,0.4);
}
.ach-progress-label {
  font-family: var(--font-d); font-weight: 800; font-size: 0.82rem;
  color: var(--text); min-width: 38px; text-align: right;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}
.ach-badge {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.ach-badge.unlocked {
  background:
    linear-gradient(135deg, rgba(96,165,250,0.10), rgba(255,107,107,0.08)),
    var(--bg3);
}
.ach-badge.unlocked::after {
  content: '✓';
  position: absolute; top: 6px; right: 8px;
  font-size: 0.7rem; font-weight: 800;
  color: var(--teal);
}
.ach-badge.unlocked:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.ach-badge.locked { opacity: 0.45; filter: grayscale(0.6); }

.ach-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
}
.ach-badge.unlocked.tier-bronze .ach-icon {
  background: linear-gradient(135deg, #b56b3a, #d99764);
  border-color: rgba(217,151,100,0.5);
  box-shadow: 0 0 10px rgba(217,151,100,0.35);
}
.ach-badge.unlocked.tier-silver .ach-icon {
  background: linear-gradient(135deg, #9aa3ad, #cfd5db);
  border-color: rgba(207,213,219,0.6);
  box-shadow: 0 0 10px rgba(207,213,219,0.4);
  color: #1a1f2e;
}
.ach-badge.unlocked.tier-gold .ach-icon {
  background: linear-gradient(135deg, #f0a020, #fde08a);
  border-color: rgba(253,224,138,0.6);
  box-shadow: 0 0 14px rgba(251,191,36,0.55);
  color: #2a1f00;
}
.ach-badge.unlocked.tier-diamond .ach-icon {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border-color: rgba(167,139,250,0.65);
  box-shadow: 0 0 16px rgba(96,165,250,0.6), 0 0 24px rgba(167,139,250,0.4);
  color: #fff;
}

.ach-info { flex: 1; min-width: 0; }
.ach-name {
  font-family: var(--font-d); font-weight: 700;
  font-size: 0.88rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ach-desc {
  font-size: 0.72rem; color: var(--muted);
  margin-top: 0.18rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================
   ADMIN PANEL: STATISTIK
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.stats-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.stats-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.stats-tile::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--border2); transition: background var(--trans);
}
.stats-tile.teal::before  { background: var(--teal); }
.stats-tile.blue::before  { background: var(--blue); }
.stats-tile.amber::before { background: var(--amber); }
.stats-tile.coral::before { background: var(--coral); }
.stats-tile.red::before   { background: var(--red); }
.stats-tile-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1.85rem; line-height: 1; color: var(--text);
}
.stats-tile.teal  .stats-tile-num { color: var(--teal); }
.stats-tile.blue  .stats-tile-num { color: var(--blue); }
.stats-tile.amber .stats-tile-num { color: var(--amber); }
.stats-tile.coral .stats-tile-num { color: var(--coral); }
.stats-tile.red   .stats-tile-num { color: var(--red); }
.stats-tile-label {
  font-family: var(--font-b); font-weight: 700;
  font-size: 0.78rem; color: var(--text2);
  margin-top: 0.3rem;
}
.stats-tile-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }

.stats-row-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.stats-chart-card, .stats-list-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.stats-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.9rem; gap: 0.6rem; flex-wrap: wrap;
}
.stats-chart-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.92rem; color: var(--text);
}
.stats-chart-sub { font-size: 0.7rem; color: var(--muted); }

.stats-bars {
  display: flex; align-items: flex-end; gap: 0.35rem;
  height: 110px;
}
.stats-bar {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
}
.stats-bar-wrap {
  width: 100%; flex: 1;
  display: flex; align-items: flex-end;
  background: var(--bg3); border-radius: 4px;
  min-height: 4px;
  overflow: hidden;
}
.stats-bar-fill {
  width: 100%; min-height: 3px;
  border-radius: 4px;
  transition: height 0.6s ease;
}
.stats-bar-fill.teal  { background: linear-gradient(180deg, #34d399, var(--teal)); box-shadow: 0 0 8px rgba(45,212,191,0.4); }
.stats-bar-fill.blue  { background: linear-gradient(180deg, #7aa9ff, var(--blue)); box-shadow: 0 0 8px rgba(96,165,250,0.4); }
.stats-bar-label {
  font-size: 0.62rem; color: var(--muted);
  font-family: var(--font-b);
}

.stats-top-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.stats-top-item {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 0.55rem 0.75rem; border-radius: 9px;
  cursor: pointer; transition: all var(--trans);
}
.stats-top-item:hover { border-color: rgba(96,165,250,0.4); transform: translateX(3px); }
.stats-top-rank {
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.78rem; color: var(--muted);
  min-width: 26px;
}
.stats-top-item:nth-child(1) .stats-top-rank { color: var(--amber); }
.stats-top-item:nth-child(2) .stats-top-rank { color: #cfd5db; }
.stats-top-item:nth-child(3) .stats-top-rank { color: #d99764; }
.stats-top-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 0.85rem;
  overflow: hidden;
}
.stats-top-name {
  flex: 1; min-width: 0;
  font-family: var(--font-b); font-weight: 700;
  font-size: 0.85rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stats-top-count {
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.85rem; color: var(--blue);
  background: var(--blue-lt);
  padding: 0.15rem 0.6rem; border-radius: 12px;
}

.stats-engagement { display: flex; flex-direction: column; gap: 0.9rem; }
.stats-eng-row { display: flex; flex-direction: column; gap: 0.35rem; }
.stats-eng-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.stats-eng-label { font-family: var(--font-b); font-weight: 700; font-size: 0.82rem; color: var(--text); }
.stats-eng-value { font-size: 0.74rem; color: var(--muted); font-family: var(--font-b); font-weight: 600; }
.stats-eng-bar {
  width: 100%; height: 8px;
  background: var(--bg3); border-radius: 999px;
  overflow: hidden; border: 1px solid var(--border);
}
.stats-eng-fill {
  height: 100%; border-radius: 999px;
  transition: width 0.6s ease;
}
.stats-eng-fill.blue  { background: linear-gradient(90deg, #7aa9ff, var(--blue)); box-shadow: 0 0 6px rgba(96,165,250,0.4); }
.stats-eng-fill.coral { background: linear-gradient(90deg, #ff9999, var(--coral)); box-shadow: 0 0 6px rgba(255,107,107,0.4); }
.stats-eng-fill.teal  { background: linear-gradient(90deg, #34d399, var(--teal)); box-shadow: 0 0 6px rgba(45,212,191,0.4); }

.stats-empty {
  color: var(--muted); font-size: 0.82rem;
  text-align: center; padding: 1.5rem 0;
}

/* =========================================
   FOLLOW SYSTEM (Counters + Button + List)
   ========================================= */
.profile-follow-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}
.profile-follow-stat {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 0.35rem 0.85rem;
  border-radius: 18px;
  font-family: var(--font-b);
  cursor: pointer;
  transition: all var(--trans);
}
.profile-follow-stat:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
}
.pf-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.95rem; color: var(--text);
}
.profile-follow-stat:hover .pf-num { color: var(--blue); }
.pf-lbl { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.profile-follow-stat:hover .pf-lbl { color: var(--blue); }

.profile-follow-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--blue), #7aa9ff);
  border: 1px solid var(--blue);
  color: #fff;
  padding: 0.42rem 1rem;
  border-radius: 18px;
  font-family: var(--font-b); font-size: 0.78rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 4px 14px rgba(96,165,250,0.4);
}
.profile-follow-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(96,165,250,0.55);
}
.profile-follow-btn:disabled { opacity: 0.6; cursor: wait; }
.profile-follow-btn.following {
  background: var(--bg3);
  color: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: none;
}
.profile-follow-btn.following:hover:not(:disabled) {
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border-color: var(--red);
}
.profile-follow-btn.following:hover:not(:disabled)::after {
  content: '';
}
.profile-follow-btn.following:hover:not(:disabled) {
  /* "Following → Unfollow" Text-Wechsel auf Hover via JS wäre umständlich;
     wir lassen "✓ Following" stehen, Farbe signalisiert die Unfollow-Aktion */
}

/* Follow-List-Modal */
.follow-list-box { max-width: 460px; padding: 0; overflow: hidden; }
.follow-list-box .modal-title {
  padding: 1.2rem 1.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.follow-list {
  max-height: 60vh; overflow-y: auto;
  padding: 0.7rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.follow-list-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--trans);
}
.follow-list-item:hover {
  border-color: rgba(96,165,250,0.45);
  transform: translateX(3px);
}
.follow-list-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 0.95rem;
  overflow: hidden;
}
.follow-list-info { flex: 1; min-width: 0; }
.follow-list-name {
  font-family: var(--font-d); font-weight: 700; font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.follow-list-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.follow-list-btn {
  background: var(--blue-lt);
  border: 1px solid rgba(96,165,250,0.35);
  color: var(--blue);
  padding: 0.36rem 0.8rem; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.72rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  pointer-events: none;
}
.follow-list-item:hover .follow-list-btn { background: var(--blue); color: #fff; }

/* =========================================
   CHAT BOX — passend zum AniVault Design
   (dark, coral accent, subtle blur, refined)
   ========================================= */
.chatbox {
  position: fixed; bottom: 0; right: 24px;
  width: 440px;
  background: rgba(28, 32, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border2);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow:
    0 -12px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02);
  display: flex; flex-direction: column;
  z-index: 60;
  font-family: var(--font-b);
  transition: max-height 0.32s cubic-bezier(.4, 0, .2, 1), width 0.32s cubic-bezier(.4, 0, .2, 1);
  max-height: calc(100vh - 40px);
  height: 547px;
  min-height: 0;
  overflow: hidden;
}
.chatbox.collapsed { height: 48px; }
.chatbox.collapsed { max-height: 48px; }

/* ----- Header ----- */
.chatbox-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.7rem;
  padding: 0 1.1rem;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255,107,107,0.06), transparent 80%),
    var(--bg2);
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--trans);
}
.chatbox-header:hover { background: var(--bg3); }
.chatbox.collapsed .chatbox-header { border-bottom-color: transparent; }
/* Coral accent strip oben */
.chatbox-header::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--coral));
  background-size: 200% 100%;
  animation: chatAccentSlide 6s linear infinite;
}
@keyframes chatAccentSlide {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

.chatbox-title {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.82rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}
.chatbox-title svg { color: var(--coral); }
.chatbox-title > span:nth-child(2) {
  background: linear-gradient(180deg, var(--text) 0%, var(--text2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chatbox-count {
  background: var(--coral); color: #fff;
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.62rem; letter-spacing: 0.5px;
  padding: 0.1rem 0.55rem; border-radius: 999px;
  min-width: 22px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg2), 0 0 12px rgba(255,107,107,0.5);
  animation: chatCountPulse 1.8s ease-in-out infinite;
}
.chatbox-count.hidden { display: none; }
@keyframes chatCountPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.chatbox-arrow {
  font-size: 0.95rem; line-height: 1;
  color: var(--muted);
  transition: transform var(--trans), color var(--trans);
}
.chatbox-header:hover .chatbox-arrow { color: var(--text); }

/* ----- Body ----- */
.chatbox-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chatbox-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem 0.95rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  scrollbar-width: thin;
  background:
    radial-gradient(ellipse 60% 40% at top, rgba(255,107,107,0.04), transparent 70%),
    radial-gradient(ellipse 60% 40% at bottom, rgba(96,165,250,0.03), transparent 70%);
}
.chatbox-messages::-webkit-scrollbar { width: 6px; }
.chatbox-messages::-webkit-scrollbar-track { background: transparent; }
.chatbox-messages::-webkit-scrollbar-thumb {
  background: var(--border2); border-radius: 3px;
}
.chatbox-messages::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.chatbox-empty {
  text-align: center; color: var(--muted);
  font-size: 0.82rem; padding: 2.5rem 0;
  font-style: italic;
}

/* ----- Login-Wall wenn nicht eingeloggt ----- */
.chatbox-input-row.hidden { display: none; }
.chatbox-loginwall {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2.5rem 1.4rem;
  height: 100%;
  gap: 0.6rem;
}
.cwl-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(96,165,250,0.10));
  border: 1px solid rgba(255,107,107,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  box-shadow: 0 6px 20px rgba(255,107,107,0.2);
  margin-bottom: 0.5rem;
}
.cwl-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1.05rem; color: var(--text);
  letter-spacing: 0.3px;
}
.cwl-text {
  margin: 0;
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}
.cwl-actions {
  display: flex; gap: 0.5rem;
  margin-top: 0.8rem;
}
.cwl-btn {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-b); font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}
.cwl-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.cwl-btn.primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,107,0.4);
}
.cwl-btn.primary:hover {
  background: var(--coral-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,107,107,0.55);
  color: #fff;
}

/* ----- Einzelne Nachricht ----- */
.cmsg {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  transition: background var(--trans);
  border: 1px solid transparent;
}
.cmsg:hover {
  background: var(--bg3);
  border-color: var(--border);
}
.cmsg.mine {
  background:
    linear-gradient(135deg, rgba(255,107,107,0.07), rgba(255,107,107,0.02));
  border-color: rgba(255,107,107,0.18);
}
.cmsg.mine:hover {
  background:
    linear-gradient(135deg, rgba(255,107,107,0.10), rgba(255,107,107,0.04));
  border-color: rgba(255,107,107,0.3);
}

.cmsg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; font-size: 0.88rem;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform var(--trans), box-shadow var(--trans);
}
.cmsg-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255,107,107,0.35);
}

.cmsg-body { flex: 1; min-width: 0; }
.cmsg-meta {
  display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.25rem; flex-wrap: wrap;
}
.cmsg-name {
  font-family: var(--font-d); font-weight: 800;
  font-size: 0.85rem; color: var(--text);
  cursor: pointer;
  transition: color var(--trans);
  line-height: 1;
}
.cmsg-name:hover { color: var(--coral); }
.cmsg-rank {
  font-family: var(--font-b); font-weight: 700;
  font-size: 0.58rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.cmsg-rank.rank-default {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border2);
}
.cmsg-time {
  font-size: 0.66rem;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-b);
  font-variant-numeric: tabular-nums;
}
.cmsg-del {
  background: none; border: none;
  color: var(--muted);
  font-size: 0.75rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
  margin-left: 0.2rem;
}
.cmsg:hover .cmsg-del { opacity: 0.7; }
.cmsg-del:hover {
  opacity: 1 !important;
  background: rgba(239,68,68,0.2);
  color: var(--red);
}

.cmsg-text {
  font-family: var(--font-b);
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}

/* ----- Eingabe ----- */
.chatbox-input-row {
  display: flex; gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.chatbox-input-row input {
  flex: 1; min-width: 0;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--trans);
}
.chatbox-input-row input::placeholder { color: var(--muted); opacity: 0.7; }
.chatbox-input-row input:focus {
  border-color: var(--coral);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}
.chatbox-input-row input:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.chatbox-send {
  background: var(--coral);
  border: none; color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,107,107,0.4);
  transition: all var(--trans);
}
.chatbox-send:hover:not(:disabled) {
  background: var(--coral-dk);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(255,107,107,0.55);
}
.chatbox-send:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.chatbox-send:disabled {
  opacity: 0.35; cursor: not-allowed;
  background: var(--bg3);
  box-shadow: none;
}
.chatbox-send svg { transform: translateX(1px); }

/* ----- State (Login-Hint / Banned) ----- */
.chatbox-state {
  padding: 0.65rem 0.95rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.76rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap;
  line-height: 1.4;
}
.chatbox-state.hidden { display: none; }
.chatbox-state svg { color: var(--muted); flex-shrink: 0; }
.chatbox-state a {
  color: var(--coral);
  font-family: var(--font-d); font-weight: 800;
  text-decoration: none;
  transition: color var(--trans);
}
.chatbox-state a:hover { color: var(--coral-dk); text-decoration: underline; }
.chatbox-state.banned {
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.04));
  color: var(--red);
  border-top: 1px solid rgba(239,68,68,0.3);
}
.chatbox-state.banned strong { color: var(--red); font-family: var(--font-d); }
.chatbox-state .banned-reason {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  color: var(--text2);
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .chatbox {
    right: 0; left: 0;
    width: auto;
    border-radius: 14px 14px 0 0;
    margin: 0;
  }
}