﻿.notif-bell-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--danger-color, #ef4444);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    pointer-events: none;
}

.notif-panel {
    position: fixed;
    width: 330px;
    max-width: calc(100vw - 16px);
    max-height: min(430px, calc(100vh - 90px));
    display: none;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    z-index: 10500;
    overflow: hidden;
}

    .notif-panel.open {
        display: flex;
        animation: notifIn .16s cubic-bezier(.34, 1.2, .64, 1);
        transform-origin: top right;
    }

@keyframes notifIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
}

.notif-panel__clear {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}

    .notif-panel__clear:hover {
        text-decoration: underline;
    }

.notif-panel__list {
    overflow-y: auto;
    flex: 1;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid var(--border-default);
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--bg-nav-hover);
    }

    .notif-item.unread {
        background: color-mix(in srgb, var(--accent-blue) 8%, transparent);
    }

        .notif-item.unread .notif-item__text {
            font-weight: 600;
            color: var(--text-primary);
        }

.notif-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

    .notif-item__icon svg {
        width: 14px;
        height: 14px;
    }

.notif-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-item__text {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.notif-item__time {
    font-size: .68rem;
    color: var(--text-muted, var(--text-secondary));
}

.notif-empty {
    padding: 26px 14px;
    text-align: center;
    color: var(--text-secondary);
    font-size: .8rem;
}

    .notif-empty svg {
        width: 22px;
        height: 22px;
        opacity: .5;
        margin-bottom: 6px;
    }

.pod-card-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 99px;
    padding: 3px;
}

.pod-card-tab {
    flex: 1;
    background: none;
    border: none;
    border-radius: 99px;
    padding: 5px 0;
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .12s, color .12s;
}

    .pod-card-tab.active {
        background: var(--accent-blue);
        color: #fff;
    }

.pod-lb-scope {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: .72rem;
}

.pod-lb-scope-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
}

    .pod-lb-scope-btn.active {
        color: var(--text-primary);
        border-bottom-color: var(--accent-blue);
    }

.pod-lb-season {
    font-size: .68rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pod-lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid var(--border-default);
    font-size: .78rem;
}

    .pod-lb-row:last-child {
        border-bottom: none;
    }

    .pod-lb-row.is-me {
        background: color-mix(in srgb, var(--accent-blue) 9%, transparent);
        border-radius: 6px;
    }

.pod-lb-rank {
    width: 20px;
    text-align: center;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.pod-lb-row:nth-child(1) .pod-lb-rank {
    color: #f0b429;
}

.pod-lb-row:nth-child(2) .pod-lb-rank {
    color: #9ea7b3;
}

.pod-lb-row:nth-child(3) .pod-lb-rank {
    color: #c4763a;
}

.pod-lb-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
}

.pod-lb-stats {
    color: var(--text-secondary);
    font-size: .7rem;
    flex-shrink: 0;
}

.pod-lb-pts {
    font-weight: 800;
    color: var(--accent-blue);
    flex-shrink: 0;
    min-width: 34px;
    text-align: right;
}

.pod-lb-empty {
    padding: 14px 4px;
    text-align: center;
    color: var(--text-secondary);
    font-size: .76rem;
}

.prefs-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-default);
}

    .prefs-row:last-child {
        border-bottom: none;
    }

.prefs-row-text {
    min-width: 0;
}

.prefs-row-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.prefs-row-help {
    font-size: .76rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.prefs-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 99px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

    .prefs-toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--text-secondary);
        transition: transform .15s, background .15s;
    }

    .prefs-toggle.on {
        background: var(--accent-blue);
        border-color: var(--accent-blue);
    }

        .prefs-toggle.on::after {
            transform: translateX(18px);
            background: #fff;
        }
