body.theme-public-classic {
    padding-bottom: 116px;
}

body.theme-public-classic .player-bar {
    display: none !important;
}


[data-xt-track-id].is-active {
    background: #fff8d9;
}

.xt-global-player-shell {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    color: #f5f1ff;
    font-family: Inter, Verdana, Arial, sans-serif;
    pointer-events: none;
}

.xt-global-player-shell * {
    box-sizing: border-box;
}

.xt-gp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 12, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.xt-gp-surface {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    padding: 0;
    pointer-events: none;
}

.xt-gp-main,
.xt-gp-queue-panel {
    pointer-events: auto;
}

.xt-gp-main {
    min-height: 80px;
    width: 100%;
    margin: 0;
    padding: 10px 24px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(340px, 1.2fr) minmax(220px, 1fr);
    gap: 16px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(18, 15, 31, .98) 0%, rgba(11, 11, 18, .98) 100%),
        linear-gradient(135deg, rgba(139,92,246,.16), rgba(99,102,241,.08));
    box-shadow: 0 -12px 32px rgba(0,0,0,.32);
    backdrop-filter: blur(18px);
}

.xt-gp-left,
.xt-gp-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.xt-gp-right {
    justify-content: flex-end;
}

.xt-gp-cover-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    position: relative;
    flex: 0 0 auto;
    box-shadow: 0 10px 22px rgba(0,0,0,.24);
}

.xt-gp-cover,
.xt-gp-cover-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.xt-gp-cover {
    object-fit: cover;
    display: block;
    background: linear-gradient(145deg, rgba(58,51,86,.95), rgba(21,21,32,.95));
}

.xt-gp-cover-link.is-empty .xt-gp-cover {
    display: none;
}

.xt-gp-cover-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(86,58,160,.7), rgba(27,26,42,.95));
}

.xt-gp-cover-link.is-empty .xt-gp-cover-placeholder {
    display: flex;
}

.xt-gp-media {
    min-width: 0;
}

.xt-gp-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.xt-gp-title-row .xt-gp-title-link {
    min-width: 0;
    flex: 1 1 auto;
}

.xt-gp-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.xt-gp-inline-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: rgba(245,241,255,.90);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.xt-gp-inline-btn:hover,
.xt-gp-inline-btn.is-active {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
    color: #fff;
}

.xt-gp-inline-btn.is-active {
    background: rgba(139,92,246,.18);
    border-color: rgba(139,92,246,.34);
    color: #ffb6cf;
}

.xt-gp-inline-btn.is-disabled,
.xt-gp-inline-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.xt-gp-playlist-popover {
    position: absolute;
    left: 88px;
    bottom: calc(100% + 12px);
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(22,18,35,.98) 0%, rgba(10,10,16,.98) 100%);
    box-shadow: 0 20px 48px rgba(0,0,0,.38);
    backdrop-filter: blur(16px);
    z-index: 10001;
}

.xt-gp-playlist-popover[hidden] {
    display: none !important;
}

.xt-gp-playlist-popover-title {
    font-size: 13px;
    font-weight: 700;
}

.xt-gp-playlist-popover-sub {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,.66);
}

.xt-gp-playlist-popover-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 228px;
    overflow: auto;
}

.xt-gp-playlist-item,
.xt-gp-playlist-empty-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.04);
    color: #f5f1ff;
    text-decoration: none;
    font: inherit;
}

.xt-gp-playlist-item:hover,
.xt-gp-playlist-empty-link:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.10);
}

.xt-gp-playlist-item-title {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.xt-gp-playlist-item-icon {
    flex: 0 0 auto;
    color: rgba(196,171,255,.94);
}

.xt-gp-section-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(196, 171, 255, .76);
}

.xt-gp-title-link,
.xt-gp-artist-link {
    color: inherit;
    text-decoration: none;
}

.xt-gp-title-link:hover,
.xt-gp-artist-link:hover,
.xt-gp-cover-link:hover + .xt-gp-media .xt-gp-title {
    text-decoration: underline;
}

.xt-gp-title {
    display: block;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-meta-line {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    color: rgba(243, 238, 255, .82);
}

.xt-gp-dot {
    opacity: .45;
}

.xt-gp-artist-link,
.xt-gp-source-badge {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
}

.xt-gp-center {
    min-width: 0;
}

.xt-gp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ── Base reset cho tất cả nút player ───────────────────── */
.xt-gp-icon-btn,
.xt-gp-chip-btn,
.xt-gp-queue-head-btn,
.xt-gp-row-btn,
.xt-gp-play-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: background .15s, border-color .15s, transform .15s, opacity .15s, color .15s;
}

/* ── Icon buttons: shuffle / prev / next / repeat ───────── */
.xt-gp-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    color: rgba(255,255,255,.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xt-gp-icon-btn:hover,
.xt-gp-icon-btn.is-active,
.xt-gp-chip-btn:hover,
.xt-gp-chip-btn.is-active,
.xt-gp-queue-head-btn:hover,
.xt-gp-row-btn:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.xt-gp-icon-btn.is-active {
    color: #f0abfc;
}

/* ── Nút PHÁT / PAUSE — hồng/tím, viền trắng ───────────── */
.xt-gp-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,.88);
    box-shadow: 0 0 0 3px rgba(236,72,153,.25), 0 6px 20px rgba(139,92,246,.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.xt-gp-play-btn:hover {
    background: linear-gradient(135deg, #f472b6, #a855f7);
    border-color: #fff;
    transform: scale(1.07);
    box-shadow: 0 0 0 4px rgba(236,72,153,.35), 0 8px 24px rgba(139,92,246,.55);
}

.xt-gp-play-btn:active {
    transform: scale(0.97);
}

.xt-gp-timeline {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
}

.xt-gp-time {
    font-size: 11px;
    color: rgba(255,255,255,.68);
    text-align: center;
}

.xt-gp-progress,
.xt-gp-volume {
    width: 100%;
    accent-color: #c4afff;
}

.xt-gp-count-chip,
.xt-gp-chip-btn,
.xt-gp-queue-head-btn,
.xt-gp-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: rgba(250,246,255,.92);
    font-size: 11px;
}

.xt-gp-count-chip {
    min-width: 58px;
    letter-spacing: .04em;
}

.xt-gp-chip-btn--queue {
    gap: 8px;
}

.xt-gp-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,.18);
}

.xt-gp-volume-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding-left: 2px;
}

.xt-gp-volume-icon {
    font-size: 15px;
}

.xt-gp-volume {
    max-width: 88px;
}

.xt-gp-queue-panel {
    position: absolute;
    right: 24px;
    bottom: calc(100% + 10px);
    width: min(430px, calc(100vw - 32px));
    max-height: min(72vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.09);
    background:
        linear-gradient(180deg, rgba(22, 18, 35, .98) 0%, rgba(10, 10, 16, .98) 100%),
        linear-gradient(135deg, rgba(139,92,246,.20), rgba(99,102,241,.08));
    box-shadow: 0 24px 56px rgba(0,0,0,.44);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(18px) scale(.98);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.xt-gp-queue-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.xt-gp-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.xt-gp-queue-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}

.xt-gp-queue-head-main {
    min-width: 0;
}

.xt-gp-queue-title {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 700;
}

.xt-gp-queue-subtitle {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,.68);
}

.xt-gp-queue-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xt-gp-queue-body {
    padding: 16px 16px 18px;
    overflow: auto;
}

.xt-gp-current-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.07);
}

.xt-gp-current-cover-wrap {
    position: relative;
}

.xt-gp-current-cover,
.xt-gp-current-cover-fallback {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.xt-gp-current-cover {
    object-fit: cover;
    display: block;
    background: linear-gradient(145deg, rgba(78,67,122,.95), rgba(18,17,30,.98));
}

.xt-gp-current-cover-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(86,58,160,.7), rgba(27,26,42,.95));
}

.xt-gp-current-cover-wrap.is-empty .xt-gp-current-cover {
    display: none;
}

.xt-gp-current-cover-wrap.is-empty .xt-gp-current-cover-fallback {
    display: flex;
}

.xt-gp-current-meta {
    min-width: 0;
}

.xt-gp-current-title {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-current-subtitle {
    margin-top: 6px;
    color: rgba(255,255,255,.70);
    font-size: 12px;
}

.xt-gp-current-actions {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xt-gp-inline-btn--current {
    width: 34px;
    height: 34px;
}

.xt-gp-queue-helper {
    display: none;
}

.xt-gp-helper-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(240,235,255,.86);
    font-size: 11px;
}

.xt-gp-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(196, 171, 255, .74);
}

.xt-gp-recent-wrap {
    margin-bottom: 18px;
}

.xt-gp-recent-list,
.xt-gp-queue {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xt-gp-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.xt-gp-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
}

.xt-gp-recent-meta {
    min-width: 0;
}

.xt-gp-recent-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-recent-sub {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,.62);
}

.xt-gp-recent-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xt-gp-queue-actions {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.xt-gp-queue-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xt-gp-queue-action-group--secondary {
    margin-left: auto;
}

.xt-gp-queue-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.xt-gp-queue-list-meta {
    font-size: 11px;
    color: rgba(255,255,255,.58);
}

.xt-gp-queue {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xt-gp-queue-item {
    display: grid;
    grid-template-columns: 30px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
}

.xt-gp-queue-item.is-active {
    background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(255,255,255,.04));
    border-color: rgba(139,92,246,.34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.xt-gp-queue-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.80);
    font-size: 11px;
    font-weight: 700;
}

.xt-gp-queue-item.is-active .xt-gp-queue-index {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

.xt-gp-queue-cover-wrap {
    position: relative;
}

.xt-gp-queue-cover,
.xt-gp-queue-cover-fallback {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.xt-gp-queue-cover {
    object-fit: cover;
    display: block;
    background: linear-gradient(145deg, rgba(78,67,122,.95), rgba(18,17,30,.98));
}

.xt-gp-queue-cover-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(86,58,160,.7), rgba(27,26,42,.95));
}

.xt-gp-queue-cover-wrap.is-empty .xt-gp-queue-cover {
    display: none;
}

.xt-gp-queue-cover-wrap.is-empty .xt-gp-queue-cover-fallback {
    display: flex;
}

.xt-gp-queue-main {
    min-width: 0;
}

.xt-gp-queue-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.xt-gp-queue-title-line {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-queue-playing-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(139,92,246,.20);
    color: #dccfff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.xt-gp-queue-item.is-active .xt-gp-queue-playing-badge {
    display: inline-flex;
}

.xt-gp-queue-meta-line {
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-row-btn {
    min-height: 30px;
    padding: 0 10px;
    gap: 7px;
}

.xt-gp-row-btn--primary {
    background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(79,70,229,.24));
    border-color: rgba(139,92,246,.32);
    color: #fff;
}

.xt-gp-icon-row-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(245,241,255,.90);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.xt-gp-icon-row-btn:hover,
.xt-gp-icon-row-btn.is-active {
    background: rgba(139,92,246,.16);
    border-color: rgba(139,92,246,.30);
    color: #fff;
    transform: translateY(-1px);
}

.xt-gp-icon-row-btn.is-active {
    background: rgba(236,72,153,.15);
    border-color: rgba(236,72,153,.26);
    color: #f9a8d4;
}

.xt-gp-icon-row-btn--danger {
    color: #ffb9cf;
}

.xt-gp-row-btn--danger {
    color: #ffb9cf;
}


.xt-action-more {
    position: relative;
    display: inline-flex;
    margin: 0;
}

.xt-action-more[open] {
    z-index: 40;
}

.xt-action-more > summary {
    list-style: none;
}

.xt-action-more > summary::-webkit-details-marker {
    display: none;
}

.xt-action-more__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 176px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(10,12,24,.96);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.72);
    display: grid;
    gap: 6px;
}

.xt-action-more__item {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    font-size: .82rem;
    font-weight: 600;
}

.xt-action-more__item:hover {
    background: rgba(139,92,246,.14);
    border-color: rgba(139,92,246,.30);
    color: #fff;
    transform: translateY(-1px);
}

.xt-action-more__item i {
    width: 14px;
    text-align: center;
    color: #c4b5fd;
    flex-shrink: 0;
}

.xt-gp-empty {
    padding: 22px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.10);
    color: rgba(255,255,255,.68);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1260px) {
    .xt-gp-main {
        grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.2fr) minmax(200px, .9fr);
        gap: 14px;
    }
}

@media (max-width: 980px) {
    body.theme-public-classic {
        padding-bottom: 168px;
    }

    .xt-gp-surface {
        padding: 0 12px;
    }

    .xt-gp-main {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 22px 22px 0 0;
    }

    .xt-gp-left,
    .xt-gp-right {
        justify-content: space-between;
    }

    .xt-gp-right {
        flex-wrap: wrap;
    }

    .xt-gp-queue-panel {
        right: 12px;
        left: 12px;
        width: auto;
        max-height: min(72vh, 620px);
        bottom: calc(100% + 10px);
    }

    .xt-gp-queue-item {
        grid-template-columns: 30px 52px minmax(0, 1fr);
    }

    .xt-gp-queue-actions {
        grid-column: 2 / -1;
        padding-top: 4px;
    }
}

@media (max-width: 620px) {
    body.theme-public-classic {
        padding-bottom: 182px;
    }

    .xt-gp-cover-link,
    .xt-gp-cover,
    .xt-gp-cover-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .xt-gp-title {
        font-size: 15px;
    }

    .xt-gp-meta-line {
        flex-wrap: wrap;
        gap: 6px;
    }

    .xt-gp-artist-link,
    .xt-gp-source-badge {
        max-width: none;
    }

    .xt-gp-controls {
        gap: 16px;
    }

    .xt-gp-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .xt-gp-play-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .xt-gp-timeline {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .xt-gp-volume-wrap {
        min-width: 104px;
    }

    .xt-gp-queue-head,
    .xt-gp-queue-body {
        padding-inline: 14px;
    }

    .xt-gp-current-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .xt-gp-queue-actions,
    .xt-gp-queue-action-group {
        width: 100%;
    }

    .xt-gp-queue-action-group--secondary {
        margin-left: 0;
    }

    .xt-gp-current-cover,
    .xt-gp-current-cover-fallback {
        width: 56px;
        height: 56px;
    }

    .xt-gp-queue-item {
        grid-template-columns: 28px 48px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .xt-gp-queue-cover,
    .xt-gp-queue-cover-fallback {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .xt-gp-row-btn,
    .xt-gp-chip-btn,
    .xt-gp-queue-head-btn {
        min-height: 32px;
        padding-inline: 10px;
    }
}

.xt-v11-inline-play,
.xt-v11-player-box,
.xt-detail-sync-box,
.xt-detail-sync-title,
.xt-detail-sync-note,
.xt-detail-sync-btn {
    all: revert;
}

@media (max-width: 1260px) {
    .xt-gp-main {
        grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.25fr) minmax(190px, 240px);
        gap: 14px;
    }

    .xt-gp-title {
        font-size: 17px;
    }
}

@media (max-width: 980px) {
    body.theme-public-classic {
        padding-bottom: 250px;
    }

    .xt-gp-surface {
        padding: 0 12px;
    }

    .xt-gp-main {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 22px 22px 0 0;
    }

    .xt-gp-tools {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .xt-gp-volume-wrap {
        min-width: 108px;
    }

    .xt-gp-queue-panel {
        right: 12px;
        left: 12px;
        width: auto;
        max-height: min(72vh, 620px);
        bottom: calc(100% + 10px);
    }

    .xt-gp-queue-item {
        grid-template-columns: 30px 52px minmax(0, 1fr);
    }

    .xt-gp-queue-actions {
        grid-column: 2 / -1;
        padding-top: 4px;
    }
}

@media (max-width: 620px) {
    body.theme-public-classic {
        padding-bottom: 278px;
    }

    .xt-gp-cover-link {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .xt-gp-cover,
    .xt-gp-cover-placeholder {
        width: 54px;
        height: 54px;
    }

    .xt-gp-title {
        font-size: 16px;
    }

    .xt-gp-meta-line {
        flex-wrap: wrap;
        gap: 6px;
    }

    .xt-gp-artist-link,
    .xt-gp-source-badge {
        max-width: none;
    }

    .xt-gp-controls {
        gap: 18px;
    }

    .xt-gp-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .xt-gp-play-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .xt-gp-timeline {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
    }

    .xt-gp-queue-head,
    .xt-gp-queue-body {
        padding-inline: 14px;
    }

    .xt-gp-current-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .xt-gp-queue-actions,
    .xt-gp-queue-action-group {
        width: 100%;
    }

    .xt-gp-queue-action-group--secondary {
        margin-left: 0;
    }

    .xt-gp-current-cover,
    .xt-gp-current-cover-fallback {
        width: 56px;
        height: 56px;
    }

    .xt-gp-queue-item {
        grid-template-columns: 28px 48px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .xt-gp-queue-cover,
    .xt-gp-queue-cover-fallback {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .xt-gp-row-btn,
    .xt-gp-chip-btn,
    .xt-gp-queue-head-btn {
        min-height: 32px;
        padding-inline: 10px;
    }
}

@media (max-width: 900px) {
    .xt-gp-playlist-popover {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: calc(100% + 10px);
    }
    .xt-gp-inline-actions {
        gap: 4px;
    }
    .xt-gp-inline-btn {
        width: 26px;
        height: 26px;
    }
}


.vibewave-player-demo {
  display: none !important;
}


body.vibewave-homepage .player-bar,
body.vibewave-songpage .player-bar,
body.vibewave-albumpage .player-bar,
body.vibewave-playlistpage .player-bar,
body.vibewave-search-page .player-bar,
body.vibewave-albums-page .player-bar,
body.vibewave-artist-page .player-bar,
body.vibewave-memberpage .player-bar,
body.vibewave-member-public-page .player-bar,
body.vibewave-top-page .player-bar {
    display: none !important;
}


.right-panel-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.right-panel-album-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.04);
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.right-panel-album-card:hover {
    background: rgba(139,92,246,.10);
    border-color: rgba(139,92,246,.22);
    transform: translateY(-2px);
}

.right-panel-album-cover-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(58,51,86,.95), rgba(21,21,32,.95));
}

.right-panel-album-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-panel-album-title,
.right-panel-album-artist {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-panel-album-title {
    font-size: 12px;
    font-weight: 600;
    color: #f5f1ff;
}

.right-panel-album-artist {
    font-size: 11px;
    color: rgba(255,255,255,.62);
}

/* ── Home Discovery Thumb ─────────────────────────────────────────────── */
.home-discovery-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
}
.home-discovery-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--vw-text-muted, #93a0b8);
}

/* ── Right Rail Widgets ────────────────────────────────────────────────── */
.rr-widget {
    padding: 14px 0 4px;
    border-bottom: 1px solid var(--vw-border, rgba(255,255,255,.06));
}
.rr-widget:last-child { border-bottom: none; }

.rr-widget-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vw-text-muted, #93a0b8);
}
.rr-widget-header > i { color: var(--vw-accent, #8b5cf6); font-size: 12px; }
.rr-widget-header > span { flex: 1; }

.rr-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--vw-text-muted, #93a0b8);
    border-radius: 6px;
    cursor: pointer;
    transition: color .15s, background .15s, transform .3s;
    flex-shrink: 0;
}
.rr-refresh-btn:hover { color: var(--vw-text, #eef2ff); background: var(--vw-accent-soft, rgba(139,92,246,.16)); }
.rr-refresh-btn.is-spinning i { animation: rr-spin .5s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }

.rr-song-list { display: flex; flex-direction: column; }

.rr-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background .15s;
    min-width: 0;
}
.rr-song-item:hover { background: var(--vw-accent-soft, rgba(139,92,246,.10)); }

.rr-song-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
}
.rr-song-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vw-text-muted, #93a0b8);
    font-size: 14px;
}

.rr-song-info { flex: 1; min-width: 0; }
.rr-song-title {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vw-text, #eef2ff);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.rr-song-title:hover { color: var(--vw-accent, #8b5cf6); }
.rr-song-artist {
    font-size: 11px;
    color: var(--vw-text-muted, #93a0b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}


.rr-empty {
    padding: 16px 14px;
    font-size: 12px;
    color: var(--vw-text-muted, #93a0b8);
}
.rr-empty i { margin-right: 5px; }

/* Refresh animation overlay */
[data-vw-random-block].is-refreshing { opacity: .5; pointer-events: none; }
[data-vw-random-block].is-fresh { animation: rr-fresh .3s ease; }
@keyframes rr-fresh {
    from { opacity: .4; transform: translateY(4px); }
    to   { opacity: 1;  transform: translateY(0); }
}

/* V2.9C mobile drawer + up next */
.xt-gp-mobile-drawer-btn {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: min(260px, 100%);
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    color: #f5f1ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 24px rgba(0,0,0,.20);
}

.xt-gp-mobile-drawer-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    color: rgba(193,170,255,.88);
}

.xt-gp-mobile-drawer-title {
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-mobile-drawer-meta {
    font-size: 11px;
    color: rgba(255,255,255,.70);
}

.xt-gp-mobile-drawer-handle-wrap {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px 14px 0;
    background: transparent;
    border: 0;
}

.xt-gp-mobile-drawer-handle {
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    box-shadow: 0 1px 0 rgba(255,255,255,.12);
}

.xt-gp-upnext-wrap {
    margin: 0 0 14px;
}

.xt-gp-queue-list-head--upnext {
    margin-bottom: 10px;
}

.xt-gp-upnext-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xt-gp-upnext-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.xt-gp-upnext-hit {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    min-width: 0;
}

.xt-gp-upnext-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 700;
}

.xt-gp-upnext-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.xt-gp-upnext-title-line {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-upnext-meta {
    font-size: 12px;
    color: rgba(255,255,255,.64);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xt-gp-upnext-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.xt-gp-upnext-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: #f5f1ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.xt-gp-upnext-btn--icon {
    width: 32px;
    padding: 0;
}

.xt-gp-upnext-btn:hover {
    background: rgba(139,92,246,.18);
    border-color: rgba(139,92,246,.32);
}

body.xt-gp-mobile-drawer-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 820px) {
    .xt-gp-chip-btn--queue {
        display: none;
    }

    .xt-gp-mobile-drawer-btn {
        display: inline-flex;
        width: 100%;
        order: -1;
    }

    .xt-gp-right {
        align-items: stretch;
    }

    .xt-gp-mobile-drawer-handle-wrap {
        display: flex;
    }

    .xt-gp-queue-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: min(82dvh, 760px);
        border-radius: 24px 24px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        transform: translateY(calc(100% + 16px));
        box-shadow: 0 -24px 64px rgba(0,0,0,.42);
    }

    .xt-gp-queue-panel.is-open {
        transform: translateY(0);
    }

    .xt-gp-queue-head {
        padding-top: 6px;
    }

    .xt-gp-queue-body {
        padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
    }

    .xt-gp-queue-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .xt-gp-queue-helper {
        display: none;
    }
}

@media (max-width: 620px) {
    .xt-gp-mobile-drawer-btn {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .xt-gp-mobile-drawer-title {
        font-size: 13px;
    }

    .xt-gp-upnext-item {
        grid-template-columns: 1fr;
    }

    .xt-gp-upnext-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .xt-gp-upnext-btn {
        flex: 0 0 auto;
    }
}

/* ── Simplified queue list ─────────────────────────────────── */
.xt-gp-queue-item {
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: background .15s ease;
}
.xt-gp-queue-item:hover {
    background: rgba(255,255,255,.05);
}
.xt-gp-queue-item.is-active {
    background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(255,255,255,.04));
    border-color: rgba(139,92,246,.28);
}

.xt-gp-queue-thumb {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(78,67,122,.9), rgba(18,17,30,.95));
}
.xt-gp-queue-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.xt-gp-queue-thumb-fb {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,.7);
}
.xt-gp-queue-thumb.is-empty .xt-gp-queue-thumb-img { display: none; }
.xt-gp-queue-thumb.is-empty .xt-gp-queue-thumb-fb { display: flex; }

.xt-gp-queue-hit {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 12px;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
}
.xt-gp-queue-hit:hover .xt-gp-queue-title-line {
    color: #fff;
}

.xt-gp-queue-item.is-active .xt-gp-queue-index {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-size: 13px;
}

.xt-gp-queue-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xt-gp-queue-title-line {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,.92);
    transition: color .15s ease;
}
.xt-gp-queue-meta-line {
    font-size: 11px;
    color: rgba(255,255,255,.50);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover action buttons */
.xt-gp-queue-aside {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 10px;
    opacity: 0;
    transition: opacity .15s ease;
    flex-shrink: 0;
}
.xt-gp-queue-item:hover .xt-gp-queue-aside,
.xt-gp-queue-item:focus-within .xt-gp-queue-aside,
.xt-gp-queue-item.is-active .xt-gp-queue-aside {
    opacity: 1;
}
.xt-gp-queue-aside-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    font-size: 12px;
}
.xt-gp-queue-aside-btn:hover {
    background: rgba(139,92,246,.22);
    color: #fff;
}
.xt-gp-queue-aside-btn.is-active {
    background: rgba(236,72,153,.15);
    color: #f9a8d4;
}
.xt-gp-queue-aside-btn.is-active:hover {
    background: rgba(236,72,153,.28);
    color: #fce7f3;
}
.xt-gp-queue-aside-btn--remove:hover {
    background: rgba(239,68,68,.18);
    color: #fca5a5;
}

/* Simplified up-next remove button */
.xt-gp-upnext-remove {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.40);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
    font-size: 11px;
    opacity: 0;
    transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.xt-gp-upnext-item:hover .xt-gp-upnext-remove,
.xt-gp-upnext-item:focus-within .xt-gp-upnext-remove {
    opacity: 1;
}
.xt-gp-upnext-remove:hover {
    background: rgba(239,68,68,.18);
    color: #fca5a5;
}

/* Touch / mobile: always show aside buttons */
@media (hover: none) {
    .xt-gp-queue-aside { opacity: 1; }
    .xt-gp-upnext-remove { opacity: 1; }
}
