:where(
    .vw-surface-card,
    .album-page-header-card,
    .playlist-page-header-card,
    .album-page-tracklist-card,
    .album-page-section-card,
    .song-page-header-card,
    .song-page-comments-card,
    .song-page-section-card,
    .search-toolbar-card,
    .search-section,
    .category-hero-card,
    .top-hero-card,
    .login-hero-card,
    .member-panel-card
) {
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-lg);
    background:
        linear-gradient(180deg, rgba(18, 22, 38, 0.94) 0%, rgba(11, 14, 24, 0.94) 100%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(56, 189, 248, 0.06));
    box-shadow: var(--vw-shadow-card);
}

:where(.album-page-header-card, .playlist-page-header-card, .song-page-header-card, .login-hero-card, .category-hero-card, .top-hero-card) {
    overflow: clip;
}

:where(
    .vw-section-head,
    .album-page-section-head,
    .song-page-section-title,
    .section-title,
    .top-section-header,
    .category-section-header
) {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

:where(
    .vw-section-head h1,
    .vw-section-head h2,
    .vw-section-head h3,
    .album-page-section-head h1,
    .album-page-section-head h2,
    .album-page-section-head h3,
    .song-page-section-title h1,
    .song-page-section-title h2,
    .song-page-section-title h3,
    .section-title h1,
    .section-title h2,
    .section-title h3,
    .top-section-header h2,
    .category-section-header h2
) {
    margin: 0;
    font-size: clamp(1.02rem, 0.94rem + 0.34vw, 1.34rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

:where(.album-page-section-note, .song-page-section-title > span, .section-title > span, .top-section-header > span, .category-section-header > span) {
    color: var(--vw-text-muted);
    font-size: 0.92rem;
}

:where(
    .vw-badge,
    .album-page-type-badge,
    .album-page-featured-badge,
    .song-page-type-badge,
    .song-page-featured-badge,
    .playlist-visibility-badge,
    .song-page-chip,
    .search-chip,
    .top-summary-badge,
    .category-badge,
    .login-route-chip,
    .login-hero-badge,
    .member-status-badge,
    .member-playlist-badge,
    .meta-badge
) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--vw-text-soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}

:where(.album-page-type-badge, .song-page-type-badge, .login-hero-badge) {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(99, 102, 241, 0.22));
    border-color: rgba(139, 92, 246, 0.34);
}

:where(.album-page-featured-badge, .song-page-featured-badge, .top-summary-badge.is-play) {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(249, 115, 22, 0.18));
    border-color: rgba(251, 191, 36, 0.28);
    color: #fff5d1;
}

:where(.playlist-visibility-badge.is-public, .member-playlist-badge.is-public, .member-public-badge) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.16));
    border-color: rgba(34, 197, 94, 0.28);
    color: #d8ffe9;
}

:where(.playlist-visibility-badge.is-private, .member-playlist-badge.is-private, .member-private-badge) {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(236, 72, 153, 0.12));
    border-color: rgba(244, 63, 94, 0.24);
    color: #ffe0e8;
}

:where(.vw-meta-pills, .album-page-meta, .song-page-inline-actions, .top-summary-badges, .member-playlist-badges, .category-hero-badges) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:where(.vw-meta-pill, .album-page-meta > span, .song-page-artist-line, .album-page-artist-line) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: var(--vw-text-soft);
}

:where(.song-page-artist-line, .album-page-artist-line) a {
    color: inherit;
}

:where(
    .album-page-cover,
    .song-page-cover,
    .album-related-cover,
    .artist-album-cover,
    .search-artist-cover,
    .search-member-avatar,
    .album-cover,
    .playlist-cover,
    .search-song-cover,
    .album-track-thumb,
    .np-cover
) {
    overflow: hidden;
    border-radius: calc(var(--vw-radius-lg) - 6px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.26);
}

:where(
    .song-row,
    .new-track-item,
    .search-song-row,
    .category-song-row,
    .member-song-row,
    .album-track-row,
    .song-row-custom,
    .song-item,
    .top-track-item
) {
    position: relative;
    border-radius: calc(var(--vw-radius-md) - 2px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

:where(
    .song-row:hover,
    .new-track-item:hover,
    .search-song-row:hover,
    .category-song-row:hover,
    .member-song-row:hover,
    .album-track-row:hover,
    .song-row-custom:hover,
    .song-item:hover,
    .top-track-item:hover
) {
    transform: translateY(-1px);
}

:where(
    .song-row.active-song,
    .new-track-item.active-song,
    .search-song-row.active-song,
    .category-song-row.active-song,
    .member-song-row.is-playing,
    .album-track-row.active-song,
    .album-track-row.is-active,
    .song-row-custom.active-song-highlight,
    .song-item.active-song,
    [data-xt-track-id].is-active
) {
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.16);
}

:where(.album-track-icon-btn, .search-row-action, .song-page-copy-icon-btn, .album-page-copy-icon-btn, .playlist-copy-btn) {
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

:where(.album-track-icon-btn:hover, .search-row-action:hover, .song-page-copy-icon-btn:hover, .album-page-copy-icon-btn:hover, .playlist-copy-btn:hover) {
    transform: translateY(-1px);
}

:where(.album-related-card, .artist-album-card, .search-exact-card, .search-entity-card, .album-card, .playlist-card) {
    border-radius: calc(var(--vw-radius-lg) - 2px);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

:where(.album-related-card:hover, .artist-album-card:hover, .search-exact-card:hover, .search-entity-card:hover, .album-card:hover, .playlist-card:hover) {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.18);
    background: rgba(255,255,255,0.05);
}

:where(.song-page-comment-item, .no-data-card, .album-track-empty, .album-page-empty-note, .search-soft-note) {
    border-radius: calc(var(--vw-radius-md) - 2px);
}

@media (max-width: 1080px) {
    :where(.album-page-header-card, .playlist-page-header-card, .song-page-header-card) {
        border-radius: calc(var(--vw-radius-lg) - 4px);
    }
}


[data-xt-ajax-notice].xt-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(12, 12, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color: #f4f4f5;
    backdrop-filter: blur(16px);
    transform: translate3d(0, -12px, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    margin: 0;
}

[data-xt-ajax-notice].xt-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-xt-ajax-notice].xt-toast.success {
    border-color: rgba(139, 92, 246, 0.35);
}

[data-xt-ajax-notice].xt-toast.error {
    border-color: rgba(248, 113, 113, 0.35);
}

.xt-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.16);
    color: #c4b5fd;
}

[data-xt-ajax-notice].xt-toast.error .xt-toast-icon {
    background: rgba(248, 113, 113, 0.16);
    color: #fda4af;
}

.xt-toast-text {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 768px) {
    [data-xt-ajax-notice].xt-toast {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 96px;
        min-width: 0;
        max-width: none;
        padding: 13px 14px;
        border-radius: 14px;
    }

    .xt-toast-text {
        font-size: 0.88rem;
    }
}
