/* ===== LAYOUT ===== */
.main {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.checkbox-custom{
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input:checked + label .checkbox-custom{
    background: #e91e8c;
    border-color: #e91e8c;
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.3);
}
.filter-option input:checked + label .checkbox-custom::after{
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.hovercard:hover {
    transform: translateY(-16px);
    border-color: rgba(255, 0, 110, 0.4);
    box-shadow: 0 24px 64px rgba(255, 0, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Reset Filters — top of sidebar */
.reset-filters-top {
    display: block;
    width: calc(100% - 36px);
    margin: 0 18px 0;
    padding: 10px;
    background: transparent;
    border: 1px solid #3a3a4a;
    color: #e91e8c;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.reset-filters-top:hover {
    background: rgba(224, 108, 170, 0.1);
    border-color: #e91e8c;
}

/* ===== DESKTOP FILTER SIDEBAR ===== */
@media (min-width: 769px) {
    .filtersidebar {
        position: relative;
        width: 280px;
        min-width: 280px;
        /* background: #16161d; */
        border-right: 1px solid #2a2a35;
        padding: 0;
        overflow-y: auto;
        max-height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.35s cubic-bezier(.4,0,.2,1),
                    min-width 0.35s cubic-bezier(.4,0,.2,1),
                    opacity 0.25s ease,
                    padding 0.35s ease;
        z-index: 10;
    }
    .filtersidebar.desktop-hidden {
        width: 0;
        min-width: 0;
        overflow: hidden;
        opacity: 0;
        border-right: none;
        padding: 0;
    }

    /* Hide mobile-only elements on desktop */
    .drawer-handle,
    .drawer-overlay,
    .drawer-header .drawer-close {
        display: none !important;
    }

    /* Desktop drawer header — keep title, add reset */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 18px 12px;
        border-bottom: 1px solid #2a2a35;
    }
    .drawer-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }

    .drawer-body {
        padding: 0 0 20px;
    }

    /* Desktop filter trigger — icon toggle */
    .filter-trigger {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: #0a0a0f;
        border: 1.5px solid rgba(255, 0, 110, 0.2);
        color: #fff;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    .filter-trigger:hover, #sort:hover {
        /* background: #28283a; */
        border-color: #e91e8c;
    }

    /* ===== COLLAPSIBLE FILTER GROUPS ===== */
    .filter-group {
        border-bottom: 1px solid #2a2a35;
    }
    .filter-group-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: #e91e8c;
        user-select: none;
        transition: color 0.2s;
    }
    .filter-group-title:hover {
        color: #fff;
    }
    .filter-group-title::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #888;
        border-bottom: 2px solid #888;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .filter-group.collapsed .filter-group-title::after {
        transform: rotate(-45deg);
    }
    .filter-group-content {
        max-height: 300px;
        overflow-y: scroll;
        scrollbar-width:none;
        transition: max-height 0.35s cubic-bezier(.4,0,.2,1),
                    padding 0.35s ease;
        padding: 0 18px 12px;
    }
    .filter-group.collapsed .filter-group-content {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Hide the bottom reset button on desktop */
    .drawer-body > .reset-filters {
        display: none;
    }

    /* ===== GRID RESPONSIVE COLUMNS ===== */
    .grid {
        display: grid;
        gap: 20px;
        transition: grid-template-columns 0.35s cubic-bezier(.4,0,.2,1);
    }
    /* Filters visible: 3 columns */
    .main:not(.filters-hidden) .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Filters hidden: 4 columns */
    .main.filters-hidden .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid .col-lg-12 {
        width: 100%;
    }
}
/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    padding: 20px 24px;
    min-width: 0;
}

.controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-badge {
    background: #e91e8c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.sort-control select {
    background: #0a0a0f;
    color: #fff;
    border: 1.5px solid rgba(255, 0, 110, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sort-control select:focus {
    outline: none;
    border-color: #e91e8c;
}

.results-info {
    color: #888;
    font-size: 14px;
    margin-left: auto;
}
.count {
    color: #e91e8c;
    font-weight: 700;
}

/* ===== FILTER OPTIONS ===== */
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}
.filter-option:hover {
    background:rgba(255, 0, 110, 0.08);
}
.filter-option input[type="checkbox"] {
    accent-color: #e91e8c;
    width: 16px;
    height: 16px;
    cursor: pointer;
    display:none;
}
.filter-option label {
    display:flex;
    font-size: 13px;
    transition: color 0.15s;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: -12px;
}
.filter-option label:hover {
    color: #fff;
    /* background: rgba(255, 0, 110, 0.08); */
}

/* Age slider */
.age-slider-container {
    padding: 8px 0;
}
.age-slider-input {
    width: 100%;
    accent-color: #e91e8c;
}
.age-output {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* ===== CARDS ===== */
.hovercard {
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a24;
    border: 1px solid #2a2a35;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
}
.hovercard:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 110, 0.4);
    box-shadow: 0 24px 64px rgba(255, 0, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-hover-container {
    position: relative;
    width: 100%;
}
.card-hover-header {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.bg-pink { background: #e91e8c; color: #fff; }
.badge img { width: 12px; height: 12px; }

.hovercard-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.hovercard-video {
    display: none;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.card-hover-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 14px 14px;
}
.card-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hovercard-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.card-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}
/* .pagination-wrap {
    display: flex;
    gap: 6px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1e1e28;
    border: 1px solid #2a2a35;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.pg-btn:hover {
    background: #28283a;
    border-color: #e91e8c;
    color: #fff;
}
.pg-btn.active {
    background: linear-gradient(135deg, #e91e8c, #c74b8f);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
} */

/* ===== DESKTOP FILTER TOGGLE ICON ===== */
.filter-trigger .filter-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}
.filter-trigger .filter-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: absolute;
    left: 0;
}
.filter-trigger .filter-icon span:nth-child(1) { top: 2px; width: 100%; }
.filter-trigger .filter-icon span:nth-child(2) { top: 7px; width: 75%; }
.filter-trigger .filter-icon span:nth-child(3) { top: 12px; width: 50%; }

/* Utility */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.ms-1 { margin-left: 4px; }

/* primary-btn base */
.primary-btn {
    display: block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e91e8c, #c74b8f);
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}
/* ===== MOBILE STYLES (unchanged behavior) ===== */
@media (max-width: 768px) {
    .filtersidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: #000 /*#16161d*/;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .filtersidebar.open {
        transform: translateX(0);
    }

    .drawer-handle {
        width: 40px;
        height: 4px;
        background: #444;
        border-radius: 2px;
        margin: 10px auto;
    }
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid #2a2a35;
    }
    .drawer-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }
    .drawer-close {
        background: none;
        border: none;
        color: #aaa;
        font-size: 22px;
        cursor: pointer;
    }

    .drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
    }
    .drawer-overlay.active {
        display: block;
    }

    .drawer-body {
        padding: 12px 16px;
    }

    .filter-group {
        border-bottom: 1px solid #2a2a35;
    }

    /* .filter-group-title {
        font-size: 14px;
        font-weight: 600;
        color: #e91e8c;
        padding: 12px 0;
    } */

    .filter-group-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: #e91e8c;
        user-select: none;
        transition: color 0.2s;
    }
    .filter-group-title:hover {
        color: #fff;
    }
    .filter-group-title::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #888;
        border-bottom: 2px solid #888;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .filter-group.collapsed .filter-group-title::after {
        transform: rotate(-45deg);
    }

    .filter-group-content {
        max-height: 300px;
        overflow-y: scroll;
        scrollbar-width:none;
        transition: max-height 0.35s cubic-bezier(.4,0,.2,1), padding 0.35s ease;
        padding: 0 18px 12px;
    }

    .filter-group.collapsed .filter-group-content {
        /* no collapse on mobile */
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .reset-filters-top {
        /* display: none; */
    }

    .reset-filters {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 16px;
        background: linear-gradient(135deg, #e91e8c, #c74b8f);
        border: none;
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .grid .col-lg-12 { width: 100%; }

    .content {padding: 20px 12px;}
    .controls {gap: 14px;}
    .filter-trigger {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: #0a0a0f;
        border: 1.5px solid rgba(255, 0, 110, 0.2);
        color: #fff;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    .filter-trigger:hover, #sort:hover {border-color: #e91e8c;}
    .sort-control select{padding: 8px 12px;}
    .results-info{display:none;}
}
