html.mobile-view,
body.mobile-view {
    background: radial-gradient(120% 140% at 50% 0%, #1b1d24 0%, #0d1018 70%, #05070c 100%);
    color: #f2f5f9;
    height: var(--mobile-vh, 100dvh);
    min-height: var(--mobile-vh, 100dvh);
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior: none;
}

body.mobile-view {
    margin: 0;
    min-height: var(--mobile-vh, 100dvh);
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: calc(env(safe-area-inset-top) + 12px) clamp(12px, 5vw, 24px) calc(env(safe-area-inset-bottom) + 20px);
    font-family: var(--font-main);
    background-attachment: fixed;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    --mobile-ring-inner-radius: clamp(280px, 70vw, 520px);
    --mobile-ring-feather: clamp(120px, 24vw, 280px);
    --mobile-ring-vertical-shift: calc((env(safe-area-inset-top, 0px) * 0.5) - 24px);
}

body.mobile-view .background-stage {
    display: none;
}

@media screen and (orientation: portrait) {
    html.mobile-view,
    body.mobile-view {
        background: #06070d;
    }

    body.mobile-view {
        --mobile-ring-inner-radius: clamp(260px, 64vw, 480px);
        --mobile-ring-feather: clamp(110px, 22vw, 260px);
        --mobile-ring-vertical-shift: calc((env(safe-area-inset-top, 0px) * 0.55) - 28px);
    }

body.mobile-view .background-stage {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: -4;
    background: 
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0px, transparent 1px) 0 0 / 3px 3px,
    radial-gradient(at 0% 0%, hsla(var(--mobile-bg-h), 20%, 15%, 0.8) 0%, transparent 50%),
    radial-gradient(at 100% 100%, hsla(var(--mobile-bg-h), 15%, 10%, 0.8) 0%, transparent 50%),
    #0a0c10;
    background-blend-mode: overlay;
    filter: blur(35px) saturate(90%) brightness(0.9) !important; 
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

    body.mobile-view .background-stage__layer {
    width: 120% !important;
    height: 120% !important;
    left: -10% !important;
    top: -10% !important;
    animation: background-pulse 10s infinite alternate ease-in-out;
}

@keyframes background-pulse {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.05) rotate(2deg); }
  }
}

body.mobile-view .container {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(148, 148, 148, 0.32));
    border-radius: 32px;
    padding: clamp(16px, 5vw, 28px);
    padding-top: calc(env(safe-area-inset-top) + clamp(18px, 6vw, 32px));
    padding-bottom: calc(env(safe-area-inset-bottom) + clamp(22px, 7vw, 32px));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 4vw, 24px);
    position: relative;
    overflow: visible;
    flex: 1 1 auto;
    min-height: calc(var(--mobile-vh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    box-sizing: border-box;
    bottom: calc(env(safe-area-inset-bottom) + 20px) !important;
}

body.mobile-view .container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(100% 100% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
    opacity: 0.6;
}

body.mobile-view .header,
body.mobile-view .theme-switch-wrapper,
body.mobile-view .warning {
    display: none !important;
}

body.mobile-view .mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(4px, 3vw, 12px);
    z-index: 2;
}

body.mobile-view .mobile-toolbar__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-align: center;
}

body.mobile-view .mobile-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.mobile-view .mobile-toolbar__button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f5f7fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.mobile-view .mobile-toolbar__button:active,
body.mobile-view .mobile-toolbar__button:focus-visible,
body.mobile-view .mobile-toolbar__button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

body.mobile-view .main-content {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 5vw, 28px);
    z-index: 1;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-height: 0;
}

body.mobile-view .cover-area {
    background: transparent;
    border: none;
    padding: 0;
    align-items: center;
    text-align: center;
    gap: clamp(16px, 4vw, 24px);
    position: relative;
}

body.mobile-view .mobile-turntable {
    margin-bottom: 0;
    position: relative;
    display: flex;
    justify-content: center;
}

body.mobile-view .mobile-turntable__platter {
    width: min(78vw, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 48% 50%, #1a1d25 0%, #05070c 65%, #000 100%);
    box-shadow: none !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: none !important;
    animation-play-state: paused;
}

body.mobile-view .mobile-turntable__platter::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 10%, transparent 45%),
        conic-gradient(from 90deg, rgba(255, 255, 255, 0.12) 0deg, transparent 45deg, transparent 180deg, rgba(255, 255, 255, 0.08) 225deg, transparent 360deg),
        radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

body.mobile-view .album-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(240px, 65vw, 300px) !important; 
    aspect-ratio: 1 / 1 !important; 
    transform: translate(-50%, -50%);
    border-radius: 50% !important;
    overflow: hidden !important; 
    height: auto !important; 
    padding: 0 !important; 
    margin: 0 auto 30px auto !important; 
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, 0.55),
        0 18px 38px rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

body.mobile-view .album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body.mobile-view .album-cover .placeholder {
    font-size: clamp(36px, 12vw, 48px);
    color: rgba(255, 255, 255, 0.9);
}

body.mobile-view .mobile-inline-lyrics {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: min(78vw, 320px);
    max-width: 100%;
    height: min(78vw, 320px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 18px clamp(14px, 4vw, 20px);
    gap: 12px;
    overflow: hidden;
    cursor: pointer;
}

body.mobile-view .mobile-inline-lyrics__hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.mobile-view .mobile-inline-lyrics__hint i {
    font-size: 0.7rem;
}

body.mobile-view .mobile-inline-lyrics__scroll {
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    margin-right: -6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.mobile-view .mobile-inline-lyrics__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

body.mobile-view .mobile-inline-lyrics__content > div {
    text-align: center;
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

body.mobile-view .mobile-inline-lyrics__content div[data-index] {
    text-align: center;
    font-size: clamp(0.82rem, 3.8vw, 0.98rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 10px;
    border-radius: 14px;
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    word-break: break-word;
}

body.mobile-view .mobile-inline-lyrics__content .current {
    color: var(--lyrics-highlight-text, #f3a25b);
    background: var(--lyrics-highlight-bg, rgba(243, 162, 91, 0.18));
    box-shadow: 0 12px 32px var(--lyrics-highlight-shadow, rgba(243, 162, 91, 0.32));
}

body.mobile-view .mobile-inline-lyrics__scroll::-webkit-scrollbar {
    width: 4px;
}

body.mobile-view .mobile-inline-lyrics__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

body.mobile-view.is-playing .mobile-turntable__platter {
    animation-play-state: running;
}

body.mobile-view.mobile-inline-lyrics-open .mobile-turntable {
    display: none;
}

body.mobile-view.mobile-inline-lyrics-open .mobile-inline-lyrics {
    display: flex;
}

body.mobile-view.mobile-inline-lyrics-open .mobile-inline-lyrics {
    cursor: pointer;
}

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

body.mobile-view .current-song-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.mobile-view .current-song-title {
    font-size: clamp(1.05rem, 5vw, 1.32rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

body.mobile-view .current-song-artist {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

body.mobile-view .mobile-quality-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 8px auto 0;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

body.mobile-view .mobile-quality-chip i {
    font-size: 0.75rem;
    opacity: 0.85;
}

body.mobile-view .mobile-quality-chip:focus-visible,
body.mobile-view .mobile-quality-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

body.mobile-view .mobile-quality-chip.active {
    background: linear-gradient(135deg, rgba(243, 109, 109, 0.95), rgba(243, 162, 91, 0.95));
    border-color: transparent;
    color: #1b1d24;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(243, 109, 109, 0.35);
}

body.mobile-view .controls {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    gap: clamp(16px, 5vw, 24px);
    align-items: stretch;
    margin-top: auto;
}

body.mobile-view #loadOnlineBtn {
    display: none;
}

body.mobile-view .progress-container {
    order: 1;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    row-gap: 8px;
    column-gap: 10px;
    align-items: center;
}

body.mobile-view .progress-container input[type="range"] {
    grid-column: 1 / span 3;
    grid-row: 1;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right,
        rgba(243, 162, 91, 0.95) 0%,
        rgba(243, 162, 91, 0.95) var(--progress, 0%),
        rgba(255, 255, 255, 0.15) var(--progress, 0%),
        rgba(255, 255, 255, 0.15) 100%);
}

body.mobile-view .progress-container span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

body.mobile-view .progress-container span:first-of-type {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}

body.mobile-view .progress-container span:last-of-type {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
}

body.mobile-view .transport-controls {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(12px, 5vw, 18px);
}

body.mobile-view .transport-button {
    width: clamp(46px, 14vw, 54px);
    height: clamp(46px, 14vw, 54px);
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

body.mobile-view .play-mode-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin-right: 0;
}

body.mobile-view .transport-button i {
    font-size: 1.05rem;
}

body.mobile-view .transport-button--play {
    width: clamp(60px, 18vw, 70px);
    height: clamp(60px, 18vw, 70px);
    background: linear-gradient(135deg, #f36d6d 0%, #f3a25b 100%);
    color: #1f1b1d;
    box-shadow: 0 18px 36px rgba(243, 117, 109, 0.45);
}

body.mobile-view .transport-button:active {
    transform: scale(0.94);
}

body.mobile-view #mobileQueueToggle {
    display: inline-flex;
}

body.mobile-view .audio-tools {
    display: none;
}

body.mobile-view .player-quality {
    flex-shrink: 0;
}

body.mobile-view .player-quality-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

body.mobile-view .player-quality-menu {
    z-index: 5000;
    pointer-events: auto;
}

body.mobile-view .volume-container {
    display: none;
}

body.mobile-view input[type="range"]::-webkit-slider-thumb,
body.mobile-view input[type="range"]::-moz-range-thumb {
    background: #f3a25b;
    border-color: rgba(255, 255, 255, 0.85);
}

body.mobile-view .mobile-overlay-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 40;
}

body.mobile-view.mobile-search-open .mobile-overlay-scrim,
body.mobile-view.mobile-panel-open .mobile-overlay-scrim {
    opacity: 1;
}

body.mobile-view .mobile-panel {
    position: fixed;
    left: 50%;
    bottom: 20px; 
    width: calc(100% - 32px); 
    max-width: 400px;
    transform: translate(-50%, 120%); 
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(40, 52, 75, 0.45) 35%, 
        rgba(24, 29, 41, 0.55) 100%) !important;
    backdrop-filter: blur(15px) saturate(180%) brightness(0.6) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) brightness(0.6) !important;
    border-radius: 32px !important; 
    min-height: 76dvh !important;
    max-height: 76dvh !important;
    padding: 20px clamp(18px, 6vw, 28px) 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 400;
    pointer-events: auto;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.85) !important;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

body.mobile-view.mobile-panel-open .mobile-panel {
    transform: translate(-50%, 0);
}
body.mobile-view .mobile-panel .playlist-item,
body.mobile-view .mobile-panel .mobile-panel-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.mobile-view .mobile-panel-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    color: #ffffff;
}

body.mobile-view .mobile-panel-handle {
    grid-column: 1 / -1;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 auto 10px;
}

body.mobile-view .mobile-panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

body.mobile-view .mobile-panel-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

body.mobile-view .mobile-panel-action-btn,
body.mobile-view .mobile-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body.mobile-view .mobile-panel .mobile-close-btn {
    display: none !important;
}

body.mobile-view .mobile-panel-action-btn i,
body.mobile-view .mobile-close-btn i {
    pointer-events: none;
}

body.mobile-view .mobile-panel-action-btn:active,
body.mobile-view .mobile-close-btn:active {
    transform: translateY(1px);
}

body.mobile-view .mobile-panel-action-btn:focus-visible,
body.mobile-view .mobile-close-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

body.mobile-view .mobile-panel-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

body.mobile-view .mobile-panel-clear-btn {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

body.mobile-view .mobile-panel-clear-btn:not([hidden]):hover,
body.mobile-view .mobile-panel-clear-btn:not([hidden]):focus-visible {
    color: #ffd2b3;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

body.mobile-view .mobile-panel-clear-btn[hidden] {
    display: none !important;
}


body.mobile-view .playlist,
body.mobile-view .lyrics {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
}

body.mobile-view .playlist.active,
body.mobile-view .lyrics.active {
    display: flex;
}

body.mobile-view .playlist-scroll,
body.mobile-view .lyrics-scroll {
    max-height: 100%;
    padding-right: 6px;
    margin-right: -6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
}

body.mobile-view .playlist-items {
    display: flex;
    flex-direction: column;
}

body.mobile-view .playlist-items .playlist-item {
    padding: 12px 56px 12px 18px;
    white-space: normal;
    line-height: 1.35;
    min-height: 0;
    margin-bottom: 4px;
}

body.mobile-view .playlist-items .playlist-item:focus-visible {
    outline: 2px solid rgba(243, 162, 91, 0.85);
    outline-offset: 2px;
}

body.mobile-view .playlist-items .playlist-item:hover {
    transform: none;
}

body.mobile-view .playlist-items .playlist-item .playlist-item-download,
body.mobile-view .playlist-items .playlist-item .playlist-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

body.mobile-view .playlist-items .playlist-item .playlist-item-download {
    right: 52px;
}

body.mobile-view .playlist-items .playlist-item .playlist-item-remove {
    right: 14px;
}

body.mobile-view .playlist-items .playlist-item {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f2f4f7;
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto;
}

body.mobile-view .playlist-items .playlist-item:last-child {
    margin-bottom: 0;
}

body.mobile-view .playlist-items .playlist-item:hover,
body.mobile-view .playlist-items .playlist-item.current {
    background: rgba(243, 162, 91, 0.25);
    color: #ffffff;
}

body.mobile-view .lyrics {
    color: rgba(255, 255, 255, 0.78);
}

body.mobile-view .lyrics-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
}

body.mobile-view .lyrics-scroll::-webkit-scrollbar {
    width: 4px;
}

body.mobile-view .lyrics-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

body.mobile-view .playlist .clear-playlist-btn {
    display: none;
}



/* ======================================================================== */
/* 📱 🌌 【 卢总设计师至高主权 ➔ 手机搜索结果歌曲 UI 独立脱钩（不跟随背景同步）终焉大合龙 】 */
/* ======================================================================== */

body.mobile-view .search-area {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    
    /* 🎨 这是鲁高端的背景渐变色，包含青绿与蓝调 ➔ 歌曲卡片即将与它彻底绝缘 ！！！ */
    background: radial-gradient(circle at 50% -10%, 
        rgba(0, 255, 204, 0.12) 0%, 
        rgba(30, 40, 60, 0.7) 50%, 
        rgba(8, 10, 15, 0.95) 100%) !important;
    backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 160;
    padding: calc(env(safe-area-inset-top) + 4px) 14px calc(env(safe-area-inset-bottom) + 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
}

body.mobile-view.mobile-search-open .search-area {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.mobile-view .search-area .mobile-close-btn {
    align-self: flex-end;
    margin-bottom: 2px;
    height: 32px !important;
    width: 32px !important;
}

body.mobile-view .search-area .search-container,
body.mobile-view .search-area .search-results {
    width: min(100%, 340px);
    box-sizing: border-box;
    align-self: center;
}

body.mobile-view .search-results-list {
    width: min(100%, 340px);
    margin: 0 auto;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 340px);
    align-self: center;
}

body.mobile-view .search-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px; 
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px; 
}

body.mobile-view .search-input {
    color: #ffffff;
    width: 100%;
    height: 34px !important;
}

body.mobile-view .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.mobile-view .source-select-wrapper,
body.mobile-view .search-btn {
    width: 100%;
}

body.mobile-view .source-select-btn,
body.mobile-view .search-btn {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    height: 32px !important; 
}

body.mobile-view .search-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

body.mobile-view .search-results {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    width: min(100%, 340px);
    margin: 0 auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

body.mobile-view .search-area {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -10%, 
        rgba(0, 255, 204, 0.12) 0%, 
        rgba(30, 40, 60, 0.7) 50%, 
        rgba(8, 10, 15, 0.95) 100%) !important;
    backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
    
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 160;
    padding: calc(env(safe-area-inset-top) + 4px) 14px calc(env(safe-area-inset-bottom) + 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
}

body.mobile-view.mobile-search-open .search-area {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.mobile-view .search-area .mobile-close-btn {
    align-self: flex-end;
    margin-bottom: 2px;
    height: 32px !important;
    width: 32px !important;
}

body.mobile-view .search-area .search-container,
body.mobile-view .search-area .search-results {
    width: min(100%, 340px);
    box-sizing: border-box;
    align-self: center;
}

body.mobile-view .search-results-list {
    width: min(100%, 340px);
    margin: 0 auto;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 340px);
    align-self: center;
}

body.mobile-view .search-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px; 
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px; 
}

body.mobile-view .search-input {
    color: #ffffff;
    width: 100%;
    height: 34px !important;
}

body.mobile-view .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.mobile-view .source-select-wrapper,
body.mobile-view .search-btn {
    width: 100%;
}

body.mobile-view .source-select-btn,
body.mobile-view .search-btn {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    height: 32px !important; 
}

body.mobile-view .search-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

body.mobile-view .search-results {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    width: min(100%, 340px);
    margin: 0 auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

body.mobile-view #notification {
    top: 18px;
    left: 50%;
    transform: translate(-50%, -200%);
    opacity: 0;
    pointer-events: none;
}

body.mobile-view #notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

body.mobile-view .debug-info {
    display: none;
}

body.mobile-view.mobile-search-open .search-area {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.mobile-view .search-area .mobile-close-btn {
    align-self: flex-end;
}

body.mobile-view .search-area .search-container,
body.mobile-view .search-area .search-results {
    width: min(100%, 340px);
    box-sizing: border-box;
    align-self: center;
}

body.mobile-view .search-results-toolbar {
    width: min(100%, 340px);
    margin: 0 auto;
    padding-top: 2px;
    display: flex !important;
    justify-content: center !important; 
}

body.mobile-view .import-selected-btn {
    width: auto !important; 
    padding: 0 16px !important; 
    height: 28px !important; 
    font-size: 0.8rem !important; 
    border-radius: 10px !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
}

body.mobile-view .search-results-list {
    width: min(100%, 340px);
    margin: 0 auto;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 360px);
    align-self: center;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 340px);
    align-self: center;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 340px);
    align-self: center;
}

body.mobile-view .search-area > :not(.mobile-close-btn) {
    width: min(100%, 340px);
    align-self: center;
}

body.mobile-view .search-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.mobile-view .search-input {
    color: #ffffff;
    width: 100%;
}

body.mobile-view .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.mobile-view .source-select-wrapper,
body.mobile-view .search-btn {
    width: 100%;
}

body.mobile-view .source-select-btn,
body.mobile-view .search-btn {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
}

body.mobile-view .search-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
}

body.mobile-view .search-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    width: min(100%, 340px);
    margin: 0 auto;
}

body.mobile-view #notification {
    top: 18px;
    left: 50%;
    transform: translate(-50%, -200%);
    opacity: 0;
    pointer-events: none;
}

body.mobile-view #notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

body.mobile-view .debug-info {
    display: none;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    outline: none !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:active {
    transform: scale(0.9) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(1) {
    color: #00f2fe !important;
    border-color: rgba(0, 242, 254, 0.25) !important;
    background: rgba(0, 242, 254, 0.06) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.08) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(1):active {
    background: rgba(0, 242, 254, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(2) {
    color: #00a2ff !important;
    border-color: rgba(0, 162, 255, 0.25) !important;
    background: rgba(0, 162, 255, 0.06) !important;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.08) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(2):active {
    background: rgba(0, 162, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.4) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(3) {
    color: #ff4d4f !important;
    border-color: rgba(255, 77, 79, 0.25) !important;
    background: rgba(255, 77, 79, 0.06) !important;
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.08) !important;
}
body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(3):active {
    background: rgba(255, 77, 79, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 77, 79, 0.4) !important;
}

body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(4) {
    color: #ebd834 !important;
    border-color: rgba(235, 216, 52, 0.25) !important;
    background: rgba(235, 216, 52, 0.06) !important;
    box-shadow: 0 0 10px rgba(235, 216, 52, 0.08) !important;
}
body.mobile-view .mobile-panel-actions .mobile-action-btn:nth-child(4):active {
    background: rgba(235, 216, 52, 0.2) !important;
    box-shadow: 0 0 15px rgba(235, 216, 52, 0.4) !important;
}