.list-page-wrapper {
    min-height: 100vh;
    background-color: #0d0d1a;
    color: #dcdcdc;
    position: relative;
    transition: opacity 0.4s ease-in;
    overflow: hidden;
}
.container { position: relative; z-index: 10; }

.header-section { text-align: center; margin-bottom: 48px; }
.header-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 8px 16px; background-color: rgba(138, 43, 226, 0.1); border: 1px solid rgba(138, 43, 226, 0.2); border-radius: 9999px; color: #c084fc; font-size: 0.9rem; }
.main-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; margin-bottom: 24px; background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 10px; }
.subtitle { font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 32px; }

.btn-filter-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 500; transition: all 0.3s ease; cursor: pointer;
    background-image: linear-gradient(to right, #8b5cf6, #ec4899); color: #fff; border: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-filter-toggle:hover { transform: scale(1.03); }

.collapse {
    position: relative;
    z-index: 20;
}

.filter-container {
    background-color: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}
.filter-bar {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    gap: 1rem;
    align-items: flex-end;
}
.filter-bar .form-label { font-size: 0.8rem; margin-bottom: 0.25rem; font-weight: 500; color: #cbd5e1; }
.filter-actions { display: flex; align-items: end; gap: 0.5rem; }

.form-control, .form-select, .btn-filter-dropdown {
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 500;

    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important; }
.form-control::placeholder {
    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    opacity: 0.7;
}
.dropdown-menu { background-color: #16213e; border-color: rgba(255, 255, 255, 0.1); padding: 0.5rem; z-index: 1050; }
.dropdown-item:hover, .dropdown-item.active { background-color: #8b5cf6; color: white; }
.filter-dropdown .form-check-label { color: #dcdcdc; }
.filter-dropdown .form-check-label:hover { color: #fff; }

.filter-dropdown .dropdown-menu {
    width: 200px;
    --bs-dropdown-min-width: 200px;
}
.filter-dropdown .form-check-label {
    white-space: nowrap;
}

.tag-dropdown .dropdown-menu {
    width: 325px;
    --bs-dropdown-min-width: 325px;
}

.list-container { max-height: 250px; overflow-y: auto; }
.filter-search-box { margin-bottom: 0.5rem; }

.btn-submit {
    padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; transition: all 0.3s ease; cursor: pointer;
    background-image: linear-gradient(to right, #8b5cf6, #ec4899); color: #fff; border: none; text-decoration: none;
}
.btn-submit:hover { transform: scale(1.03); box-shadow: 0 2px 15px rgba(139, 92, 246, 0.3); }
.btn-icon {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.btn-icon:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-icon.clear { background-color: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.2); }
.btn-icon.clear:hover { background-color: rgba(239, 68, 68, 0.2); }

.ts-wrapper:not(.plugin-remove_button) .ts-control {
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 500;
}
.ts-wrapper:not(.plugin-remove_button) .ts-control .item {
    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.ts-control > input {
    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

#advancedFilters.offcanvas { background-color: rgba(13, 13, 26, 0.9); backdrop-filter: blur(10px); color: #dcdcdc; z-index: 1051; }
#advancedFilters .offcanvas-header { padding-top: 1.5rem; }

#advancedFilters .offcanvas-body {
    position: relative;
}

.offcanvas-loader {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 13, 26, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease-out;
    opacity: 1;
    pointer-events: none;
}

.offcanvas-loader.hidden { opacity: 0; }

.tom-select-pills + .ts-wrapper .ts-control { background-color: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.1) !important; }
.tom-select-pills + .ts-wrapper .ts-control .item { background-color: #8b5cf6; color: white; border: none; }
.ts-dropdown { background-color: #16213e; border-color: rgba(255, 255, 255, 0.1); }
.ts-dropdown .option {
    color: #dcdcdc !important;
    opacity: 0.85;
}
.ts-dropdown .option:hover, .ts-dropdown .active { background-color: #8b5cf6; color: white !important; opacity: 1; }

.ts-control > input {
    color: #dcdcdc !important;
}
.btn-close-offcanvas {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close-offcanvas:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.list-title { color: #fff; font-weight: 600; margin: 0; }
.btn-sort {
    background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem; font-size: 0.9rem; border-radius: 8px;
}

.card.anime-card {
    position: relative;
    border-radius: 12px;
    background-color: transparent;
    border: none;
}
.card.anime-card:hover {
}

.card-content-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.card.anime-card .card-img-top {
    transition: transform 0.3s ease-in-out;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.card.anime-card:hover .card-img-top {
    transform: scale(1.1);
}
.btn-add-to-list {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, background-color 0.2s ease;
    cursor: pointer;
}
.card.anime-card:hover .btn-add-to-list {
    opacity: 1;
}
.btn-add-to-list:hover {
    background-color: #8b5cf6; /* Vurgu rengi */
}
.card.anime-card .card-img-top {
    transition: transform 0.3s ease-in-out;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.card.anime-card:hover .card-img-top {
    transform: scale(1.1);
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 15%, transparent 40%),
                linear-gradient(to bottom, rgba(0,0,0,0.6) 15%, transparent 40%);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.card.anime-card:hover .card-overlay {
    opacity: 1;
}
.card-overlay .badge {
    text-shadow: none;
}
.card-overlay .anime-romaji-title {
    font-size: 0.8em;
    opacity: 0.75;
    font-weight: 400;
    line-height: 1.2;
}

.auth-prompt {
    text-align: center;
    margin: 40px 0;
    padding: 2rem;
    background-color: rgba(22, 33, 62, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-prompt p { font-size: 1.1rem; color: #cbd5e1; }
.auth-prompt .btn-secondary {
    padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; transition: all 0.3s ease; cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
.auth-prompt .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

.owner-actions {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-explore-more {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 500; transition: all 0.3s ease; cursor: pointer;
    background-image: linear-gradient(to right, #8b5cf6, #ec4899); color: #fff; border: none; text-decoration: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-explore-more:hover {
    transform: scale(1.03);
    color: #fff;
}
.btn-edit-list {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 500; transition: all 0.3s ease; cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none;
}
.btn-edit-list:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }

.alert-custom {
    background-color: rgba(22, 33, 62, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}
.custom-popover {
    --bs-popover-bg: #16213e;
    --bs-popover-border-color: rgba(255, 255, 255, 0.1);
    --bs-popover-header-bg: #0f3460;
    --bs-popover-header-color: white;
    --bs-popover-body-color: #dcdcdc;
    max-width: 300px;
    border-radius: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.page-fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@media (min-width: 1200px) {
    .filter-bar {
        grid-template-columns: 2fr repeat(4, 1fr) auto;
    }
}

@media (max-width: 1199.98px) { /* Kesişmeyi önlemek için .98px eklendi */
    .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 992px) {
    .filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .filter-bar { grid-template-columns: 1fr; }
    .filter-actions { grid-column: 1 / -1; }

    .card.anime-card:hover .card-img-top {
        transform: none;
    }
    .card-overlay {
        opacity: 1;
    }
    .card-overlay .anime-romaji-title {
        display: none;
    }
    .btn-add-to-list {
        opacity: 1;
    }
}

/* --- Add to List Modal Styles (from anime_detail.css) --- */
.add-to-list-modal-content {
    background-color: #151f2e;
    color: #d1d5db;
    border: 1px solid #343f51;
    border-radius: 8px;
}

.add-to-list-modal-content .modal-header {
    border-bottom: 1px solid #343f51;
}

.add-to-list-modal-content .modal-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.add-to-list-modal-content .modal-body {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.user-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-list-item:hover {
    background-color: #1c2938;
}

.list-item-info {
    display: flex;
    flex-direction: column;
}

.list-item-name {
    font-weight: 500;
    color: #e2e8f0;
}

.list-item-meta {
    font-size: 0.8rem;
    color: #a0b1c5;
}

.list-item-toggle .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    background-color: #343f51;
    border-color: #343f51;
}

.list-item-toggle .form-switch .form-check-input:checked {
    background-color: #3db4f2;
    border-color: #3db4f2;
}

.add-to-list-modal-content .modal-footer {
    border-top: 1px solid #343f51;
    justify-content: center;
}

.btn-create-new-list {
    width: 100%;
    text-align: center;
    color: #3db4f2;
    font-weight: 600;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-create-new-list:hover {
    background-color: rgba(61, 180, 242, 0.1);
}