#musicView {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 8px 0 18px;
}

#musicView.music-view {
    box-sizing: border-box;
}

body.music-mode .content,
body.music-mode .main-content {
    overflow-x: visible !important;
}

#musicView .music-deck-frame.wrapper {
    width: min(100%, 900px);
    max-width: 900px;
    padding: 0 clamp(10px, 2vw, 18px);
    box-sizing: border-box;
    gap: 0;
}

#musicView #audioContainer.music-deck-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    container-type: inline-size;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    gap: 0;
}

#musicView #audioContainer.music-deck-card::before {
    content: none;
}

#musicView #audioContainer.music-deck-card::after {
    content: none;
}

#musicView .music-deck-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: start;
    gap: 0;
    margin-bottom: 10px;
}

#musicView .music-deck-brand {
    display: none;
}

#musicView .music-deck-kicker {
    display: inline-block;
    font-family: 'Orbitron', 'Roboto Mono', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #86dbff;
}

#musicView .music-deck-title {
    margin: 0;
    font-family: 'Orbitron', 'Roboto Mono', monospace;
    font-size: clamp(1.55rem, 3.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.02;
    color: #f7fbff;
    text-shadow: 0 0 18px rgba(134, 219, 255, 0.16);
}

#musicView .music-deck-copy {
    max-width: 54ch;
    margin: 0;
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(221, 231, 241, 0.72);
}

#musicView .music-deck-topbar > #activePlaylistInfo.active-playlist-info {
    position: static;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    justify-self: start;
    align-self: start;
    min-height: unset;
    margin: 0;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(7, 12, 20, 0.54);
    border: 1px solid rgba(133, 160, 193, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-shadow: none;
    pointer-events: none;
}

#musicView .active-playlist-label {
    font-family: 'Orbitron', 'Roboto Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #89deff;
}

#musicView .active-playlist-name {
    max-width: 22ch;
    color: #fff1c2;
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.15;
}

#musicView .music-deck-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(10px, 2vw, 16px);
    align-items: start;
}

#musicView #audioContainer.music-deck-card .player-controls-centered {
    width: 100%;
    margin-top: 0;
    align-items: stretch;
}

#musicView .music-control-cluster {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: clamp(12px, 1.8vw, 16px);
    box-sizing: border-box;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(138, 161, 191, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 22px rgba(0, 0, 0, 0.16);
}

@container (min-width: 760px) {
    #musicView .music-deck-stage {
        grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.95fr);
    }
}

@container (max-width: 360px) {
    #musicView .music-control-cluster {
        gap: 10px;
        padding: 10px;
    }

    #musicView .progress-flex-item {
        align-items: stretch;
        gap: 8px;
    }

    #musicView #volumeSlider {
        flex: 1 1 auto;
    }

    #musicView .rewind-hint {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.72rem;
        text-align: center;
    }

    #musicView .player-buttons-row {
        grid-template-columns: minmax(0, 1.15fr) repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    #musicView .control-button {
        min-width: 0;
        min-height: 60px;
        padding: 8px 4px;
        border-radius: 16px;
    }

    #musicView #playPauseButton {
        min-height: 66px;
    }

    #musicView .control-button svg {
        width: 26px;
        height: 26px;
    }

    #musicView .player-buttons-row .control-button-label {
        font-size: 0.62rem;
        letter-spacing: 0.01em;
        line-height: 1.05;
    }
}

#musicView .progress-row {
    width: 100%;
}

#musicView .progress-flex-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

#musicView #volumeSlider {
    flex: 1 1 220px;
    width: 100%;
    max-width: none;
    accent-color: #78dfff;
    background: transparent;
}

#musicView #volumeSlider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(111, 223, 255, 0.34), rgba(255, 185, 90, 0.48));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#musicView #volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 2px solid #08111a;
    border-radius: 50%;
    background: linear-gradient(180deg, #fbfdff, #7be4ff);
    box-shadow: 0 0 0 4px rgba(123, 228, 255, 0.18);
}

#musicView #volumeSlider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(111, 223, 255, 0.34), rgba(255, 185, 90, 0.48));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#musicView #volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #08111a;
    border-radius: 50%;
    background: linear-gradient(180deg, #fbfdff, #7be4ff);
    box-shadow: 0 0 0 4px rgba(123, 228, 255, 0.18);
}

#musicView .rewind-hint {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 162, 194, 0.14);
    color: rgba(223, 231, 241, 0.74);
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.84rem;
    line-height: 1.2;
    text-shadow: none;
}

#musicView .rewind-hint-icon {
    color: #ffbe67;
}

#musicView .player-buttons-row {
    display: grid;
    grid-template-columns: minmax(96px, 1.2fr) repeat(4, minmax(74px, 1fr));
    gap: 12px;
    width: 100%;
}

#musicView .control-button {
    min-height: 78px;
    padding: 12px 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(146, 171, 200, 0.18);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #f0f7ff;
}

#musicView .control-button:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

#musicView .control-button:disabled {
    opacity: 0.42;
    filter: saturate(0.72);
}

#musicView #playPauseButton {
    min-height: 84px;
    background: linear-gradient(135deg, rgba(102, 220, 255, 0.2), rgba(255, 190, 95, 0.16));
}

#musicView .control-button svg {
    width: 34px;
    height: 34px;
}

#musicView .control-button svg [fill="#222"] {
    fill: #eff7ff;
}

#musicView .control-button svg [stroke="#222"] {
    stroke: #eff7ff;
}

#musicView .control-button-label {
    color: rgba(223, 232, 243, 0.82);
    text-shadow: none;
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

body.music-mode #musicView .music-control-cluster {
    gap: 10px;
    padding: 10px;
}

body.music-mode #musicView .progress-flex-item {
    align-items: stretch;
    gap: 8px;
}

body.music-mode #musicView #volumeSlider {
    flex: 1 1 auto;
    min-width: 0;
}

body.music-mode #musicView .rewind-hint {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.72rem;
    text-align: center;
}

body.music-mode #musicView .player-buttons-row {
    grid-template-columns: minmax(0, 1.15fr) repeat(4, minmax(0, 1fr));
    gap: 6px;
}

body.music-mode #musicView .control-button {
    min-width: 0;
    min-height: 60px;
    padding: 8px 4px;
    border-radius: 16px;
}

body.music-mode #musicView #playPauseButton {
    min-height: 66px;
}

body.music-mode #musicView .control-button svg {
    width: 26px;
    height: 26px;
}

body.music-mode #musicView .player-buttons-row .control-button-label {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

#musicView #currentTrackInfoWrapper {
    width: 100%;
    margin-top: 0;
}

#musicView #currentTrackInfo {
    display: grid;
    gap: 0;
    height: 100%;
    margin: 0;
    padding: clamp(10px, 1.6vw, 14px);
    box-sizing: border-box;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 14, 22, 0.74), rgba(8, 13, 21, 0.54));
    border: 1px solid rgba(133, 158, 190, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 22px rgba(0, 0, 0, 0.14);
    text-align: left;
}

#musicView #currentTrackInfo .track-row {
    margin: 0;
    padding: 7px 0;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#musicView #currentTrackInfo .track-row:last-child {
    border-bottom: 0;
}

#musicView #currentTrackInfo .track-row--song,
#musicView #currentTrackInfo .track-row--artist,
#musicView #currentTrackInfo .track-row--album {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
}

#musicView .scrolling-text-container {
    width: 100%;
    height: 1.35em;
}

#musicView .track-label.song-label,
#musicView .track-label.artist-label,
#musicView .track-label.album-label {
    color: #96e0ff !important;
    font-family: 'Orbitron', 'Roboto Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#musicView #trackTitle.scrolling-text,
#musicView #trackArtist.scrolling-text.artist-info,
#musicView #trackAlbum.track-static-text.album-info {
    color: #f8fbff !important;
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: none;
}

#musicView #currentTrackInfo .track-row--engagement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

#musicView #likeButton {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(140, 164, 197, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#musicView .this-track-label {
    color: #ffd48a !important;
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#musicView .track-row-spacer {
    display: none;
}

#musicView #likeCount {
    min-width: 2.6em !important;
    color: #fff0bb !important;
    font-size: 0.9rem;
    text-align: right;
    text-shadow: none;
}

#musicView #currentTrackInfo .track-row--status {
    min-height: 1.1em;
    padding-top: 2px;
}

#musicView #likeStatusText {
    color: rgba(221, 231, 241, 0.7);
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-style: normal;
}

body.music-mode #vuLeft .bar,
body.music-mode #vuRight .bar {
    width: 6px;
    height: 38px;
    margin: 0 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #74f2ff 0%, #35bcff 54%, #ffb65f 100%);
    box-shadow:
        0 0 10px rgba(110, 231, 255, 0.55),
        0 0 20px rgba(53, 188, 255, 0.24);
}

body.music-mode .music-player-shell {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 320px) 70px;
    align-items: center;
    column-gap: 12px;
    max-width: 484px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

body.music-mode .music-player-shell > #audioContainer {
    position: relative;
    grid-column: 2;
    min-width: 0;
    z-index: 20;
}

body.music-mode #vuLeftSidebar,
body.music-mode #vuRightSidebar {
    top: -126px !important;
    width: 84px;
    padding: 18px 14px;
    z-index: 30;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.9), rgba(16, 24, 38, 0.74));
    border: 1px solid rgba(140, 165, 196, 0.18);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

body.music-mode .music-player-shell > #vuLeftSidebar.music-player-vu,
body.music-mode .music-player-shell > #vuRightSidebar.music-player-vu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: 70px;
    padding: 16px 12px;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    z-index: 32;
    border-color: rgba(112, 231, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(7, 16, 30, 0.9), rgba(10, 20, 38, 0.82)),
        repeating-linear-gradient(90deg, rgba(112, 231, 255, 0.08) 0 8px, rgba(0, 0, 0, 0) 8px 16px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 18px 34px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(112, 231, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.music-mode .music-player-shell > #vuLeftSidebar.music-player-vu {
    grid-column: 1;
    transform: none !important;
}

body.music-mode .music-player-shell > #vuRightSidebar.music-player-vu {
    grid-column: 3;
    transform: none !important;
}

body.music-mode .sidebar-vu {
    height: 270px;
    margin-top: 0;
    padding: 0;
    gap: 7px;
    align-items: stretch;
}

body.music-mode .sidebar-vu-meter {
    width: 6px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(116, 242, 255, 0.98) 0%, rgba(53, 188, 255, 0.88) 45%, rgba(18, 50, 80, 0.5) 100%);
    box-shadow:
        0 0 10px rgba(110, 231, 255, 0.72),
        0 0 22px rgba(53, 188, 255, 0.38);
    animation: none;
}

@media (max-width: 980px) {
    #musicView {
        max-width: 760px;
    }

    #musicView .music-deck-topbar > #activePlaylistInfo.active-playlist-info {
        justify-content: flex-start;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        gap: 7px;
        padding: 6px 9px;
    }

    #musicView .active-playlist-name {
        max-width: 18ch;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    body.music-mode .music-player-shell {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        max-width: 400px;
    }

    body.music-mode .music-player-shell > #audioContainer {
        grid-column: 1;
    }
}

@media (max-width: 700px) {
    #musicView .music-deck-frame.wrapper {
        padding: 0 8px;
    }

    #musicView #audioContainer.music-deck-card {
        padding: 18px;
        border-radius: 22px;
    }

    #musicView .music-deck-title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    #musicView .player-buttons-row {
        grid-template-columns: repeat(3, minmax(78px, 1fr));
    }

    #musicView #playPauseButton {
        grid-column: span 3;
    }

    #musicView #currentTrackInfo .track-row--song,
    #musicView #currentTrackInfo .track-row--artist,
    #musicView #currentTrackInfo .track-row--album {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #musicView #currentTrackInfo .track-row--engagement {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (max-width: 520px) {
    #musicView .progress-flex-item {
        align-items: stretch;
    }

    #musicView .rewind-hint {
        width: 100%;
        text-align: center;
    }

    #musicView .music-deck-topbar > #activePlaylistInfo.active-playlist-info {
        width: 100%;
        gap: 6px;
        padding: 6px 9px;
        flex-wrap: wrap;
    }

    #musicView .active-playlist-label {
        font-size: 0.56rem;
    }

    #musicView .active-playlist-name {
        max-width: 100%;
        font-size: 0.78rem;
    }
}