/* Desktop-only overrides for mobile UI chrome */
html.desktop-view .mobile-status-bar,
html.desktop-view .mobile-toolbar,
html.desktop-view .mobile-panel-header,
html.desktop-view .mobile-overlay-scrim,
html.desktop-view .mobile-quality-chip,
html.desktop-view .mobile-close-btn,
html.desktop-view .mobile-turntable__tonearm,
html.desktop-view .mobile-turntable__label,
html.desktop-view .mobile-inline-lyrics {
    display: none;
}

/* Remove circular decoration from playlist action buttons on desktop */
html.desktop-view .playlist-action-btn {
    width: auto;
    height: auto;
    padding: 6px;
    border: none;
    border-radius: 6px;
    background: none;
    box-shadow: none;
    color: var(--text-secondary-color);
    transition: color 0.2s ease;
}

html.desktop-view body.dark-mode .playlist-action-btn {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-secondary-color);
}

html.desktop-view .playlist-action-btn:hover:not(:disabled),
html.desktop-view .playlist-action-btn:focus-visible:not(:disabled) {
    transform: none;
    box-shadow: none;
    filter: none;
    border: none;
    color: var(--primary-color);
}

html.desktop-view .playlist-action-btn--clear {
    color: rgba(231, 76, 60, 0.85);
}

html.desktop-view .playlist-action-btn--clear:hover:not(:disabled),
html.desktop-view .playlist-action-btn--clear:focus-visible:not(:disabled) {
    color: var(--warning-color);
}

html.desktop-view .playlist-action-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html.desktop-view .playlist-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 桌面端：导入已选按钮 - 独立定位，不影响搜索栏布局 ===== */

/* 默认隐藏，仅在搜索模式下显示 */
html.desktop-view .search-results-toolbar {
    display: none;
}

/* search-controls-wrapper 已有 position:relative，toolbar absolute 定位以它为锚 */
html.desktop-view .container.search-mode .search-results-toolbar {
    display: block;
    position: absolute;      /* 脱离 flex 流，不占任何宽度 */
    top: 100%;               /* 紧贴 wrapper 底部 */
    margin-top: 46px;        /* 下移到原本的相对位置 (15px + 15px + 16px) */
    right: 0;
    z-index: 10;
    pointer-events: auto;
    /* 重置移动端样式 */
    width: auto;
    max-width: none;
    align-self: auto;
    flex-shrink: unset;
    padding: 0;
}

html.desktop-view .search-results-toolbar .import-dropdown {
    width: auto;             /* 重置移动端 width:100% */
}

html.desktop-view .search-results-toolbar .import-selected-btn {
    width: auto;             /* 重置移动端 width:100% */
    justify-content: unset;  /* 重置移动端居中 */
    border-radius: 999px;    /* 桌面端圆角胶囊 */
    padding: 8px 16px;
    font-size: 14px;
}

/* 搜索结果列表留出顶部空间，避免第一条结果被按钮遮挡 */
html.desktop-view .search-results-list {
    padding-top: 52px;
}

html.desktop-view .search-results {
    gap: 0;
}
