.karaoke-pager {
    --pager-bg: #18181e;
    --pager-bg-hover: #24242d;
    --pager-border: rgba(255, 255, 255, 0.08);
    --pager-border-hover: rgba(168, 85, 247, 0.5);
    --pager-text: #aaa6b3;
    --pager-text-light: #f8f7fb;
    --pager-muted: #74717c;
    --pager-purple: #8b5cf6;
    --pager-pink: #db2777;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    width: 100%;
    max-width: 1000px;
    margin: 34px auto 0;
    font-family: inherit;
}

.karaoke-pager__summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--pager-muted);
    font-size: 13px;
    line-height: 1.4;
}

.karaoke-pager__summary strong {
    color: #c9c6d0;
    font-weight: 700;
}

.karaoke-pager__summary-label {
    color: var(--pager-muted);
}

.karaoke-pager__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.karaoke-pager__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.karaoke-pager__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 13px;
    overflow: hidden;
    color: var(--pager-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0)
        ),
        var(--pager-bg);
    border: 1px solid var(--pager-border);
    border-radius: 13px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.karaoke-pager__button::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0,
        rgba(192, 132, 252, 0.14),
        transparent 68%
    );
    opacity: 0;
    content: "";
    transition: opacity 0.2s ease;
}

.karaoke-pager__button > * {
    position: relative;
    z-index: 1;
}

a.karaoke-pager__button:hover {
    color: var(--pager-text-light);
    text-decoration: none;
    background-color: var(--pager-bg-hover);
    border-color: var(--pager-border-hover);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

a.karaoke-pager__button:hover::before {
    opacity: 1;
}

.karaoke-pager__button.is-active {
    color: #fff;
    background:
        radial-gradient(
            circle at 30% 0,
            rgba(255, 255, 255, 0.2),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--pager-purple) 0%,
            #a855f7 48%,
            var(--pager-pink) 100%
        );
    border-color: transparent;
    box-shadow:
        0 12px 28px rgba(126, 34, 206, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.2);
    cursor: default;
}

.karaoke-pager__button.is-active::after {
    position: absolute;
    right: 9px;
    bottom: 5px;
    left: 9px;
    height: 2px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    content: "";
}

.karaoke-pager__button--wide {
    gap: 7px;
    min-width: 105px;
    padding: 0 16px;
}

.karaoke-pager__button--wide svg {
    flex: 0 0 auto;
}

.karaoke-pager__button.is-disabled {
    color: #57545e;
    background: rgba(24, 24, 30, 0.55);
    border-color: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.karaoke-pager__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 44px;
    color: #625f6a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
}

.karaoke-pager__all {
    text-align: center;
}

.karaoke-pager__all a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #918d99;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.karaoke-pager__all a::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #a855f7,
        transparent
    );
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.karaoke-pager__all a:hover {
    color: #d8b4fe;
    text-decoration: none;
}

.karaoke-pager__all a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 700px) {
    .karaoke-pager {
        gap: 14px;
        margin-top: 28px;
    }

    .karaoke-pager__navigation {
        flex-wrap: wrap;
        gap: 9px;
    }

    .karaoke-pager__pages {
        order: 1;
        width: 100%;
        flex-wrap: wrap;
    }

    .karaoke-pager__button--wide {
        order: 2;
        flex: 1 1 calc(50% - 5px);
        max-width: 180px;
    }

    .karaoke-pager__button {
        min-width: 40px;
        height: 40px;
        padding: 0 11px;
        border-radius: 11px;
    }

    .karaoke-pager__dots {
        height: 40px;
    }
}

@media (max-width: 420px) {
    .karaoke-pager__summary-label {
        display: none;
    }

    .karaoke-pager__button {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: 13px;
    }

    .karaoke-pager__button--wide {
        height: 42px;
    }

    .karaoke-pager__pages {
        gap: 5px;
    }
}