html,
body {
    max-width: 100%;
}

body[data-mobile="1"] {
    overflow-x: hidden;
    touch-action: pan-y;
}

body[data-mobile="1"] .app-shell {
    display: block;
    max-width: 100%;
    overflow-x: hidden;
}

body[data-mobile="1"] .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    border-radius: 22px 22px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    z-index: 80;
}

body[data-mobile="1"] .logo-lg,
body[data-mobile="1"] .sidebar .logo.logo-lg,
body[data-mobile="1"] .sidebar .sidebar-logo-image,
body[data-mobile="1"] .side-group-title,
body[data-mobile="1"] .sidebar-user {
    display: none !important;
}

body[data-mobile="1"] .side-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

body[data-mobile="1"] .side-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1;
}

body[data-mobile="1"] .mobile-nav-icon {
    display: inline-flex;
    width: 18px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

body[data-mobile="1"] .content-shell {
    min-height: 100dvh;
    padding-bottom: 214px;
    overflow-x: hidden;
}

body[data-mobile="1"] .topbar {
    display: none;
}

body[data-mobile="1"] .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
}

body[data-mobile="1"] .list-row,
body[data-mobile="1"] .card,
body[data-mobile="1"] .track-list-main,
body[data-mobile="1"] .track-list-meta,
body[data-mobile="1"] .track-list-item,
body[data-mobile="1"] .inline-tools,
body[data-mobile="1"] .hero,
body[data-mobile="1"] .search-section {
    max-width: 100%;
    min-width: 0;
}

body[data-mobile="1"] .track-list-meta h3,
body[data-mobile="1"] .track-list-meta p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-mobile="1"] .btn {
    max-width: 100%;
}

body[data-mobile="1"] .player {
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    bottom: calc(86px + env(safe-area-inset-bottom));
    border-radius: 14px;
    padding: 8px 10px 10px;
    gap: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "title menu cover"
        "controls controls controls"
        "seek seek seek";
    align-items: center;
}

body[data-mobile="1"] .player.player-hidden {
    display: none !important;
}

body[data-mobile="1"] .player-range,
body[data-mobile="1"] .player-volume-wrap {
    width: 100%;
}

body[data-mobile="1"] .player-close {
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    font-size: 13px;
    z-index: 2;
}

body[data-mobile="1"] .player img#playerCover {
    grid-area: cover;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    justify-self: end;
}

body[data-mobile="1"] .player-info {
    grid-area: title;
    min-width: 0;
    padding-left: 30px;
    padding-right: 2px;
}

body[data-mobile="1"] .player-info strong,
body[data-mobile="1"] .player-info #playerArtist {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-mobile="1"] .player-title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

body[data-mobile="1"] .player-title-row strong {
    flex: 1;
    min-width: 0;
}

body[data-mobile="1"] .player-bitrate {
    font-size: 11px;
}

body[data-mobile="1"] .player-eq {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
    margin-right: 40px;
    min-width: 22px;
    height: 18px;
    opacity: 1;
}

body[data-mobile="1"] .player-eq span {
    width: 2px;
}

body[data-mobile="1"] .player-actions {
    grid-area: menu;
    justify-self: end;
}

body[data-mobile="1"] .player-menu {
    z-index: 220;
}

body[data-mobile="1"] .player-eq-panel {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(146px + env(safe-area-inset-bottom));
    transform: none;
    z-index: 230;
}

body[data-mobile="1"] .player-eq-head h3 {
    font-size: 20px;
}

body[data-mobile="1"] .player-eq-scale {
    width: 42px;
    height: 154px;
}

body[data-mobile="1"] .player-eq-sliders {
    grid-template-columns: repeat(11, minmax(24px, 1fr));
    gap: 5px;
}

body[data-mobile="1"] .player-eq-slider {
    width: 16px;
    height: 136px;
}

body[data-mobile="1"] .player-eq-band {
    font-size: 11px;
}

body[data-mobile="1"] .player-controls {
    grid-area: controls;
    justify-content: flex-start;
    gap: 6px;
}

body[data-mobile="1"] .player-range {
    grid-area: seek;
}

body[data-mobile="1"] .player-volume-wrap {
    display: none;
}

body[data-mobile="1"] .mobile-full-player {
    position: fixed;
    inset: 0;
    z-index: 260;
}

body[data-mobile="1"] .mobile-full-player-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 18, 0.86);
    backdrop-filter: blur(8px);
}

body[data-mobile="1"] .mobile-full-player-card {
    position: absolute;
    inset: 16px 12px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top, rgba(122, 140, 255, 0.24), rgba(10, 14, 26, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 14px 16px;
}

body[data-mobile="1"] .mobile-full-minimize {
    align-self: flex-start;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
}

body[data-mobile="1"] .mobile-full-cover {
    width: min(76vw, 340px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body[data-mobile="1"] .mobile-full-meta {
    width: 100%;
    text-align: center;
}

body[data-mobile="1"] .mobile-full-meta h3 {
    margin: 0;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-mobile="1"] .mobile-full-meta .artist-link {
    margin-top: 4px;
    display: inline-flex;
    max-width: 100%;
}

body[data-mobile="1"] .mobile-full-meta .artist-link span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-mobile="1"] .mobile-full-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body[data-mobile="1"] .mobile-full-controls .player-mini {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

body[data-mobile="1"] .mobile-full-seek {
    width: 100%;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    gap: 8px;
    align-items: center;
}

body[data-mobile="1"] .mobile-full-seek span {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

body[data-mobile="1"] .mobile-full-seek input {
    width: 100%;
    accent-color: #7a8cff;
}

body[data-mobile="1"] .tracks-grid,
body[data-mobile="1"] .playlist-grid,
body[data-mobile="1"] .artists-grid {
    grid-template-columns: 1fr;
}
