/* AnimeList detail list panel — visual-only upgrade. Existing JS/data attributes stay untouched. */
.anime-list-panel {
    --anime-list-accent: #ff302f;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(126, 153, 177, .34);
    border-radius: 14px;
    background: #080b0f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.anime-list-panel::before {
    content: "";
    position: absolute;
    inset: -9px;
    z-index: -2;
    background-image: var(--anime-list-bg, none);
    background-position: center 32%;
    background-size: cover;
    opacity: .17;
    filter: brightness(.58) saturate(.28) contrast(1.22) blur(5px);
    transform: scale(1.06);
}

.anime-list-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8,11,15,.78) 0%, rgba(8,11,15,.91) 56%, rgba(8,11,15,.98) 100%),
        radial-gradient(circle at 0 0, rgba(255,48,47,.08), transparent 42%);
    pointer-events: none;
}

.anime-list-panel__content {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.anime-list-panel__title {
    margin-bottom: 10px;
    color: var(--anime-list-accent);
    font-size: 1.23rem;
    line-height: 1.15;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.anime-list-panel .see-control-buttons {
    gap: 8px !important;
}

.anime-list-panel .see-control-buttons .btn {
    --bs-btn-padding-y: .47rem;
    --bs-btn-padding-x: .75rem;
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin: 0;
    border: 1px solid rgba(166, 190, 212, .72) !important;
    border-radius: 999px !important;
    background: rgba(8, 12, 17, .36) !important;
    color: #aab7c5 !important;
    box-shadow: none !important;
    font-size: .78rem;
    transition:
        border-color .22s cubic-bezier(.25,.1,.25,1),
        background-color .22s cubic-bezier(.25,.1,.25,1),
        color .22s cubic-bezier(.25,.1,.25,1),
        box-shadow .22s cubic-bezier(.25,.1,.25,1),
        transform .22s cubic-bezier(.25,.1,.25,1);
}

.anime-list-panel .see-control-buttons .btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    stroke-width: 1.7;
}

@media (hover:hover) and (pointer:fine) {
    .anime-list-panel .see-control-buttons .btn:hover {
        border-color: rgba(255,48,47,.82) !important;
        background: rgba(255,48,47,.07) !important;
        color: #f1f5f8 !important;
        box-shadow: 0 0 18px rgba(255,48,47,.08) !important;
    }
}

.anime-list-panel .see-control-buttons .btn.active,
.anime-list-panel .see-control-buttons .btn[aria-pressed="true"],
.anime-list-panel .see-control-buttons .btn.btn-warning {
    border-color: rgba(255,48,47,.88) !important;
    background: linear-gradient(90deg, rgba(113,11,18,.68), rgba(42,9,14,.64)) !important;
    color: #fff !important;
    box-shadow: inset 0 0 18px rgba(255,48,47,.07), 0 0 13px rgba(255,48,47,.05) !important;
}

.anime-list-panel .see-control-buttons .btn.btn-outline-danger {
    border-color: rgba(166,190,212,.58) !important;
    color: #9ba8b6 !important;
}

.anime-list-panel .anime-list-inline-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding-top: 13px;
    border-top: 1px solid rgba(137,159,180,.17);
    color: #aeb9c5;
    line-height: 1.35;
}

.anime-list-panel .anime-list-inline-stats strong {
    color: #e5edf4;
    font-weight: 600;
}

.anime-list-panel .text-muted {
    color: #8997a6 !important;
}

.anime-list-panel > .anime-list-panel__content > a.btn {
    width: 100%;
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    .anime-list-panel .see-control-buttons .btn { transition: none; }
}
