/* ============================================================
   HOME PAGE REDESIGN (mockup-aligned)
   Scoped under .home-page and .home-* — does not affect other pages.
   ============================================================ */

.home-page {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    color: #E8E6F0;
}

/* Push the home content slightly wider than the default .container */
.home-page,
.home-features,
.home-cta-closer {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Ambient orbs */
.home-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.home-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
    top: -150px; left: -150px;
}
.home-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.09) 0%, transparent 70%);
    top: 40%; right: -80px;
}

/* ---------- Hero ---------- */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 3.5rem;
    align-items: center;
    padding: 3.5rem 0 2.5rem;
}

.home-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A78BFA;
    margin-bottom: 1.25rem;
}
.home-hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #A78BFA;
    opacity: 0.55;
}

.home-hero-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(2.7rem, 4.7vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    color: #E8E6F0;
}
.home-hero-accent { color: #A78BFA; }
.home-hero-dim   { color: rgba(232, 230, 240, 0.28); font-weight: 400; }

.home-hero-sub {
    font-size: 1rem;
    color: rgba(232, 230, 240, 0.55);
    line-height: 1.75;
    max-width: 480px;
    margin: 0 0 2rem;
    font-weight: 300;
}
.home-hero-sub strong { color: #E8E6F0; font-weight: 500; }

.home-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.home-btn-primary {
    background: #7C3AED;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.7);
    white-space: nowrap;
    display: inline-block;
}
.home-btn-primary:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(124, 58, 237, 0.85);
    color: #fff !important;
}

.home-btn-outline {
    color: rgba(232, 230, 240, 0.65) !important;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
    display: inline-block;
}
.home-btn-outline:hover {
    color: #E8E6F0 !important;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- Hero card deck (3 tilted cards) ---------- */
.home-hero-cards {
    position: relative;
    height: 400px;
    width: 100%;
}

.home-hcard {
    position: absolute;
    width: 240px;
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.75);
}
.home-hcard[data-pos="0"] { left: 0;    top: 40px; transform: rotate(-5deg); z-index: 1; }
.home-hcard[data-pos="1"] { left: 130px;top: 10px; transform: rotate(-1deg); z-index: 2; }
.home-hcard[data-pos="2"] { left: 260px;top: 28px; transform: rotate(4deg);  z-index: 3; }

.home-hero-cards:hover .home-hcard[data-pos="0"] { transform: rotate(-9deg) translateX(-22px); }
.home-hero-cards:hover .home-hcard[data-pos="2"] { transform: rotate(8deg)  translateX(22px);  }
.home-hcard:hover { border-color: rgba(124, 58, 237, 0.5); }

.home-hcard-poster {
    width: 100%;
    aspect-ratio: 3 / 2.4;
    object-fit: cover;
    display: block;
}
.home-hcard-poster-fallback {
    background: linear-gradient(145deg, #1a1a3e, #4c1d95);
}

.home-hcard-body { padding: 0.7rem 0.8rem 0.85rem; }
.home-hcard-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #E8E6F0;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-hcard-meta {
    font-size: 0.66rem;
    color: rgba(232, 230, 240, 0.35);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.home-hcard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    background: rgba(124, 58, 237, 0.18);
    color: #A78BFA;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.home-hcard-status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #A78BFA;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
    animation: home-pulse 1.8s ease-in-out infinite;
}
@keyframes home-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
}
@media (prefers-reduced-motion: reduce) { .home-hcard-status-dot { animation: none; } }

/* ---------- Stat bar ---------- */
.home-stats {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.4rem 0;
    margin: 1rem 0 2.5rem;
}
.home-stat {
    flex: 0 1 200px;
    padding: 0 2.5rem;
    text-align: center;
    position: relative;
}
.home-stat + .home-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 30px; width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.home-stat-num {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: 0;
    display: block;
    line-height: 1.15;
}
.home-stat-label {
    font-size: 0.7rem;
    color: rgba(232, 230, 240, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.2rem;
    display: block;
    font-weight: 500;
}

/* ---------- Section heading polish for the existing tab block ---------- */
.home-page ~ hr,
.home-page hr { display: none; }

/* Soften the anime tab section header into the new typography */
.home-page + .mb-5 h2.h3,
body .container > .mb-5 h2.h3 {
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Features section ---------- */
.home-features {
    padding: 3rem 0;
    margin-top: 1rem;
}
.home-features-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A78BFA;
    margin-bottom: 0.6rem;
}
.home-features-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.65rem, 2.6vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.005em;
    color: #E8E6F0;
    margin: 0 0 2rem;
    line-height: 1.15;
}

.home-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-feat-cell {
    background: #0E0E1C;
    padding: 1.5rem 1.5rem 1.65rem;
    transition: background-color 0.2s ease;
}
.home-feat-cell:hover { background: #14142a; }

.home-feat-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(124, 58, 237, 0.16);
    color: #A78BFA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.home-feat-name {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #E8E6F0;
    margin-bottom: 0.45rem;
}
.home-feat-desc {
    font-size: 0.82rem;
    color: rgba(232, 230, 240, 0.5);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

/* ---------- CTA closer ---------- */
.home-cta-closer {
    text-align: center;
    padding: 4.5rem 1.5rem 5rem;
    max-width: 580px;
}
.home-cta-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
    color: #E8E6F0;
    margin: 0 0 0.85rem;
}
.home-cta-sub {
    font-size: 0.95rem;
    color: rgba(232, 230, 240, 0.55);
    line-height: 1.75;
    margin: 0 0 1.75rem;
    font-weight: 300;
}
.home-cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Restyle anime/game/manga row cards on the home page ----------
   home.css is only loaded on the home page (via @section Head), so these can
   target .anime-card / .card globally without leaking to other pages.        */
.anime-card,
.card.anime-card {
    background: #16162A !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    overflow: hidden;
}
.anime-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(124, 58, 237, 0.6) !important;
    box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.5) !important;
}
.anime-card .card-img-top {
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.anime-card:hover .card-img-top {
    transform: scale(1.05);
}
.anime-card .card-body {
    padding: 0.6rem 0.7rem 0.7rem !important;
    background: #16162A;
}
.anime-card .card-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: rgba(232, 230, 240, 0.92) !important;
    letter-spacing: 0;
}
.anime-card small {
    font-size: 0.66rem !important;
    color: rgba(232, 230, 240, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.anime-card .badge {
    font-size: 0.58rem !important;
    padding: 0.18rem 0.45rem !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}
.anime-card .badge.bg-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(232, 230, 240, 0.55) !important;
}
.anime-card .badge.bg-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #F59E0B !important;
}
.anime-card .badge.bg-info {
    background: rgba(124, 58, 237, 0.18) !important;
    color: #A78BFA !important;
}

/* Section heading (Anime / Games / Manga) in Syne */
main h2.h3,
main h3.mb-0 {
    font-family: 'Syne', system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    color: #E8E6F0;
}

/* Tabs in the trending section */
.nav-pills .nav-link {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: rgba(232, 230, 240, 0.55) !important;
    border-radius: 8px !important;
}
.nav-pills .nav-link.active {
    background: rgba(124, 58, 237, 0.18) !important;
    color: #A78BFA !important;
}

/* Row navigation arrows (prev/next) + "See More" link.
   display rule is md+ only — on mobile, the buttons keep Bootstrap's .d-none (display:none)
   so they don't show alongside the horizontal-scroll mobile row, which the arrows can't paginate. */
.anime-row-prev,
.anime-row-next {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(232, 230, 240, 0.7) !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
@media (min-width: 768px) {
    .anime-row-prev.d-md-inline-block,
    .anime-row-next.d-md-inline-block {
        display: inline-flex !important;
    }
}
.anime-row-prev:hover:not(:disabled),
.anime-row-next:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.18) !important;
    border-color: rgba(124, 58, 237, 0.45) !important;
    color: #A78BFA !important;
}
.anime-row-prev:disabled,
.anime-row-next:disabled {
    opacity: 0.35 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

/* "1 / 5" page indicator */
[id^="anime-page-"] {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.72rem !important;
    color: rgba(232, 230, 240, 0.45) !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    min-width: 38px;
    text-align: center;
}

/* "See More" button — neutralize Bootstrap, match mockup's purple ghost link */
a.btn.btn-outline-primary[href*="Browse"],
.mb-5 a.btn-outline-primary {
    background: transparent !important;
    border: 1px solid rgba(167, 139, 250, 0.35) !important;
    color: #A78BFA !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    padding: 0.38rem 0.85rem !important;
    border-radius: 8px !important;
    text-transform: none !important;
    letter-spacing: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.mb-5 a.btn-outline-primary:hover {
    background: rgba(124, 58, 237, 0.18) !important;
    border-color: #A78BFA !important;
    color: #E8E6F0 !important;
}

/* ---------- Scroll reveal (kept from earlier) ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---------- Animated entrance ---------- */
.modal.fade .modal-dialog {
    transform: translateY(18px) scale(0.96) !important;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease !important;
    opacity: 0;
}
.modal.fade.show .modal-dialog {
    transform: translateY(0) scale(1) !important;
    opacity: 1;
}
.modal-backdrop.fade.show { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ============================================================
   Anime Preview Modal — mockup-aligned (new markup)
   ============================================================ */
.ar-preview .modal-dialog { max-width: 420px; }

.ar-preview-content {
    background: #12121e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    color: #E8E6F0;
    font-family: 'DM Sans', system-ui, sans-serif;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.ar-preview-content .modal-body { padding: 0; }

.ar-preview-loading {
    padding: 4rem 0;
    text-align: center;
}
.ar-preview-loading .spinner-border { color: #A78BFA !important; }

/* Banner (poster bg) */
.ar-preview-poster {
    position: relative;
    height: 200px;
    background: linear-gradient(145deg, #0f0f2e, #3b0764);
    overflow: hidden;
}
.ar-preview-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}
.ar-preview-fade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(transparent, #12121e);
    pointer-events: none;
    z-index: 2;
}

/* Top-right status badges */
.ar-preview-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.ar-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ar-badge-default { background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.75); }
.ar-badge-airing  { background: rgba(239, 68, 68, 0.25);  color: #fca5a5; }
.ar-badge-finished{ background: rgba(52, 211, 153, 0.2);  color: #6ee7b7; }
.ar-badge-muted   { background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.45); }

/* Body */
.ar-preview-body { padding: 1.1rem 1.25rem 0; }

/* Title + score row */
.ar-preview-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.ar-preview-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    color: #f0eeff;
    line-height: 1.22;
    margin: 0;
}
.ar-preview-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
    flex-shrink: 0;
}
.ar-preview-score .ar-icon { color: #fbbf24; }
.ar-preview-score-num {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
}
.ar-preview-score-src {
    font-size: 10px;
    font-weight: 600;
    color: rgba(251, 191, 36, 0.6);
    margin-left: 1px;
    letter-spacing: 0.04em;
}

/* Genre pills */
.ar-preview-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.85rem;
}
.ar-genre {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    color: rgba(167, 139, 250, 0.85);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.22);
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ar-genre:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(167, 139, 250, 0.45);
    color: #c4b5fd;
}

/* Meta row (episode + filler) */
.ar-preview-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}
.ar-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.ar-meta-icon { color: rgba(255, 255, 255, 0.32); }
.ar-meta-text { color: rgba(255, 255, 255, 0.45); }
.ar-meta-icon-filler { color: #f59e0b; }
.ar-meta-filler-pct { color: #f59e0b; font-weight: 500; }
.ar-meta-filler-count { font-size: 11px; color: rgba(255, 255, 255, 0.32); margin-left: 2px; }

/* Synopsis — capped at ~6 lines, scrollable within that height so the modal itself
   stays a consistent size regardless of synopsis length. Custom thin scrollbar so it
   doesn't look chunky on Windows. */
.ar-preview-synopsis {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin: 0 0 1rem;
    max-height: calc(12.5px * 1.65 * 6); /* ~6 lines */
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.4) transparent;
    overscroll-behavior: contain;
}
.ar-preview-synopsis::-webkit-scrollbar { width: 5px; }
.ar-preview-synopsis::-webkit-scrollbar-track { background: transparent; }
.ar-preview-synopsis::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.35);
    border-radius: 3px;
}
.ar-preview-synopsis::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.55); }

/* Your-status line */
.ar-preview-status { margin-bottom: 0.85rem; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.ar-preview-status:empty { display: none; }
.ar-your-status-label { color: rgba(255, 255, 255, 0.35); }
.ar-your-status-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.18);
    color: #A78BFA;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 11px;
}
.ar-your-status-eps { color: rgba(255, 255, 255, 0.4); font-size: 11px; }

/* Actions section */
.ar-preview-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.85rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ar-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ar-select-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}
.ar-select {
    width: 100%;
    background: #1c1c30;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-family: 'DM Sans', system-ui, sans-serif;
    padding: 8px 32px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}
.ar-select:hover { border-color: rgba(255, 255, 255, 0.18); }
.ar-select:focus { border-color: rgba(124, 58, 237, 0.55); }
.ar-select option { background: #1c1c30; color: #E8E6F0; }
.ar-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Action buttons */
.ar-btn-save {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}
.ar-btn-save:hover { background: #6D28D9; }

.ar-btn-add {
    background: transparent;
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ar-btn-add:hover { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.6); color: #c4b5fd; }

.ar-btn-send {
    background: transparent;
    color: rgba(52, 211, 153, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    padding: 7px 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ar-btn-send:hover { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.5); }

/* Watching-detail row (season picker + eps) */
.ar-watching-details {
    display: flex !important;
    gap: 8px;
    align-items: center;
    margin: -2px 0 2px;
}
.ar-select-compact { flex: 0 0 auto; width: auto; padding: 6px 28px 6px 10px; font-size: 12px; }
.ar-eps-label { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin: 0; }
.ar-eps-input {
    width: 64px;
    background: #1c1c30;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #E8E6F0;
    font-size: 12px;
    padding: 5px 8px;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.ar-eps-max { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* Anon prompt */
.ar-preview-anon {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.95rem;
    margin-bottom: 0.85rem;
}
.ar-preview-anon p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}
.ar-preview-anon-actions { display: flex; gap: 8px; }

/* Footer */
.ar-preview-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding-bottom: 1.1rem;
}
.ar-btn-primary {
    background: #7C3AED;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}
.ar-btn-primary:hover { background: #6D28D9; transform: translateY(-1px); color: #fff !important; }

.ar-icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.ar-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #E8E6F0;
    background: rgba(255, 255, 255, 0.03);
}
.ar-icon-btn-danger {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: rgba(239, 68, 68, 0.7) !important;
}
.ar-icon-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    color: #fca5a5 !important;
}


/* ============================================================
   Browse / Search page polish
   Loaded via @section Head on Anime/Browse, Anime/Search, Games/Browse, Manga/Browse.
   ============================================================ */

/* Page headers */
.container > h1,
.container > .d-flex > h1,
.container h1.mb-0,
.container h1.mb-4 {
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #E8E6F0;
}

/* Filter dropdown + plain ghost buttons (Type / Rating / Status / Filler / Language / Print / share-to-X). */
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(232, 230, 240, 0.75) !important;
    border-radius: 8px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    padding: 0.42rem 0.85rem !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary.show {
    background: rgba(124, 58, 237, 0.18) !important;
    border-color: rgba(124, 58, 237, 0.45) !important;
    color: #A78BFA !important;
}

/* Browse category pills (anime category tabs) — match the home page tabs */
.nav-pills .nav-link:not(.active) {
    color: rgba(232, 230, 240, 0.6) !important;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    background: transparent;
    border-radius: 8px;
}
.nav-pills .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #E8E6F0 !important;
}

/* "+ Add manually" buttons on Browse/Search */
.container a.btn-outline-secondary:not(.dropdown-toggle):not(.anime-row-prev):not(.anime-row-next) {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(232, 230, 240, 0.6) !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    background: transparent !important;
}
.container a.btn-outline-secondary:not(.dropdown-toggle):hover {
    border-color: rgba(124, 58, 237, 0.45) !important;
    color: #A78BFA !important;
    background: rgba(124, 58, 237, 0.1) !important;
}

/* Dropdown menus (filter checkboxes) */
.dropdown-menu {
    background: #16162A !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6) !important;
    padding: 0.4rem !important;
}
.dropdown-item {
    color: rgba(232, 230, 240, 0.85) !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.7rem !important;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(124, 58, 237, 0.15) !important;
    color: #fff !important;
}
.dropdown-menu .form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.dropdown-menu .form-check-input:checked {
    background-color: #7C3AED;
    border-color: #7C3AED;
}
.dropdown-menu hr.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 0.35rem 0;
}
.dropdown-menu .form-range::-webkit-slider-thumb { background: #A78BFA; }
.dropdown-menu .form-range::-moz-range-thumb     { background: #A78BFA; }

/* Search page input bar */
.container > form .input-group .form-control-lg {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #E8E6F0 !important;
    border-radius: 12px 0 0 12px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.15rem !important;
}
.container > form .input-group .form-control-lg::placeholder {
    color: rgba(232, 230, 240, 0.35);
}
.container > form .input-group .form-control-lg:focus {
    border-color: rgba(124, 58, 237, 0.5) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}
.container > form .input-group .btn-primary {
    border-radius: 0 12px 12px 0 !important;
    padding: 0 1.5rem !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 500 !important;
}

/* Result count / load-more sentinel small text */
.container .small.text-body-secondary {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: rgba(232, 230, 240, 0.4) !important;
}

/* Subdued info alert (no results) */
.alert.alert-info {
    background: rgba(124, 58, 237, 0.08) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    color: rgba(232, 230, 240, 0.75) !important;
    border-radius: 12px !important;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Card footer (Search page shows genres in a footer) */
.anime-card-col .card-footer,
.anime-card .card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0.5rem 0.7rem !important;
}
.anime-card-col .card-footer small {
    color: rgba(167, 139, 250, 0.7) !important;
    font-size: 0.7rem !important;
    text-transform: none;
    letter-spacing: 0;
}

/* Search card synopsis text */
.anime-card-col .card-text.small {
    color: rgba(232, 230, 240, 0.5) !important;
    line-height: 1.55;
    font-size: 0.8rem !important;
}

/* Games Browse: platform filter button bar uses btn-outline-primary for active.
   Already styled by our existing button overrides — no change needed. */

/* ============================================================
   Library (/Library, formerly /List/MyList) — redesign overrides
   Loaded via @section Head on the page.
   ============================================================ */

/* Compact status filter bar (Watch Status tab) */
.ws-stat-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-stat {
    background: #16162A;
    padding: 0.85rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease;
    text-decoration: none;
    display: block;
}
.ws-stat:hover { background: #1a1a2e; }
.ws-stat.active {
    background: #1e1640;
    outline: 1px solid rgba(124, 58, 237, 0.45);
    outline-offset: -1px;
}
.ws-stat-num {
    display: block;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.ws-stat.active .ws-stat-num { color: #C4B5FD; }
.ws-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(232, 230, 240, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
    font-weight: 500;
}
.ws-stat-dropped .ws-stat-num { color: #F87171; }
.ws-stat-dropped.active {
    background: #1a0e0e;
    outline-color: rgba(239, 68, 68, 0.35);
}
.ws-stat-dropped.active .ws-stat-num { color: #fca5a5; }
@media (max-width: 767.98px) {
    .ws-stat-bar { grid-template-columns: repeat(3, 1fr); }
}

/* Controls row above the list */
.ws-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ws-pager {
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.45);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.ws-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.45);
}
.ws-sort select {
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: rgba(232, 230, 240, 0.85);
    font-size: 0.78rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
}
.ws-sort select:focus { border-color: rgba(124, 58, 237, 0.5); }

/* Show list container + rows */
.ws-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-row {
    background: #16162A;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    transition: background-color 0.18s ease;
    cursor: pointer;
}
.ws-row:hover { background: #1a1a2e; }
.ws-thumb-img {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.ws-thumb-fallback {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
    flex-shrink: 0;
}
.ws-info { min-width: 0; }
.ws-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.ws-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #E8E6F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
    text-decoration: none;
}
.ws-title:hover { color: #A78BFA; }
.ws-seasons {
    font-size: 11px;
    color: rgba(232, 230, 240, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}
.ws-fav { color: #f87171; font-size: 0.85rem; }
.ws-rewatch {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.18);
    color: #A78BFA;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Status badges (Watch Status tab) */
.ws-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    border: 1px solid;
}
.ws-badge.badge-planning  { background: rgba(99, 102, 241, 0.15);  color: #A5B4FC; border-color: rgba(99, 102, 241, 0.25); }
.ws-badge.badge-watching  { background: rgba(124, 58, 237, 0.15);  color: #A78BFA; border-color: rgba(124, 58, 237, 0.28); }
.ws-badge.badge-completed { background: rgba(16, 185, 129, 0.12);  color: #34D399; border-color: rgba(52, 211, 153, 0.22); }
.ws-badge.badge-onhold    { background: rgba(245, 158, 11, 0.12);  color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }
.ws-badge.badge-dropped   { background: rgba(239, 68, 68, 0.12);   color: #F87171; border-color: rgba(239, 68, 68, 0.22); }

/* Meta row */
.ws-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}
.ws-eps { font-size: 12px; color: rgba(232, 230, 240, 0.5); }
.ws-rating {
    font-size: 12px;
    color: #FBBF24;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Progress bar */
.ws-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.ws-progress-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    max-width: 220px;
}
.ws-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: #7C3AED;
    transition: width 0.3s ease;
}
.ws-progress-fill.is-done { background: #34D399; }
.ws-progress-label {
    font-size: 11px;
    color: rgba(232, 230, 240, 0.4);
    white-space: nowrap;
    min-width: 30px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Row actions (edit + delete) — same icon-btn pattern as the library cards */
.ws-actions { display: flex; gap: 2px; flex-shrink: 0; }
.ws-actions .lib-icon-btn { padding: 5px 7px; }

@media (max-width: 575.98px) {
    .ws-title { max-width: 180px; }
    .ws-progress-bg { max-width: 120px; }
}

/* ============================================================
   Games / Manga tab — shared card grid (.gm-*)
   ============================================================ */
.gm-stat-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.gm-stat {
    background: #16162A;
    padding: 0.85rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease;
    text-decoration: none;
    display: block;
}
.gm-stat:hover { background: #1a1a2e; }
.gm-stat.active {
    background: #1e1640;
    outline: 1px solid rgba(124, 58, 237, 0.45);
    outline-offset: -1px;
}
.gm-stat-num {
    display: block;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.gm-stat.active .gm-stat-num { color: #C4B5FD; }
.gm-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(232, 230, 240, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
    font-weight: 500;
}
.gm-stat-dropped .gm-stat-num { color: #F87171; }
.gm-stat-dropped.active {
    background: #1a0e0e;
    outline-color: rgba(239, 68, 68, 0.35);
}
.gm-stat-dropped.active .gm-stat-num { color: #fca5a5; }
@media (max-width: 767.98px) {
    .gm-stat-bar { grid-template-columns: repeat(3, 1fr); }
}

.gm-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.gm-count {
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.45);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.gm-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.45);
}
.gm-sort select {
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: rgba(232, 230, 240, 0.85);
    font-size: 0.78rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
}
.gm-sort select:focus { border-color: rgba(124, 58, 237, 0.5); }

/* 4-column card grid */
.gm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 991.98px) { .gm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)    { .gm-grid { grid-template-columns: repeat(2, 1fr); } }

.gm-card {
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    text-decoration: none;
    display: block;
    color: inherit;
}
.gm-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}
.gm-card:hover .gm-card-actions { opacity: 1; }

.gm-cover-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.gm-cover-fallback {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}

/* Hover-revealed top-right actions */
.gm-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.gm-icon-btn {
    background: rgba(0, 0, 0, 0.65);
    border: none;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.gm-icon-btn:hover { background: rgba(0, 0, 0, 0.85); color: #fff; }
.gm-icon-btn-danger:hover { background: rgba(239, 68, 68, 0.6); color: #fff; }

.gm-card-body { padding: 0.65rem 0.75rem 0.8rem; }
.gm-card-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #E8E6F0;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Badges (reuse same color scheme as the .ws-badge set, but as gm-badge) */
.gm-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    border: 1px solid;
}
.gm-badge.badge-planning  { background: rgba(99, 102, 241, 0.15);  color: #A5B4FC; border-color: rgba(99, 102, 241, 0.25); }
.gm-badge.badge-playing,
.gm-badge.badge-reading,
.gm-badge.badge-watching  { background: rgba(124, 58, 237, 0.15);  color: #A78BFA; border-color: rgba(124, 58, 237, 0.28); }
.gm-badge.badge-completed { background: rgba(16, 185, 129, 0.12);  color: #34D399; border-color: rgba(52, 211, 153, 0.22); }
.gm-badge.badge-onhold    { background: rgba(245, 158, 11, 0.12);  color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }
.gm-badge.badge-dropped   { background: rgba(239, 68, 68, 0.12);   color: #F87171; border-color: rgba(239, 68, 68, 0.22); }

.gm-rating {
    font-size: 12px;
    color: #FBBF24;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* Watch-status entry rows */
.list-group {
    background: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.list-group-item {
    background: #16162A !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(232, 230, 240, 0.85) !important;
    padding: 0.85rem 1rem !important;
    transition: background-color 0.15s ease;
}
.list-group-item:hover { background: #1a1a2e !important; }
.list-group-item:last-child { border-bottom: none !important; }
.list-group-item img.rounded { border-radius: 6px !important; }
.list-group-item a.fw-bold {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    color: rgba(232, 230, 240, 0.95) !important;
}
.list-group-item .badge.bg-info {
    background: rgba(124, 58, 237, 0.2) !important;
    color: #A78BFA !important;
}
.list-group-item .badge.bg-dark,
.list-group-item .badge.bg-dark.bg-opacity-50 {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(232, 230, 240, 0.55) !important;
}

/* Status badge color hints (Watching=blue, Completed=green, OnHold=amber, Dropped=red, Planning=muted) */
.bg-status-watching { background: rgba(124, 58, 237, 0.22) !important; color: #A78BFA !important; }
.bg-status-completed { background: rgba(52, 211, 153, 0.18) !important; color: #6ee7b7 !important; }
.bg-status-onhold { background: rgba(245, 158, 11, 0.18) !important; color: #fbbf24 !important; }
.bg-status-dropped { background: rgba(239, 68, 68, 0.18) !important; color: #fca5a5 !important; }
.bg-status-planning { background: rgba(255, 255, 255, 0.08) !important; color: rgba(232, 230, 240, 0.6) !important; }

/* Nav tabs (Watch Status / Games / Manga / Lists / Shared) */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    gap: 0.25rem;
    padding: 0 0.25rem;
}
.nav-tabs .nav-link {
    color: rgba(232, 230, 240, 0.55) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.65rem 1rem !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}
.nav-tabs .nav-link:hover {
    color: #E8E6F0 !important;
    border-bottom-color: rgba(167, 139, 250, 0.35) !important;
    background: transparent !important;
}
.nav-tabs .nav-link.active {
    color: #A78BFA !important;
    background: transparent !important;
    border-bottom-color: #7C3AED !important;
}
.nav-tabs .nav-link .badge {
    background: rgba(124, 58, 237, 0.2) !important;
    color: #A78BFA !important;
    font-size: 0.65rem !important;
    padding: 0.18rem 0.45rem !important;
    border-radius: 4px !important;
    margin-left: 0.3rem;
    font-weight: 600;
}
.nav-tabs .nav-link .badge.bg-danger {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #fca5a5 !important;
}

/* Pagination */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(232, 230, 240, 0.7) !important;
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 0.4rem 0.7rem !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
}
.pagination .page-link:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    color: #A78BFA !important;
}
.pagination .page-item.active .page-link {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: #fff !important;
}
.pagination .page-item.disabled .page-link {
    opacity: 0.35;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Library page header (title + subtitle) */
.library-title {
    font-family: 'Syne', system-ui, sans-serif !important;
    font-size: clamp(1.6rem, 3vw, 1.9rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #E8E6F0 !important;
}
.library-subtitle {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: rgba(232, 230, 240, 0.35);
    font-size: 0.82rem;
}

/* Library stat-bar (4 metric tiles) */
.library-stats {
    display: flex;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.library-stat {
    flex: 1;
    background: #16162A;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 0;
}
.library-stat-num {
    display: block;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.library-stat-label {
    font-size: 0.7rem;
    color: rgba(232, 230, 240, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* Custom Lists tab — list-of-lists grid + cards */
.lib-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 230, 240, 0.4);
    margin-bottom: 1rem;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.lib-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lib-list-card {
    position: relative;
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Faded cover background — first entry's poster, half-width on the right, fading left. */
.lib-card-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 55%;
    background-size: cover;
    background-position: right center;
    opacity: 0.55;
    filter: blur(2px) saturate(1.1);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
            mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
}
.lib-list-card:hover .lib-card-bg { opacity: 0.7; }
/* Soft top-to-bottom darken under the title so it stays legible on bright covers. */
.lib-list-card:has(.lib-card-bg)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 22, 42, 0.35) 0%, rgba(22, 22, 42, 0.55) 100%);
    z-index: 0;
    pointer-events: none;
}
.lib-list-card:has(.lib-card-bg) .lib-card-title {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
/* Action icons sit over the cover — give them a frosted dark pill so they don't blend in. */
.lib-list-card:has(.lib-card-bg) .lib-actions {
    background: rgba(12, 12, 20, 0.55);
    border-radius: 9px;
    padding: 2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lib-list-card:has(.lib-card-bg) .lib-icon-btn { color: rgba(232, 230, 240, 0.8); }
.lib-list-card:has(.lib-card-bg) .lib-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.lib-list-card:has(.lib-card-bg) .lib-icon-btn-danger:hover { color: #fff; background: rgba(239, 68, 68, 0.5); }
.lib-card-accent,
.lib-card-body { position: relative; z-index: 1; }
.lib-list-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}
.lib-list-card:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

.lib-card-accent { height: 4px; flex-shrink: 0; }
.lib-accent-purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.lib-accent-teal   { background: linear-gradient(90deg, #0d9488, #5eead4); }
.lib-accent-amber  { background: linear-gradient(90deg, #d97706, #fbbf24); }

.lib-card-body {
    padding: 1.1rem 1.1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 130px;
}
.lib-card-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #E8E6F0;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.lib-card-owner {
    font-size: 12px;
    color: rgba(232, 230, 240, 0.4);
    margin-bottom: 0.75rem;
}
.lib-card-owner.hidden { visibility: hidden; }

.lib-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.lib-meta-item {
    font-size: 12px;
    color: rgba(232, 230, 240, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lib-meta-item svg { color: rgba(232, 230, 240, 0.35); }
.lib-meta-empty { color: rgba(232, 230, 240, 0.3); font-style: italic; }

.lib-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}
.lib-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-actions { display: inline-flex; gap: 2px; flex-shrink: 0; }

/* Collaborator rows inside the Edit modal */
.lib-collab-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.4rem;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lib-collab-row:last-child { margin-bottom: 0; }
.lib-collab-name {
    flex: 1;
    font-size: 0.82rem;
    color: #E8E6F0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lib-collab-state {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}
.lib-collab-state.is-accepted {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}
.lib-collab-state.is-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}
.lib-collab-remove { padding: 4px 6px; }
.lib-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    border: 1px solid;
}
.lib-badge-public  { background: rgba(16, 185, 129, 0.12); color: #34D399; border-color: rgba(52, 211, 153, 0.25); }
.lib-badge-private { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.1); }
.lib-badge-merged  { background: rgba(124, 58, 237, 0.12); color: #A78BFA; border-color: rgba(124, 58, 237, 0.22); }
.lib-badge-collab  { background: rgba(6, 182, 212, 0.1); color: #67E8F9; border-color: rgba(6, 182, 212, 0.22); }
.lib-badge-tier    { background: rgba(245, 158, 11, 0.1); color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }

.lib-icon-btn {
    background: transparent;
    border: none;
    color: rgba(232, 230, 240, 0.45);
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.lib-icon-btn:hover {
    color: rgba(232, 230, 240, 0.8);
    background: rgba(255, 255, 255, 0.06);
}
.lib-icon-btn-danger:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

/* Dashed "Create new list" tile */
.lib-new-list-card {
    background: rgba(124, 58, 237, 0.04);
    border: 1px dashed rgba(124, 58, 237, 0.28);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-height: 160px;
    color: rgba(124, 58, 237, 0.55);
}
.lib-new-list-card:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.5);
    color: #A78BFA;
}
.lib-new-list-card svg { color: inherit; }
.lib-new-list-label {
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: inherit;
}

@media (max-width: 991.98px) {
    .lib-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .library-stats { flex-wrap: wrap; }
    .library-stat { flex-basis: calc(50% - 1px); }
    .library-stat-num { font-size: 1.2rem; }
    .lib-list-grid { grid-template-columns: 1fr; }
}

/* Sort + form selects on the page (Sort dropdown, ranges, etc.) */
.container .form-select,
.container .form-select-sm {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(232, 230, 240, 0.85) !important;
    border-radius: 8px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
}
.container .form-select:focus {
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: none !important;
}
.container .form-select option { background: #1c1c30; color: #E8E6F0; }

/* "+ New List" primary button + Modals */
.container .btn-primary[data-bs-target="#createListModal"] {
    background: #7C3AED !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 500 !important;
}

.modal-content {
    background: #16162A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #E8E6F0;
    padding: 1.25rem 1.5rem !important;
}
.modal-body { padding: 1.25rem 1.5rem !important; }
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 1rem 1.5rem !important;
    gap: 8px;
}
.modal-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem !important;
    letter-spacing: -0.01em;
    color: #E8E6F0;
}

.form-label {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    color: rgba(232, 230, 240, 0.55) !important;
    margin-bottom: 6px !important;
    font-weight: 400 !important;
}
.form-label-optional {
    color: rgba(232, 230, 240, 0.3) !important;
    font-weight: 300;
}

.form-control {
    background: #0E0E1C !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #E8E6F0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    padding: 9px 12px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 300;
    transition: border-color 0.18s ease;
}
.form-control:focus {
    border-color: rgba(124, 58, 237, 0.5) !important;
    background: #0E0E1C !important;
    box-shadow: none !important;
}
.form-control::placeholder {
    color: rgba(232, 230, 240, 0.25) !important;
}

/* Bootstrap's compact-variant inputs/selects keep their tighter sizing so
   per-row edit modals (Watch Status, etc.) don't balloon. */
.form-control.form-control-sm,
.form-select.form-select-sm {
    font-size: 0.78rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
}

/* Custom-looking checkbox (Bootstrap's input enlarged + purple) */
.form-check-input {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px !important;
    margin-right: 4px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: none !important;
}
.form-check-input:focus { box-shadow: none !important; border-color: rgba(124, 58, 237, 0.55) !important; }
.form-check-input:checked {
    background-color: #7C3AED !important;
    border-color: #7C3AED !important;
}
.form-check-label {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.85rem !important;
    color: rgba(232, 230, 240, 0.75) !important;
    font-weight: 300;
    padding-left: 6px;
    cursor: pointer;
}

/* Ghost Cancel button (.btn-secondary on the Library modals) */
.modal .btn-secondary {
    background: transparent !important;
    color: rgba(232, 230, 240, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.modal .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(232, 230, 240, 0.85) !important;
    background: transparent !important;
}

/* Primary modal buttons match the spec */
.modal .btn-primary {
    background: #7C3AED !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}
.modal .btn-primary:hover { background: #6D28D9 !important; }
.modal .btn-danger {
    background: #ef4444 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}
.modal .btn-danger:hover { background: #dc2626 !important; }

/* Empty state icon */
.text-body-secondary[style*="font-size: 3rem"] {
    opacity: 0.4;
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .home-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 2rem;
        text-align: center;
    }
    .home-hero-text { text-align: center; }
    .home-hero-eyebrow { justify-content: center; }
    .home-hero-eyebrow::before { display: none; }
    .home-hero-sub { margin-left: auto; margin-right: auto; }
    .home-hero-actions { justify-content: center; }
    .home-hero-cards {
        height: 340px;
        max-width: 420px;
        margin: 0 auto;
    }
    .home-hcard { width: 200px; }
    .home-hcard[data-pos="0"] { left: 0; }
    .home-hcard[data-pos="1"] { left: 50%; transform: translateX(-50%) rotate(-1deg); }
    .home-hcard[data-pos="2"] { left: auto; right: 0; }
    .home-stat { padding: 0 1rem; flex-basis: 33%; }
    .home-stat-num { font-size: 1.4rem; }
    .home-feat-grid { grid-template-columns: 1fr; }
    .home-features { padding: 2rem 0; }
}

/* ============================================================
   ViewList page (/List/{id}) — drag-and-drop list view (.lv-*)
   ============================================================ */
.lv-header { margin-bottom: 1.25rem; }
.lv-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.lv-header-info { flex: 1; min-width: 0; }
.lv-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.6rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #E8E6F0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.4rem;
    word-break: break-word;
}
.lv-description {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: rgba(232, 230, 240, 0.5);
    font-size: 0.92rem;
    margin: 0 0 0.75rem;
}
.lv-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lv-meta-stat {
    font-size: 0.78rem;
    color: rgba(232, 230, 240, 0.4);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lv-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    border: 1px solid;
    white-space: nowrap;
}
.lv-badge.lv-badge-public  { background: rgba(16, 185, 129, 0.12); color: #34D399; border-color: rgba(52, 211, 153, 0.22); }
.lv-badge.lv-badge-private { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.1); }
.lv-badge.lv-badge-merged  { background: rgba(124, 58, 237, 0.12); color: #A78BFA; border-color: rgba(124, 58, 237, 0.22); }

/* "Shared with" avatar list */
.lv-shared {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 4px;
}
.lv-shared-label {
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.3);
    font-family: 'DM Sans', system-ui, sans-serif;
    margin-right: 2px;
}
.lv-shared-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    border-radius: 999px;
    padding: 2px 6px 2px 2px;
    transition: background-color 0.18s ease;
}
.lv-shared-user:hover { background: rgba(124, 58, 237, 0.12); }
.lv-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #A78BFA;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lv-shared-name {
    font-size: 0.78rem;
    color: rgba(232, 230, 240, 0.6);
}

/* Header action buttons */
.lv-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lv-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(232, 230, 240, 0.55);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.lv-btn-ghost:hover, .lv-btn-ghost.show {
    border-color: rgba(124, 58, 237, 0.5);
    color: #A78BFA;
}
.lv-btn-icon { padding: 6px 9px; }

.lv-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0 0;
}

/* Tabs */
.lv-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 1.25rem 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.lv-tabs::-webkit-scrollbar { display: none; }
.lv-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(232, 230, 240, 0.45);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    transition: color 0.18s ease;
}
.lv-tab:hover { color: rgba(232, 230, 240, 0.75); }
.lv-tab.active { color: #A78BFA; border-bottom-color: #7C3AED; }

/* Controls */
.lv-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.lv-entry-count {
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.4);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lv-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.45);
}
.lv-sort select {
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: rgba(232, 230, 240, 0.85);
    font-size: 0.78rem;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lv-sort select:focus { border-color: rgba(124, 58, 237, 0.5); }

/* List + rows */
.lv-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.lv-row {
    background: #16162A;
    padding: 0.7rem 0.9rem;
    display: grid;
    grid-template-columns: 20px 52px 1fr auto;
    gap: 12px;
    align-items: center;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    user-select: none;
}
.lv-row:hover { background: #1a1a2e; }

/* SortableJS drag states */
.lv-row-ghost {
    background: rgba(124, 58, 237, 0.08) !important;
    outline: 1px dashed rgba(124, 58, 237, 0.35);
    outline-offset: -1px;
}
.lv-row-ghost > * { opacity: 0; }
.lv-row-chosen {
    background: #1a1a2e !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.3);
    /* Don't use transform here — SortableJS clones the dragged element AFTER applying
       chosenClass, so a transform on this class blocks SortableJS's own translate3d
       from positioning the floating clone on mobile (clone gets stuck in place). */
    z-index: 10;
    cursor: grabbing !important;
}
.lv-row-dragging {
    background: #1a1a2e !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.4);
    opacity: 0.95 !important;
    cursor: grabbing !important;
    border-radius: 10px;
}
/* SortableJS forceFallback floating clone — applied via fallbackClass option.
   `transition: none` is critical: .lv-row has `transition: transform 0.18s` which the
   clone inherits, and that animates every SortableJS translate3d update, making the
   clone visibly lag behind / barely move on touch. */
.lv-row-fallback,
.sortable-fallback {
    opacity: 0.95 !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Drag handle */
.lv-drag {
    color: rgba(255, 255, 255, 0.15);
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    touch-action: none;
    transition: color 0.18s ease;
}
.lv-row:hover .lv-drag { color: rgba(255, 255, 255, 0.45); }
.lv-row-chosen .lv-drag, .lv-row-dragging .lv-drag { cursor: grabbing; color: #A78BFA; }

/* Thumbnail */
.lv-thumb {
    width: 52px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.lv-thumb-fallback {
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}

/* Info block */
.lv-info { min-width: 0; }
.lv-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}
.lv-show-title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #E8E6F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
    text-decoration: none;
}
.lv-show-title:hover { color: #A78BFA; }

.lv-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1px;
}
.lv-meta-item {
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.35);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.lv-rating {
    font-size: 0.75rem;
    color: #FBBF24;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Status badge variants (lv-row uses .lv-badge.badge-*) — reuse the same color tokens. */
.lv-row .lv-badge.badge-planning  { background: rgba(99, 102, 241, 0.15); color: #A5B4FC; border-color: rgba(99, 102, 241, 0.25); }
.lv-row .lv-badge.badge-watching,
.lv-row .lv-badge.badge-playing,
.lv-row .lv-badge.badge-reading   { background: rgba(124, 58, 237, 0.15); color: #A78BFA; border-color: rgba(124, 58, 237, 0.28); }
.lv-row .lv-badge.badge-completed { background: rgba(16, 185, 129, 0.12); color: #34D399; border-color: rgba(52, 211, 153, 0.22); }
.lv-row .lv-badge.badge-onhold    { background: rgba(245, 158, 11, 0.12); color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }
.lv-row .lv-badge.badge-dropped   { background: rgba(239, 68, 68, 0.12); color: #F87171; border-color: rgba(239, 68, 68, 0.22); }

/* Progress bar */
.lv-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.lv-eps-label {
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 52px;
}
.lv-progress-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    max-width: 200px;
}
.lv-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: #7C3AED;
    transition: width 0.3s ease;
}
.lv-progress-fill.is-done { background: #34D399; }
.lv-pct-label {
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
}
.lv-pct-label.is-done { color: #34D399; }

/* Row actions */
.lv-actions { display: flex; gap: 2px; flex-shrink: 0; }
.lv-actions form { margin: 0; }
.lv-icon-btn {
    background: transparent;
    border: none;
    color: rgba(232, 230, 240, 0.4);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.lv-icon-btn:hover { color: rgba(232, 230, 240, 0.85); background: rgba(255, 255, 255, 0.06); }
.lv-icon-btn-danger:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.1); }

@media (max-width: 575.98px) {
    .lv-row { grid-template-columns: 16px 44px 1fr auto; gap: 8px; padding: 0.6rem 0.7rem; }
    .lv-thumb { width: 44px; height: 60px; }
    .lv-show-title { max-width: 180px; }
    .lv-progress-bg { max-width: 100px; }
    .lv-header-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   Anime Detail page (Details + Show) — mockup-aligned (.dp-*)
   ============================================================ */
.dp-hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 0 1.5rem;
    align-items: start;
}

.dp-poster {
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.dp-poster-img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    display: block;
}
.dp-poster-fallback {
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
}

.dp-info { min-width: 0; padding-top: 0.25rem; }

.dp-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #E8E6F0;
    line-height: 1.15;
    margin: 0 0 0.3rem;
}
.dp-admin-edit {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(232, 230, 240, 0.55) !important;
    border-radius: 7px !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    text-decoration: none;
    margin-left: 0.6rem;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    vertical-align: middle;
}
.dp-admin-edit:hover { border-color: #A78BFA !important; color: #A78BFA !important; }

.dp-alttitles {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.32);
    margin-bottom: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.dp-badge {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid;
    white-space: nowrap;
}
.dp-badge-type     { background: rgba(99, 102, 241, 0.15);  color: #A5B4FC; border-color: rgba(99, 102, 241, 0.25); }
.dp-badge-airing   { background: rgba(239, 68, 68, 0.15);   color: #FCA5A5; border-color: rgba(239, 68, 68, 0.25); }
.dp-badge-finished { background: rgba(16, 185, 129, 0.12);  color: #34D399; border-color: rgba(52, 211, 153, 0.22); }
.dp-badge-upcoming { background: rgba(245, 158, 11, 0.12);  color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }
.dp-badge-neutral  { background: rgba(255, 255, 255, 0.06); color: rgba(232, 230, 240, 0.55); border-color: rgba(255, 255, 255, 0.1); }

/* Filler stats row */
.dp-filler-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.dp-filler-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid;
}
.dp-filler-total { background: rgba(124, 58, 237, 0.12); color: #A78BFA; border-color: rgba(124, 58, 237, 0.25); }
.dp-filler-saved { background: rgba(16, 185, 129, 0.1); color: #34D399; border-color: rgba(52, 211, 153, 0.22); }

/* Content warnings */
.dp-warnings {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.dp-warnings-label { font-size: 0.7rem; color: rgba(232, 230, 240, 0.4); margin-right: 2px; }
.dp-warn {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid;
}
.dp-warn-severe   { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border-color: rgba(239, 68, 68, 0.28); }
.dp-warn-moderate { background: rgba(245, 158, 11, 0.12); color: #FBBF24; border-color: rgba(245, 158, 11, 0.22); }
.dp-warn-mild     { background: rgba(255, 255, 255, 0.06); color: rgba(232, 230, 240, 0.55); border-color: rgba(255, 255, 255, 0.1); }

/* Actions row */
.dp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Status select — purple primary, custom chevron */
.dp-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.dp-select {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 30px 8px 13px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: background-color 0.18s ease;
}
.dp-select:hover { background: #6D28D9; }
.dp-select option { background: #1c1c30; color: #E8E6F0; }
.dp-select-chevron {
    position: absolute;
    right: 9px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.85);
}

/* Star rating */
.dp-score-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    transition: border-color 0.18s ease;
}
.dp-score-wrap:hover:not(.dp-score-disabled) { border-color: rgba(255, 255, 255, 0.22); }
.dp-score-disabled { opacity: 0.6; cursor: not-allowed; }
.dp-score-stars { display: inline-flex; gap: 2px; }
.dp-star {
    background: transparent;
    border: none;
    padding: 1px 2px;
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    display: inline-flex;
    transition: color 0.12s ease;
}
.dp-star.lit { color: #FBBF24; }
.dp-score-disabled .dp-star { cursor: not-allowed; }
.dp-score-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.4);
    min-width: 34px;
}

/* Icon-only & ghost action buttons */
.dp-btn-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(232, 230, 240, 0.45);
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.dp-btn-icon:hover { border-color: rgba(255, 255, 255, 0.3); color: rgba(232, 230, 240, 0.85); }
.dp-btn-icon.active {
    border-color: rgba(124, 58, 237, 0.55);
    color: #A78BFA;
    background: rgba(124, 58, 237, 0.12);
}
.dp-btn-icon-danger:hover { border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; background: rgba(239, 68, 68, 0.08); }

.dp-btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(232, 230, 240, 0.55);
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.dp-btn-action:hover, .dp-btn-action.show {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(232, 230, 240, 0.9);
}

/* Current-entry info inline (progress + remove) */
.dp-current-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(232, 230, 240, 0.5);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    margin-left: 0.2rem;
}
.dp-entry-progress { white-space: nowrap; }

/* Body grid: main + sidebar */
.dp-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 4rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}
.dp-main { min-width: 0; }

.dp-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0 !important;
    padding: 0 !important;
}
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tabs .nav-item { list-style: none; }
.dp-tabs .nav-link {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
    color: rgba(232, 230, 240, 0.4) !important;
    cursor: pointer;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    white-space: nowrap;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 500 !important;
}
.dp-tabs .nav-link:hover { color: rgba(232, 230, 240, 0.7) !important; background: transparent !important; }
.dp-tabs .nav-link.active {
    color: #A78BFA !important;
    border-bottom-color: #7C3AED !important;
    background: transparent !important;
}

.dp-section-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 230, 240, 0.35);
    margin-bottom: 0.75rem;
}

.dp-synopsis {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.92rem;
    color: rgba(232, 230, 240, 0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Sidebar */
.dp-sidebar { padding-top: 1px; }
.dp-sidebar-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 230, 240, 0.35);
    margin: 1.25rem 0 0.6rem;
}
.dp-sidebar-label:first-child { margin-top: 0; }

.dp-meta-card {
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.dp-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.dp-meta-row:last-child { border-bottom: none; }
.dp-meta-key { font-size: 0.78rem; color: rgba(232, 230, 240, 0.4); }
.dp-meta-val { font-size: 0.8rem; color: rgba(232, 230, 240, 0.75); text-align: right; }

.dp-genres { display: flex; gap: 5px; flex-wrap: wrap; }
.dp-genre {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.12);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.22);
    text-decoration: none;
    transition: background-color 0.18s ease;
}
.dp-genre:hover { background: rgba(124, 58, 237, 0.22); color: #c4b5fd; }

.dp-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dp-tag {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(232, 230, 240, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.dp-tag:hover { background: rgba(255, 255, 255, 0.08); color: rgba(232, 230, 240, 0.8); }

/* External links partial in the sidebar — give its h6 headings the dp-sidebar-label look,
   and tighten the button list so it doesn't look like a wall of pills. */
.dp-sidebar-extlinks h6 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 230, 240, 0.35);
    margin: 1.25rem 0 0.6rem;
}
.dp-sidebar-extlinks .d-flex.flex-wrap {
    gap: 5px !important;
}
.dp-sidebar-extlinks .list-group {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.dp-sidebar-extlinks .list-group-item {
    background: #16162A !important;
    color: rgba(232, 230, 240, 0.75) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0.55rem 0.75rem !important;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem !important;
}
.dp-sidebar-extlinks .list-group-item:last-child { border-bottom: none !important; }
.dp-sidebar-extlinks .list-group-item:hover {
    background: #1a1a2e !important;
    color: #E8E6F0 !important;
}

@media (max-width: 768px) {
    .dp-hero { grid-template-columns: 1fr; padding: 1.5rem 0 1rem; gap: 1.25rem; }
    .dp-poster, .dp-poster-img, .dp-poster-fallback { width: 140px; height: auto; margin: 0 auto; }
    .dp-poster-img, .dp-poster-fallback { height: 200px; }
    .dp-title { font-size: 1.4rem; }
    .dp-body { grid-template-columns: 1fr; padding: 0 0 3rem; }
    .dp-sidebar { order: -1; }
}

/* ============================================================
   Episodes tab (.ep-*)
   ============================================================ */
.ep-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}
.ep-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #16162A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: inherit;
    transition: border-color 0.18s ease;
}
.ep-toggle:hover { border-color: rgba(255, 255, 255, 0.22); }
.ep-toggle.active { border-color: rgba(124, 58, 237, 0.45); }
.ep-toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    transition: background-color 0.18s ease;
    flex-shrink: 0;
    display: inline-block;
}
.ep-toggle-track.on { background: #7C3AED; }
.ep-toggle-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.18s ease;
}
.ep-toggle-track.on .ep-toggle-thumb { left: 19px; }
.ep-toggle-label {
    font-size: 0.82rem;
    color: rgba(232, 230, 240, 0.55);
}
.ep-toggle-label strong { color: #E8E6F0; font-weight: 500; }

.ep-saved {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    color: #34D399;
    display: none;
    align-items: center;
    gap: 5px;
}
.ep-saved.visible { display: inline-flex; }

/* Season blocks */
.ep-season { margin-bottom: 2rem; }
.ep-season-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.ep-season-header:hover .ep-season-chevron { color: rgba(255, 255, 255, 0.55); }
.ep-season-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #E8E6F0;
    letter-spacing: -0.005em;
}
.ep-season-eps {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    color: rgba(232, 230, 240, 0.4);
}
.ep-season-pill {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.22);
}
.ep-season-pill-clean {
    background: rgba(52, 211, 153, 0.12);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.22);
}
.ep-season-chevron {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.ep-season-chevron.collapsed { transform: rotate(-90deg); }

/* Filler summary row */
.ep-filler-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.ep-stat { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.78rem; }
.ep-stat-canon  { color: #A78BFA; }
.ep-stat-filler { color: #FBBF24; }
.ep-stat-recap  { color: #67E8F9; }

.ep-filler-nums-toggle {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.18s ease;
}
.ep-filler-nums-toggle:hover { color: rgba(232, 230, 240, 0.7); }

.ep-filler-list {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.72rem;
    color: rgba(232, 230, 240, 0.32);
    margin-bottom: 0.85rem;
    line-height: 1.7;
    display: none;
}
.ep-filler-list.visible { display: block; }

/* Episode table */
.ep-table-wrap { overflow-x: auto; }
.ep-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.ep-col-num   { width: 44px; }
.ep-col-title { width: auto; }
.ep-col-date  { width: 120px; }
.ep-col-flags { width: 180px; }
.ep-th {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}
.ep-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease;
}
.ep-row:hover { background: rgba(255, 255, 255, 0.03); }
.ep-row.filler-row { background: rgba(245, 158, 11, 0.05); }
.ep-row.filler-row:hover { background: rgba(245, 158, 11, 0.09); }
.ep-row.upcoming-row { opacity: 0.6; }
.ep-row.filler-hidden { display: none; }

.ep-td { padding: 9px 8px; vertical-align: middle; }
.ep-num { font-size: 0.78rem; color: rgba(232, 230, 240, 0.4); text-align: center; }
.ep-title {
    font-size: 0.82rem;
    color: rgba(232, 230, 240, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-date { font-size: 0.75rem; color: rgba(232, 230, 240, 0.4); white-space: nowrap; }
.ep-flags { display: flex; gap: 4px; flex-wrap: wrap; }

/* Flag badges — type-driven hue, severity overlay for intensity. */
.ep-flag {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
    line-height: 1.4;
}
/* Row-type indicators (not severity-driven). */
.flag-filler   { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border-color: rgba(245, 158, 11, 0.28); }
.flag-recap    { background: rgba(6, 182, 212, 0.12);  color: #67E8F9; border-color: rgba(6, 182, 212, 0.22); }
.flag-upcoming { background: rgba(255, 255, 255, 0.05); color: rgba(232, 230, 240, 0.5); border-color: rgba(255, 255, 255, 0.1); }

/* Content-flag severity colors — mirrors the existing SeverityBg logic
   (Mild → soft amber, Moderate → amber, Severe → red). */
.flag-severity-mild     { background: rgba(245, 158, 11, 0.1);  color: #FBBF24; border-color: rgba(245, 158, 11, 0.18); opacity: 0.85; }
.flag-severity-moderate { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border-color: rgba(245, 158, 11, 0.32); }
.flag-severity-severe   { background: rgba(239, 68, 68, 0.18);  color: #FCA5A5; border-color: rgba(239, 68, 68, 0.35); }

.ep-empty {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    color: rgba(232, 230, 240, 0.35);
    padding: 1rem 0;
}

@media (max-width: 600px) {
    .ep-col-date { display: none; }
    .ep-col-flags { width: 130px; }
    .ep-title { font-size: 0.78rem; }
}


/* ============================================================
   LOGIN PAGE (.lg-*)
   ============================================================ */
.lg-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
}
.lg-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 2rem 2rem 1.75rem;
    color: #F0EEFF;
}
.lg-logo {
    display: block;
    text-align: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.lg-logo span { color: #A78BFA; }
.lg-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.3rem;
}
.lg-sub {
    font-size: 13px;
    color: rgba(240,238,255,0.45);
    text-align: center;
    margin-bottom: 1.5rem;
}
.lg-field { margin-bottom: 1rem; }
.lg-label {
    display: block;
    font-size: 12px;
    color: rgba(240,238,255,0.55);
    margin-bottom: 6px;
    font-weight: 500;
}
.lg-input {
    width: 100%;
    background: #0E0E1C;
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #F0EEFF;
    outline: none;
    transition: border-color 0.2s;
}
.lg-input:focus { border-color: rgba(124,58,237,0.5); }
.lg-input::placeholder { color: rgba(255,255,255,0.2); }
.lg-input-wrap { position: relative; }
.lg-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}
.lg-eye:hover { color: rgba(255,255,255,0.7); }
.lg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.lg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.lg-cb-wrap {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.lg-cb {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}
.lg-cb-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
    pointer-events: none;
}
.lg-cb-box svg { opacity: 0; transition: opacity 0.15s; }
.lg-cb-box.checked { background: #7C3AED; border-color: #7C3AED; }
.lg-cb-box.checked svg { opacity: 1; }
.lg-remember-label { font-size: 12px; color: rgba(240,238,255,0.55); }
.lg-forgot {
    font-size: 12px;
    color: #A78BFA;
    text-decoration: none;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}
.lg-forgot:hover { opacity: 0.7; }
.lg-btn {
    width: 100%;
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.25rem;
}
.lg-btn:hover { background: #6D28D9; }
.lg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lg-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.lg-divider-line {
    flex: 1;
    height: 0.5px;
    background: rgba(255,255,255,0.08);
}
.lg-divider-label {
    font-size: 11px;
    color: rgba(240,238,255,0.35);
    white-space: nowrap;
}
.lg-oauth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.lg-oauth-btn {
    width: 100%;
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-align: left;
}
.lg-oauth-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lg-oauth-label { flex: 1; }
.lg-btn-discord:hover {
    border-color: rgba(88,101,242,0.5);
    color: #7289DA;
    background: rgba(88,101,242,0.07);
}
.lg-icon-discord { background: #5865F2; color: #fff; }
.lg-btn-google:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.lg-icon-google { background: #fff; }
.lg-btn-patreon:hover {
    border-color: rgba(255,66,27,0.5);
    color: #FF5225;
    background: rgba(255,66,27,0.05);
}
.lg-icon-patreon { background: #FF424D; color: #fff; }
.lg-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding-top: 1.25rem;
}
.lg-link {
    font-size: 12px;
    color: rgba(240,238,255,0.45);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    padding: 2px 0;
}
.lg-link:hover { color: rgba(240,238,255,0.75); }
.lg-link span { color: #A78BFA; }
.lg-validation-errors {
    background: rgba(220,53,69,0.1);
    border: 0.5px solid rgba(220,53,69,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 1rem;
    font-size: 12px;
    color: #fda4af;
}
.lg-validation-errors ul { margin: 0; padding-left: 1rem; }
.lg-validation-errors.validation-summary-valid { display: none; }
.lg-alert {
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 1rem;
    font-size: 12px;
}
.lg-alert-success { background: rgba(52,211,153,0.1); border: 0.5px solid rgba(52,211,153,0.3); color: #6ee7b7; }
.lg-alert-error { background: rgba(220,53,69,0.1); border: 0.5px solid rgba(220,53,69,0.3); color: #fda4af; }

/* Modal restyle for login auxiliary forms */
.lg-modal .modal-content {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    color: #F0EEFF;
}
.lg-modal .modal-header {
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1.5rem;
}
.lg-modal .modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.lg-modal .modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.lg-modal .btn-close {
    filter: invert(1) opacity(0.4);
    transition: filter 0.2s;
}
.lg-modal .btn-close:hover { filter: invert(1) opacity(0.8); }
.lg-modal-intro {
    font-size: 13px;
    color: rgba(240,238,255,0.55);
    margin-bottom: 1rem;
}
/* When .lg-input is applied to a <select>, swap in a custom caret since native arrows
   render with browser-default colors that clash with the dark theme. */
.lg-select,
select.lg-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}
.lg-select option,
select.lg-input option {
    background: #16162A;
    color: #F0EEFF;
}
textarea.lg-input { resize: vertical; min-height: 80px; line-height: 1.5; }
.lg-char-counter {
    font-size: 11px;
    color: rgba(240,238,255,0.3);
    text-align: right;
    margin-top: 4px;
}
@media (max-width: 480px) {
    .lg-page { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
    .lg-card { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   PROFILE PAGE (.pf-*)
   ============================================================ */
.pf-hero {
    padding: 2rem 2rem 0;
    margin-bottom: 1.75rem;
    margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
}
.pf-hero-inner { max-width: 900px; margin: 0 auto; }
.pf-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pf-identity { display: flex; align-items: center; gap: 1rem; }
.pf-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(124,58,237,0.4);
}
.pf-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124,58,237,0.4);
    flex-shrink: 0;
}
.pf-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
    color: #F0EEFF;
}
.pf-joined { font-size: 12px; color: rgba(240,238,255,0.35); }
.pf-actions { display: flex; gap: 6px; flex-shrink: 0; padding-top: 4px; flex-wrap: wrap; }
.pf-btn-ghost {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.pf-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); text-decoration: none; }
.pf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.pf-stat { background: #1A1A2E; padding: 1rem 1.25rem; text-align: center; }
.pf-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.02em;
}
.pf-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(240,238,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.pf-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.pf-full { grid-column: 1 / -1; }
.pf-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    color: #F0EEFF;
}
.pf-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.4);
    margin-bottom: 1rem;
}
.pf-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-status-row:last-child { margin-bottom: 0; }
.pf-status-label { font-size: 12px; color: rgba(240,238,255,0.55); width: 80px; flex-shrink: 0; }
.pf-bar-bg { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.pf-bar-fill { height: 100%; border-radius: 99px; }
.pf-fill-watching { background: #7C3AED; }
.pf-fill-completed { background: #34D399; }
.pf-fill-planning { background: rgba(255,255,255,0.25); }
.pf-fill-dropped { background: #F87171; }
.pf-fill-onhold { background: #FBBF24; }
.pf-status-count { font-size: 12px; color: rgba(240,238,255,0.45); width: 28px; text-align: right; flex-shrink: 0; }
.pf-hl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
    gap: 0.5rem;
}
.pf-hl-row:last-child { border-bottom: none; }
.pf-hl-key { font-size: 12px; color: rgba(240,238,255,0.45); }
.pf-hl-val { font-size: 12px; color: #F0EEFF; font-weight: 500; text-align: right; }
.pf-genre-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.pf-genre-row:last-child { margin-bottom: 0; }
.pf-genre-name {
    font-size: 12px;
    color: rgba(240,238,255,0.55);
    width: 110px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-genre-bar-bg { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.pf-genre-bar-fill { height: 100%; border-radius: 99px; background: #7C3AED; }
.pf-genre-count { font-size: 11px; color: rgba(240,238,255,0.45); width: 32px; text-align: right; flex-shrink: 0; }
.pf-games-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.pf-games-stat { background: #1A1A2E; padding: 0.75rem; text-align: center; }
.pf-games-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.02em;
}
.pf-games-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(240,238,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
}
.pf-platform { font-size: 12px; color: rgba(240,238,255,0.45); text-align: center; }
.pf-platform span { color: rgba(240,238,255,0.65); font-weight: 500; }
.pf-history-row {
    display: grid;
    grid-template-columns: 44px 1fr auto 70px;
    gap: 10px;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.pf-history-row:hover { background: rgba(255,255,255,0.03); color: inherit; text-decoration: none; }
.pf-history-row:last-of-type { border-bottom: none; }
.pf-h-thumb-img {
    width: 44px;
    height: 58px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.pf-h-thumb {
    width: 44px;
    height: 58px;
    border-radius: 5px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}
.pf-h-info { min-width: 0; }
.pf-h-title {
    font-size: 13px;
    font-weight: 500;
    color: #F0EEFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.pf-h-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 400;
    display: inline-block;
}
.pf-badge-watching { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.pf-badge-completed { background: rgba(16,185,129,0.12); color: #34D399; border: 0.5px solid rgba(52,211,153,0.2); }
.pf-badge-planning { background: rgba(99,102,241,0.15); color: #A5B4FC; border: 0.5px solid rgba(99,102,241,0.25); }
.pf-badge-onhold { background: rgba(245,158,11,0.12); color: #FBBF24; border: 0.5px solid rgba(245,158,11,0.2); }
.pf-badge-dropped { background: rgba(239,68,68,0.12); color: #F87171; border: 0.5px solid rgba(239,68,68,0.2); }
.pf-h-score {
    font-size: 12px;
    color: #FBBF24;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.pf-h-score.pf-h-score-none { color: rgba(240,238,255,0.3); }
.pf-h-bar { width: 70px; flex-shrink: 0; }
.pf-h-progress-label { font-size: 11px; color: rgba(240,238,255,0.4); text-align: right; margin-bottom: 3px; }
.pf-h-bar-bg { height: 3px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.pf-h-bar-fill { height: 100%; border-radius: 99px; background: #7C3AED; }
.pf-h-bar-fill.pf-h-bar-done { background: #34D399; }
.pf-view-all {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #A78BFA;
    text-decoration: none;
    margin-top: 1rem;
    transition: opacity 0.2s;
}
.pf-view-all:hover { opacity: 0.7; color: #A78BFA; }
.pf-private {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(240,238,255,0.5);
}
@media (max-width: 640px) {
    .pf-body { grid-template-columns: 1fr; padding: 0 0.5rem; }
    .pf-full { grid-column: 1; }
    .pf-stats { grid-template-columns: repeat(2, 1fr); }
    .pf-hero { padding: 1.5rem 1rem 0; }
    .pf-history-row { grid-template-columns: 44px 1fr auto; }
    .pf-h-bar { display: none; }
}

/* ============================================================
   SETTINGS PAGE (.settings-page wrapper — scoped overrides)
   ============================================================ */
.settings-page {
    color: #F0EEFF;
    padding-top: 1rem;
}
.settings-page h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: #F0EEFF;
}

/* Tabs — pill-style dark nav */
.settings-page .nav-tabs {
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    gap: 4px;
    margin-bottom: 1.5rem !important;
}
.settings-page .nav-tabs .nav-link {
    background: transparent;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: rgba(240,238,255,0.5) !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 0;
    transition: color 0.15s, border-color 0.15s;
}
.settings-page .nav-tabs .nav-link:hover {
    color: rgba(240,238,255,0.85) !important;
    border-bottom-color: rgba(167,139,250,0.4) !important;
}
.settings-page .nav-tabs .nav-link.active {
    color: #A78BFA !important;
    background: transparent !important;
    border-bottom-color: #A78BFA !important;
}
.settings-page .nav-tabs .badge {
    background: rgba(124,58,237,0.2) !important;
    color: #A78BFA !important;
    font-weight: 500;
    font-size: 10px;
    padding: 2px 6px;
}

/* Cards — refined dark cards */
.settings-page .card {
    background: #16162A !important;
    border: 0.5px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
    overflow: hidden;
}
.settings-page .card-header {
    background: transparent !important;
    border-bottom: 0.5px solid rgba(255,255,255,0.06) !important;
    padding: 0.85rem 1.25rem !important;
}
.settings-page .card-header h5 {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #F0EEFF;
    margin: 0;
}
.settings-page .card-body {
    padding: 1.25rem !important;
    color: #F0EEFF;
}
.settings-page .card-body h6 {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(240,238,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem !important;
}
.settings-page hr {
    border-color: rgba(255,255,255,0.08);
    opacity: 1;
}

/* Form labels + helper text */
.settings-page .form-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(240,238,255,0.65);
    margin-bottom: 6px;
}
.settings-page .form-text {
    font-size: 11px;
    color: rgba(240,238,255,0.35);
    margin-top: 4px;
}

/* Inputs + selects */
.settings-page .form-control,
.settings-page .form-select {
    background: #0E0E1C !important;
    border: 0.5px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px !important;
    color: #F0EEFF !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 9px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-page .form-control:focus,
.settings-page .form-select:focus {
    border-color: rgba(124,58,237,0.5) !important;
    box-shadow: 0 0 0 0.15rem rgba(124,58,237,0.15) !important;
    background: #0E0E1C !important;
    color: #F0EEFF !important;
}
.settings-page .form-control:disabled,
.settings-page .form-select:disabled {
    background: rgba(14,14,28,0.5) !important;
    color: rgba(240,238,255,0.45) !important;
    opacity: 1;
}
.settings-page .form-control::placeholder {
    color: rgba(255,255,255,0.2);
}
.settings-page .form-select option {
    background: #16162A;
    color: #F0EEFF;
}
.settings-page .form-control-sm,
.settings-page .form-select-sm {
    font-size: 12px;
    padding: 6px 10px;
}

/* File input — Bootstrap's default file-button looks default-light on dark. */
.settings-page input[type="file"].form-control {
    padding: 6px 8px;
}
.settings-page input[type="file"]::-webkit-file-upload-button {
    background: rgba(124,58,237,0.15);
    color: #A78BFA;
    border: 0.5px solid rgba(124,58,237,0.3);
    border-radius: 6px;
    padding: 5px 10px;
    margin-right: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.settings-page input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(124,58,237,0.25);
}
.settings-page input[type="file"]::file-selector-button {
    background: rgba(124,58,237,0.15);
    color: #A78BFA;
    border: 0.5px solid rgba(124,58,237,0.3);
    border-radius: 6px;
    padding: 5px 10px;
    margin-right: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.settings-page input[type="file"]::file-selector-button:hover {
    background: rgba(124,58,237,0.25);
}

/* Switches + checkboxes */
.settings-page .form-check-input {
    background-color: rgba(14,14,28,0.8) !important;
    border-color: rgba(255,255,255,0.2) !important;
    cursor: pointer;
}
.settings-page .form-check-input:checked {
    background-color: #7C3AED !important;
    border-color: #7C3AED !important;
}
.settings-page .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(124,58,237,0.2) !important;
    border-color: rgba(124,58,237,0.5) !important;
}
.settings-page .form-check-label {
    color: #F0EEFF;
    font-size: 13px;
    cursor: pointer;
}
.settings-page .form-switch .form-check-input {
    width: 2.25em;
}

/* Buttons */
.settings-page .btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.settings-page .btn-primary {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: #fff !important;
    padding: 8px 16px;
}
.settings-page .btn-primary:hover {
    background: #6D28D9 !important;
    border-color: #6D28D9 !important;
}
.settings-page .btn-outline-primary {
    background: transparent !important;
    border: 0.5px solid rgba(167,139,250,0.5) !important;
    color: #A78BFA !important;
    padding: 6px 14px;
}
.settings-page .btn-outline-primary:hover {
    background: rgba(124,58,237,0.1) !important;
    border-color: #A78BFA !important;
    color: #A78BFA !important;
}
.settings-page .btn-outline-danger {
    background: transparent !important;
    border: 0.5px solid rgba(248,113,113,0.4) !important;
    color: #F87171 !important;
    padding: 6px 14px;
}
.settings-page .btn-outline-danger:hover {
    background: rgba(248,113,113,0.1) !important;
    border-color: #F87171 !important;
    color: #F87171 !important;
}
.settings-page .btn-sm {
    font-size: 12px;
    padding: 6px 12px;
}

/* Tables (Content Filters list) */
.settings-page .table {
    color: #F0EEFF;
    margin-bottom: 1rem;
}
.settings-page .table thead {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(240,238,255,0.4);
}
.settings-page .table thead th {
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    font-weight: 600;
    padding: 8px 10px;
}
.settings-page .table tbody td {
    border-bottom: 0.5px solid rgba(255,255,255,0.04);
    padding: 10px;
    font-size: 13px;
    vertical-align: middle;
}
.settings-page .table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.settings-page .badge.bg-secondary,
.settings-page .badge.bg-dark {
    background: rgba(124,58,237,0.18) !important;
    color: #A78BFA !important;
    font-weight: 500;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
}
.settings-page .badge.bg-info {
    background: rgba(96,165,250,0.18) !important;
    color: #93C5FD !important;
}
.settings-page .badge.bg-success {
    background: rgba(52,211,153,0.18) !important;
    color: #34D399 !important;
}

/* Patreon status text */
.settings-page .text-body-secondary { color: rgba(240,238,255,0.55) !important; }
.settings-page .text-body-tertiary { color: rgba(240,238,255,0.35) !important; }
.settings-page .text-warning { color: #FBBF24 !important; }
.settings-page .text-info { color: #93C5FD !important; }
.settings-page .text-success { color: #34D399 !important; }

/* List groups (Blocked shows) */
.settings-page .list-group-item {
    background: #0E0E1C !important;
    border: 0.5px solid rgba(255,255,255,0.08) !important;
    color: #F0EEFF !important;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 8px !important;
}

/* Alerts */
.settings-page .alert {
    border-radius: 8px;
    border: 0.5px solid;
    font-size: 13px;
    padding: 10px 14px;
}
.settings-page .alert-success {
    background: rgba(52,211,153,0.1);
    border-color: rgba(52,211,153,0.3);
    color: #6EE7B7;
}
.settings-page .alert-danger {
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.3);
    color: #FCA5A5;
}

/* ============================================================
   FRIENDS PAGE (.fr-*)
   ============================================================ */
.fr-page { color: #F0EEFF; padding-top: 1rem; }
.fr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 10px;
}
.fr-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    margin: 0;
}
.fr-title-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(240,238,255,0.3);
    margin-left: 6px;
}
.fr-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fr-search {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #F0EEFF;
    outline: none;
    width: 200px;
    transition: border-color 0.2s;
}
.fr-search::placeholder { color: rgba(240,238,255,0.3); }
.fr-search:focus { border-color: rgba(124,58,237,0.5); }
.fr-btn-primary {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.fr-btn-primary:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.fr-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin-bottom: 0.85rem;
    margin-top: 0.5rem;
}
.fr-pending {
    background: #16162A;
    border: 0.5px solid rgba(245,158,11,0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.fr-pending-info { display: flex; align-items: center; gap: 10px; }
.fr-pending-label { font-size: 13px; color: rgba(240,238,255,0.55); }
.fr-pending-label strong { color: #F0EEFF; font-weight: 500; }
.fr-pending-label span { font-size: 11px; color: #FBBF24; margin-left: 4px; }
.fr-pending-actions { display: flex; gap: 6px; }
.fr-btn-accept {
    background: rgba(16,185,129,0.12);
    border: 0.5px solid rgba(52,211,153,0.25);
    color: #34D399;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.fr-btn-accept:hover { background: rgba(16,185,129,0.2); }
.fr-btn-decline {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(240,238,255,0.3);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.fr-btn-decline:hover { border-color: rgba(239,68,68,0.3); color: rgba(239,68,68,0.7); }
.fr-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2rem;
}
.fr-act-row {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fr-act-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.fr-act-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fr-act-thumb-img {
    width: 36px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}
.fr-act-thumb {
    width: 36px;
    height: 48px;
    border-radius: 5px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}
.fr-act-info { flex: 1; min-width: 0; }
.fr-act-text {
    font-size: 13px;
    color: rgba(240,238,255,0.55);
    line-height: 1.5;
}
.fr-act-text strong { color: #F0EEFF; font-weight: 500; }
.fr-act-text a { color: #A78BFA; text-decoration: none; }
.fr-act-text a:hover { opacity: 0.8; color: #A78BFA; }
.fr-act-time {
    font-size: 11px;
    color: rgba(240,238,255,0.3);
    flex-shrink: 0;
    white-space: nowrap;
}
.fr-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 400;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}
.fr-badge-completed { background: rgba(16,185,129,0.12); color: #34D399; border: 0.5px solid rgba(52,211,153,0.2); }
.fr-badge-watching  { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.fr-badge-planning  { background: rgba(99,102,241,0.15); color: #A5B4FC; border: 0.5px solid rgba(99,102,241,0.25); }
.fr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.fr-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.1rem;
    transition: border-color 0.2s, transform 0.2s;
    color: #F0EEFF;
}
.fr-card.hidden { display: none; }
.fr-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.fr-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 0.9rem; }
.fr-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.fr-card-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fr-card-name { font-size: 14px; font-weight: 600; color: #F0EEFF; margin-bottom: 2px; }
.fr-card-since { font-size: 11px; color: rgba(240,238,255,0.3); }
.fr-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.fr-card-stat { background: #1E1E32; padding: 0.5rem; text-align: center; }
.fr-card-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.01em;
}
.fr-card-stat-label {
    display: block;
    font-size: 9px;
    color: rgba(240,238,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 1px;
}
.fr-card-watching {
    font-size: 12px;
    color: rgba(240,238,255,0.55);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.85rem;
    min-height: 18px;
}
.fr-card-watching svg { color: #A78BFA; flex-shrink: 0; }
.fr-card-watching a {
    color: rgba(240,238,255,0.65);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fr-card-watching a:hover { color: #F0EEFF; }
.fr-card-watching.idle { color: rgba(240,238,255,0.3); }
.fr-card-watching.idle svg { color: rgba(240,238,255,0.3); }
.fr-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fr-btn-sm {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.fr-btn-sm:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); text-decoration: none; }
.fr-btn-sm-danger:hover { border-color: rgba(239,68,68,0.3); color: rgba(239,68,68,0.7); }
.fr-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.fr-empty svg { color: rgba(255,255,255,0.08); }
.fr-empty a { color: #A78BFA; text-decoration: none; }
@media (max-width: 640px) {
    .fr-grid { grid-template-columns: 1fr; }
    .fr-search { width: 100%; }
    .fr-header-actions { width: 100%; }
}
@media (max-width: 900px) and (min-width: 641px) {
    .fr-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RECOMMENDATIONS TAB (.rec-*, .pill, .fr-rec-*)
   ============================================================ */
.rec-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.rec-pill {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    cursor: pointer;
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(240,238,255,0.3);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rec-pill:hover { border-color: rgba(255,255,255,0.25); color: rgba(240,238,255,0.5); }
.rec-pill.active {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.rec-pill-count {
    font-size: 10px;
    background: rgba(124,58,237,0.2);
    color: #A78BFA;
    padding: 1px 5px;
    border-radius: 99px;
}
.rec-pill.active .rec-pill-count { background: rgba(124,58,237,0.35); }
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}
.rec-row.hidden { display: none; }
.rec-row {
    background: #16162A;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    color: #F0EEFF;
    text-decoration: none;
}
.rec-row:hover { background: #1A1A2E; color: #F0EEFF; text-decoration: none; }
.rec-thumb-img {
    width: 52px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.rec-thumb {
    width: 52px;
    height: 70px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}
.rec-info { min-width: 0; }
.rec-title {
    font-size: 13px;
    font-weight: 600;
    color: #F0EEFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.rec-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    border: 0.5px solid rgba(255,255,255,0.1);
}
.rec-type-game { background: rgba(16,185,129,0.08); color: #34D399; border-color: rgba(52,211,153,0.15); }
.rec-type-manga { background: rgba(245,158,11,0.08); color: #FBBF24; border-color: rgba(245,158,11,0.15); }
.rec-by {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(240,238,255,0.45);
}
.rec-multi { display: inline-flex; align-items: center; gap: 3px; }
.rec-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 1px solid #16162A;
}
.rec-multi .rec-avatar + .rec-avatar { margin-left: -6px; }
.rec-multi-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(124,58,237,0.15);
    color: #A78BFA;
    border: 0.5px solid rgba(124,58,237,0.25);
    white-space: nowrap;
    margin-left: 2px;
}
.rec-date { font-size: 11px; color: rgba(255,255,255,0.25); }
.rec-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.rec-btn-add {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.rec-btn-add:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.rec-btn-dismiss {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(240,238,255,0.3);
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.rec-btn-dismiss:hover { border-color: rgba(239,68,68,0.3); color: rgba(239,68,68,0.6); }
.rec-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #16162A;
    border-radius: 12px;
}
.rec-empty svg { color: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
    .rec-row { grid-template-columns: 44px 1fr; }
    .rec-actions { display: none; }
}

/* Friends-page recommendations card */
.fr-rec-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.fr-rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.fr-rec-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
}
.fr-rec-link {
    font-size: 12px;
    color: #A78BFA;
    text-decoration: none;
    transition: opacity 0.2s;
}
.fr-rec-link:hover { opacity: 0.7; color: #A78BFA; }
.fr-rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.fr-rec-tile {
    background: #0E0E1C;
    border: 0.5px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    color: inherit;
    text-decoration: none;
    display: block;
}
.fr-rec-tile:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); color: inherit; text-decoration: none; }
.fr-rec-poster-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.fr-rec-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}
.fr-rec-body { padding: 0.5rem 0.6rem 0.6rem; }
.fr-rec-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.fr-rec-from {
    font-size: 10px;
    color: rgba(240,238,255,0.3);
    display: flex;
    align-items: center;
    gap: 3px;
}
.fr-rec-from-av {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ============================================================
   NOTIFICATIONS PAGE (.nf-*)
   ============================================================ */
.nf-page { color: #F0EEFF; padding-top: 1rem; }
.nf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}
.nf-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    margin: 0;
}
.nf-btn-ghost {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nf-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); }
.nf-tabs {
    display: flex;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    gap: 0;
}
.nf-tab {
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}
.nf-tab:hover { color: rgba(255,255,255,0.7); border-bottom-color: rgba(167,139,250,0.3); }
.nf-tab.active { color: #A78BFA; border-bottom-color: #7C3AED; }
.nf-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}
.nf-date-divider {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    padding: 0.6rem 1rem;
    background: #0E0E1C;
}
.nf-row {
    background: #16162A;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    color: inherit;
    text-decoration: none;
}
.nf-row:hover { background: #1A1A2E; color: inherit; text-decoration: none; }
.nf-row.unread { background: #18182E; }
.nf-row.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #7C3AED;
}
.nf-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.nf-icon-rec { background: rgba(124,58,237,0.15); color: #A78BFA; }
.nf-icon-ep { background: rgba(16,185,129,0.12); color: #34D399; }
.nf-icon-announce { background: rgba(245,158,11,0.12); color: #FBBF24; }
.nf-icon-friend { background: rgba(6,182,212,0.1); color: #67E8F9; }
.nf-icon-list { background: rgba(167,139,250,0.12); color: #C4B5FD; }
.nf-content { min-width: 0; }
.nf-text {
    font-size: 13px;
    color: rgba(240,238,255,0.75);
    line-height: 1.55;
    margin-bottom: 3px;
}
.nf-text strong { color: #F0EEFF; font-weight: 500; }
.nf-text a { color: #A78BFA; text-decoration: none; }
.nf-text a:hover { opacity: 0.8; color: #A78BFA; }
.nf-row.unread .nf-text { color: rgba(255,255,255,0.85); }
.nf-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,0.2);
    color: #A78BFA;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 99px;
    margin-left: 5px;
    vertical-align: middle;
}
.nf-timestamp { font-size: 11px; color: rgba(240,238,255,0.3); }
.nf-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7C3AED;
    flex-shrink: 0;
    margin-top: 7px;
}
.nf-read-spacer { width: 7px; flex-shrink: 0; }
.nf-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #16162A;
    border-radius: 12px;
}
.nf-empty svg { color: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
    .nf-text { font-size: 12px; }
}

/* ============================================================
   CHARACTERS TAB (.ct-*)
   ============================================================ */
.ct-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}
.ct-toggle {
    display: inline-flex;
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}
.ct-toggle-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(240,238,255,0.4);
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.ct-toggle-btn:hover { color: rgba(240,238,255,0.7); }
.ct-toggle-btn.active { background: #7C3AED; color: #fff; }
.ct-search {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: #F0EEFF;
    outline: none;
    width: 200px;
    transition: border-color 0.2s;
}
.ct-search::placeholder { color: rgba(240,238,255,0.3); }
.ct-search:focus { border-color: rgba(124,58,237,0.5); }
.ct-section { margin-bottom: 1.75rem; }
.ct-section:last-child { margin-bottom: 0; }
.ct-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-section-count {
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(240,238,255,0.45);
    padding: 1px 6px;
    border-radius: 99px;
    font-weight: 500;
}
.ct-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ct-card.hidden { display: none; }
.ct-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.ct-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.ct-char-img {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}
.ct-char-img-placeholder {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 18px;
}
.ct-card-top {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.ct-card-top:hover { background: rgba(124,58,237,0.05); text-decoration: none; color: inherit; }
.ct-card-top:hover .ct-char-name { color: #fff; }
.ct-card-info {
    flex: 1;
    padding: 0.6rem 0.7rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ct-char-name {
    font-size: 12px;
    font-weight: 600;
    color: #F0EEFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}
.ct-role-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 4px;
    align-self: flex-start;
}
.ct-badge-main { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.ct-badge-supporting { background: rgba(255,255,255,0.06); color: rgba(240,238,255,0.45); border: 0.5px solid rgba(255,255,255,0.1); }
.ct-badge-background { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); border: 0.5px solid rgba(255,255,255,0.07); }
.ct-va-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0.7rem;
    background: rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.ct-va-row:hover { background: rgba(124,58,237,0.1); text-decoration: none; color: inherit; }
.ct-va-row:hover .ct-va-name { color: #fff; }
.ct-va-row.ct-va-empty { cursor: default; }
.ct-va-row.ct-va-empty:hover { background: rgba(0,0,0,0.2); }
.ct-va-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.ct-va-img-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2d2d4a, #3d3d5a);
}
.ct-va-info { min-width: 0; flex: 1; }
.ct-va-name {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.3;
}
.ct-va-lang {
    font-size: 9px;
    color: rgba(240,238,255,0.3);
    line-height: 1.3;
}
.ct-va-none {
    font-size: 10px;
    color: rgba(255,255,255,0.2);
    font-style: italic;
}
.ct-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
}
@media (max-width: 900px) { .ct-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
    .ct-grid { grid-template-columns: repeat(2, 1fr); }
    .ct-search { width: 140px; }
}

/* ============================================================
   LEGAL PAGES (.legal-page) — Privacy, Terms, etc.
   Matches the Credits page card-per-section layout.
   ============================================================ */
.legal-page {
    --lp-purple: #7C3AED;
    --lp-purple-light: #A78BFA;
    --lp-text: #F0EEFF;
    --lp-text-dim: rgba(240,238,255,0.55);
    --lp-text-muted: rgba(240,238,255,0.3);
    --lp-border: rgba(255,255,255,0.08);
    --lp-border-subtle: rgba(255,255,255,0.05);
    --lp-bg2: #16162A;
    --lp-bg3: #1A1A2E;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: var(--lp-text);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.legal-page .lp-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}
.legal-page .lp-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lp-purple-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.legal-page .lp-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--lp-purple-light);
    opacity: 0.4;
}
.legal-page .lp-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    color: var(--lp-text);
}
.legal-page .lp-sub {
    font-size: 14px;
    color: var(--lp-text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}
.legal-page .lp-updated {
    font-size: 12px;
    color: var(--lp-text-muted);
    margin-top: 0.5rem;
}
.legal-page .lp-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.legal-page .lp-section {
    background: var(--lp-bg2);
    border: 0.5px solid var(--lp-border);
    border-radius: 14px;
    padding: 1.5rem;
}
.legal-page .lp-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legal-page .lp-section-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--lp-purple-light);
    opacity: 0.6;
}
.legal-page .lp-body {
    font-size: 13px;
    color: var(--lp-text-dim);
    line-height: 1.8;
    margin: 0;
}
.legal-page .lp-body + .lp-body { margin-top: 0.75rem; }
.legal-page .lp-body a {
    color: var(--lp-purple-light);
    text-decoration: none;
    transition: opacity 0.2s;
}
.legal-page .lp-body a:hover { opacity: 0.75; }
.legal-page .lp-divider {
    height: 0.5px;
    background: var(--lp-border-subtle);
    margin: 1rem 0;
}
.legal-page .lp-list {
    font-size: 13px;
    color: var(--lp-text-dim);
    line-height: 1.8;
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}
.legal-page .lp-list li { margin-bottom: 0.35rem; }
.legal-page .lp-list li strong { color: var(--lp-text); font-weight: 500; }
.legal-page .lp-footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--lp-text-muted);
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--lp-bg2);
    border: 0.5px solid var(--lp-border);
    border-radius: 12px;
}
.legal-page .lp-footer-note a {
    color: var(--lp-purple-light);
    text-decoration: none;
}
.legal-page .lp-footer-note a:hover { opacity: 0.75; }
@media (max-width: 600px) {
    .legal-page .lp-header { padding: 2rem 1.25rem 1.5rem; }
    .legal-page .lp-content { padding: 0 1.25rem; }
    .legal-page .lp-title { font-size: 1.6rem; }
}

/* ============================================================
   CHARACTER PAGE (.cp-*)
   ============================================================ */
.cp-page {
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 1;
}
.cp-breadcrumb {
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cp-breadcrumb a { color: rgba(240,238,255,0.3); text-decoration: none; transition: color 0.2s; }
.cp-breadcrumb a:hover { color: #A78BFA; }
.cp-breadcrumb-sep { color: rgba(255,255,255,0.15); }
.cp-hero { padding: 2rem 0; max-width: 1000px; margin: 0 auto; }
.cp-hero-inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
}
.cp-portrait {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.cp-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cp-portrait-placeholder {
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
}
.cp-info { padding-top: 0.25rem; min-width: 0; }
.cp-name {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    color: #F0EEFF;
}
.cp-appears {
    font-size: 13px;
    color: rgba(240,238,255,0.4);
    margin-bottom: 0.85rem;
}
.cp-appears span { color: #A78BFA; font-weight: 500; }
.cp-desc {
    font-size: 13px;
    color: rgba(240,238,255,0.55);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 1.1rem;
}
.cp-va-section { margin-bottom: 1rem; }
.cp-va-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin-bottom: 0.5rem;
}
.cp-va-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-va-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
}
.cp-va-card:hover { border-color: rgba(124,58,237,0.35); text-decoration: none; color: inherit; }
.cp-va-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cp-va-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d2d4a, #3d3d5a);
    flex-shrink: 0;
}
.cp-va-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); display: block; line-height: 1.3; }
.cp-va-lang { font-size: 10px; color: rgba(240,238,255,0.3); display: block; line-height: 1.3; }
.cp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-btn-ghost {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.cp-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); text-decoration: none; }
.cp-divider {
    height: 0.5px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}
.cp-body { max-width: 1000px; margin: 0 auto; }
.cp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}
.cp-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
}
.cp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-filter {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(240,238,255,0.3);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cp-filter:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.cp-filter.active {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.cp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.cp-tile.hidden { display: none; }
.cp-tile {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cp-tile:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); text-decoration: none; color: inherit; }
.cp-tile-cover-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}
.cp-tile-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.cp-tile-body { padding: 0.55rem 0.65rem 0.65rem; }
.cp-tile-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.cp-tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.cp-tile-type { font-size: 10px; color: rgba(240,238,255,0.3); }
.cp-role-badge {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}
.cp-role-main { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.cp-role-supporting { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); border: 0.5px solid rgba(255,255,255,0.08); }
.cp-empty {
    text-align: center;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    padding: 3rem 1rem;
}
@media (max-width: 900px) { .cp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
    .cp-hero-inner { grid-template-columns: 120px 1fr; gap: 1.25rem; }
    .cp-portrait { width: 120px; height: 160px; }
    .cp-name { font-size: 20px; }
    .cp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) { .cp-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   VOICE ACTOR PAGE (.va-*)
   ============================================================ */
.va-page {
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 1;
}
.va-breadcrumb {
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.va-breadcrumb a { color: rgba(240,238,255,0.3); text-decoration: none; transition: color 0.2s; }
.va-breadcrumb a:hover { color: #A78BFA; }
.va-breadcrumb-sep { color: rgba(255,255,255,0.15); }
.va-hero { padding: 2rem 0; }
.va-hero-inner {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    align-items: start;
}
.va-photo-wrap {
    width: 160px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.va-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.va-photo-placeholder {
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
}
.va-info { padding-top: 0.25rem; min-width: 0; }
.va-name {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    color: #F0EEFF;
}
.va-meta {
    font-size: 13px;
    color: rgba(240,238,255,0.45);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.va-meta-dot { color: rgba(255,255,255,0.15); }
.va-stats {
    display: flex;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.va-stat {
    background: #16162A;
    padding: 0.75rem 0.6rem;
    text-align: center;
    flex: 1;
    min-width: 0;
}
.va-stat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Text values (e.g. "Supporting" for Typical role) don't fit the 18px sized for digits;
   shrink so they read comfortably and don't clip on narrow mobile. */
.va-stat-num-text { font-size: 14px; line-height: 1.4; }
.va-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(240,238,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
}
.va-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.va-btn-ghost {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.va-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); text-decoration: none; }
.va-divider {
    height: 0.5px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}
.va-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}
.va-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
}
.va-right-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.va-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.va-filter {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(240,238,255,0.3);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.va-filter:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.va-filter.active {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.va-search {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: #F0EEFF;
    outline: none;
    width: 200px;
    transition: border-color 0.2s;
}
.va-search::placeholder { color: rgba(240,238,255,0.3); }
.va-search:focus { border-color: rgba(124,58,237,0.5); }
.va-list { display: flex; flex-direction: column; gap: 8px; }
.va-char-card.hidden { display: none; }
.va-char-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.va-char-card:hover { border-color: rgba(124,58,237,0.3); }
.va-char-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    user-select: none;
}
.va-char-img-real {
    width: 48px;
    height: 64px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}
.va-char-img-placeholder {
    width: 48px;
    height: 64px;
    border-radius: 7px;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.va-char-info { flex: 1; min-width: 0; }
.va-char-name {
    font-size: 14px;
    font-weight: 600;
    color: #F0EEFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.va-char-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.va-badge-main {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: rgba(124,58,237,0.15); color: #A78BFA;
    border: 0.5px solid rgba(124,58,237,0.25);
}
.va-badge-supporting {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.06); color: rgba(240,238,255,0.45);
    border: 0.5px solid rgba(255,255,255,0.08);
}
.va-char-appears { font-size: 11px; color: rgba(240,238,255,0.3); }
.va-char-chevron {
    color: rgba(255,255,255,0.2);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.va-char-chevron.open { transform: rotate(180deg); }
.va-shows {
    display: none;
    flex-direction: column;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 0.75rem 1rem 0.75rem 72px;
    gap: 6px;
}
.va-shows.open { display: flex; }
.va-show-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    border-radius: 6px;
    transition: background 0.15s;
    margin: 0 -6px;
    text-decoration: none;
    color: inherit;
}
.va-show-row:hover { background: rgba(255,255,255,0.03); text-decoration: none; color: inherit; }
.va-show-thumb-real {
    width: 32px;
    height: 44px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}
.va-show-thumb-placeholder {
    width: 32px;
    height: 44px;
    border-radius: 5px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1a3e, #3b0764);
}
.va-show-info { min-width: 0; flex: 1; }
.va-show-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.va-show-type { font-size: 10px; color: rgba(240,238,255,0.3); }
.va-show-more {
    font-size: 11px;
    color: #A78BFA;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: opacity 0.2s;
    display: block;
}
.va-show-more:hover { opacity: 0.75; color: #A78BFA; }
.va-empty {
    text-align: center;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    padding: 3rem 1rem;
}
@media (max-width: 640px) {
    .va-hero-inner { grid-template-columns: 100px 1fr; gap: 1.25rem; }
    .va-photo-wrap { width: 100px; height: 130px; }
    .va-name { font-size: 20px; }
    .va-shows { padding-left: 60px; }
    .va-search { width: 100%; }
    .va-right-controls { width: 100%; }
    .va-stat { padding: 0.6rem 0.4rem; }
    .va-stat-num { font-size: 16px; }
    .va-stat-label { font-size: 9px; letter-spacing: 0.04em; }
}

/* ============================================================
   FEEDBACK HUB (.fh-*)
   ============================================================ */
.fh-page {
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}
.fh-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.fh-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    color: #F0EEFF;
}
.fh-sub {
    font-size: 13px;
    color: rgba(240,238,255,0.4);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}
.fh-btn-primary {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.fh-btn-primary:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.fh-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0;
}
.fh-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
}
.fh-tab {
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.fh-tab:hover { color: rgba(255,255,255,0.7); border-bottom-color: rgba(167,139,250,0.3); }
.fh-tab.active { color: #A78BFA; border-bottom-color: #7C3AED; }
.fh-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    padding-bottom: 0.65rem;
    flex-shrink: 0;
}
.fh-sort-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.fh-sort-btn:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); text-decoration: none; }
.fh-sort-btn.active {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.fh-list { display: flex; flex-direction: column; gap: 8px; }
.fh-card.hidden { display: none; }
.fh-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    transition: border-color 0.2s;
}
.fh-card:hover { border-color: rgba(124,58,237,0.35); }
.fh-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-top: 2px;
}
.fh-vote-btn {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    padding: 0;
}
.fh-vote-btn:hover {
    border-color: rgba(124,58,237,0.5);
    color: #A78BFA;
    background: rgba(124,58,237,0.1);
}
.fh-vote-btn.voted {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.fh-vote-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.fh-vote-count {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    line-height: 1;
    min-width: 20px;
    text-align: center;
}
.fh-info {
    min-width: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}
.fh-info:hover { text-decoration: none; color: inherit; }
.fh-info:hover .fh-card-title { color: #fff; }
.fh-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #F0EEFF;
    line-height: 1.3;
    margin-bottom: 5px;
}
.fh-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.fh-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.fh-type-bug { background: rgba(239,68,68,0.15); color: #FCA5A5; border: 0.5px solid rgba(239,68,68,0.25); }
.fh-type-feature { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.fh-type-improvement { background: rgba(6,182,212,0.1); color: #67E8F9; border: 0.5px solid rgba(6,182,212,0.2); }
.fh-type-other { background: rgba(255,255,255,0.06); color: rgba(240,238,255,0.45); border: 0.5px solid rgba(255,255,255,0.1); }
.fh-status-open { background: rgba(16,185,129,0.12); color: #34D399; border: 0.5px solid rgba(52,211,153,0.2); }
.fh-status-progress { background: rgba(245,158,11,0.12); color: #FBBF24; border: 0.5px solid rgba(245,158,11,0.2); }
.fh-status-done { background: rgba(124,58,237,0.15); color: #A78BFA; border: 0.5px solid rgba(124,58,237,0.25); }
.fh-status-closed { background: rgba(255,255,255,0.06); color: rgba(240,238,255,0.45); border: 0.5px solid rgba(255,255,255,0.08); }
.fh-card-desc {
    font-size: 12px;
    color: rgba(240,238,255,0.55);
    line-height: 1.65;
    margin-bottom: 6px;
}
.fh-card-meta {
    font-size: 11px;
    color: rgba(240,238,255,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fh-card-meta a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.fh-card-meta a:hover { color: #A78BFA; }
.fh-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.fh-empty svg { color: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
    .fh-card { grid-template-columns: 44px 1fr; gap: 8px; }
    .fh-sort { display: none; }
}

/* ============================================================
   FEEDBACK DETAIL (.fd-*)
   ============================================================ */
.fd-page {
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}
.fd-breadcrumb {
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fd-breadcrumb a { color: rgba(240,238,255,0.3); text-decoration: none; transition: color 0.2s; }
.fd-breadcrumb a:hover { color: #A78BFA; }
.fd-breadcrumb-sep { color: rgba(255,255,255,0.15); }
.fd-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1.5rem;
    align-items: start;
}
.fd-main { min-width: 0; }
.fd-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.fd-card:last-child { margin-bottom: 0; }
.fd-card-top {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
}
.fd-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-top: 2px;
}
.fd-vote-btn {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    padding: 0;
}
.fd-vote-btn:hover {
    border-color: rgba(124,58,237,0.5);
    color: #A78BFA;
    background: rgba(124,58,237,0.1);
}
.fd-vote-btn.voted {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.fd-vote-count {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    min-width: 20px;
    text-align: center;
}
.fd-info { min-width: 0; }
.fd-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #F0EEFF;
}
.fd-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.fd-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}
.fd-desc {
    font-size: 13px;
    color: rgba(240,238,255,0.55);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}
.fd-meta {
    font-size: 11px;
    color: rgba(240,238,255,0.3);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.fd-meta a { color: rgba(255,255,255,0.5); text-decoration: none; }
.fd-meta a:hover { color: #A78BFA; }
.fd-comments-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin-bottom: 1rem;
}
.fd-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}
.fd-comment:last-of-type { margin-bottom: 0; }
.fd-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}
.fd-comment-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}
.fd-comment-body { flex: 1; min-width: 0; }
.fd-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.fd-comment-author { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); }
.fd-admin-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 99px;
    background: rgba(124,58,237,0.2);
    color: #A78BFA;
    border: 0.5px solid rgba(124,58,237,0.3);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.fd-comment-time { font-size: 11px; color: rgba(240,238,255,0.3); }
.fd-comment-text {
    font-size: 13px;
    color: rgba(240,238,255,0.55);
    line-height: 1.7;
    white-space: pre-wrap;
}
.fd-comment-text.fd-admin-response {
    color: rgba(255,255,255,0.75);
    background: rgba(124,58,237,0.06);
    border: 0.5px solid rgba(124,58,237,0.15);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}
.fd-comments-stub {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    border: 0.5px dashed rgba(255,255,255,0.06);
    border-radius: 10px;
}
.fd-reply-box {
    margin-top: 1rem;
    border-top: 0.5px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}
.fd-reply-input {
    width: 100%;
    background: #0E0E1C;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #F0EEFF;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}
.fd-reply-input:focus { border-color: rgba(124,58,237,0.5); }
.fd-reply-input::placeholder { color: rgba(240,238,255,0.3); }
.fd-reply-input:disabled { opacity: 0.5; cursor: not-allowed; }
.fd-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.fd-btn-primary {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}
.fd-btn-primary:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.fd-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.fd-btn-ghost-sm {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.45);
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.fd-btn-ghost-sm:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); }
.fd-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.fd-sidebar-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
}
.fd-sidebar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin-bottom: 0.75rem;
}
.fd-status-select {
    width: 100%;
    background: #0E0E1C;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    padding: 7px 10px;
    outline: none;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}
.fd-status-select option { background: #16162A; color: #F0EEFF; }
.fd-status-select:focus { border-color: rgba(124,58,237,0.5); }
.fd-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
    gap: 0.5rem;
}
.fd-detail-row:last-child { border-bottom: none; }
.fd-detail-key { font-size: 11px; color: rgba(240,238,255,0.3); }
.fd-detail-val { font-size: 11px; color: rgba(255,255,255,0.7); text-align: right; }
@media (max-width: 768px) {
    .fd-layout { grid-template-columns: 1fr; }
    .fd-sidebar { order: -1; }
}

/* ============================================================
   TAG BROWSE PAGE (.tb-*)
   Listing page for a single genre or tag.
   ============================================================ */
.tb-page {
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}
.tb-breadcrumb {
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tb-breadcrumb a { color: rgba(240,238,255,0.3); text-decoration: none; transition: color 0.2s; }
.tb-breadcrumb a:hover { color: #A78BFA; }
.tb-breadcrumb-sep { color: rgba(255,255,255,0.15); }
.tb-header { margin-bottom: 1.5rem; }
.tb-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A78BFA;
    margin-bottom: 0.4rem;
}
.tb-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    margin: 0 0 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.tb-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(240,238,255,0.3);
}
.tb-sub { font-size: 13px; color: rgba(240,238,255,0.4); margin: 0; }
.tb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(240,238,255,0.3);
    font-size: 13px;
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

/* ============================================================
   ERROR PAGES (.err-*) — 404 / 500 / etc.
   ============================================================ */
.err-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
}
.err-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.err-code {
    font-family: 'Syne', sans-serif;
    font-size: clamp(5rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: #A78BFA;
    opacity: 0.4;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}
.err-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    margin: 0 0 0.75rem;
}
.err-msg {
    font-size: 13px;
    color: rgba(240,238,255,0.5);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}
.err-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.err-btn-primary {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.err-btn-primary:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.err-btn-ghost {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.err-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); text-decoration: none; }
.err-footnote {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(240,238,255,0.3);
}
.err-footnote-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.err-footnote-row a { color: #A78BFA; text-decoration: none; }
.err-footnote-row a:hover { opacity: 0.75; }
.err-footnote code {
    background: #0E0E1C;
    padding: 1px 6px;
    border-radius: 4px;
    color: rgba(240,238,255,0.45);
    font-size: 11px;
}

/* ============================================================
   ADMIN SHELL (.adm-*)
   ============================================================ */
.adm { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; background: #0C0C14; }
.adm-sidebar {
    background: #0E0E1C;
    border-right: 0.5px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.adm-logo {
    padding: 0.25rem 1rem 1rem;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.adm-logo:hover { text-decoration: none; color: #F0EEFF; }
.adm-logo-purple { color: #A78BFA; }
.adm-logo-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: rgba(240,238,255,0.3);
    background: rgba(124,58,237,0.15);
    border: 0.5px solid rgba(124,58,237,0.25);
    border-radius: 4px;
    padding: 1px 5px;
}
.adm-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    padding: 0.6rem 1rem 0.3rem;
    margin-top: 0.25rem;
}
.adm-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 1rem;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}
.adm-nav-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); text-decoration: none; }
.adm-nav-item.active {
    background: rgba(124,58,237,0.1);
    color: #A78BFA;
    border-left-color: #7C3AED;
}
.adm-nav-icon { width: 15px; height: 15px; flex-shrink: 0; }
.adm-badge {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 99px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}
.adm-badge-amber { background: rgba(245,158,11,0.2); color: #FBBF24; }
.adm-badge-red { background: rgba(239,68,68,0.15); color: #FCA5A5; }
.adm-badge-green { background: rgba(16,185,129,0.15); color: #34D399; }
.adm-badge-purple { background: rgba(124,58,237,0.2); color: #A78BFA; }
.adm-sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 1rem 0;
    border-top: 0.5px solid rgba(255,255,255,0.06);
}
.adm-main {
    padding: 1.75rem;
    min-width: 0;
    color: #F0EEFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}
.adm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 10px;
}
.adm-page-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0EEFF;
    margin: 0;
}
.adm-page-title-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: rgba(240,238,255,0.3);
    font-weight: 400;
    margin-left: 8px;
}
.adm-btn-primary {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.adm-btn-primary:hover { background: #6D28D9; color: #fff; text-decoration: none; }
.adm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.adm-email-alert {
    background: rgba(239,68,68,0.08);
    border: 0.5px solid rgba(239,68,68,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 12px;
    color: #FCA5A5;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.adm-email-alert:hover { background: rgba(239,68,68,0.12); color: #FCA5A5; text-decoration: none; }
.adm-nightly-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.adm-nightly-status { display: flex; align-items: center; gap: 10px; }
.adm-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.adm-dot-success { background: #34D399; }
.adm-dot-failed { background: #FCA5A5; }
.adm-dot-running { background: #FBBF24; animation: admPulse 1.5s infinite; }
@keyframes admPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.adm-nightly-label { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 2px; }
.adm-nightly-meta { font-size: 11px; color: rgba(240,238,255,0.3); }
.adm-link { font-size: 11px; color: #A78BFA; text-decoration: none; transition: opacity 0.2s; white-space: nowrap; }
.adm-link:hover { opacity: 0.75; color: #A78BFA; }
.adm-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.adm-stat {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    padding: 0.75rem 1rem;
}
.adm-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: -0.02em;
}
.adm-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(240,238,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 1px;
}
.adm-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    margin: 1.5rem 0 0.75rem;
}
.adm-coverage {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.adm-cov-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.adm-cov-row:last-child { margin-bottom: 0; }
.adm-cov-label { font-size: 12px; color: rgba(240,238,255,0.55); width: 60px; flex-shrink: 0; }
.adm-cov-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.adm-cov-fill { height: 100%; border-radius: 99px; }
.adm-fill-anime { background: #7C3AED; }
.adm-fill-shows { background: #0D9488; }
.adm-fill-games { background: #34D399; }
.adm-fill-manga { background: #FBBF24; }
.adm-cov-pct { font-size: 11px; color: rgba(240,238,255,0.45); width: 36px; text-align: right; flex-shrink: 0; }
.adm-cov-detail { font-size: 11px; color: rgba(240,238,255,0.3); width: 130px; text-align: right; flex-shrink: 0; }
.adm-card {
    background: #16162A;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #F0EEFF; }
.adm-table thead th {
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    padding: 8px 10px;
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.adm-table tbody td {
    padding: 8px 10px;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(255,255,255,0.02); }
@media (max-width: 768px) {
    .adm { grid-template-columns: 1fr; }
    .adm-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0;
    }
    .adm-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-cov-detail { display: none; }
}

/* ── Bootstrap chrome inside the admin shell — auto-themed so individual pages
   don't each need restyling. Mirrors the .settings-page override pattern. ── */
.adm-main .card {
    background: #16162A !important;
    border: 0.5px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
}
.adm-main .card-header {
    background: transparent !important;
    border-bottom: 0.5px solid rgba(255,255,255,0.06) !important;
    padding: 0.85rem 1.1rem !important;
}
.adm-main .card-header h5, .adm-main .card-header h6 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #F0EEFF;
    margin: 0;
}
.adm-main .card-body { padding: 1.1rem !important; color: #F0EEFF; }
.adm-main .form-label { font-size: 12px; color: rgba(240,238,255,0.65); margin-bottom: 6px; }
.adm-main .form-text { font-size: 11px; color: rgba(240,238,255,0.35); }
.adm-main .form-control,
.adm-main .form-select {
    background: #0E0E1C !important;
    border: 0.5px solid rgba(255,255,255,0.12) !important;
    border-radius: 7px !important;
    color: #F0EEFF !important;
    font-size: 12px;
    padding: 7px 10px;
}
.adm-main .form-control:focus,
.adm-main .form-select:focus {
    border-color: rgba(124,58,237,0.5) !important;
    box-shadow: 0 0 0 0.15rem rgba(124,58,237,0.15) !important;
}
.adm-main .form-control::placeholder { color: rgba(255,255,255,0.2); }
.adm-main .form-select option { background: #16162A; color: #F0EEFF; }
.adm-main .form-check-input {
    background-color: rgba(14,14,28,0.8) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.adm-main .form-check-input:checked {
    background-color: #7C3AED !important;
    border-color: #7C3AED !important;
}
.adm-main .form-check-label { color: #F0EEFF; font-size: 12px; }
.adm-main .table {
    color: #F0EEFF;
    --bs-table-bg: transparent;
    --bs-table-color: #F0EEFF;
    --bs-table-hover-bg: rgba(255,255,255,0.02);
    --bs-table-hover-color: #F0EEFF;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-striped-color: #F0EEFF;
    --bs-table-border-color: rgba(255,255,255,0.05);
    margin-bottom: 0;
}
.adm-main .table thead th {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,238,255,0.3);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 8px 10px;
}
.adm-main .table tbody td {
    padding: 8px 10px;
    font-size: 12px;
    vertical-align: middle;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.adm-main .btn { font-family: 'DM Sans', sans-serif; font-size: 12px; border-radius: 7px; }
.adm-main .btn-primary {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: #fff !important;
}
.adm-main .btn-primary:hover { background: #6D28D9 !important; border-color: #6D28D9 !important; }
.adm-main .btn-outline-primary {
    background: transparent !important;
    border: 0.5px solid rgba(167,139,250,0.5) !important;
    color: #A78BFA !important;
}
.adm-main .btn-outline-primary:hover {
    background: rgba(124,58,237,0.12) !important;
    border-color: #A78BFA !important;
    color: #A78BFA !important;
}
.adm-main .btn-outline-secondary {
    background: transparent !important;
    border: 0.5px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.65) !important;
}
.adm-main .btn-outline-secondary:hover {
    border-color: rgba(255,255,255,0.35) !important;
    color: #F0EEFF !important;
    background: rgba(255,255,255,0.04) !important;
}
.adm-main .btn-outline-danger {
    background: transparent !important;
    border: 0.5px solid rgba(248,113,113,0.4) !important;
    color: #FCA5A5 !important;
}
.adm-main .btn-outline-danger:hover {
    background: rgba(248,113,113,0.12) !important;
    border-color: #FCA5A5 !important;
    color: #FCA5A5 !important;
}
.adm-main .btn-success {
    background: rgba(16,185,129,0.18) !important;
    border-color: rgba(52,211,153,0.35) !important;
    color: #34D399 !important;
}
.adm-main .btn-danger {
    background: rgba(239,68,68,0.18) !important;
    border-color: rgba(239,68,68,0.35) !important;
    color: #FCA5A5 !important;
}
.adm-main .badge.bg-secondary,
.adm-main .badge.bg-dark { background: rgba(124,58,237,0.18) !important; color: #A78BFA !important; }
.adm-main .badge.bg-info { background: rgba(96,165,250,0.18) !important; color: #93C5FD !important; }
.adm-main .badge.bg-success { background: rgba(52,211,153,0.18) !important; color: #34D399 !important; }
.adm-main .badge.bg-warning { background: rgba(245,158,11,0.2) !important; color: #FBBF24 !important; }
.adm-main .badge.bg-danger { background: rgba(239,68,68,0.18) !important; color: #FCA5A5 !important; }
.adm-main .nav-tabs {
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    gap: 4px;
}
.adm-main .nav-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: rgba(240,238,255,0.5) !important;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 0;
}
.adm-main .nav-tabs .nav-link:hover {
    color: rgba(240,238,255,0.85) !important;
    border-bottom-color: rgba(167,139,250,0.3) !important;
}
.adm-main .nav-tabs .nav-link.active {
    color: #A78BFA !important;
    background: transparent !important;
    border-bottom-color: #A78BFA !important;
}
.adm-main .text-body-secondary { color: rgba(240,238,255,0.45) !important; }
.adm-main .text-body-tertiary, .adm-main .text-body-muted { color: rgba(240,238,255,0.3) !important; }
.adm-main .text-warning { color: #FBBF24 !important; }
.adm-main .text-success { color: #34D399 !important; }
.adm-main .text-danger { color: #FCA5A5 !important; }
.adm-main .alert {
    border-radius: 8px;
    border: 0.5px solid;
    font-size: 13px;
    padding: 10px 14px;
}
.adm-main .alert-success {
    background: rgba(52,211,153,0.1);
    border-color: rgba(52,211,153,0.3);
    color: #6EE7B7;
}
.adm-main .alert-danger {
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.3);
    color: #FCA5A5;
}
.adm-main .alert-info {
    background: rgba(96,165,250,0.1);
    border-color: rgba(96,165,250,0.3);
    color: #93C5FD;
}
.adm-main .list-group-item {
    background: #0E0E1C !important;
    border: 0.5px solid rgba(255,255,255,0.08) !important;
    color: #F0EEFF !important;
    font-size: 12px;
    padding: 9px 12px;
}
