/* =============================================
   BOOKMARKS PAGE
   ============================================= */

/* --- Stats row --- */
.bm-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.bm-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
}
.bm-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.bm-stat-label {
    font-size: 1.2rem;
    color: var(--color-link);
    font-weight: 500;
}
.bm-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* --- Grid --- */
.bm-section {
    padding: 4rem 0 8rem;
    background: #0d0b13;
    min-height: 40rem;
}
.bm-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.6rem;
}

/* --- Card --- */
.bm-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bm-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,255,0.2);
    box-shadow: 0 0.8rem 2.4rem rgba(124,92,255,0.1);
}
.bm-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.03);
}
.bm-card-poster-fallback {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.06);
    font-size: 3.2rem;
}
.bm-card-body {
    padding: 0.8rem 1rem 1rem;
}
.bm-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.bm-card-meta {
    font-size: 1.05rem;
    color: var(--color-link);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.bm-card-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
}
.bm-card-badge--movie {
    background: rgba(124,92,255,0.12);
    color: #b45eff;
}
.bm-card-badge--tv {
    background: rgba(59,130,246,0.12);
    color: #5b9cf6;
}
.bm-card-remove {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
    z-index: 2;
}
.bm-card:hover .bm-card-remove {
    opacity: 1;
}
.bm-card-remove:hover {
    color: #ff4747;
    background: rgba(0,0,0,0.8);
}

/* --- Empty state --- */
.bm-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}
.bm-empty--on {
    display: flex;
}
.bm-empty-icon {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(124,92,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(124,92,255,0.3);
    margin-bottom: 1.6rem;
}
.bm-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.6rem;
}
.bm-empty-desc {
    font-size: 1.4rem;
    color: var(--color-link);
    max-width: 40rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.bm-empty-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Toast --- */
.bm-toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: rgba(52,199,89,0.12);
    border: 1px solid rgba(52,199,89,0.15);
    color: #34c759;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bm-toast--on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.bm-toast--err {
    background: rgba(255,71,71,0.1);
    border-color: rgba(255,71,71,0.15);
    color: #ff4747;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .bm-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
    .bm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .bm-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .bm-empty-icon { width: 5rem; height: 5rem; font-size: 2rem; }
}
@media (max-width: 480px) {
    .bm-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .bm-stat { padding: 0.6rem 1.2rem; }
}
