* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #eef2f7;
    color: #0f172a;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    --sdy-sat: env(safe-area-inset-top, 0px);
    --sdy-sab: env(safe-area-inset-bottom, 0px);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.app {
    min-height: 100vh;
    min-height: 100dvh;
    /* 只留底栏高度。迷你条浮在内容上，不要再垫 72px 灰底把白条衬出来。 */
    padding-bottom: calc(56px + var(--sdy-sab));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + var(--sdy-sat, env(safe-area-inset-top, 0px))) 16px 12px;
    background: linear-gradient(145deg, #22c55e, #059669);
    color: #fff;
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.brand-sub {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.topbar-search[hidden] { display: none !important; }

.topbar-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.topbar-search-field input {
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 18px;
    padding: 0 40px 0 14px;
    font-size: 15px;
    background: #fff;
    color: #0f172a;
    outline: none;
}

.topbar-search-go {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #059669;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.panel-search {
    min-height: 50vh;
}

body.sdy-library-open .topbar,
body.sdy-playlist-open .topbar,
body.sdy-catalog-open .topbar,
body.sdy-square-more-open .topbar,
body.sdy-profile-overlay-open .topbar,
body.sdy-search-open .home-category-nav,
body.sdy-library-open .home-category-nav,
body.sdy-playlist-open .home-category-nav,
body.sdy-catalog-open .home-category-nav,
body.sdy-square-more-open .home-category-nav,
body.sdy-profile-overlay-open .home-category-nav {
    visibility: hidden;
    pointer-events: none;
}

body.sdy-search-open {
    overflow: hidden;
}

body.sdy-search-open .topbar.header {
    z-index: 130;
}

/* only-right-nav */
body.sdy-search-open .topbar.header .right-nav {
    display: none;
}

body.sdy-search-open .topbar.header .search-container {
    margin: 0;
}

body.sdy-library-open #mini-player {
    display: none;
}

body.sdy-search-open #mini-player,
body.sdy-playlist-open #mini-player,
body.sdy-catalog-open #mini-player,
body.sdy-square-more-open #mini-player {
    display: flex;
    z-index: 130;
    pointer-events: auto;
    bottom: calc(8px + var(--sdy-sab));
}

body.sdy-full-player-open .playlist-page-scroll,
body.sdy-full-player-open .catalog-page-scroll {
    pointer-events: none;
}

body.sdy-search-open .bottom-nav,
body.sdy-library-open .bottom-nav,
body.sdy-playlist-open .bottom-nav,
body.sdy-catalog-open .bottom-nav,
body.sdy-square-more-open .bottom-nav {
    visibility: hidden;
    pointer-events: none;
}

body.sdy-search-open #panel-search.search-page {
    position: fixed;
    top: var(--sdy-topbar-height, 60px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    min-height: 0;
    margin: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px calc(16px + var(--sdy-sab));
}

body.sdy-search-open:has(#mini-player:not([hidden])) #panel-search.search-page {
    padding-bottom: calc(74px + var(--sdy-sab));
}

body.sdy-search-open .search-category-nav {
    top: 0;
}

body.sdy-library-open #panel-library {
    position: fixed;
    inset: 0;
    z-index: 120;
    margin: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8fafc;
    padding: 0 12px calc(16px + var(--sdy-sab));
}

[data-theme="dark"] body.sdy-library-open #panel-library {
    background: var(--bg-color, #1a1a1a);
}

body.sdy-library-open .library-overlay-header {
    margin: 0 -12px 8px;
    padding-top: calc(4px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
}

body.sdy-playlist-open #panel-playlist {
    position: fixed;
    inset: 0;
    z-index: 125;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
    pointer-events: none;
}

[data-theme="dark"] body.sdy-playlist-open #panel-playlist {
    background: var(--bg-color, #1a1a1a);
}

body.sdy-playlist-open .playlist-page-scroll {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: calc(66px + var(--sdy-sab));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    padding: 0 12px 12px;
}

body.sdy-playlist-open .playlist-overlay-header {
    margin: 0 -12px 8px;
    padding-top: calc(4px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
}

body.sdy-catalog-open #panel-catalog {
    position: fixed;
    inset: 0;
    z-index: 125;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
    pointer-events: none;
}

[data-theme="dark"] body.sdy-catalog-open #panel-catalog {
    background: var(--bg-color, #1a1a1a);
}

body.sdy-catalog-open .catalog-page-scroll {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    padding: 0 12px calc(12px + var(--sdy-sab));
}

body.sdy-catalog-open:has(#mini-player:not([hidden])) .catalog-page-scroll {
    padding-bottom: calc(66px + var(--sdy-sab));
}

body.sdy-catalog-open .catalog-overlay-header {
    margin: 0 -12px 8px;
    padding-top: calc(4px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
}

.library-overlay-header + .list-toolbar .section-title {
    display: none;
}

.panel-search.search-page {
    min-height: calc(100vh - var(--sdy-topbar-height, 60px));
    padding: 12px 12px calc(80px + var(--sdy-sab));
    background: #f5f5f5;
}

[data-theme="dark"] .panel-search.search-page {
    background: var(--bg-color, #1a1a1a);
}

.search-empty {
    padding: 0;
    text-align: left;
}

.search-empty-hint {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
}

.search-browse-any {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #2a7dbd;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.search-recent,
.search-browse {
    margin: 12px 0 16px;
    text-align: left;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .search-recent,
[data-theme="dark"] .search-browse {
    background: var(--card-bg, #2d2d2d);
}

.search-recent-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #0a98d5;
    padding-left: 8px;
    border-left: 3px solid #0a98d5;
}

.search-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-hot-tag {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #2a7dbd;
    font-size: 14px;
    cursor: pointer;
}

[data-theme="dark"] .search-hot-tag {
    background: var(--bg-color, #1a1a1a);
    border-color: var(--border-color, #404040);
    color: var(--primary-color, #34d399);
}

.search-results-wrap {
    padding-bottom: 8px;
}

.search-header {
    padding: 0 0 8px;
}

.search-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.search-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.search-duration-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding: 10px 12px;
    background: rgba(248, 248, 248, 0.95);
    border-radius: 8px;
}

[data-theme="dark"] .search-duration-tags {
    background: var(--card-bg, #2d2d2d);
}

.search-duration-tags[hidden] {
    display: none !important;
}

.search-duration-tag {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    color: #2a7dbd;
    cursor: pointer;
}

.search-duration-tag.is-active {
    border-color: #2a7dbd;
    background: #2a7dbd;
    color: #fff;
    font-weight: 600;
}

.search-category-nav {
    display: flex;
    align-items: center;
    position: sticky;
    top: var(--sdy-topbar-height, 60px);
    z-index: 90;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin: 0 0 10px;
}

[data-theme="dark"] .search-category-nav {
    background: var(--card-bg, #2d2d2d);
}

.search-category-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    padding: 0 8px;
}

.search-category-scroll::-webkit-scrollbar {
    display: none;
}

.search-category-item {
    flex: 0 0 auto;
    border: none;
    background: #f5f5f5;
    padding: 8px 16px;
    margin: 0 4px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    border-radius: 16px;
}

.search-category-item.is-active {
    color: #0282ad;
    background: #e6f7ff;
}

.search-category-item.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: #0282ad;
    transform: translateX(-50%);
}

.search-category-item[hidden] {
    display: none !important;
}

.search-status {
    padding: 8px 16px 0;
    min-height: 0;
}

.search-status[hidden] {
    display: none !important;
}

.search-categories {
    padding: 0;
}

.search-category-content {
    padding: 10px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 5px;
}

[data-theme="dark"] .search-category-content {
    background: var(--card-bg, #2d2d2d);
}

.search-section-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0a98d5;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.search-category-content:first-child .search-section-title {
    margin-top: 0;
}

.search-hit-vip {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 3px;
    background: #ffe58f;
    color: #7a5e00;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
}

.search-hit-em {
    background: #fff3cd;
    color: #7a5e00;
    font-weight: 600;
    font-style: normal;
    border-radius: 2px;
    padding: 0 2px;
}

.search-hit-snippet {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.search-hit-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.search-hit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-hit-card {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
    font: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-hit-chip {
    display: inline-block;
    width: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 15px;
    background: #f0f0f0;
    padding: 6px 12px;
    font: inherit;
    font-size: 16px;
    color: #2a7dbd;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.search-content-item {
    display: block;
    border-left: 3px solid #0a98d5;
    border-radius: 3px;
}

.search-content-item .search-hit-name {
    color: #2a7dbd;
    font-size: 18px;
}

.search-content-item .search-hit-snippet {
    font-size: 16px;
    color: #666;
}

[data-theme="dark"] .search-hit-card,
[data-theme="dark"] .search-content-item {
    background: var(--bg-color, #1a1a1a);
    color: var(--text-color, #e0e0e0);
}

[data-theme="dark"] .search-hit-chip {
    background: #3a3a3a;
    color: var(--primary-color, #34d399);
}

.search-hit-card:active {
    background: #f8fafc;
    border-color: #059669;
}

.search-hit-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.4;
}

.search-hit-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: #64748b;
}

.search-category-empty {
    width: 100%;
    margin: 0;
    padding: 36px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

html.sdy-tab-home,
body.sdy-tab-home {
    height: 100%;
    overflow: hidden;
}

body.sdy-tab-home .app {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

body.sdy-tab-home .main {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.sdy-moment-composer-max .main {
    position: relative;
    z-index: 30;
}

body.sdy-tab-home #panel-home {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.sdy-tab-home .home-content-slider {
    flex: 1;
    min-height: 0;
    height: auto;
}

.progress-wrap { margin-bottom: 8px; }

.seek-bar {
    width: 100%;
    accent-color: #059669;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.transport {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-btn {
    border: none;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
    cursor: pointer;
}

.transport-btn--main {
    background: #059669;
    color: #fff;
    min-width: 48px;
    font-size: 18px;
}

.section-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: #334155;
}

.lyrics-body {
    max-height: 280px;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.75;
    font-size: 15px;
    color: #1e293b;
}

.list-section {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.discover-list-top {
    padding: 10px 16px 0;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
}

.list-status {
    font-size: 12px;
    color: #64748b;
}

.list-status.is-error { color: #b91c1c; }

.works-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-row-btn {
    width: 100%;
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 14px 16px;
    border-top: 1px solid #f1f5f9;
    cursor: pointer;
    text-align: left;
}

.work-row-btn:active { background: #ecfdf5; }

.work-index {
    font-size: 12px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.work-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.work-meta {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.work-play-icon {
    color: #059669;
    font-size: 14px;
}

.empty-state {
    padding: 32px 16px;
    text-align: center;
    color: #64748b;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px 16px;
}

.btn-primary, .btn-ghost {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    border: none;
    background: #059669;
    color: #fff;
}

.btn-ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.btn-ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mini-player {
    position: fixed;
    left: 2vw;
    right: 2vw;
    bottom: calc(56px + var(--sdy-sab));
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 0;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mini-player[hidden] { display: none !important; }

.mini-album-art {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #121212;
    position: relative;
    overflow: hidden;
    margin: 0 10px 0 0;
    flex-shrink: 0;
}

.mini-album-art::before {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #16213e;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    background-image: var(--cover-url, none);
    background-size: cover;
    background-position: center;
    top: 5.5px;
    left: 5.5px;
    z-index: 2;
    animation: mini-disc-rotate 20s linear infinite;
    animation-play-state: var(--animation-state, paused);
}

@keyframes mini-disc-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mini-track-info {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    padding: 8px 0;
    border: none;
    background: transparent;
    text-align: center;
    cursor: pointer;
    color: inherit;
}

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

.mini-player.is-cut-loading .mini-title {
    color: #999;
}

.mini-player.is-cut-loading .mini-play-btn {
    opacity: 0.55;
}

.mini-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mini-play-btn,
.mini-playlist-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    padding: 0;
    margin-right: 16px;
    cursor: pointer;
}

.mini-playlist-btn {
    margin-right: 12px;
}

.mini-play-btn img,
.mini-playlist-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mini-queue-overlay {
    position: fixed;
    inset: 0;
    z-index: 134;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sdy-mini-queue-open .mini-queue-overlay,
body.sdy-mini-queue-open .mini-queue-sheet.is-open {
    pointer-events: auto;
}

body.sdy-mini-queue-open .mini-queue-overlay:not([hidden]) {
    opacity: 1;
}

.mini-queue-overlay[hidden] { display: none !important; }

.mini-queue-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 25%;
    z-index: 135;
    height: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 15px calc(15px + var(--sdy-sab));
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mini-queue-sheet.is-open {
    transform: translateY(0);
}

.mini-queue-sheet[hidden] { display: none !important; }

.mini-queue-tabs {
    display: flex;
    overflow-x: auto;
    margin: 0;
    padding: 2px 0 10px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
    gap: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mini-queue-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mini-queue-tab {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #555555;
    font: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.mini-queue-tab.is-active {
    background: transparent;
    color: #111111;
    font-weight: 500;
}

.mini-queue-pager {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.mini-queue-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.mini-queue-track.is-animating {
    transition: transform 0.28s ease;
}

.mini-queue-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.mini-queue-page {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.mini-queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mini-queue-item.is-active {
    color: #0282ad;
}

.mini-queue-item-num {
    width: 28px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.mini-queue-item-main {
    min-width: 0;
    flex: 1;
}

.mini-queue-item-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-queue-item-meta {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-queue-share {
    flex-shrink: 0;
    border: none;
    background: #eef2f7;
    color: #0282ad;
    font-size: 12px;
    line-height: 1.2;
    padding: 6px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.mini-queue-share.is-pending {
    color: #64748b;
}

.mini-queue-share.is-on {
    color: #059669;
}

.mini-queue-empty {
    text-align: center;
    padding: 24px 12px;
    color: #999;
    font-size: 14px;
}

body.sdy-mini-queue-open .bottom-nav,
body.sdy-mini-queue-open .mini-player {
    pointer-events: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(140px + var(--sdy-sab));
    transform: translateX(-50%);
    z-index: 120;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    max-width: min(90vw, 420px);
    text-align: center;
}

.toast[hidden] { display: none !important; }

/* 确保 hidden 属性在所有元素上生效（含登录/退出按钮） */
[hidden] { display: none !important; }

.tabbar {
    display: none;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: calc(56px + var(--sdy-sab));
    padding-bottom: var(--sdy-sab);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid rgba(5, 150, 105, 0.18);
    box-shadow: 0 -4px 16px rgba(5, 150, 105, 0.08);
    box-sizing: border-box;
}

.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    border: none;
    background: transparent;
    padding: 6px 4px 4px;
    color: #64748b;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.bottom-nav-item.is-active {
    color: #059669;
    font-weight: 600;
}

.bottom-nav-item i,
.bottom-nav-item .bottom-nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    display: block;
    line-height: 1;
    color: #666666;
    transition: color 0.3s ease;
}

.bottom-nav-item i {
    font-size: 20px;
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    font-style: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.bottom-nav-item.is-active i,
.bottom-nav-item.is-active .bottom-nav-icon {
    color: #059669;
}

.bottom-nav-label {
    font-weight: inherit;
}

.discover-home {
    padding-bottom: 8px;
}

/* —— 首页分类 Tab（对齐茶座 category-nav） —— */
.home-category-nav {
    position: sticky;
    top: var(--sdy-topbar-height, 60px);
    z-index: 18;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.home-category-nav[hidden] { display: none !important; }

.home-category-scroll {
    display: flex;
    justify-content: space-evenly;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.home-category-scroll::-webkit-scrollbar { display: none; }

.home-category-item {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 2px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.home-category-item.is-active {
    color: #059669;
}

.home-category-item.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: #059669;
}

.home-content-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* 定高到导航栏顶，迷你条浮在内容上。不要再减 140px，否则底部会空出一块灰底。 */
    height: calc(100dvh - var(--sdy-topbar-height, 60px) - var(--sdy-catnav-height, 48px) - 56px - var(--sdy-sab));
    min-height: 280px;
}

.home-content-slider[hidden] { display: none !important; }

.home-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.home-slider-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    padding: 12px 12px calc(8px + 58px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#home-page-recommend {
    --sdy-ptr-max: 48px;
    position: relative;
    padding: 0 0 24px;
    overscroll-behavior-y: contain;
}

#sdy-ptr-host {
    position: fixed;
    left: 50%;
    top: 8px;
    z-index: 2400;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0);
}

#sdy-ptr-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdy-ptr-arc {
    display: block;
    transform-origin: 50% 50%;
}

@keyframes sdy-ptr-spin {
    from { transform: rotate(var(--sdy-ptr-from, 0deg)); }
    to { transform: rotate(calc(var(--sdy-ptr-from, 0deg) + 360deg)); }
}

.sdy-ptr-arc-stroke {
    stroke: #86efac;
}

[data-theme="dark"] #sdy-ptr-ball {
    background: #1f2937;
}

[data-theme="dark"] .sdy-ptr-arc-stroke {
    stroke: #4ade80;
}

.home-ptr-slot {
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    flex-shrink: 0;
}

.home-ptr-arc {
    display: block;
    opacity: 0;
    transform-origin: 50% 50%;
}

.home-ptr-arc-stroke {
    stroke: #22c55e;
}

[data-theme="dark"] .home-ptr-arc-stroke {
    stroke: #4ade80;
}

.home-slider-page::-webkit-scrollbar { display: none; width: 0; height: 0; }

.home-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.home-video-waterfall {
    display: flex;
    flex-direction: row;
    gap: 2%;
    width: 100%;
    padding: 0 2%;
    box-sizing: border-box;
    align-items: flex-start;
}

.home-video-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#home-page-video {
    padding: 12px 0 calc(8px + 58px + var(--sdy-sab));
}

.home-video-card {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.home-video-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-video-cover {
    position: relative;
    width: 100%;
    padding-bottom: 133%;
    overflow: hidden;
    background: #f0f0f0;
}

.home-video-card.is-land .home-video-cover {
    padding-bottom: 56.25%;
}

.home-video-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    pointer-events: none;
}

.home-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    padding: 6px 7px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

#sdy-video-pager {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: #000;
    color: #fff;
}

#sdy-video-pager[hidden] { display: none; }

html.sdy-video-open,
html.sdy-video-open body {
    overflow: hidden;
}

html.sdy-video-native,
html.sdy-video-native body {
    background: transparent;
}

html.sdy-video-native body > *:not(#sdy-video-pager) {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-video-native #sdy-video-pager {
    background: transparent;
    visibility: visible;
    pointer-events: auto;
}

html.sdy-video-native .sdy-vp-stage,
html.sdy-video-native .sdy-vp-pane {
    background: transparent;
}

.sdy-vp-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.sdy-vp-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.sdy-vp-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200%;
    transform: translateY(0);
    will-change: transform;
}

.sdy-vp-pane {
    flex: 0 0 50%;
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #000;
}

.sdy-vp-ghost {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    transform: translateY(100%);
    pointer-events: none;
}

.sdy-vp-slide .sdy-vp-stage,
.sdy-vp-ghost {
    transition: transform 0.28s ease;
}

.sdy-vp-slide.sdy-vp-go-next .sdy-vp-stage {
    transform: translateY(-100%);
}

.sdy-vp-slide.sdy-vp-go-next .sdy-vp-ghost {
    transform: translateY(0);
}

.sdy-vp-slide.sdy-vp-go-prev .sdy-vp-stage {
    transform: translateY(100%);
}

.sdy-vp-slide.sdy-vp-go-prev .sdy-vp-ghost {
    transform: translateY(0);
}

#sdy-vp-html,
#sdy-vp-html-b,
.sdy-vp-html {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#sdy-video-pager.is-port-src .sdy-vp-strip > .sdy-vp-pane:first-child .sdy-vp-html {
    object-fit: cover;
    background: transparent;
}

#sdy-video-pager.is-land-src .sdy-vp-pane,
.sdy-vp-pane.is-land-src {
    background-color: #000;
    background-image: none;
}

#sdy-video-pager.is-land-src #sdy-vp-html,
#sdy-video-pager.is-land-src #sdy-vp-html-b,
#sdy-video-pager.is-land-src .sdy-vp-html,
.sdy-vp-pane.is-land-src .sdy-vp-html {
    object-fit: contain;
    background: #000;
}

.sdy-vp-close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 8px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
}
.sdy-vp-title,
.sdy-vp-close,
.sdy-vp-act,
.sdy-vp-artist,
.sdy-vp-n,
.sdy-vp-heart,
.sdy-vp-act i {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.55);
    -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.55);
}

#sdy-video-pager.is-light-video .sdy-vp-title,
#sdy-video-pager.is-light-video .sdy-vp-close,
#sdy-video-pager.is-light-video .sdy-vp-act,
#sdy-video-pager.is-light-video .sdy-vp-artist,
#sdy-video-pager.is-light-video .sdy-vp-n,
#sdy-video-pager.is-light-video .sdy-vp-heart,
#sdy-video-pager.is-light-video .sdy-vp-act i {
    color: #111;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.4);
    -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.35);
}

.sdy-vp-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: 36px;
    height: 42px;
    margin: -21px 0 0 -14px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.sdy-vp-play svg {
    display: block;
    width: 36px;
    height: 42px;
}

#sdy-video-pager.is-light-video .sdy-vp-play {
    background: transparent;
    color: transparent;
}

.sdy-vp-play[hidden] { display: none; }

.sdy-vp-stage.sdy-vp-out-up {
    transform: translateY(-18%);
    opacity: 0.35;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sdy-vp-stage.sdy-vp-out-down {
    transform: translateY(18%);
    opacity: 0.35;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sdy-vp-stage.sdy-vp-in {
    animation: sdy-vp-in 0.18s ease;
}

@keyframes sdy-vp-in {
    from { transform: translateY(12%); opacity: 0.4; }
    to { transform: none; opacity: 1; }
}

.sdy-vp-meta {
    position: absolute;
    left: 16px;
    bottom: calc(48px + var(--sdy-sab));
    z-index: 2;
    width: 60%;
    max-width: 60vw;
    pointer-events: none;
}

.sdy-vp-title {
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

.sdy-vp-author {
    display: flex;
    align-items: center;
    margin-top: 6px;
    gap: 6px;
    min-height: 1.2em;
}

.sdy-vp-ava {
    width: 1.15em;
    height: 1.15em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sdy-vp-artist {
    font-size: 13px;
    line-height: 1.15em;
}

.sdy-vp-rotate {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(48px + var(--sdy-sab));
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

#sdy-video-pager.is-land-src .sdy-vp-rotate:not([hidden]) {
    display: inline-flex;
    top: calc(50% + min(50vh, 28.125vw) + 10px);
    bottom: auto;
}

.sdy-vp-rotate i {
    font-size: 16px;
}

.sdy-vp-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--sdy-sab));
    height: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
}

.sdy-vp-bar-fill {
    height: 3px;
    width: 0;
    background: #fff;
    border-radius: 2px;
}

.sdy-vp-actions {
    position: absolute;
    right: 8px;
    bottom: calc(56px + var(--sdy-sab));
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.sdy-vp-act {
    border: none;
    background: transparent;
    color: #fff;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}

.sdy-vp-act.is-on i {
    color: #fe2c55;
}

.sdy-vp-heart {
    font-size: 28px;
    line-height: 1;
}

.sdy-vp-act i {
    font-size: 22px;
    line-height: 1;
}

.sdy-vp-n {
    font-size: 12px;
    margin-top: 2px;
}

.sdy-vp-dim {
    position: absolute;
    inset: 0;
    z-index: 7;
    background: rgba(0, 0, 0, 0.45);
}

.sdy-vp-dim[hidden] {
    display: none;
}

.sdy-vp-share-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #222;
    border-radius: 16px 16px 0 0;
    padding-bottom: var(--sdy-sab);
}

.sdy-vp-share-sheet[hidden] {
    display: none;
}

.sdy-vp-share-opt {
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 16px;
}

.sdy-vp-heart-pop {
    position: absolute;
    z-index: 6;
    margin-left: -24px;
    margin-top: -24px;
    font-size: 64px;
    color: #fe2c55;
    pointer-events: none;
    animation: sdy-vp-pop 0.6s ease-out forwards;
}

@keyframes sdy-vp-pop {
    0% { opacity: 1; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.35); }
}

#sdy-video-pager .full-comment-overlay.sdy-vp-comments {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 576px) {
    .home-work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 577px) and (max-width: 768px) {
    .home-work-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) and (max-width: 992px) {
    .home-work-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 993px) {
    .home-work-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1201px) {
    .home-work-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1600px) {
    .home-work-grid { grid-template-columns: repeat(8, 1fr); }
}

.home-work-item {
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-align: left;
    padding: 5px;
    margin: 3px;
    color: inherit;
    height: 180px;
    text-decoration: none;
}

.home-work-item:active { transform: scale(0.98); }

.catalog-work-row.is-vip::after,
.work-row.is-vip::after,
.home-work-item.is-vip::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 14px;
    background: url('https://songduke.com/images/vips.jpg') center / contain no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* 免费频道：作品 VIP 角标、搜索 VIP 字、个人主页头像下 VIP 一律不画 */
html.sdy-listing-free .catalog-work-row.is-vip::after,
html.sdy-listing-free #home-catalog-works .catalog-work-row.is-vip::after,
html.sdy-listing-free .work-row.is-vip::after,
html.sdy-listing-free .home-work-item.is-vip::after {
    content: none;
    width: 0;
    height: 0;
    background: none;
}

html.sdy-listing-free .search-hit-vip,
html.sdy-listing-free .personal-home-page .vip-badge,
html.sdy-listing-free .personal-home-page #heroPromoterTitle,
html.sdy-listing-free .profile-vip-badge,
html.sdy-listing-free #profile-promoter-title,
html.sdy-listing-free #btn-profile-vip,
html.sdy-listing-free #profile-vip-overlay,
html.sdy-listing-free #profile-invitees-overlay,
html.sdy-listing-free #btn-generate-redeem,
html.sdy-listing-free #btn-invitees,
html.sdy-listing-free #invite-code-link,
html.sdy-listing-free #profile-vip-expire,
html.sdy-listing-free #redeem-generate-modal,
html.sdy-listing-free #redeem-codes-overlay,
html.sdy-listing-free #use-redeem-modal,
html.sdy-listing-free label[for="quickInviteCode"],
html.sdy-listing-free #quickInviteCode,
html.sdy-listing-free #quickInvitePasteBtn,
html.sdy-listing-free label[for="registerInviteCode"],
html.sdy-listing-free #registerInviteCode,
html.sdy-listing-free #registerInvitePasteBtn {
    display: none;
}

@media (min-width: 769px) {
    .home-work-item {
        max-width: 180px;
    }
}

a.home-work-item,
a.home-slide {
    text-decoration: none;
    color: inherit;
}

.home-work-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.home-work-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.home-work-cover--grad {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}

.home-work-content {
    display: block;
    padding: 10px;
    flex-grow: 1;
}

.home-work-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-work-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-work-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(71, 71, 71, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.home-work-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #fff;
}

.home-work-eq {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 14px;
    height: 14px;
}

.home-work-eq span {
    display: block;
    width: 2.5px;
    height: 100%;
    background: #fff;
    border-radius: 1px;
    transform: scaleY(0.32);
    transform-origin: center bottom;
    animation: home-work-eq 0.88s ease-in-out infinite;
}

.home-work-eq span:nth-child(2) {
    animation-delay: 0.22s;
}

.home-work-eq span:nth-child(3) {
    animation-delay: 0.44s;
}

.home-work-item.is-playing .home-work-play::after {
    content: none;
    border-width: 0;
    margin: 0;
}

.home-work-item.is-playing .home-work-eq {
    display: flex;
}

@keyframes home-work-eq {
    0%, 100% { transform: scaleY(0.28); }
    50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-work-eq span {
        animation: none;
        transform: scaleY(0.55);
    }
    .home-work-eq span:nth-child(2) {
        transform: scaleY(1);
    }
}

.home-load-more {
    display: block;
    width: 100%;
    margin: 14px 0 4px;
    border: none;
    background: #fff;
    color: #059669;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.home-load-more[hidden] { display: none !important; }

.home-load-more:disabled { opacity: 0.6; }

.home-browse-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
}

.home-browse-grid.home-dir-root {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 45vh;
}

.home-browse-grid.home-dir-root.home-dir-root--flat {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 0;
}

.home-dir-chip {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 8px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.home-dir-chip:active {
    background: #f8fafc;
    border-color: #059669;
}

.home-dynasty-group {
    min-width: 0;
}

.home-dynasty-title {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.home-dynasty-arrow {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid #059669;
    border-bottom: 2px solid #059669;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.home-dynasty-arrow.is-open {
    transform: rotate(225deg);
}

.home-dynasty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.home-dynasty-list.is-collapsed {
    display: none;
}

.home-browse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: #fff;
    border-radius: 14px;
    padding: 14px 8px 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.home-browse-card:active { opacity: 0.75; }

.home-browse-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 24px;
}

.home-browse-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-browse-title {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.home-browse-meta {
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.home-page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #64748b;
    font-size: 14px;
}

#home-catalog-loading.home-catalog-skel {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.home-catalog-skel-line,
.home-catalog-skel-row {
    background: #e2e8f0;
    border-radius: 4px;
    animation: sdy-skel 1.2s ease-in-out infinite;
}
.home-catalog-skel-line { height: 14px; }
.home-catalog-skel-row { height: 44px; }
@keyframes sdy-skel {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.home-page-loading[hidden] { display: none !important; }

.home-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-top-color: #059669;
    border-radius: 50%;
    animation: sdy-spin 0.8s linear infinite;
}

@keyframes sdy-spin { to { transform: rotate(360deg); } }

.home-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.home-empty-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
}

.home-empty-desc {
    margin: 0;
    font-size: 14px;
}

.home-empty-inline {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 24px;
}

.home-section-title {
    grid-column: 1 / -1;
    margin: 12px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.home-catalog-intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

.catalog-hero--no-cover .playlist-hero-left {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

#home-catalog-play-all.sdy-qin-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #064e3b;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.55);
    background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 42%, #a7f3d0 100%);
    box-shadow: none;
}

#home-catalog-play-all.sdy-qin-capsule:active {
    transform: translateY(-1px);
}

.catalog-work-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-page-scroll .home-browse-grid {
    margin: 0 0 12px;
}

.catalog-page-scroll .home-browse-grid:empty {
    display: none;
    margin: 0;
}

.catalog-page-scroll .home-load-more {
    margin-top: 12px;
}

.catalog-work-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
    min-height: 48px;
}

.catalog-work-play {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 4px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #0f172a;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-work-add {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    align-self: center;
}

.catalog-work-add img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.catalog-work-add:active {
    opacity: 1;
    transform: scale(1.05);
}

[data-theme="dark"] .catalog-work-row {
    background: #2d2d2d;
}

[data-theme="dark"] .catalog-work-play {
    color: #f1f5f9;
}

[data-theme="dark"] .home-catalog-intro {
    color: #94a3b8;
}

.home-tingdan-my {
    margin-top: 16px;
}

.home-banner {
    display: none;
}

.home-slideshow-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08);
    position: relative;
    height: 150px;
    min-height: 150px;
    padding: 2vw;
    margin: 0 1vw 1vw 1vw;
    box-sizing: border-box;
}

.home-slideshow-wrapper[hidden] { display: none !important; }

.home-tingdan-rec {
    display: flex;
    flex-direction: column;
    margin: 0 1vw 8px 1vw;
    min-width: 0;
}

.home-tingdan-rec[hidden] {
    display: none;
}

.home-tingdan-rec-title {
    margin: 4px 6px 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.home-tingdan-rec-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-tingdan-rec-scroller::-webkit-scrollbar {
    display: none;
}

.home-tingdan-rec-scroller .home-work-item {
    flex: 0 0 140px;
    width: 140px;
    max-width: none;
    scroll-snap-align: start;
    text-align: center;
}

#discover-feed-collections-scroller .home-work-item {
    height: auto;
    min-height: 72px;
    padding-bottom: 48px;
}

.home-heji-rec,
.home-type-rec {
    display: flex;
    flex-direction: column;
    margin: 0 1vw 8px 1vw;
    min-width: 0;
}

.home-heji-rec[hidden],
.home-type-rec[hidden] {
    display: none;
}

.home-heji-rec-title,
.home-type-rec-title {
    margin: 4px 6px 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.home-heji-rec-scroller,
.home-type-rec-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-heji-rec-scroller::-webkit-scrollbar,
.home-type-rec-scroller::-webkit-scrollbar {
    display: none;
}

#home-heji-rec-scroller .home-work-item,
#home-type-rec-scroller .home-work-item,
#home-ticai-rec-scroller .home-work-item,
#tab-heji-rec-scroller .home-work-item,
#tab-type-rec-scroller .home-work-item,
#tab-ticai-rec-scroller .home-work-item {
    flex: 0 0 140px;
    width: 140px;
    max-width: none;
    scroll-snap-align: start;
}

#home-tingdan-rec-scroller .home-work-item,
#home-heji-rec-scroller .home-work-item,
#home-type-rec-scroller .home-work-item,
#home-ticai-rec-scroller .home-work-item,
#tab-heji-rec-scroller .home-work-item,
#tab-type-rec-scroller .home-work-item,
#tab-ticai-rec-scroller .home-work-item,
#tab-tingdan-rec-scroller .home-work-item {
    height: auto;
    text-align: center;
}

#home-tingdan-rec-scroller .home-work-content,
#home-heji-rec-scroller .home-work-content,
#home-type-rec-scroller .home-work-content,
#home-ticai-rec-scroller .home-work-content,
#tab-heji-rec-scroller .home-work-content,
#tab-type-rec-scroller .home-work-content,
#tab-ticai-rec-scroller .home-work-content,
#tab-tingdan-rec-scroller .home-work-content {
    flex-grow: 0;
    padding: 4px 4px 2px;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-tingdan-rec-scroller .home-work-title,
#home-heji-rec-scroller .home-work-title,
#home-type-rec-scroller .home-work-title,
#home-ticai-rec-scroller .home-work-title,
#tab-heji-rec-scroller .home-work-title,
#tab-type-rec-scroller .home-work-title,
#tab-ticai-rec-scroller .home-work-title,
#tab-tingdan-rec-scroller .home-work-title {
    width: 100%;
    height: 1.25rem;
    line-height: 1.25rem;
    text-align: center;
}

html:not(.sdy-web) #home-tingdan-rec-scroller .home-work-title,
html:not(.sdy-web) #home-heji-rec-scroller .home-work-title,
html:not(.sdy-web) #home-type-rec-scroller .home-work-title,
html:not(.sdy-web) #home-ticai-rec-scroller .home-work-title,
html:not(.sdy-web) #tab-heji-rec-scroller .home-work-title,
html:not(.sdy-web) #tab-type-rec-scroller .home-work-title,
html:not(.sdy-web) #tab-ticai-rec-scroller .home-work-title,
html:not(.sdy-web) #tab-tingdan-rec-scroller .home-work-title,
html:not(.sdy-web) #home-author-rec-scroller .home-work-title,
html:not(.sdy-web) #tab-author-rec-scroller .home-work-title {
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: auto;
}

html:not(.sdy-web) #home-author-rec-scroller .home-work-content,
html:not(.sdy-web) #tab-author-rec-scroller .home-work-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#home-tingdan-rec-scroller .home-work-play,
#home-heji-rec-scroller .home-work-play,
#home-type-rec-scroller .home-work-play,
#home-ticai-rec-scroller .home-work-play,
#tab-heji-rec-scroller .home-work-play,
#tab-type-rec-scroller .home-work-play,
#tab-ticai-rec-scroller .home-work-play,
#tab-tingdan-rec-scroller .home-work-play {
    display: none;
}

.home-guji-rec {
    display: flex;
    flex-direction: column;
    margin: 0 1vw 8px 1vw;
    min-width: 0;
}

.home-guji-rec[hidden] {
    display: none;
}

.home-guji-rec-title {
    margin: 4px 6px 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.home-guji-rec-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.home-guji-rec-scroller::-webkit-scrollbar {
    display: none;
}

#home-guji-rec-scroller .sdy-guji-book {
    margin-left: 4px;
    margin-right: 4px;
}

.home-foryou {
    display: flex;
    flex-direction: column;
    margin: 0 1vw 8px 1vw;
    min-width: 0;
}

.home-foryou[hidden] {
    display: none;
}

.home-foryou-title {
    margin: 4px 6px 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.home-foryou-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 10px;
}

.home-foryou-scroller::-webkit-scrollbar {
    display: none;
}

.home-foryou-group {
    flex: 0 0 228px;
    width: 228px;
    max-width: none;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-foryou-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 4px 0 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.home-foryou-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ecfdf5;
}

.home-foryou-cover--grad {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 700;
    font-size: 16px;
}

.home-foryou-meta {
    flex: 1;
    min-width: 0;
}

.home-foryou-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.home-foryou-artist {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.home-foryou-play {
    flex-shrink: 0;
    width: 0;
    height: 0;
    margin: 0 6px 0 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #334155;
}

.home-author-rec {
    display: flex;
    flex-direction: column;
    margin: 0 1vw 8px 1vw;
    min-width: 0;
}

.home-tab-rec {
    margin-top: 4px;
}

.home-author-rec[hidden] {
    display: none;
}

.home-author-rec-title {
    margin: 4px 6px 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.home-author-rec-scroller {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px;
}

.home-author-rec-scroller::-webkit-scrollbar {
    display: none;
}

#home-author-rec-scroller .home-work-item,
#tab-author-rec-scroller .home-work-item {
    flex: 0 0 72px;
    width: 72px;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 4px;
    scroll-snap-align: start;
    text-align: center;
}

#home-author-rec-scroller .home-work-image,
#tab-author-rec-scroller .home-work-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

#home-author-rec-scroller .home-work-cover,
#tab-author-rec-scroller .home-work-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home-author-rec-scroller .home-work-content,
#tab-author-rec-scroller .home-work-content {
    padding: 6px 0 2px;
    flex-grow: 0;
}

#home-author-rec-scroller .home-work-title,
#tab-author-rec-scroller .home-work-title {
    text-align: center;
    font-size: 13px;
}

.sdy-guji-book {
    flex: 0 0 100px;
    width: 100px;
    height: 172.5px;
    padding-top: 5px;
    margin: 0 3px;
    scroll-snap-align: start;
    background-image: var(--sdy-guji-spine);
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #1d4d8f;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    border: 0;
    display: block;
    font: inherit;
    min-height: 0;
    max-height: 172.5px;
    overflow: hidden;
}

.sdy-guji-book:link,
.sdy-guji-book:visited,
.sdy-guji-book:hover,
.sdy-guji-book:active {
    text-decoration: none;
    color: #000;
}

.sdy-guji-book .name-boxwai {
    margin-bottom: 20px;
    margin-top: 0;
    margin-left: 40px;
    margin-right: 10px;
    border: 6px solid #f1efe2;
    height: calc(100% - 20px);
    max-height: calc(100% - 20px);
    box-sizing: border-box;
}

.sdy-guji-book .name-boxwai--dual {
    margin-left: 26px;
    margin-right: 8px;
}

.sdy-guji-book .name-box {
    background-color: #f1efe2;
    position: relative;
    padding: 0 0 15px 0;
    border: 3px solid #f1efe2;
    box-shadow: 0 0 0 1px black;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

.sdy-guji-book .name-box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid black;
    z-index: 1;
    pointer-events: none;
}

.sdy-guji-book .home-guji-names {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    max-height: calc(100% - 15px);
}

.sdy-guji-book .name {
    text-align: center;
    font-size: 15px;
    font-family: '江西拙楷', serif;
    letter-spacing: 0;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    max-height: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.sdy-guji-book .name--l2 {
    font-size: 13px;
}

.sdy-guji-book .floating-img {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: auto;
    z-index: 2;
}

.catalog-guji-book-slot {
    display: flex;
    justify-content: center;
}

.catalog-guji-book-slot[hidden] {
    display: none;
}

.playlist-hero.catalog-hero--guji-split {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.playlist-hero.catalog-hero--guji-split .playlist-hero-left {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.playlist-hero.catalog-hero--guji-split .playlist-hero-body {
    flex: 1;
    min-width: 0;
}

.playlist-hero.catalog-hero--guji-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playlist-hero.catalog-hero--guji-center .playlist-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
}

.playlist-hero.catalog-hero--guji-center .playlist-hero-body {
    width: 100%;
    text-align: center;
}

.home-catalog-guji-children {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 4px;
    padding: 8px 4px 16px;
    justify-content: flex-start;
}

.home-catalog-guji-children .sdy-guji-book {
    cursor: pointer;
}

.catalog-overlay-header .profile-overlay-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-overlay-header .profile-overlay-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-action-rec {
    margin-left: auto;
    flex-shrink: 0;
}

.home-slideshow-container {
    position: relative;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.home-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    border: none;
    padding: 0;
    background: #e2e8f0;
    cursor: pointer;
}

.home-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.92));
    color: #111;
    text-align: left;
}

.home-slide-caption h3 {
    margin: 0 0 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
}

.home-slide[data-kind="moment"] .home-slide-caption h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.25;
}

.home-slide-caption p {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
}

.home-block {
    margin-bottom: 18px;
}

.home-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 10px;
}

.home-block-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.home-link {
    border: none;
    background: transparent;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.home-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 4px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-scroll::-webkit-scrollbar { display: none; }

.home-card {
    flex: 0 0 120px;
    scroll-snap-align: start;
    border: none;
    background: #fff;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    text-align: left;
}

.home-card--wide {
    flex: 0 0 148px;
}

.home-card-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(145deg, #bbf7d0, #34d399);
    display: block;
}

.home-card-cover--grad {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #065f46;
}

.home-card-body {
    padding: 8px 10px 10px;
}

.home-card-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card-meta {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discover-list-wrap[hidden] { display: none !important; }

.work-row-btn {
    grid-template-columns: 52px 1fr 28px;
}

.work-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #e2e8f0;
}

.category-groups { padding: 0 12px 16px; }

.cat-group { margin-bottom: 16px; }

.cat-group-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #334155;
}

.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

.cat-chip:active { background: #ecfdf5; }

/* —— 发现页 —— */
.discover-browse {
    padding: 12px 0 8px;
}

.discover-block {
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px 10px;
    margin: 0 12px 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.discover-block[hidden] {
    display: none;
}

.discover-block-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.discover-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}

.discover-block-head .discover-block-title {
    margin: 0;
}

.discover-block-more {
    border: none;
    background: transparent;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    min-height: 36px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.discover-square-page {
    margin: 0;
    background: #eef2f7;
}

body.sdy-square-more-open #discover-square-page {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8fafc;
    padding: 0 12px 0;
    padding-bottom: calc(12px + var(--sdy-sab));
}

body.sdy-square-more-open:has(#mini-player:not([hidden])) #discover-square-page {
    padding-bottom: calc(66px + var(--sdy-sab));
}

body.sdy-square-more-open .discover-square-page-head {
    margin: 0 -12px 8px;
    padding-top: calc(4px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
}

[data-theme="dark"] body.sdy-square-more-open #discover-square-page {
    background: var(--bg-color, #1a1a1a);
}

.discover-square-page[hidden] {
    display: none !important;
}

.discover-square-page-list {
    margin: 0;
    padding: 0;
    background: #fff;
}

.discover-square-pager {
    flex-shrink: 0;
    background: #fff;
}

.discover-square-pager[hidden] {
    display: none;
}

.discover-empty {
    margin: 0;
    padding: 20px 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.discover-rank-pager {
    height: 18rem;
    min-height: 0;
    overflow: hidden;
}

.discover-rank-pager .mini-queue-page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.discover-rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
    html.sdy-web .discover-rank-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-content: start;
    }

    html.sdy-web .discover-rank-list .work-row {
        min-width: 0;
    }
}

.discover-rank-list .work-row-btn {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 8px 8px 8px 4px;
    min-height: 40px;
    border-top: none;
}

.discover-rank-list .work-main {
    min-width: 0;
    overflow: hidden;
}

.discover-rank-list .work-play-icon {
    flex-shrink: 0;
    justify-self: end;
}

.discover-rank-list .work-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.discover-rank-list.is-full-title .work-title {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.discover-rank-list.is-guji .work-thumb {
    width: calc(40px * 2 / 3);
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.discover-rank-list.is-guji .work-row-btn {
    min-height: 40px;
    align-items: center;
}

.discover-rank-list .work-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.discover-rank-list .work-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
}

.discover-rank-list.is-authors .work-row-btn {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 45%);
}

.discover-rank-top-work {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 400;
    color: #64748b;
    text-align: right;
}

.discover-square-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.discover-rank-pager .discover-empty {
    flex: 1;
}

.discover-shortcuts-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 12px 6px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.discover-shortcut-grid {
    margin-bottom: 0;
}

.discover-cat-head {
    margin-bottom: 4px;
}

/* —— 个人中心（对齐茶座 icon-grid + 用户卡片） —— */
.profile-page {
    background: #f7f8fb;
    line-height: 1.6;
}

.profile-page-inner {
    padding: 10px 0 12px;
}

html.sdy-ota-refresh-hold #sdy-header,
html.sdy-ota-refresh-hold #bottom-nav {
    opacity: 1;
    transform: none;
}

html.sdy-ota-refresh-hold #profile-user,
html.sdy-ota-refresh-hold #profile-guest {
    opacity: 0;
    transform: translateY(5px);
}

html.sdy-ota-refresh-hold #panel-home,
html.sdy-ota-refresh-hold #home-category-nav {
    visibility: hidden;
}

html.sdy-ota-refresh-hold.sdy-ota-refresh-in #profile-user,
html.sdy-ota-refresh-hold.sdy-ota-refresh-in #profile-guest {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.profile-guest,
.profile-user {
    padding: 0;
}

.profile-guest[hidden],
.profile-user[hidden] { display: none !important; }

.sdy-engine-flag-btn,
.sdy-engine-flag-hint {
    display: none;
}

.sdy-player-ui-flag-btn {
    display: none;
    width: 100%;
    margin: 8px 0 4px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.sdy-player-ui-flag-btn.is-ready {
    display: block;
}

.sdy-player-ui-flag-btn.is-on {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.sdy-player-ui-flag-hint {
    display: none;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.sdy-player-ui-flag-hint.is-ready {
    display: block;
}

html:not(.sdy-logged-in) .bottom-nav-item[data-tab="moments"],
html:not(.sdy-logged-in) .bottom-nav-item[data-action="random"] {
    display: none;
}

html.sdy-logged-in #profile-guest,
html.sdy-logged-in #btn-login-open { display: none !important; }

html.sdy-logged-in #profile-user { display: block !important; }

/* 未登录：对齐喜木，仅登录卡片 */
.profile-guest-card {
    text-align: center;
    padding: 48px 24px;
    margin: 8px 0 12px;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.16);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.profile-guest-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.profile-guest-card .profile-login-btn {
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, #34d399 0%, #059669 55%, #064e3b 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.profile-guest-card .profile-login-btn:active {
    opacity: 0.92;
    transform: scale(0.98);
}

.profile-page .user-profile {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.profile-page .user-profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #059669, #34d399);
    z-index: 2;
}

.profile-page .profile-header {
    padding: 15px 10px 10px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.profile-content-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

.profile-left {
    width: 300px;
    max-width: 320px;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.profile-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-width: 680px;
}

.profile-left .profile-avatar,
.profile-left .profile-avatar--large,
.profile-left .profile-avatar-img--large {
    width: 100px;
    height: 100px;
    font-size: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-left .profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.profile-name-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1.5px solid #555;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-name-edit[hidden] {
    display: none;
}

.profile-page .user-stats-grid .user-stat {
    flex: 1;
    min-width: 120px;
}

.profile-page .user-stats-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.profile-page .user-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-page .user-stat {
    flex: 1;
    min-width: 120px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
}

.profile-page .user-stat .icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    background: #ecfdf5;
    color: #059669;
}

.profile-page .user-stat .stat-top {
    display: flex;
    align-items: center;
    gap: 0;
}

.profile-page .user-stat .stat-bottom {
    margin-top: 0;
}

.profile-page .user-stat .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.profile-page .user-stat .label {
    font-size: 0.85rem;
    color: #666;
}

.profile-page .user-stats-range {
    order: 2;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.profile-page .user-stats-range .range-btn {
    display: inline-block;
    padding: 0 10px;
    border-radius: 6px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    text-align: center;
    cursor: pointer;
}

.profile-page .user-stats-range .range-btn.active {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.profile-page .rank-badge {
    order: 3;
    width: 100%;
    margin-top: 8px;
    background: #fff7e6;
    border: 1px solid #ffe1a6;
    color: #8a5b00;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.profile-page .rank-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-page .rank-title { font-size: 0.9rem; font-weight: 600; }
@media (min-width: 769px) {
    .profile-left {
        flex: 0 0 300px;
        width: 300px;
        max-width: 320px;
    }
    .profile-right {
        flex: 1 1 0;
    }
    .profile-page .user-stats-card {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
        align-items: stretch;
    }
    .profile-page .user-stats-card .user-stats-grid {
        display: contents;
    }
    .profile-page .user-stats-card .user-stat#onlineDurationBox {
        grid-column: 1;
        grid-row: 1;
        min-height: 120px;
        justify-content: center;
    }
    .profile-page .user-stats-card .rank-badge#onlineRankBadge {
        grid-column: 2;
        grid-row: 1;
        min-height: 120px;
        margin-top: 0;
        order: 0;
        width: auto;
    }
    .profile-page .user-stats-card .user-stat#listeningDurationBox {
        grid-column: 3;
        grid-row: 1;
        min-height: 120px;
        justify-content: center;
    }
    .profile-page .user-stats-card .rank-badge#listeningRankBadge {
        grid-column: 4;
        grid-row: 1;
        min-height: 120px;
        margin-top: 0;
        order: 0;
        width: auto;
    }
    .profile-page .user-stats-card .user-stat {
        min-height: 120px;
        justify-content: center;
    }
    .profile-page .user-stats-card .rank-badge {
        order: 0;
        width: auto;
        margin-top: 0;
        cursor: pointer;
        justify-content: center;
    }
    .profile-page .user-stats-card .user-stats-range {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 0;
        margin-top: 6px;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
    }
    .profile-page .user-stats-card .user-stats-range .range-btn {
        flex: 1;
        padding: 6px 10px;
    }
}

.profile-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.profile-hero-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.work-statistics-bar {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0;
    margin-bottom: 0;
}

.work-stat-item {
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .work-stat-item {
        font-size: 0.9rem;
    }
}

.work-stat-item span {
    color: #059669;
    font-weight: 600;
}

.profile-home-admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

#btn-profile-home {
    grid-column: 1;
    grid-row: 1;
}

#btn-profile-settings {
    grid-column: 2;
    grid-row: 1;
}

#btn-profile-applies:not([hidden]) {
    grid-column: 1 / -1;
    grid-row: 2;
}

.profile-home-admin-row .profile-action-home {
    flex: 1;
    margin-top: 0;
}

.profile-home-admin-row .profile-action-home[hidden] {
    display: none;
}

.profile-action-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    color: #059669;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.06);
}

.profile-action-home i {
    color: #059669;
}

.profile-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 4px;
    width: 100%;
    margin-top: 8px;
}

.profile-action-link {
    color: #333;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0fdf4;
    border: none;
    cursor: pointer;
    text-align: center;
}

.profile-admin-page-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.profile-admin-page-item {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background: #0282ad;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.sdy-profile-modal__panel--wide {
    width: min(960px, 96vw);
    max-width: 96vw;
}

.app-users-table-wrap {
    overflow: auto;
    max-height: 60vh;
    margin: 8px 0 12px;
}

#promotersTable .sdy-promoter-payout {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background: #0282ad;
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
}

#promotersTable .sdy-promoter-payout:disabled {
    opacity: 0.45;
}

.sdy-promoter-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 16px;
    font-size: 0.875rem;
}

.app-users-total {
    color: #64748b;
}

.sdy-promoter-pager-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #0282ad;
    color: #fff;
}

.app-users-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.75rem;
}

.app-users-table th,
.app-users-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
}

.app-users-table th {
    background: #f3f4f6;
    position: sticky;
    top: 0;
}

.redemption-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.redemption-type-card {
    border: 2px solid #e6f0ff;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    background: #f9fbff;
    text-align: left;
}

.redemption-type-card.is-selected {
    border-color: #0282ad;
    background: #e6f0ff;
}

.redemption-type-name {
    display: block;
    font-weight: 600;
    color: #0282ad;
    margin-bottom: 5px;
}

.redemption-type-card .type-days {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .profile-left {
        width: auto;
        max-width: 320px;
    }
    .profile-page .user-stats-card {
        display: flex;
        flex-direction: column;
    }
    .profile-page .user-stats-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .profile-page .user-stats-grid .user-stat {
        flex: 1;
        min-width: 120px;
    }
}

.profile-name,
.profile-vip-expire {
    text-align: center;
}

.user-levels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.profile-page .user-level {
    display: inline-block;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 10px;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-page .user-level.level-owner {
    background: linear-gradient(135deg, #F5DEB3, #DAA520);
    color: #8B5A00;
    border: 1px solid #F5DEB3;
}

.profile-page .user-level.level-admin {
    background: linear-gradient(135deg, #8E9AAF, #6A7898);
    color: #fff;
    border: 1px solid #8E9AAF;
}

.profile-page .user-level.level-editor {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
    color: #fff;
    border: 1px solid #4ECDC4;
}

.profile-page .user-level.level-permanent-vip {
    background: #333;
    color: #fee5a2;
    border: 1px solid #333;
}

.profile-page .user-level.level-vip {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: #fff;
    border: 1px solid #FF9800;
}

.profile-page .user-level.level-member {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: #fff;
    border: 1px solid #4CAF50;
}

.profile-level-action {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1px 8px;
    line-height: 1.6;
    border-radius: 10px;
    border: 1px solid #059669;
    background: #fff;
    color: #059669;
    cursor: pointer;
}

.profile-vip-expire {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.profile-vip-expire.is-due {
    color: #c2410c;
    font-weight: 600;
}

.profile-vip-renew {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    text-align: center;
}

.profile-vip-renew-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #9a3412;
    line-height: 1.45;
}

.profile-vip-renew-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.profile-vip-renew-last {
    border: 1px solid #059669;
    background: #059669;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.profile-vip-renew-other {
    border: none;
    background: transparent;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.sdy-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 16px;
}

.sdy-profile-modal[hidden] {
    display: none !important;
}

.sdy-profile-modal__panel {
    background: #f7f7ed;
    border-radius: 10px;
    padding: 22px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sdy-profile-modal__panel h3 {
    text-align: center;
    margin: 0 0 16px;
    color: #0282ad;
    font-size: 1.1rem;
}

.sdy-profile-modal__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.sdy-profile-modal__panel label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.sdy-profile-modal__panel input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.sdy-change-phone-form .login-alt-row {
    justify-content: flex-start;
    margin: 6px 0 12px;
}

#profile-change-password-overlay .login-alt-row,
#profile-change-password-overlay .login-alt-row a {
    font-size: 16px;
}

#profile-change-password-overlay .login-inline-row input {
    width: auto;
    flex: 1 1 auto;
}

.sdy-profile-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.sdy-profile-modal__actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sdy-profile-modal__actions button:first-child {
    background: #ddd;
    color: #333;
}

.sdy-profile-modal__actions button:last-child {
    background: #0282ad;
    color: #fff;
}

.sdy-profile-modal__msg {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: #e74c3c;
}

.sdy-promote-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(2, 130, 173, 0.18);
    overflow: hidden;
}

.sdy-promote-bar__fill {
    width: 0;
    height: 100%;
    background: #0282ad;
}

.profile-avatar-stack {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
}

.profile-vip-badge--float {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    margin-top: 0;
    pointer-events: none;
}

.profile-avatar--large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 36px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-avatar-img--large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-hero .profile-avatar--large,
.profile-hero .profile-avatar-img--large {
    width: 88px;
    height: 88px;
    font-size: 32px;
}

.profile-login-btn,
.profile-vip-cta {
    margin-bottom: 12px;
}

.profile-logout-btn {
    margin-top: 8px;
}

.profile-icon-region {
    background: #fff;
    border-radius: 16px;
    padding: 14px 10px 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.profile-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

.profile-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 4px 2px 8px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.profile-icon-item:active {
    opacity: 0.72;
}

.profile-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.profile-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.profile-icon-label {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.category-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.category-detail-head[hidden] { display: none !important; }

.category-detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.category-detail-avatar[hidden] { display: none; }

.category-detail-body {
    flex: 1;
    min-width: 0;
}

.category-detail-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.category-detail-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.category-detail-intro[hidden] { display: none; }

.profile-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-left .profile-avatar-img {
    width: 100px;
    height: 100px;
}

.profile-avatar-img[hidden] { display: none !important; }

.profile-vip-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
}

.profile-vip-expire {
    font-size: 12px;
    color: #64748b;
}

.profile-vip-cta {
    margin: 0 0 12px;
}

.panel[hidden] { display: none !important; }

#panel-discover,
#panel-library,
#panel-profile {
    padding-bottom: 66px;
}

#panel-search.search-page {
    padding-bottom: calc(80px + var(--sdy-sab));
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #22c55e, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

#panel-profile .profile-left .profile-avatar,
#panel-profile .profile-left .profile-avatar--large,
#panel-profile .profile-left .profile-avatar-img,
#panel-profile .profile-left .profile-avatar-img--large {
    width: 100px;
    height: 100px;
    font-size: 36px;
}

.profile-avatar-stack .profile-avatar-img:not([hidden]) ~ .profile-avatar {
    display: none;
}

.profile-name { font-size: 1.2rem; font-weight: 700; }

.btn-block {
    display: block;
    width: 100%;
    margin: 8px 0;
    min-height: 44px;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(12px + env(safe-area-inset-top, 0px))
        16px
        calc(12px + var(--sdy-sab));
    box-sizing: border-box;
}

.modal[hidden] { display: none !important; }

.modal-sheet {
    width: min(420px, 100%);
    max-height: min(80vh, 560px);
    min-height: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

#add-playlist-modal.modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: transparent;
}

body:not(.sdy-full-player-open) #add-playlist-modal.modal {
    background: rgba(0, 0, 0, 0.3);
}

#add-playlist-modal .modal-sheet {
    width: 100%;
    max-width: none;
    max-height: min(80vh, 560px);
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(20px + var(--sdy-sab));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#add-playlist-modal.is-open .modal-sheet {
    transform: translateY(0);
}

#add-playlist-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-sheet .modal-actions {
    flex-shrink: 0;
}

.modal-sheet h3 { margin: 0 0 6px; }
.modal-hint { margin: 0 0 14px; color: #64748b; font-size: 13px; }
.modal-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}
.modal-error[hidden] { display: none !important; }
.modal-sheet input {
    width: 100%;
    min-height: 44px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 15px;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.tabbar .tab { font-size: 13px; padding: 10px 8px; }

.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.transport-btn--sub {
    font-size: 18px;
    min-width: 40px;
}

.library-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 12px;
}

.library-section-label {
    margin: 8px 12px 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.library-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    text-align: left;
    cursor: pointer;
}

.library-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.library-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.library-card-title { display: block; font-weight: 700; font-size: 15px; }
.library-card-meta { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

.playlist-hero {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
}

.playlist-hero-left {
    flex: 0 0 25%;
    width: 25%;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #ecfdf5;
}

.playlist-hero-left .playlist-action-play {
    width: 100%;
    padding: 6px 0;
    font-size: 0.8rem;
    line-height: 1.2;
}

.playlist-hero-body {
    flex: 1;
    min-width: 0;
}

.playlist-hero-name {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

[data-theme="dark"] .playlist-hero-name {
    color: #f1f5f9;
}

.playlist-hero-creator,
.playlist-hero-favs {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.playlist-hero-body .playlist-action-fav {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.playlist-tracks {
    margin: 0;
    padding: 0;
}

.work-thumb--empty {
    display: block;
    background: #ecfdf5;
}

.work-row {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.work-row .work-row-btn { flex: 1; min-width: 0; }

.library-track-remove {
    flex-shrink: 0;
    width: 44px;
    border: none;
    border-left: 1px solid #f1f5f9;
    background: #fff;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.library-track-remove:active { background: #fef2f2; color: #dc2626; }

.library-pick-btn { margin-bottom: 8px; text-align: left; }

.profile-menu-item--guest {
    width: 100%;
    margin-top: 10px;
}

.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: #f8fafc;
}

#profile-vip-overlay:not([hidden]) {
    display: flex;
    flex-direction: column;
    z-index: 1300;
    visibility: visible;
}

#profile-switch-account-overlay {
    z-index: 121;
}

#redeem-generate-modal.profile-overlay,
#redeem-codes-overlay.profile-overlay {
    z-index: 1300;
    flex-direction: column;
}

#redeem-generate-modal .profile-overlay-sheet,
#redeem-codes-overlay .profile-overlay-sheet {
    width: 100%;
    flex: 1;
    min-width: 0;
}

#redeem-generate-modal .sdy-redeem-generate-wrap {
    margin-bottom: 20px;
}

#redeem-generate-modal #generateCodeBtn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #0282ad, #04a9e1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

#redeem-generate-modal .sdy-redeem-code-label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

#redeem-generate-modal .sdy-redeem-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#redeem-generate-modal #codeInput {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1rem;
    box-sizing: border-box;
}

#redeem-codes-overlay .sdy-redeem-code-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}

#redeem-codes-overlay .sdy-redeem-recopy {
    margin-left: auto;
    padding: 8px 12px;
    background: #f5f9ff;
    border: 1px solid #e6f0ff;
    border-radius: 6px;
    cursor: pointer;
}

#redeem-generate-modal #copyCodeBtn,
#redeem-generate-modal #btn-redeem-records {
    padding: 8px 12px;
    background: #f5f9ff;
    border: 1px solid #e6f0ff;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-overlay[hidden] { display: none !important; }

body.sdy-profile-overlay-open .bottom-nav {
    visibility: hidden;
    pointer-events: none;
}

body.sdy-profile-overlay-open .mini-player {
    visibility: hidden;
    pointer-events: none;
}

.profile-overlay-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    padding:
        calc(8px + var(--sdy-sat, env(safe-area-inset-top, 0px)))
        0
        calc(8px + var(--sdy-sab));
}

#apply-page-tabs {
    flex-shrink: 0;
    padding: 0 8px;
}

#apply-page-pager {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) #study-extras-overlay:not([hidden]),
html.sdy-native-sheet-out body.sdy-full-player-open #study-extras-overlay:not([hidden]),
html.sdy-native-player-ui #study-extras-overlay:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    z-index: 2411;
}

#study-extras-overlay {
    z-index: 2411;
}

#random-pick-overlay {
    z-index: 2411;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) #random-pick-overlay:not([hidden]),
html.sdy-native-sheet-out body.sdy-full-player-open #random-pick-overlay:not([hidden]),
html.sdy-native-player-ui #random-pick-overlay:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    z-index: 2411;
}

#random-pick-tabs {
    flex-shrink: 0;
    padding: 0 8px;
}

#random-pick-pager {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#random-pick-track .mini-queue-page {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 8px;
}

.random-pick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.random-pick-chip {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    color: #334155;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.random-pick-chip.is-on {
    border-color: #0282ad;
    background: #ecfeff;
    color: #0e7490;
}

#study-extras-tabs {
    flex-shrink: 0;
    padding: 0 8px;
}

#study-extras-pager {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#study-extras-track .mini-queue-page {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 8px;
}

.study-extras-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

#apply-page-pager .mini-queue-page {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.apply-page-list {
    padding: 8px 12px 12px;
}

.apply-page-empty {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 24px 12px;
}

.apply-share-row,
.apply-promoter-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.apply-share-row__meta,
.apply-promoter-row__meta {
    font-size: 14px;
    color: #0f172a;
}

.apply-share-row__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.apply-share-row__acts input {
    flex: 1;
    min-width: 8em;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
}

#random-pick-overlay .profile-overlay-title {
    flex: 1;
}

#random-pick-overlay .random-pick-clear {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    line-height: 1;
    height: 44px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
}

#random-pick-overlay .random-pick-clear:active { opacity: 0.65; }

.profile-overlay-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 10px 4px;
    flex-shrink: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.profile-overlay-back {
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-overlay-back:active { opacity: 0.65; }

.profile-overlay-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.profile-overlay-hint {
    margin: 0;
    padding: 10px 16px 8px;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.profile-overlay-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 16px;
}

.follow-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: #fff;
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    text-align: left;
}

.follow-list-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.follow-list-empty {
    margin: 24px 8px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.profile-overlay-sheet--settings {
    background: #f5f6f8;
}

.sdy-settings-body {
    padding: 12px 16px 24px;
}

.sdy-likes-body {
    padding-bottom: calc(24px + var(--sdy-sab));
}

.sdy-likes-empty {
    margin: 24px 8px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.sdy-likes-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.sdy-likes-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.sdy-likes-list .sdy-likes-row:last-child {
    border-bottom: none;
}

.sdy-likes-name {
    flex: 0 0 6em;
    width: 6em;
    max-width: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #111;
}

.sdy-likes-track {
    flex: 1;
    min-width: 0;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.sdy-likes-bar {
    display: block;
    height: 8px;
    background: #10b981;
    border-radius: 4px;
}

.sdy-likes-val {
    flex: 0 0 48px;
    text-align: right;
    color: #999;
    font-size: 15px;
}

.sdy-settings-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sdy-about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 20px;
}
.sdy-about-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}
.sdy-about-name {
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}
.sdy-settings-row--static {
    cursor: default;
}
.sdy-contact-owner-btn {
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    background: #10b981;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.sdy-dm-check {
    color: #10b981;
    font-size: 18px;
}

.sdy-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    color: #111;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.sdy-settings-card .sdy-settings-row:last-child {
    border-bottom: none;
}

.sdy-settings-row-value {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #999;
    font-size: 15px;
}

.sdy-account-avatar-preview,
.sdy-account-avatar-fallback {
    width: 50.4px;
    height: 50.4px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 50.4px;
}

.sdy-account-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0282ad;
    color: #fff;
    font-size: 22.4px;
}

.sdy-update-dot {
    display: inline-block;
    border-radius: 50%;
    background: #ef4444;
    flex: 0 0 auto;
}

.sdy-update-dot--ota {
    width: 7px;
    height: 7px;
}

.sdy-update-dot--apk {
    width: 10px;
    height: 10px;
}

#btn-profile-settings {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.sdy-update-dot--settings {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
}

.sdy-check-update-rev {
    color: #999;
    font-size: 12px;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-legal-overlay {
    z-index: 10050;
}
#profile-legal-overlay .profile-overlay-sheet--settings {
    background: #fff;
}
#profile-legal-overlay .profile-overlay-body {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sdy-legal-frame {
    display: block;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.sdy-settings-ota-progress {
    margin: 4px 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.sdy-settings-ota-progress .sdy-app-build-info__ota-dl-text,
.sdy-settings-ota-progress .sdy-app-build-info__reload-text {
    font-size: 13px;
    line-height: 1.4;
    color: #047857;
}

.sdy-settings-ota-progress .sdy-app-build-info__ota-bar {
    width: 100%;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.18);
    overflow: hidden;
}

.sdy-settings-ota-progress .sdy-app-build-info__ota-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #16a34a;
}

.sdy-settings-ota-progress .sdy-app-build-info__reload-btn {
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    padding: 8px 20px;
    background: #1976d2;
    color: #fff;
    font-size: 14px;
}

.sdy-change-phone-form {
    padding: 16px;
}

.sdy-change-phone-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    color: #666;
}

.sdy-change-phone-form .login-inline-row input,
.sdy-change-phone-form #change-phone-sms,
.sdy-change-phone-form #edit-nickname-input,
.sdy-change-phone-form #edit-signature-input,
.sdy-change-phone-form #change-email-input,
.sdy-change-phone-form #change-email-new-code,
.sdy-change-phone-form #old-password,
.sdy-change-phone-form #new-password,
.sdy-change-phone-form #confirm-password {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
}

.sdy-change-phone-msg {
    margin: 10px 0 0;
    font-size: 13px;
    color: #c2410c;
}

.sdy-change-phone-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0282ad;
    color: #fff;
    font-size: 16px;
}

.sdy-settings-chevron {
    color: #c8c8c8;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
}

.sdy-settings-card--center {
    padding: 0;
}

.sdy-settings-logout {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    background: #fff;
    color: #111;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

#btn-switch-account {
    border-bottom: 1px solid #eee;
}

.sdy-switch-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.sdy-switch-account-row + .sdy-switch-account-row {
    border-top: 1px solid #eee;
}

.sdy-switch-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f7;
    flex: 0 0 auto;
}

.sdy-switch-account-name {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #111;
}

.sdy-switch-account-mark {
    flex: 0 0 auto;
    font-size: 13px;
    color: #059669;
}

.sdy-settings-empty {
    margin: 0;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.profile-overlay-body--vip {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
}

.profile-vip-intro {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 16px;
    -webkit-overflow-scrolling: touch;
}

#profile-vip-overlay .ximu-vip-hero {
    margin: 0 16px 12px;
    padding: 1.6rem 1.2rem 1.4rem;
    border-radius: 1.1rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(155deg, #4ade80 0%, #22c55e 42%, #15803d 100%);
    position: relative;
    overflow: hidden;
}

#profile-vip-overlay .ximu-vip-hero__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #14532d;
    background: rgba(255, 255, 255, 0.92);
}

#profile-vip-overlay .ximu-vip-hero__badge[hidden] {
    display: none;
}

#profile-vip-overlay .ximu-vip-hero__icon {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 0.65rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #b45309;
    background: linear-gradient(160deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
}

#profile-vip-overlay .ximu-vip-hero__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

#profile-vip-overlay .ximu-vip-hero__sub {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    opacity: 0.92;
}

.sdy-vip-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
}

.sdy-vip-pack {
    width: calc(50% - 4px);
    box-sizing: border-box;
    border: 1px solid rgba(22, 163, 74, 0.28);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    cursor: pointer;
}

.sdy-vip-pack.active {
    border-color: rgba(22, 163, 74, 0.65);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.sdy-vip-pack__title {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: #14532d;
    font-size: 1.05rem;
}

.sdy-vip-pack__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.35rem;
    gap: 8px;
}

.sdy-vip-pack__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
    min-width: 0;
}

.sdy-vip-pack__left s {
    color: #94a3b8;
}

.ximu-vip-discount-badge {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    border: 1.5px solid #e0b464;
    background: #fffdf6;
    color: #a35c3a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: none;
}

.sdy-vip-pack__price {
    color: #15803d;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.sdy-vip-pack__yen {
    font-size: 0.9rem;
}

.sdy-vip-pack__num {
    font-size: 1.75rem;
}

.sdy-vip-note {
    margin: 8px 16px;
    padding: 10px 12px;
    background: #fff7ed;
    border-radius: 8px;
    color: #9a3412;
    font-size: 12px;
}

.sdy-vip-h2 {
    text-align: center;
    font-size: 1.05rem;
    color: #14532d;
    font-weight: 800;
    margin: 1.1rem 0 0.75rem;
}

#profile-vip-overlay .ximu-vip-privileges__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 0.35rem;
    padding: 0 12px;
}

#profile-vip-overlay .ximu-vip-privilege {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#profile-vip-overlay .ximu-vip-privilege__icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
}

#profile-vip-overlay .ximu-vip-privilege__label {
    margin: 0.4rem 0 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.74rem;
    color: #14532d;
}

#profile-vip-overlay .ximu-vip-compare {
    margin: 1rem 16px;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid rgba(22, 163, 74, 0.28);
    border-radius: 0.75rem;
    font-size: 0.78rem;
    color: #334155;
}

#profile-vip-overlay .profile-overlay-sheet {
    padding-top: 0;
    padding-bottom: 0;
}

#profile-vip-overlay .profile-overlay-header {
    height: calc(50px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
    box-sizing: border-box;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    padding-top: var(--sdy-sat, env(safe-area-inset-top, 0px));
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    gap: 0;
}

#profile-vip-overlay .profile-overlay-back {
    width: 30px;
    height: 30px;
    font-size: 18px;
}

#profile-vip-overlay .profile-overlay-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.sdy-vip-buy-bar {
    flex-shrink: 0;
    padding: 8px 16px calc(8px + var(--sdy-sab));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(22, 163, 74, 0.28);
    box-sizing: border-box;
}

.sdy-vip-buy {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 999px;
    line-height: 2.4;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
    cursor: pointer;
}

.sdy-vip-buy[hidden],
.sdy-vip-staff[hidden] {
    display: none;
}

.sdy-vip-staff {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4em;
    margin: 0;
    border-radius: 999px;
    box-sizing: border-box;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #14532d;
    background: #ecfdf5;
    border: 1px solid rgba(22, 163, 74, 0.28);
}

.sdy-vip-buy-bar:has(#sdy-vip-buy[hidden]):has(#sdy-vip-staff[hidden]) {
    display: none;
}
.sdy-vip-become-promoter[hidden],
.sdy-vip-note[hidden] {
    display: none;
}

.sdy-vip-become-promoter {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #047857;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sdy-vip-promoter-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #fff;
    overflow: auto;
    padding: 12px 16px;
}

.sdy-vip-promoter-overlay[hidden] {
    display: none;
}

.sdy-vip-promoter-overlay-back {
    border: 0;
    background: transparent;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    padding: 0 0 16px;
}

#sdy-vip-promoter-msg {
    margin-top: 8px;
    color: #9a3412;
}

.profile-vip-frame {
    display: none;
}

.profile-overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-download-card {
    max-width: 420px;
    margin: 12px auto 0;
    padding: 8px 8px 24px;
}

.profile-download-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-download-brand-text {
    min-width: 0;
}

.profile-download-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.profile-download-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.profile-download-card .sub {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.profile-download-card .meta {
    font-size: 13px;
    color: #475569;
    margin: 0 0 16px;
}

.profile-download-card .domain-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    line-height: 1.5;
}

.profile-download-card .domain-note a {
    color: inherit;
    text-decoration: underline;
}

.profile-download-card .hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 16px 0 0;
    line-height: 1.6;
}

.profile-download-card .hint a,
.profile-download-share {
    color: #059669;
}

.profile-download-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.profile-download-actions .btn-primary,
.profile-download-actions .btn-ghost {
    flex: 1;
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    text-align: center;
    text-decoration: none;
    line-height: 48px;
    min-height: 48px;
}

.profile-download-share {
    display: block;
    margin: 0 0 12px;
    font-size: 13px;
    word-break: break-all;
}

.profile-work-list .work-row {
    position: relative;
}

.profile-work-remove {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

#profile-my-read-list .work-row {
    flex-wrap: wrap;
}

#profile-my-read-list .work-row .work-row-btn {
    flex: 1 1 100%;
}

#profile-my-read-list .profile-work-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 12px 10px;
    box-sizing: border-box;
}

#profile-my-read-list .profile-work-remove,
#profile-my-read-list .profile-work-share {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    flex-shrink: 0;
    align-self: center;
}

.profile-work-share {
    color: #0282ad;
}

.profile-work-share.is-pending {
    color: #64748b;
}

.profile-work-share.is-on {
    color: #059669;
}

.full-transport-btn--sub.is-on {
    color: #f87171;
}

.offline-panel {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.offline-panel[hidden] { display: none !important; }

.offline-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.offline-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
}

.offline-cache-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.offline-cache-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
}

.offline-cache-item:first-child { border-top: none; }

.transport-btn--sub {
    font-size: 16px;
    min-width: 40px;
}

/* 全屏独立播放页 · 网易云式布局（与 mini 条共享 #audio-el） */
html.sdy-native-player-ui .panel-player .full-player {
    background: transparent;
}

.panel-player {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    color: #fff;
    background: transparent;
    pointer-events: none;
}

.panel-player.is-expanded,
.panel-player.is-collapsing {
    z-index: 140;
    pointer-events: auto;
}

.panel-player .full-player {
    transform: translate3d(0, 100%, 0);
    transition: transform 0.24s ease-out;
    background: transparent;
}

html.sdy-native-player-ui #panel-player .full-player,
html.sdy-native-gl-bg #panel-player .full-player,
html.sdy-native-gl-bg #full-immersive-host,
html.sdy-native-gl-bg #full-color-bg,
html.sdy-native-gl-bg #full-cover-bg-fallback {
    background: transparent;
    background-color: transparent;
    background-image: none;
}

.panel-player.is-expanded .full-player {
    transform: translate3d(0, 0, 0);
    background: var(--dominant-color, #bbc7a4);
}

.panel-player.is-collapsing .full-player {
    background: var(--dominant-color, #bbc7a4);
}

.panel-player.sdy-native-sheet-host {
    z-index: 140;
    pointer-events: auto;
}

html.sdy-native-player-ui.sdy-native-sheet-open .panel-player.is-expanded .full-player,
html.sdy-native-player-ui.sdy-native-sheet-open .panel-player.sdy-native-sheet-host .full-player,
.panel-player.sdy-native-sheet-host .full-player {
    transform: none;
    background: transparent;
    background-color: transparent;
}

.panel-player.sdy-native-sheet-host .full-player-bg,
.panel-player.sdy-native-sheet-host .full-player-shell {
    visibility: hidden;
    pointer-events: none;
}

.panel-player.sdy-native-sheet-host .full-comment-overlay,
.panel-player.sdy-native-sheet-host .full-share-sheet,
.panel-player.sdy-native-sheet-host .playlist-sidebar,
.panel-player.sdy-native-sheet-host .full-player-mode-sheet {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui .full-player-mode-sheet:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui:not(.sdy-native-gl-bg):not(.sdy-native-cloud-lyrics) .panel-player .full-player-bg,
html.sdy-native-player-ui:not(.sdy-native-gl-bg):not(.sdy-native-cloud-lyrics) .panel-player .full-player-shell {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-bg {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-shell {
    visibility: visible;
    pointer-events: none;
    background: transparent;
}

html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-header,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-vinyl-stage,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-jiaohu,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-progress,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-player-transport,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-tool-btn--my-read,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-tool-btn--study,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-tool-btn--sleep,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-tool-btn--pick,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-follow-exit,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-mini-play,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-cover-art-stage,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-color-title-stage {
    visibility: hidden;
}

html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-stage,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-lyrics-stage,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-lyrics-scroll,
html.sdy-native-player-ui.sdy-native-cloud-lyrics .panel-player .full-lyrics-body,
html.sdy-native-player-ui.sdy-native-cloud-lyrics #full-immersive-host {
    visibility: visible;
    background: transparent;
}

html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-bg {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-shell {
    visibility: visible;
    pointer-events: none;
    background: transparent;
}

html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-header,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-vinyl-stage,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-jiaohu,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-progress,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-player-transport,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-tool-btn--sleep,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-tool-btn--pick,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-follow-exit,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-mini-play,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-cover-art-stage,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-color-title-stage {
    visibility: hidden;
}

html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-stage,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-lyrics-stage,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-lyrics-scroll,
html.sdy-native-player-ui.sdy-native-gl-bg .panel-player .full-lyrics-body {
    visibility: visible;
    background: transparent;
}

html.sdy-native-player-ui #divine-plugin-selector-btn,
html.sdy-native-player-ui .divine-special-effect-btn,
html.sdy-native-player-ui .divine-audio-toggle-btn,
html.sdy-native-player-ui #divine-lock-btn,
html.sdy-native-player-ui #divine-orientation-toggle-btn,
html.sdy-native-player-ui .sdy-immersive-corner-btn {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui .panel-player.sdy-native-sheet-host .full-comment-overlay,
html.sdy-native-player-ui .panel-player.sdy-native-sheet-host .full-share-sheet,
html.sdy-native-player-ui .panel-player.sdy-native-sheet-host .playlist-sidebar,
html.sdy-native-player-ui .panel-player.sdy-native-sheet-host .full-player-mode-sheet {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui.sdy-native-sheet-open,
html.sdy-native-player-ui.sdy-native-sheet-open body,
html.sdy-native-player-ui.sdy-native-sheet-open #app,
html.sdy-native-player-ui.sdy-native-sheet-open #panel-player {
    background: transparent;
}

/* sheet 升起过程中首页/顶栏保持原位作后景；动画结束后再藏 */
html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) #app > *:not(main),
html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) #app > main > *:not(#panel-player) {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) body.sdy-mini-queue-open #mini-queue-overlay,
html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) body.sdy-mini-queue-open #mini-queue-sheet,
html.sdy-native-sheet-out body.sdy-full-player-open.sdy-mini-queue-open #mini-queue-overlay,
html.sdy-native-sheet-out body.sdy-full-player-open.sdy-mini-queue-open #mini-queue-sheet,
html.sdy-native-player-ui.sdy-mini-queue-open #mini-queue-overlay,
html.sdy-native-player-ui.sdy-mini-queue-open #mini-queue-sheet,
html.sdy-mini-queue-open #mini-queue-overlay,
html.sdy-mini-queue-open #mini-queue-sheet {
    visibility: visible;
    pointer-events: auto;
    z-index: 2411;
}

html.sdy-mini-queue-open #mini-queue-overlay {
    z-index: 2410;
}

html.sdy-native-sheet-out body.sdy-full-player-open #app > *:not(main),
html.sdy-native-sheet-out body.sdy-full-player-open #app > main > *:not(#panel-player) {
    visibility: visible;
    pointer-events: none;
}

/* 只在关页滑出时把个人中心交回点击。播放页仍开着（含点播放列表揭 WebView）不得露 #panel-profile。 */
html.sdy-native-sheet-out body.sdy-full-player-open #app > main > #panel-profile {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui #panel-player {
    visibility: visible;
}

html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics .panel-player .full-player-shell,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics .panel-player .full-lyrics-stage,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics .panel-player .full-lyrics-scroll,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics .panel-player .full-lyrics-body,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics .panel-player .full-stage,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-cloud-lyrics #full-immersive-host,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-gl-bg .panel-player .full-player-shell,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-gl-bg .panel-player .full-lyrics-stage,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-gl-bg .panel-player .full-lyrics-scroll,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-gl-bg .panel-player .full-lyrics-body,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-gl-bg .panel-player .full-stage {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-sheet-open #add-playlist-modal:not([hidden]),
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-header {
    visibility: visible;
    pointer-events: none;
    background: transparent;
}

html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-bg,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-shell > *:not(.full-player-header) {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .player-search-container.active {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-back,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-meta,
html.sdy-native-player-ui.sdy-native-sheet-open.sdy-native-search-open .panel-player.sdy-native-sheet-host .full-player-search-trigger {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-native-player-ui.sdy-native-sheet-open #sleep-timer-menu,
html.sdy-native-player-ui.sdy-native-sheet-open .sleep-timer-custom-picker,
html.sdy-native-player-ui.sdy-native-sheet-open #divine-plugin-selector-mask,
html.sdy-native-player-ui.sdy-native-sheet-open #divine-plugin-selector-dialog {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui.sdy-native-sheet-open .full-player-dim,
html.sdy-native-player-ui.sdy-native-sheet-open #playlist-overlay,
html.sdy-native-player-ui.sdy-native-sheet-open body.sdy-mini-queue-open #mini-queue-overlay,
html.sdy-native-player-ui.sdy-native-sheet-open .full-player-mode-overlay,
html.sdy-native-player-ui.sdy-native-sheet-open .sleep-timer-backdrop,
html.sdy-native-player-ui.sdy-native-sheet-open #add-playlist-modal:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    background: transparent;
}

html.sdy-native-player-ui.sdy-native-sheet-open #full-player-mode-sheet:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-player-ui.sdy-native-sheet-open #full-player-mode-preview:not([hidden]),
html.sdy-player-sheet-settled.sdy-full-player-open #full-player-mode-preview:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
}

html.sdy-native-fake-landscape,
body.sdy-native-fake-landscape {
    overflow: hidden;
}

.panel-player.sdy-native-fake-landscape {
    position: fixed;
    z-index: 140;
    inset: auto;
    top: 0;
    left: 100vw;
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg);
    transform-origin: top left;
    overflow: hidden;
}

.panel-player.sdy-native-fake-landscape .full-player,
.panel-player.sdy-native-fake-landscape .full-player-shell {
    transform: none;
    width: 100%;
    height: 100%;
}

.panel-player.sdy-native-fake-landscape .full-player-header {
    min-height: 60px;
    padding-top: 15px;
}

.panel-player.sdy-native-fake-landscape .full-lyrics-stage {
    padding-top: 0;
}

.panel-player.is-collapsing .full-player {
    transform: translate3d(0, 100%, 0);
}

.panel-player[hidden] { display: none !important; }

html.sdy-playlist-open,
body.sdy-playlist-open,
html.sdy-catalog-open,
body.sdy-catalog-open,
html.sdy-square-more-open,
body.sdy-square-more-open {
    height: 100%;
    overflow: hidden;
}

html.sdy-player-sheet-settled.sdy-full-player-open,
html.sdy-player-sheet-settled.sdy-full-player-open body {
    height: 100%;
    overflow: hidden;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) .bottom-nav {
    visibility: hidden;
    pointer-events: none;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) .topbar {
    visibility: hidden;
}

body.sdy-full-player-open:has(#panel-player.is-collapsing) .topbar,
html.sdy-native-sheet-out body.sdy-full-player-open .topbar {
    visibility: visible;
}

html.sdy-player-sheet-settled.sdy-full-player-open:not(.sdy-native-sheet-out) .mini-player {
    visibility: hidden;
    pointer-events: none;
}

.full-player {
    position: relative;
    height: 100%;
    overflow: hidden;
    --fp-sab: max(2.8vh, var(--sdy-sab));
    --fp-vinyl: clamp(132px, 28vh, 230px);
    --fp-transport-h: clamp(56px, 9vh, 72px);
    --fp-sleep-h: 36px;
    --fp-progress-h: clamp(28px, 5vh, 36px);
    --fp-jiaohu-h: clamp(22px, 4vh, 30px);
    --fp-gap: clamp(6px, 1.2vh, 10px);
    --fp-progress-lift: calc(var(--fp-transport-h) + var(--fp-sleep-h) + var(--fp-sab));
    --fp-jiaohu-lift: calc(var(--fp-transport-h) + var(--fp-sleep-h) + var(--fp-progress-h) + var(--fp-gap) + var(--fp-sab));
    --fp-lyrics-pad: calc(var(--fp-jiaohu-lift) + var(--fp-jiaohu-h) + var(--fp-gap) + 8px);
}

.full-player-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.full-player-bg-img {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    object-fit: cover;
    filter: blur(36px) saturate(1.15);
    transform: scale(1.08);
}

.full-player-bg-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #064e3b 0%, #0f172a 55%, #1e293b 100%);
}

.full-player-bg-fallback[hidden] { display: none !important; }

.full-player-bg-img[hidden] { display: none !important; }

.full-player-bg-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.82) 100%);
}

.full-player-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media (orientation: landscape) {
    .full-player-shell {
        max-width: 80vw;
    }
    body.sdy-immersive-active .full-player-shell {
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

.full-player-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(60px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
    height: auto;
    flex-shrink: 0;
    padding: calc(15px + var(--sdy-sat, env(safe-area-inset-top, 0px))) 15px 15px;
    box-sizing: border-box;
    z-index: 6;
}

.full-player-back {
    margin-left: 5px;
    border: none;
    background: transparent;
    color: #fff;
    opacity: 0.85;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: none;
    transform: none;
    left: auto;
    top: auto;
    position: relative;
}

.full-player-back i {
    font-size: 30px;
    line-height: 1;
    color: #fff;
}

.full-player-meta {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 8px;
}

.full-player-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.full-player-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-player-search-trigger {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.full-player-search-trigger img {
    display: block;
}

.full-player-header-tools {
    display: flex;
    gap: 8px;
    z-index: 1;
}

.full-tool-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.full-tool-btn.is-on {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.full-tool-btn[hidden] { display: none !important; }

.full-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.full-vinyl-stage {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 8px 0 4px;
}

.full-vinyl-stage[hidden] { display: none !important; }

.full-album-art-wrapper {
    position: relative;
    width: var(--fp-vinyl);
    height: var(--fp-vinyl);
    margin: 0 auto;
    overflow: visible;
}

.full-album-art-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    bottom: -28px;
    background: transparent;
    pointer-events: auto;
}

.full-album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(200, 200, 200, 0.6), rgba(80, 80, 80, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.full-album-art-disc {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.full-album-art-label {
    position: absolute;
    width: 52%;
    height: 52%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    background: #16213e center/cover no-repeat;
    animation: sdy-vinyl-rotate 20s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
}

.full-album-art.playing .full-album-art-label {
    animation-play-state: running;
}

@keyframes sdy-vinyl-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.full-tonearm {
    position: absolute;
    top: 10%;
    left: calc(50% + var(--fp-vinyl) * 0.565);
    width: calc(var(--fp-vinyl) * 0.152);
    transform: rotate(0deg);
    transform-origin: center 13.5%;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.3));
    z-index: 4;
    cursor: pointer;
}

.full-tonearm img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.full-tonearm-light {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 8px;
    height: 3px;
    margin-left: -4px;
    border-radius: 50%;
    background: #2cabff;
    box-shadow: 0 15px 25px 10px rgba(44, 171, 255, 0.6);
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.full-lyrics-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* 底栏：互动条 + 进度 + 七键 + 安全区，随屏高变 */
    padding-bottom: var(--fp-lyrics-pad);
    /* 舞台本身不接点击，避免 padding-bottom 盖住进度条/七键 */
    pointer-events: none;
}

/* 茶座：点整块 #lyrics-container / #long-lyrics-container 切换长短，不是只点字幕文字 */
.full-lyrics-scroll,
.full-lyrics-body,
.full-lyrics-body .lyric-line {
    pointer-events: auto;
}

.full-player.is-long-lyrics .full-lyrics-stage {
    padding-bottom: var(--fp-lyrics-pad);
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-lyrics-stage,
body.sdy-immersive-active .full-player.is-long-lyrics .full-lyrics-stage {
    padding-bottom: 0;
    padding-top: var(--sdy-sat, env(safe-area-inset-top, 0px));
}

body.divine-screen-rotated .full-player-header {
    min-height: 60px;
    padding-top: 15px;
}
body.divine-screen-rotated .full-lyrics-stage {
    padding-top: 0 !important;
}

.full-lyrics-stage[hidden] { display: none !important; }

.full-lyrics-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.full-lyrics-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

.full-lyrics-body {
    padding: 12px 12px 24px;
    max-height: none;
}

.panel-player.is-long-lyrics:not(.is-bg-divine):not(.is-bg-color):not(.is-bg-image) .full-lyrics-body {
    padding: 38vh 8px 38vh;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line {
    display: block;
    margin: 10px 0;
    padding: 6px 8px;
    text-align: center;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.38);
    transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease, font-size 0.35s ease;
    transform-origin: center center;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.active {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    transform: scale(1.02);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.translation {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.28);
    margin-top: -2px;
    margin-bottom: 8px;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.translation.active {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    font-weight: 500;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode {
    letter-spacing: 0;
    word-spacing: 0;
    line-height: 1.85;
    font-size: 22px;
    font-weight: 700;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode.active {
    font-size: 24px;
}

/* 拼音格：对齐诵读茶座 py-pair（Arial 拼音 + 加粗正文） */
.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-pair {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    vertical-align: baseline;
    width: 1.45em;
    min-width: 1.45em;
    max-width: 1.45em;
    margin: 0 -0.06em 0 0;
    padding: 0 0.08em;
    line-height: 1.2;
    box-sizing: border-box;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-pair:last-child {
    margin-right: 0;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-pair--wide {
    width: auto;
    max-width: none;
    min-width: max(1.45em, calc(var(--py-len, 5) * 0.36em));
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-top {
    order: 1;
    display: block;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    height: 1.2em;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    overflow: visible;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode.active .py-top {
    color: rgba(255, 255, 255, 0.98);
    font-size: 17px;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-char {
    order: 2;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    font-size: inherit;
    font-weight: inherit;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-pair--gap {
    width: 0.55em;
    min-width: 0.55em;
    max-width: 0.55em;
    margin-right: 0;
    padding: 0 0.04em;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-top--empty {
    visibility: hidden;
    pointer-events: none;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.pinyin-mode .py-pair--gap .py-char {
    font-size: inherit;
    font-weight: inherit;
}

/* Ruby 回退（若其它页面仍使用） */
.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body ruby {
    display: inline-block;
    position: relative;
    text-align: center;
    line-height: 1.2;
    ruby-position: over;
    ruby-align: center;
    vertical-align: bottom;
    width: 1.45em;
    min-width: 1.45em;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body rt {
    position: absolute;
    top: -1.15em;
    left: 0;
    right: 0;
    display: block;
    font-size: 11px;
    line-height: 1.15;
    height: 1.15em;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.panel-player:not(.is-bg-color):not(.is-bg-image) .full-lyrics-body .lyric-line.active rt {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
}

/* 互动条：进度底 110 + 进度块约 34，略贴进度条 */
.full-player-jiaohu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--fp-jiaohu-lift);
    z-index: 19;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fp-gap);
    padding: 0;
    box-sizing: border-box;
}

.full-jiaohu-btn {
    width: auto;
    height: auto;
    min-width: 30px;
    min-height: 30px;
    flex: 0 1 auto;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    position: relative;
}

.full-jiaohu-btn img {
    height: var(--fp-jiaohu-h);
    width: auto;
    display: block;
}

/* 全屏播放页默认深底：互动条白色（与七键 transport 一致） */
.panel-player .full-jiaohu-btn img {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

.panel-player .full-jiaohu-btn.is-on img {
    filter: none;
}

.panel-player #full-btn-favorite.is-on img,
.panel-player.is-bg-color #full-btn-favorite.is-on img,
.panel-player.is-bg-image #full-btn-favorite.is-on img,
body.sdy-mode-color #full-btn-favorite.is-on img,
body.sdy-mode-image #full-btn-favorite.is-on img {
    filter: none;
}

.panel-player .full-jiaohu-btn i {
    font-size: 18px;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

.panel-player #full-btn-like i,
.panel-player #full-btn-favorite i {
    font-size: 26px;
}

.full-comment-btn {
    overflow: visible;
    padding: 6px 6px 2px 2px;
    box-sizing: content-box;
}

.panel-player #full-btn-favorite.is-on i {
    color: #fe2c55;
}

.panel-player #full-btn-like,
.panel-player #full-btn-favorite {
    position: relative;
    overflow: visible;
}

.panel-player #full-btn-like.has-count i,
.panel-player #full-btn-favorite.has-count i {
    -webkit-mask-image: radial-gradient(circle 12px at 112% 0%, transparent 11px, #000 12px);
    mask-image: radial-gradient(circle 12px at 112% 0%, transparent 11px, #000 12px);
}

.panel-player #full-btn-like.is-on i {
    color: #fe2c55;
}

.panel-player .sdy-act-count,
.panel-player .sdy-random-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    font-weight: 600;
    pointer-events: none;
}

.panel-player #full-btn-like.is-on .sdy-act-count,
.panel-player #full-btn-like.is-on .sdy-random-count,
.panel-player #full-btn-favorite.is-on .sdy-act-count,
.panel-player #full-btn-favorite.is-on .sdy-random-count {
    color: #fe2c55;
}

body.sdy-immersive-active .panel-player #full-btn-like.is-on i,
body.sdy-immersive-active .panel-player #full-btn-favorite.is-on i,
body.sdy-immersive-active .panel-player #full-btn-like.is-on .sdy-act-count,
body.sdy-immersive-active .panel-player #full-btn-like.is-on .sdy-random-count,
body.sdy-immersive-active .panel-player #full-btn-favorite.is-on .sdy-act-count,
body.sdy-immersive-active .panel-player #full-btn-favorite.is-on .sdy-random-count {
    color: #fff;
}

.panel-player .sdy-act-count[hidden],
.panel-player .sdy-random-count[hidden] {
    display: none;
}

.full-comment-btn i {
    font-size: 22px;
}

.full-comment-btn .full-comment-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
}

.full-player-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--fp-progress-lift);
    z-index: 21;
    margin: 0;
    padding: 0 clamp(16px, 6vw, 30px);
    box-sizing: border-box;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(4px, 0.8vh, 6px);
}

.full-player-progress.progress-wrap {
    margin-bottom: 0;
}

.panel-player:not(.is-long-lyrics) .full-player-progress {
    flex-direction: row;
    align-items: center;
}

.panel-player:not(.is-long-lyrics) .full-player-progress .full-time-row {
    display: contents;
}

.panel-player:not(.is-long-lyrics) #full-time-current {
    order: 1;
}

.panel-player:not(.is-long-lyrics) #full-seek-bar {
    order: 2;
    flex: 1;
    width: auto;
}

.panel-player:not(.is-long-lyrics) #full-time-duration {
    order: 3;
}

.panel-player:not(.is-long-lyrics) #full-follow-read-hint,
.panel-player:not(.is-long-lyrics) #full-no-srt-hint {
    order: 4;
    flex-basis: 100%;
}

.full-player-progress .full-time-row,
.full-player-progress .full-seek-bar {
    pointer-events: auto;
}

.full-seek-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    margin: 0;
    padding: 0;
    --sdy-buf-pct: 0%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.45) 0,
        rgba(255, 255, 255, 0.45) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) 100%
    );
    border-radius: 4px;
    outline: none;
    accent-color: #8e2de2;
    touch-action: none;
}

.full-seek-bar::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.45) 0,
        rgba(255, 255, 255, 0.45) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) 100%
    );
}

.full-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -2px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.full-seek-bar::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.45) 0,
        rgba(255, 255, 255, 0.45) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) var(--sdy-buf-pct, 0%),
        rgba(255, 255, 255, 0.22) 100%
    );
}

.full-seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.full-time-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.full-no-srt-hint {
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    margin: 2px 0 0;
    color: rgba(17, 17, 17, 0.55);
    pointer-events: none;
}
.panel-player.is-bg-image .full-no-srt-hint {
    color: rgba(255, 255, 255, 0.72);
}
.full-no-srt-hint[hidden] {
    display: none;
}

.full-follow-read-hint {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: #4C9EFF;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    animation: sdy-follow-read-breathe 3s ease-in-out infinite;
    transition: color 220ms ease;
}
.full-follow-read-hint.is-rec {
    color: #E53935;
}
.full-follow-read-hint--long {
    left: auto;
    right: 8px;
    top: auto;
    bottom: calc(52px + var(--sdy-sab));
    transform: none;
}
.full-follow-read-hint--land {
    left: auto;
    right: calc(2px + 44px + 8px);
    top: auto;
    bottom: 2px;
    transform: none;
}

.full-follow-read-hint[hidden] {
    display: none;
    animation: none;
}

@keyframes sdy-follow-read-breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.full-player-transport {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    height: calc(var(--fp-transport-h) + var(--fp-sleep-h) + var(--fp-sab));
    justify-content: space-between;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    padding: clamp(8px, 1.8vh, 15px) clamp(16px, 6vw, 30px) calc(var(--fp-sleep-h) + var(--fp-sab));
    box-sizing: border-box;
    pointer-events: none;
}

.full-transport-btn {
    width: clamp(36px, 6.5vh, 50px);
    height: clamp(36px, 6.5vh, 50px);
    min-width: 0;
    min-height: 0;
    padding: 0;
    flex: 0 1 clamp(36px, 6.5vh, 50px);
    max-width: clamp(36px, 6.5vh, 50px);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    pointer-events: auto;
}

.full-player-transport img,
.full-transport-btn img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

body:not(.sdy-immersive-active) .panel-player.is-bg-color .full-transport-btn img {
    filter: brightness(0);
}

body.sdy-mode-star #full-seek-bar {
    accent-color: #fff;
}

.full-transport-btn--loop {
    width: clamp(32px, 5vh, 40px);
    height: clamp(32px, 5vh, 40px);
    min-height: 0;
    max-width: clamp(32px, 5vh, 40px);
    flex: 0 1 clamp(32px, 5vh, 40px);
}

.full-transport-btn--main {
    position: relative;
    width: clamp(52px, 8.5vh, 70px);
    height: clamp(52px, 8.5vh, 70px);
    min-width: 52px;
    min-height: 0;
    max-width: clamp(52px, 8.5vh, 70px);
    flex: 0 0 clamp(52px, 8.5vh, 70px);
    background: transparent;
    color: #fff;
    font-size: 22px;
}

.full-player-transport .full-transport-btn--main.is-follow-mode img,
.full-mini-play.is-follow-mode img {
    filter: brightness(0) invert(48%) sepia(82%) saturate(2477%) hue-rotate(191deg) brightness(101%) contrast(101%);
}

.full-follow-exit {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    pointer-events: auto;
}
.full-follow-exit[hidden] {
    display: none;
}
.full-tool-btn--sleep[hidden] {
    display: none;
}
.full-follow-exit--home {
    position: absolute;
    left: 50%;
    bottom: var(--fp-sab);
    z-index: 22;
    min-width: 76px;
    height: 30px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transition: transform 280ms ease, opacity 280ms ease;
}
.full-tool-btn--sleep {
    transition: transform 280ms ease, opacity 280ms ease;
}
.full-tool-btn--sleep.is-follow-drop,
.full-tool-btn--sleep.is-follow-rise-from,
.full-follow-exit--home.is-follow-drop,
.full-follow-exit--home.is-follow-rise-from {
    transform: translateX(-50%) translateY(140%);
    opacity: 0;
    pointer-events: none;
}

.full-transport-btn--main img {
    width: 58%;
    height: 58%;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    transition: opacity 180ms ease;
}
.full-transport-btn--main::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: #E53935;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.full-transport-btn--main.is-rec-dot img {
    opacity: 0;
}
.full-transport-btn--main.is-rec-dot::after {
    opacity: 1;
}

.full-tool-btn--my-read {
    position: absolute;
    right: 48px;
    bottom: calc(3px + var(--fp-sab));
    z-index: 22;
    width: 36px;
    height: 36px;
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #4C9EFF;
    font-size: 30px;
    line-height: 1;
    pointer-events: auto;
}

.full-tool-btn--my-read.is-count {
    font-size: 15px;
    font-weight: 700;
    color: #4C9EFF;
}
.full-my-read-count {
    line-height: 1;
}
.full-transport-btn--main.is-myread-locked,
.full-transport-btn.is-follow-locked {
    opacity: 0.35;
    pointer-events: none;
}

.full-tool-btn--my-read i {
    color: inherit;
}

body.portrait-long-mode #full-btn-my-read,
body.landscape-lyric-mode #full-btn-my-read,
body.sdy-full-player-lyrics #full-btn-my-read,
html.sdy-native-player-ui #full-btn-my-read {
    display: none;
    pointer-events: none;
}

.full-tool-btn--study {
    position: absolute;
    right: 10px;
    bottom: calc(3px + var(--fp-sab));
    z-index: 22;
    width: 30px;
    height: 30px;
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    pointer-events: auto;
}

.full-tool-btn--study i {
    color: inherit;
}

html.sdy-chrome-light .full-tool-btn--study,
.panel-player.is-bg-minimal .full-tool-btn--study {
    color: #111;
}

body.portrait-long-mode #full-btn-study,
body.landscape-lyric-mode #full-btn-study,
body.sdy-full-player-lyrics #full-btn-study {
    display: none;
    right: 10px;
    bottom: calc(10px + var(--fp-sab));
    pointer-events: none;
}

html.sdy-native-player-ui #full-btn-study {
    display: none;
    pointer-events: none;
}

.full-tool-btn--pick {
    position: absolute;
    z-index: 22;
    min-width: 60px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    pointer-events: auto;
}

.full-tool-btn--pick.is-on {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
}

.full-tool-btn--sleep {
    position: absolute;
    left: 50%;
    bottom: var(--fp-sab);
    transform: translateX(-50%);
    z-index: 22;
    min-width: 60px;
    height: 30px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    pointer-events: auto;
}

.full-sleep-icon {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.full-tool-btn--sleep.is-on {
    min-width: 72px;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

html.sdy-chrome-light .full-tool-btn--sleep.is-on,
.panel-player.is-bg-minimal .full-tool-btn--sleep.is-on {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
    color: #111;
}

.full-sleep-countdown[hidden] {
    display: none !important;
}

/* 睡眠定时菜单（对齐茶座 sleep-timer-menu） */
.sleep-timer-menu,
.sleep-timer-custom-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10010;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
    padding-bottom: var(--sdy-sab);
}

.sleep-timer-custom-picker {
    z-index: 10011;
}

.random-pick-group {
    margin: 8px 16px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.random-pick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sleep-timer-menu.is-open,
.sleep-timer-custom-picker.is-open {
    transform: translateY(0);
    opacity: 1;
}

.sleep-timer-title {
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.sleep-timer-options-list {
    overflow-y: auto;
}

.sleep-timer-option {
    padding: 14px 20px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.sleep-timer-option.is-hover {
    background: #f5f5f5;
}

.sleep-timer-option--close,
.sleep-timer-option--stop {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid #eee;
    border-bottom: 0;
    text-align: center;
}

.sleep-timer-option--stop {
    border-bottom: 1px solid #f5f5f5;
}

.sleep-timer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.sleep-timer-backdrop.is-visible {
    opacity: 1;
}

.sleep-timer-custom-header {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.sleep-timer-custom-body {
    display: flex;
    height: 300px;
    overflow: hidden;
}

.sleep-timer-picker-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.sleep-timer-picker-label {
    padding: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sleep-timer-scroll {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: 88px;
    padding-bottom: 88px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sleep-timer-scroll::-webkit-scrollbar {
    display: none;
}

.sleep-timer-time-option {
    padding: 12px;
    text-align: center;
    font-size: 18px;
    color: #999;
    scroll-snap-align: center;
    transition: color 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sleep-timer-time-option.is-selected {
    color: #0282ad;
    font-size: 20px;
    font-weight: 600;
}

.sleep-timer-custom-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.sleep-timer-option--footer {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 0;
    text-align: center;
}

.sleep-timer-option--footer:first-child {
    border-right: 1px solid #eee;
}

.full-mini-play {
    position: absolute;
    right: 16px;
    bottom: calc(16px + var(--sdy-sab));
    z-index: 7;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    display: none;
    align-items: center;
    justify-content: center;
}

.full-mini-play img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.full-player.is-long-lyrics .full-vinyl-stage,
.panel-player.is-long-lyrics .full-vinyl-stage {
    display: none !important;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-player-jiaohu,
body.sdy-immersive-active .full-player.is-long-lyrics .full-player-jiaohu {
    display: none !important;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-jiaohu-btn:not(#full-btn-player-mode),
body.sdy-immersive-active .full-player.is-long-lyrics .full-jiaohu-btn:not(#full-btn-player-mode) {
    display: none;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-player-progress,
body.sdy-immersive-active.sdy-full-player-lyrics .full-player-transport,
body.sdy-immersive-active.sdy-full-player-lyrics .full-tool-btn--sleep,
body.sdy-immersive-active .full-player.is-long-lyrics .full-player-progress,
body.sdy-immersive-active .full-player.is-long-lyrics .full-player-transport,
body.sdy-immersive-active .full-player.is-long-lyrics .full-tool-btn--sleep,
body.sdy-immersive-active .full-player.is-long-lyrics .full-cover-art-stage,
body.sdy-immersive-active .full-player.is-long-lyrics .full-color-title-stage {
    display: none !important;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-mini-play:not([hidden]),
body.sdy-immersive-active .full-player.is-long-lyrics .full-mini-play:not([hidden]) {
    display: flex;
    right: 2px;
    bottom: 2px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 8;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-mini-play img,
body.sdy-immersive-active .full-player.is-long-lyrics .full-mini-play img {
    width: 24px;
    height: 24px;
}

body.sdy-immersive-active.sdy-full-player-lyrics .full-mini-play.is-follow-mode img,
body.sdy-immersive-active .full-player.is-long-lyrics .full-mini-play.is-follow-mode img {
    filter: brightness(0) invert(48%) sepia(82%) saturate(2477%) hue-rotate(191deg) brightness(101%) contrast(101%);
}

#full-btn-download {
    display: none !important;
}

.player-search-container {
    display: none;
    position: absolute;
    left: 54px;
    right: 54px;
    top: calc(15px + var(--sdy-sat, env(safe-area-inset-top, 0px)));
    z-index: 8;
}

.player-search-container.active {
    display: block;
}

.player-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 0 8px 0 12px;
}

.player-search-input {
    flex: 1;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.player-search-cancel {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.player-search-dropdown {
    margin-top: 6px;
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.player-search-item {
    display: block;
    padding: 10px 12px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.player-search-empty {
    padding: 14px;
    color: #888;
    font-size: 13px;
}

.full-player .playlist-sidebar {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 40;
    padding: calc(20px + var(--sdy-sat, env(safe-area-inset-top, 0px))) 20px 20px;
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    color: #0f172a;
    box-sizing: border-box;
}

.full-player .playlist-sidebar.show {
    transform: translateX(-300px);
}

.full-player .playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.full-player .playlist-title {
    font-size: 18px;
    font-weight: 700;
}

.full-player .close-playlist {
    font-size: 22px;
    cursor: pointer;
}

.full-player .playlist-tabs {
    display: flex;
    overflow-x: auto;
    margin: 0 0 12px;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.full-player .playlist-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.full-player .playlist-tabs:empty {
    display: none;
}

.full-player .playlist-tab {
    padding: 5px 10px;
    background: #f0f0f0;
    color: inherit;
    border-radius: 15px;
    margin-right: 10px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.full-player .playlist-tab.active {
    background: #0282ad;
    color: #fff;
}

.full-player .playlist-items {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.full-player .playlist-items::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.full-player .playlist-item {
    padding: 10px 0;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.full-player .playlist-item.active {
    color: #0282ad;
    background: transparent;
}

.full-player .item-number {
    width: 28px;
    text-align: center;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.full-player .item-title {
    font-size: 14px;
}

.full-player .item-artist {
    font-size: 12px;
    color: #666;
}

.full-player .playlist-loading {
    padding: 24px 12px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

body.sdy-mode-minimal .full-player .playlist-sidebar,
.panel-player.is-bg-minimal .playlist-sidebar {
    background: #F6F1E7;
    color: #111111;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.12);
}

body.sdy-mode-minimal .full-player .playlist-header,
.panel-player.is-bg-minimal .playlist-header {
    border-bottom-color: rgba(17, 17, 17, 0.1);
}

body.sdy-mode-minimal .full-player .playlist-tab,
.panel-player.is-bg-minimal .playlist-tab {
    background: rgba(17, 17, 17, 0.08);
    color: #111111;
}

body.sdy-mode-minimal .full-player .playlist-item,
.panel-player.is-bg-minimal .playlist-item {
    background: rgba(17, 17, 17, 0.05);
}

body.sdy-mode-minimal .full-player .item-number,
body.sdy-mode-minimal .full-player .item-artist,
body.sdy-mode-minimal .full-player .playlist-loading,
.panel-player.is-bg-minimal .item-number,
.panel-player.is-bg-minimal .item-artist,
.panel-player.is-bg-minimal .playlist-loading {
    color: rgba(17, 17, 17, 0.55);
}

.full-player .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
    display: none;
}

.full-player .overlay.show {
    display: block;
}

.full-player-dim {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
}

.full-comment-overlay {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 21;
    max-height: none;
    display: none;
    flex-direction: column;
    background: #ffffff;
    color: #222;
    border-radius: 0;
    box-shadow: none;
}

.full-comment-overlay.is-open {
    display: flex;
}

.full-comment-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + var(--sdy-sat, env(safe-area-inset-top, 0px))) 16px 10px;
    border-bottom: 1px solid #eee;
    background: #ffffff;
}

.full-comment-title {
    font-size: 16px;
    font-weight: 600;
}

.full-comment-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    font-size: 20px;
    cursor: pointer;
}

.full-comment-list {
    flex: 1;
    min-height: 120px;
    overflow: auto;
    padding: 12px 16px;
}

.full-cmt-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.full-cmt-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.full-cmt-body {
    font-size: 14px;
    line-height: 1.5;
}

.full-cmt-reply {
    margin-left: 28px;
    margin-top: 8px;
    padding: 8px;
    background: #f7f7f7;
    border-radius: 8px;
}

.full-comment-input-wrap {
    flex-shrink: 0;
    padding: 10px 12px calc(10px + var(--sdy-sab));
    border-top: 1px solid #eee;
}

.full-cmt-textarea {
    width: 100%;
    min-height: 64px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 10px;
    box-sizing: border-box;
    resize: none;
}

.full-cmt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.full-cmt-send {
    border: 0;
    background: #8e2de2;
    color: #fff;
    border-radius: 16px;
    padding: 6px 14px;
    cursor: pointer;
}

.full-follow-rec-copy {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}

.full-follow-rec-actions {
    display: flex;
    gap: 12px;
}

.full-follow-rec-btn {
    flex: 1 1 0;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 15px;
    cursor: pointer;
}

.full-follow-rec-btn.is-primary {
    border-color: #059669;
    background: #059669;
    color: #fff;
}

.full-share-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 22;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px calc(20px + var(--sdy-sab));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.full-share-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.full-share-sheet__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.full-share-sheet__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.full-share-sheet__options {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    padding-bottom: 8px;
}

.full-share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 88px;
    max-width: none;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 12px 10px;
    cursor: pointer;
}


.full-share-opt__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.full-share-opt__icon.tingdan {
    background: linear-gradient(to right, #8e6a3a, #c4a36a);
}

.full-share-opt__icon.square {
    background: linear-gradient(to right, #5b6abf, #7b88d6);
}

.full-share-opt__icon.copy {
    background: linear-gradient(to right, #0282ad, #04a9e1);
}

.full-share-opt__icon.wechat {
    background: linear-gradient(to right, #07c160, #3ddc84);
}

.full-share-opt__icon.moments {
    background: linear-gradient(to right, #06ad56, #2bb673);
}

.full-share-opt__icon.doc {
    background: linear-gradient(to right, #c45c4a, #e07a66);
}

.full-share-opt__text {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

#full-study-sheet {
    min-height: calc(310px + var(--sdy-sab));
    max-height: min(96vh, calc(60vh * 1.6));
    overflow-x: visible;
    padding-left: 16px;
    padding-right: 16px;
}

#full-study-sheet .full-share-sheet__options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 204px;
    box-sizing: border-box;
}

#full-study-sheet .full-share-opt {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    overflow: visible;
    padding: 12px 0;
}

#full-study-sheet .full-share-opt__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: visible;
}

#full-study-sheet .full-share-opt__text {
    overflow: visible;
}

#full-share-sheet {
    min-height: calc(310px + var(--sdy-sab));
    max-height: min(96vh, calc(60vh * 1.6));
    overflow-x: visible;
    padding-left: 16px;
    padding-right: 16px;
}

#full-share-sheet .full-share-sheet__options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 204px;
    box-sizing: border-box;
}

#full-share-sheet .full-share-opt {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    overflow: visible;
    padding: 12px 0;
}

#full-share-sheet .full-share-opt__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: visible;
}

#full-share-sheet .full-share-opt__text {
    overflow: visible;
}

.sdy-doc-export {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    flex-direction: column;
    background: #eef2f7;
    color: #222;
}

.sdy-doc-export[hidden] {
    display: none;
}

.sdy-doc-export__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + var(--sdy-sat, env(safe-area-inset-top, 0px))) 16px 10px;
    border-bottom: 1px solid #e0e4ea;
    background: #fff;
}

.sdy-doc-export__title {
    font-size: 16px;
    font-weight: 600;
}

.sdy-doc-export__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    color: #666;
    line-height: 1;
}

.sdy-doc-export__toggles,
.sdy-doc-export__fonts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 0;
}

.sdy-doc-export__fonts {
    padding-top: 8px;
    padding-bottom: 8px;
}

.sdy-doc-chip {
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
}

.sdy-doc-chip.is-on {
    background: #e3f2fd;
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.sdy-doc-chip.is-wait,
.sdy-doc-chip:disabled {
    color: #999;
}

.sdy-doc-chip--font {
    position: relative;
    overflow: hidden;
}

.sdy-doc-chip__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #bbdefb;
}

.sdy-doc-chip__label {
    position: relative;
    z-index: 1;
}

.sdy-doc-chip.is-progress {
    cursor: default;
}

.sdy-doc-export__scroll {
    flex: 1;
    overflow: auto;
    padding: 0 16px 12px;
}

.sdy-doc-preview-slot {
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
}

.sdy-doc-zoom {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #2a2d33;
    overflow: auto;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sdy-doc-zoom * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sdy-doc-zoom[hidden] {
    display: none;
}

.sdy-doc-zoom__stage {
    box-sizing: border-box;
}

.sdy-doc-zoom__frame {
    position: relative;
    flex: 0 0 auto;
}

.sdy-doc-zoom .sdy-doc-paper {
    margin-top: 0;
    border: 0;
    box-shadow: none;
    aspect-ratio: auto;
}

.sdy-doc-paper {
    width: 100%;
    aspect-ratio: 210 / 297;
    margin-top: 12px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.sdy-doc-export__scroll .sdy-doc-paper {
    margin-top: 0;
    border: 0;
    box-shadow: none;
    aspect-ratio: auto;
    transform-origin: top left;
}

.sdy-doc-paper__header,
.sdy-doc-paper__footer {
    position: absolute;
    left: calc(100% * 16 / 210);
    right: calc(100% * 16 / 210);
    text-align: center;
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

.sdy-doc-paper__header {
    top: 0;
    height: calc(100% * 12 / 297);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

.sdy-doc-paper__footer {
    bottom: 0;
    height: calc(100% * 12 / 297);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 2px;
}

.sdy-doc-paper__body {
    position: absolute;
    top: calc(100% * 20 / 297);
    bottom: calc(100% * 20 / 297);
    left: calc(100% * 16 / 210);
    right: calc(100% * 16 / 210);
    overflow: hidden;
}

.sdy-doc-block {
    color: #222;
}

.sdy-doc-block--title {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 6px;
}

.sdy-doc-export[data-doc-font="song"] .sdy-doc-block--title,
.sdy-doc-export [data-doc-font="song"] .sdy-doc-block--title {
    font-weight: 600;
}

.sdy-doc-block--meta {
    font-size: 13px;
    text-align: center;
    color: #555;
    margin-bottom: 10px;
}

.sdy-doc-block--line {
    font-size: 18px;
    line-height: 1.8;
    margin: 2px 0;
    letter-spacing: 0;
}

.sdy-doc-block--yi {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 10px;
}

.sdy-doc-block--sec {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 6px;
}

.sdy-doc-block--p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 8px;
}

.sdy-doc-export .py-pair,
.sdy-doc-measure .py-pair,
.sdy-doc-offscreen .py-pair {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    line-height: 1.2;
    vertical-align: baseline;
    width: auto;
    min-width: 1.45em;
    max-width: none;
    margin: 0;
    padding: 0 0.08em;
    box-sizing: border-box;
}

.sdy-doc-export .py-pair--gap,
.sdy-doc-measure .py-pair--gap,
.sdy-doc-offscreen .py-pair--gap {
    width: 0.55em;
    min-width: 0.55em;
    max-width: 0.55em;
    padding: 0 0.04em;
}

.sdy-doc-export .py-top,
.sdy-doc-measure .py-top,
.sdy-doc-offscreen .py-top {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1.2;
    height: 1.2em;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.sdy-doc-export .sdy-doc-block--line .py-top,
.sdy-doc-measure .sdy-doc-block--line .py-top,
.sdy-doc-offscreen .sdy-doc-block--line .py-top {
    font-size: 11.2px;
    width: max-content;
}

.sdy-doc-export .py-char,
.sdy-doc-measure .py-char,
.sdy-doc-offscreen .py-char {
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.sdy-doc-measure {
    position: absolute;
    left: -9999px;
    top: 0;
    visibility: hidden;
    pointer-events: none;
}

.sdy-doc-empty {
    padding: 48px 16px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

.sdy-doc-export__foot {
    padding: 10px 16px calc(12px + var(--sdy-sab, 0px));
    background: #fff;
    border-top: 1px solid #e0e4ea;
}

.sdy-doc-export__foot.is-split {
    display: flex;
    gap: 10px;
}

.sdy-doc-export__foot.is-split .sdy-doc-export__make {
    flex: 1;
    width: auto;
}

.sdy-doc-export__make {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    background: #c9d0d8;
    color: #666;
}

.sdy-doc-export__make.is-ready {
    background: #1976d2;
    color: #fff;
}

.sdy-doc-offscreen {
    position: fixed;
    left: -10000px;
    top: 0;
    pointer-events: none;
}

.sdy-doc-offscreen .sdy-doc-paper {
    width: 100%;
    margin-top: 0;
}

html.sdy-native-player-ui #sdy-doc-export:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
}
