/* ----------------------------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------------------------- */
:root {
    --back-gradient: linear-gradient(
      180deg,
      rgba(62, 67, 76, 0.25) 0%,
      rgba(30, 32, 36, 0.25) 100%
    );
    --front-gradient: linear-gradient(
      180deg,
      rgba(49, 56, 61, 0.25) 0%,
      rgba(24, 25, 29, 0.25) 100%
    );
    --header-button-wrapper-gradient: linear-gradient(
      135deg,
      rgba(43, 47, 52, 0.35) 0%,
      rgba(49, 56, 61, 0.35) 100%
    );
    --header-button-wrapper-neu-shadows: 0.2vw 0.2vw 0.7vw #16191b,
      -0.2vw -0.2vw 0.7vw #4c575f;
    --header-pressed-wrapper-gradient: linear-gradient(
      135deg,
      rgba(218, 77, 12, 0.5) 0%,
      rgba(180, 54, 19, 0.5) 100%
    );
    --header-normal-button-front-gradient: linear-gradient(
      135deg,
      rgba(46, 52, 57, 0.5) 0%,
      rgba(27, 30, 34, 0.5) 100%
    );
    --header-pressed-button-front-gradient: linear-gradient(
      135deg,
      rgba(222, 57, 19, 0.5) 0%,
      rgba(234, 81, 14, 0.5) 100%
    );
    --header-pressed-button-inset-shadows: inset 0.75vw 0.75vw 0.75vw
      rgba(0, 0, 0, 0.3);
    --main-cover-wrapper-gradient: linear-gradient(
      135deg,
      rgba(31, 36, 40, 0.5) 0%,
      rgba(22, 23, 25, 0.5) 100%
    );
    --main-cover-neu-shadows: 0.5vw 0.5vw 0.5vw #1a1e20,
      -0.5vw -0.5vw 0.75vw #363e44;
    --slider-track-gradient: linear-gradient(
      90deg,
      rgba(217, 61, 7, 1) 0%,
      rgba(147, 113, 20, 1) 100%
    );

    --controls-normal-button-wrapper-gradient: linear-gradient(
      135deg,
      rgba(32, 37, 41, 0.5) 0%,
      rgba(22, 24, 25, 0.5) 100%
    );
    --controls-button-wrapper-neu-shadows: 0.2vw 0.2vw 0.5vw #16191b,
      -0.2vw -0.2vw 0.5vw #363e44;
    --controls-normal-button-front-gradient: linear-gradient(
      135deg,
      rgba(40, 43, 48, 0.5) 0%,
      rgba(29, 32, 35, 0.5) 100%
    );
    --controls-normal-button-inset-shadows: inset 0 0 0.3vw
      rgba(255, 255, 255, 0.1);
    --controls-pressed-button-wrapper-gradient: linear-gradient(
      135deg,
      rgba(214, 78, 12, 1) 0%,
      rgba(166, 47, 19, 1) 100%
    );
    --controls-pressed-button-front-gradient: linear-gradient(
      135deg,
      rgba(183, 29, 16, 1) 0%,
      rgba(236, 86, 12, 1) 100%
    );
    --controls-pressed-button-inset-shadows: inset 0.75vw 0.75vw 0.75vw
      rgba(0, 0, 0, 0.2);
    --main-icon-text-color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------------------------
   Base Phone Container
   ---------------------------------------------------------------------------- */
.phone {
    flex: 1;
    max-width: 600px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.phone.hidden {
  display: none;
}

.phone.left,
.phone.middle,
.phone.right {
    margin: 25px 0;
}

.phone button {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none; 
    border-radius: 50%;
    cursor: pointer;
}

div.audio {
    border-radius: 50%;
    }

/* ----------------------------------------------------------------------------
   Primary Music Player (Left View)
   ---------------------------------------------------------------------------- */
.phone.left {
    margin: auto;
}

@media (max-width: 750px) {
    .phone.left,
    .phone.middle,
    .phone.right {
        margin: 5px 0;
    }
}

@media (min-width: 275px) {
    .phone {
        width: 95%;
        height: 50vh;
        position: relative;
        background: var(--back-gradient);
        border-radius: 20px;
        box-shadow: 2vw 2vw 8vw black;
    }

    .phone:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        transform: scale(0.97, 0.985);
        background: var(--front-gradient);
    }

    .phone .content {
        text-align: center;
        width: 100%;
        height: 98.5%;
        position: relative;
        top: 0.75%;
        border-radius: 25px;
        display: grid;
    }

    .phone.left .content {
        position: relative;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(19, 1fr);
        grid-template-areas:
            "header header header header header header header header"
            "header header header header header header header header"
            "header header header header header header header header"
            "header header header header header header header header"
            ". . . . . . . ."
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            "main main main main main main main main"
            " slider slider slider slider slider slider slider slider"
            "controls controls controls controls controls controls controls controls"
            "controls controls controls controls controls controls controls controls"
            "controls controls controls controls controls controls controls controls"
            "controls controls controls controls controls controls controls controls";
    }

    /* Header */
    .phone .content .header {
        grid-area: header;
        display: flex;
        justify-content: space-between;
        align-items: center;
        justify-content: center;
        padding-top: 2vw;
        margin-top: 40px;
        border-top-left-radius: 19px;
        border-top-right-radius: 19px;
        width: 100%;
    }

    .phone .content .header h1 {
        font-size: 18px;
        width: 50%;
        color: var(--main-icon-text-color);
    }

    .phone.left .content .header > h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        margin: 0;
        padding: 0px 10px;
    }

    .phone.left .content .header h1 h1 {
        font-size: 18px;
        margin: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        /* Restrict to 2 lines with ellipsis */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }

    .phone.left .content .header h1 h3 {
        font-size: 14px;
        margin: 2px 0 0 0;
        color: var(--main-icon-text-color);
        font-weight: normal;
        text-align: center;
    }

    .phone .content .header div,
    .phone .content .visual div,
    .phone .content .catalog .catalog-content .entry-wrapper .entry div,
    .phone.right .playlist-tracks-list .entry-wrapper .entry div {
        display: flex;
        width: 40px;
        height: 40px;
        background: var(--header-button-wrapper-gradient);
        box-shadow: var(--header-button-wrapper-neu-shadows);
        border-radius: 50%;
    }

    .phone .content .header div.pressed,
    .phone .content .visual div.pressed,
    .phone .content .catalog .catalog-content .entry-wrapper .entry div.pressed {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        );
    }

    .phone .content .header div button,
    .phone .content .visual div button,
    .phone .content .catalog .catalog-content .entry-wrapper .entry div button,
    .phone.right .playlist-tracks-list .entry-wrapper .entry div button {
        margin: auto;
        transform: scale(0.9);
    }

    .phone .content .header div button:active,
    .phone .content .visual div button:active,
    .phone .content .catalog .catalog-content .entry-wrapper .entry div button:active,
    .phone.right .playlist-tracks-list .entry-wrapper .entry div button:active {
        box-shadow: var(--header-pressed-button-inset-shadows);
        transition: all 0.1s ease;
    }

    .phone.left .content .header div {
        display: flex;
    }

    .phone.left .content .header div:nth-of-type(1) {
        opacity: 1;
    }

    .phone.left .content .header div:nth-of-type(1) button {
        background: url("/uploads/img/button/star-grey.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.left .content .header div:nth-of-type(1) button.pressed,
    .phone.left .content .header div:nth-of-type(1) button.favorited {
        background: url("/uploads/img/button/star-filled.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.left .content .header div:nth-of-type(1) button:active {
        background: url("/uploads/img/button/star-filled.png"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.left .content .header div:nth-of-type(2) button {
        background: url("/uploads/img/button/menu-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    .phone.left .content .header div:nth-of-type(2) button:active {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    /* Main Content Area - Album Cover */
    .phone.left .content .main {
        grid-area: main;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        position: relative;
        border-radius: 8px;
    }

    .phone .content .main article div,
    .phone.left .content .visual article div,
    .phone.right .content .visual article div {
        border-radius: 10%;
        background: url(/uploads/img/music/album.jpeg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        aspect-ratio: 1 / 1;
    }
    
    .phone.middle .content .visual article div {
        border-radius: 5%;
        background: url(/uploads/img/music/album.jpeg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .phone.left .content .main article {
        width: 240px;
        margin: 0 auto 5px;
        padding: 0;
        transition: width 0.3s ease, height 0.3s ease;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
    }

    .phone.left .content .main article div {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 2px 6px 8px 0px rgba(30, 30, 30, 0.5);
        box-sizing: border-box;
    }

    .phone.left .content .title {
        display: contents;
    }

    .phone.left .content .title h1 {
        grid-area: track-title;
        width: 100%;
        position: relative;
        color: rgba(255, 255, 255, 0.9);
        font-size: 18px;
        margin: 0;
        padding: 0px 10px;
        text-align: center;
        /* Restrict to 2 lines with ellipsis */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        align-self: center;
    }

    .phone.left .content .title h3 {
        grid-area: track-artist;
        width: 100%;
        position: relative;
        color: var(--main-icon-text-color);
        font-size: 14px;
        margin: 2px 0 0 0;
        padding: 0px 10px;
        text-align: center;
        font-weight: normal;
        align-self: center;
    }

    /* Waveform Visualizer */
    .jukebox-visualizer-container {
        grid-area: slider;
        width: 100%;
        height: 110px;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 1;
        overflow: visible;
        display: flex !important;
        align-items: center;
        justify-content: center;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #jukeboxVisualizerCanvas {
        width: 92.5%;
        height: 88px;
        min-width: 200px;
        display: block !important;
        border-radius: 8px;
        position: relative;
        z-index: 1;
        background-color: transparent;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Time Track Slider */
    .phone.left .content .slider {
        grid-area: slider;
        position: relative;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        z-index: 2;
        width: 100%;
        height: 100%;
        &#primary {
            height: 110px;
        }
    }

    .phone.left .content .slider input[type="range"] {
        appearance: none;
        width: 92.5%;
        height: 8%;
        background: rgba(0, 0, 0, 0.5);
        box-shadow: inset 0 -1px 2px var(--main-icon-text-color);
        border-radius: 1vw;
        z-index: 3;
        position: relative;
        margin: auto;
    }

    .phone.left .content .slider input[type="range"]:focus {
        outline: 0;
    }

    .phone.left .content .slider input[type="range"]::-moz-focus-outer {
        outline: 0;
        border: 0;
    }

    .phone.left .content .slider input[type="range"]::-webkit-slider-thumb {
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          orange 0,
          orange 4px,
          #24292d 4px,
          #24292d 8px,
          #212529 8px,
          #212529
        );
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15),
          inset 1px 0 1px rgba(255, 255, 255, 0.08),
          inset -1px 0 1px rgba(255, 255, 255, 0.01),
          inset 0 -1px 1px rgba(0, 0, 0, 0.5),
          5px 5px 5px rgba(0, 0, 0, 0.4);
        background-clip: border-box;
        position: relative;
    }

    .phone.left .content .slider input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          orange 0,
          orange 4px,
          #24292d 4px,
          #24292d 8px,
          #212529 8px,
          #212529
        );
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15),
          inset 1px 0 1px rgba(255, 255, 255, 0.08),
          inset -1px 0 1px rgba(255, 255, 255, 0.01),
          inset 0 -1px 1px rgba(0, 0, 0, 0.5),
          5px 5px 5px rgba(0, 0, 0, 0.4);
        background-clip: border-box;
        position: relative;
        border: none;
    }

    /* Slider Timestamp */
    .phone.left .content .slider label {
        position: absolute;
        width: 15%;
        height: 20%;
        bottom: -22.5%;
        color: var(--main-icon-text-color);
        font-size: 15px;
    }

    .phone.left .content .slider label#passed {
        left: 3%;
    }

    .phone.left .content .slider label#left {
        right: 3%;
    }

    /* Controls */
    .phone.left .content .controls {
        grid-area: controls;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 75%;
        margin: auto;
    }

    .phone.left .content .controls div {
        /* Inherits styles from .phone .content .controls div via %big-button */
    }

    .phone .content .controls .audio {
        width: 50px;
        height: 50px;
        background: var(--controls-normal-button-wrapper-gradient);
        box-shadow: var(--controls-button-wrapper-neu-shadows);
    }

    .phone .content .controls .audio.pressed {
        background: var(--controls-pressed-button-wrapper-gradient);
    }

    .phone .content .controls .audio button {
        width: 100%;
        height: 100%;
        transform: scale(0.925);
        background: var(--controls-normal-button-front-gradient);
        box-shadow: var(--controls-normal-button-inset-shadows);
        transition: all 0.1s linear;
    }

    .phone .content .controls .audio button:active,
    .phone .content .controls .audio button.pressed {
        box-shadow: var(--controls-pressed-button-inset-shadows);
    }

    /* Repeat Button - Main Player (1st button) */
    .phone .content .controls .audio:nth-of-type(1) button {
        background: var(--controls-normal-button-front-gradient);
        background-size: auto;
        background-repeat: no-repeat;
        background-position: center, center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .phone .content .controls .audio:nth-of-type(1) button:active,
    .phone .content .controls .audio:nth-of-type(1) button.pressed {
        background: var(--controls-pressed-button-front-gradient);
    }
    
    .phone .content .controls .audio:nth-of-type(1).state-one .main-repeat-icon {
        display: block;
    }
    
    .phone .content .controls .audio:nth-of-type(1).state-one .main-repeat-number {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .phone .content .controls .audio:nth-of-type(1).state-all .main-repeat-icon {
        display: block;
        filter: brightness(1.2);
    }
    
    .phone .content .controls .audio:nth-of-type(1).state-all .main-repeat-number {
        display: none;
    }
    
    .phone .content .controls .audio:nth-of-type(1).pressed,
    .phone .content .controls .audio:nth-of-type(1).state-one,
    .phone .content .controls .audio:nth-of-type(1).state-all {
        background: var(--controls-pressed-button-wrapper-gradient) !important;
    }
    
    .main-repeat-icon,
    .main-shuffle-inactive,
    .main-shuffle-active {
        width: auto;
        height: auto;
        max-width: 50%;
        max-height: 50%;
        display: block;
        object-fit: contain;
        position: relative;
        z-index: 2;
        margin: auto;
        transform: scale(0.9);
    }
    
    .main-repeat-number {
        position: absolute;
        bottom: 17.5%;
        right: 17.5%;
        transform: translate(0, 0);
        z-index: 3;
        font-weight: bold;
        font-size: 14px;
        color: rgba(200, 200, 200, 1);
        pointer-events: none;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 0, 0, 1);
        line-height: 1;
    }

    /* Rewind Button - Main Player (2nd button) */
    .phone .content .controls .audio:nth-of-type(2) {
        /* Inherits base styles from .phone .content .controls .audio */
    }

    .phone .content .controls .audio:nth-of-type(2) button {
        background: url("/uploads/img/button/rewind-grey.svg"), var(--controls-normal-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone .content .controls .audio:nth-of-type(2) button:active {
        background: url("/uploads/img/button/rewind-white.svg"), var(--controls-pressed-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    /* Play/Pause Button - Main Player (3rd button) */
    .phone .content .controls .audio:nth-of-type(3) {
        width: 75px;
        height: 75px;
    }

    .phone .content .controls .audio:nth-of-type(3) button {
        background: url("/uploads/img/button/play-grey.svg"), var(--controls-normal-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    .phone .content .controls .audio:nth-of-type(3) button:active,
    .phone .content .controls .audio:nth-of-type(3) button.pressed {
        background: url("/uploads/img/button/pause-white.svg"), var(--controls-pressed-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    /* Forward Button - Main Player (4th button) */
    .phone .content .controls .audio:nth-of-type(4) {
        /* Inherits base styles from .phone .content .controls .audio */
    }

    .phone .content .controls .audio:nth-of-type(4) button {
        background: url("/uploads/img/button/forward-grey.svg"), var(--controls-normal-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    .phone .content .controls .audio:nth-of-type(4) button:active {
        background: url("/uploads/img/button/forward-white.svg"), var(--controls-pressed-button-front-gradient);
        background-size: 15px, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }
    
    /* Shuffle Button - Main Player */
    .phone .content .controls .audio:nth-of-type(5) button {
        background: var(--controls-normal-button-front-gradient);
        background-size: auto;
        background-repeat: no-repeat;
        background-position: center, center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .phone .content .controls .audio:nth-of-type(5) button:active,
    .phone .content .controls .audio:nth-of-type(5) button.pressed {
        background: var(--controls-pressed-button-front-gradient);
    }
    
    .phone .content .controls .audio:nth-of-type(5).pressed,
    .phone .content .controls .audio:nth-of-type(5).active {
        background: var(--controls-pressed-button-wrapper-gradient) !important;
    }
    
    .phone .content .controls .audio:nth-of-type(5) button.pressed .main-shuffle-inactive {
        display: none;
    }
    
    .phone .content .controls .audio:nth-of-type(5) button.pressed .main-shuffle-active {
        display: block;
        filter: brightness(1.1);
    }
    
    .main-shuffle-inactive.hidden,
    .main-shuffle-active.hidden {
        display: none;
    }

    /* ----------------------------------------------------------------------------
       Middle Phone View - Tracklist/Catalogue
       ---------------------------------------------------------------------------- */    
    .phone.middle .content {
    position: relative;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 1fr 1fr 1fr repeat(6, 1fr);
    grid-template-areas:
        "header header header header header header header header"
        "visual visual visual visual visual visual visual visual"
        "visual visual visual visual visual visual visual visual"
        "visual visual visual visual visual visual visual visual"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog"
        "catalog catalog catalog catalog catalog catalog catalog catalog";
    }

    .phone.middle .content .header {
        grid-area: header;
    }

    .phone.middle .content .visual {
        grid-area: visual;
        width: 87.5%;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        gap: 6vw;
        left: 0;
    }

    .phone .content .visual {
        left: 7.5%;
    }

    .phone .content .visual article {
        margin: 5px auto;
        display: flex;
        justify-content: space-evenly;
        align-items: center; 
        position: relative;
        background: var(--main-cover-wrapper-gradient);
        border-radius: 10%;
        box-shadow: var(--main-cover-neu-shadows);
    }

    .phone.middle .content .visual div {
        /* Inherits styles from .phone .content .visual div via %small-button */
    }

    .phone.middle .content .visual div:nth-of-type(1) {
        transform: none;
        flex-shrink: 0;
    }

    .phone.middle .content .visual div:nth-of-type(2) {
        opacity: 1;
        background: var(--header-button-wrapper-gradient);
        transform: none;
        flex-shrink: 0;
    }
    
    .phone.middle .content .visual div:nth-of-type(2).pressed {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        );
    }

    .phone.middle .content .visual div:nth-of-type(2) button {
        background: url("/uploads/img/button/menu-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.middle .content .visual div:nth-of-type(2) button:active {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.middle .content .visual div:nth-of-type(2) button.pressed {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.middle .content .visual div:nth-of-type(2) button.menu-active {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.middle .content .visual div:nth-of-type(2) button.menu-back {
        background: url("/uploads/img/button/menu-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.middle .content .visual div:nth-of-type(1) button {
        background: url("/uploads/img/button/arrow-left-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
        background-position: 48% 50%, center;
    }

    .phone.middle .content .visual div:nth-of-type(1) button:active {
        background: url("/uploads/img/button/arrow-left-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
        background-position: 48% 50%, center;
    }

    /* Album Cover (Secondary) */
    .phone.middle .content .visual article {
        transform: none;
        width: 125px;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
        overflow: visible;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1 / 1;
        position: relative;
        flex-shrink: 0;
        margin: 0;
    }
    
    .phone.middle .content .track-title-scroll-container {
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
        width: 350px;
        max-width: calc(100% - 40px);
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        box-sizing: border-box;
        pointer-events: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */

        -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 1%,
            rgba(0, 0, 0, 1) 8%, 
            rgba(0, 0, 0, 1) 92%,  
            rgba(0, 0, 0, 0.3) 98%,
            rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 1%,
            rgba(0, 0, 0, 1) 8%,
            rgba(0, 0, 0, 1) 92%,
            rgba(0, 0, 0, 0.3) 98%,
            rgba(0, 0, 0, 0) 100%
        );
    }
    
    /* Hide scrollbar for track title scroll container */
    .phone.middle .content .track-title-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .phone.middle .content .track-title-scroll-content {
        display: inline-block;
        white-space: nowrap;
        min-width: 100%;
    }
    
    .phone.middle .content .track-title {
        display: inline-block;
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        line-height: 1.2;
        pointer-events: none;
        margin: 0;
        padding: 0;
    }
    
    /* Ellipsis fallback for browsers that don't support scrolling */
    .phone.middle .content .track-title-scroll-container.ellipsis-mode {
        overflow-x: hidden;
        overflow-y: hidden;
        -webkit-mask-image: none;
        mask-image: none;
    }
    
    .phone.middle .content .track-title-scroll-container.ellipsis-mode .track-title-scroll-content {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: block;
        text-overflow: ellipsis;
        -webkit-text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .phone.middle .content .track-title-scroll-container.ellipsis-mode .track-title {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .phone.middle .content .visual .track-title-scroll-container,
    .phone.middle .content .visual article .track-title-scroll-container {
        display: none;
    }

    .phone.middle .content .visual article div {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        box-shadow: 2px 6px 8px 0px rgba(30, 30, 30, 0.5);
        transform: none !important;
        border-radius: 10% !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        display: block;
    }
    
    .phone.middle.no-tracks .content .visual > div {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .phone.middle.no-tracks .content .visual article div {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
    
    .phone.middle.no-tracks .content .visual article {
        transform: scale(1.5);
    }

    /* Catalog */
    .phone.middle .content .catalog {
        grid-area: catalog;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
    }
    
    /* Catalog Search Container */
    .catalog-search-wrapper {
        width: 90%;
        margin: 10px auto;
        display: none;
        align-items: center;
        gap: 10px;
        z-index: 10;
    }
    
    .catalog-search-wrapper.visible {
        display: flex;
    }
    
    .catalog-search-container {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .catalog-search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: none;
        border-radius: 20px;
        background: var(--controls-normal-button-wrapper-gradient, linear-gradient(145deg, #2a2a2a, #1a1a1a));
        box-shadow: var(--controls-button-wrapper-neu-shadows, 5px 5px 10px #0a0a0a, -5px -5px 10px #3a3a3a);
        color: #fff;
        font-size: 14px;
        text-align: center;
        outline: none;
        transition: all 0.3s ease;
    }
    
    .catalog-search-input::placeholder {
        color: #999;
    }
    
    .catalog-search-input:focus {
        box-shadow: 5px 5px 15px #0a0a0a, -5px -5px 15px #3a3a3a, inset 2px 2px 5px #0a0a0a;
    }
    
    .catalog-search-icon {
        position: absolute;
        right: 15px;
        color: #999;
        pointer-events: none;
        font-size: 14px;
    }
    
    /* Catalog view toggle button - uses same styling as category view button */
    .phone.middle .content .catalog .catalog-search-wrapper .view-selection-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        background: var(--header-button-wrapper-gradient);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #eee;
        font-size: 16px;
        cursor: pointer;
        outline: none;
        transition: all 0.2s ease;
        box-shadow: var(--header-button-wrapper-neu-shadows);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .phone.middle .content .catalog .catalog-search-wrapper .view-selection-btn:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .phone.middle .content .catalog .catalog-search-wrapper .view-selection-btn:active,
    .phone.middle .content .catalog .catalog-search-wrapper .view-selection-btn.active {
        background: var(--header-pressed-wrapper-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    .phone.middle .content .catalog .catalog-search-wrapper .view-selection-icon {
        font-size: 14px;
    }
    
    .phone.middle .content .catalog .catalog-content {
        gap: 2.5px;
        margin: auto;
        padding: 5px 0px;
        width: 90%;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-y: auto;
        position: relative;
        
        -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    }
    
    /* Loading message container - centered in tracklist panel */
    .phone.middle .content .catalog .catalog-content .loading-message-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ccc;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        pointer-events: none;
    }
    
    .phone.middle .content .catalog .catalog-content .loading-message-container .loading-text {
        color: #ccc;
        font-size: inherit;
    }
    
    .phone.middle .content .catalog .catalog-content .loading-message-container .loading-spinner {
        font-size: 24px;
        color: #999;
    }
    
    /* Catalog Playback Controls */
    .catalog-playback-controls {
        width: 95%;
        margin: 10px auto;
        max-height: 120px;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background: var(--controls-normal-button-wrapper-gradient, linear-gradient(145deg, #2a2a2a, #1a1a1a));
        border-radius: 15px;
        box-shadow: var(--controls-button-wrapper-neu-shadows, 5px 5px 10px #0a0a0a, -5px -5px 10px #3a3a3a);
        overflow: visible;
        flex-shrink: 0;
        transition: min-height 0.3s ease;
        position: relative;
    }
    
    /* When buttons are visible, increase min-height */
    .catalog-playback-controls.has-buttons {
        min-height: 100px;
    }
    
    /* Corner Toggle Button */
    #catalogToggleButtonsBtn {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        border: none !important;
        background-color: transparent !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        display: none !important; /* Hidden by default, shown when tracks are loaded */
        align-items: center !important;
        justify-content: center !important;
        z-index: 100 !important;
        opacity: 1 !important;
        transition: opacity 0.2s ease !important;
    }
    
    #catalogToggleButtonsBtn.visible {
        display: flex !important;
    }
    
    #catalogToggleButtonsBtn i,
    #catalogToggleButtonsBtn .fas,
    #catalogToggleButtonsBtn .fa-maximize {
        font-size: 14px !important;
        color: #ffffff !important;
        transition: transform 0.3s ease !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1 !important;
        font-style: normal !important;
        font-weight: 900 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
    
    #catalogToggleButtonsBtn:hover {
        opacity: 1 !important;
        background-color: transparent !important;
    }
    
    #catalogToggleButtonsBtn:hover i,
    #catalogToggleButtonsBtn:hover .fas,
    #catalogToggleButtonsBtn:hover .fa-maximize {
        color: #ffffff !important;
        transform: scale(1.1) !important;
        opacity: 1 !important;
    }
    
    #catalogToggleButtonsBtn:active {
        background-color: transparent !important;
    }
    
    #catalogToggleButtonsBtn:active i,
    #catalogToggleButtonsBtn:active .fas,
    #catalogToggleButtonsBtn:active .fa-maximize {
        transform: scale(0.95) !important;
        color: #ffffff !important;
    }
    
    /* Rotate icon when buttons are hidden */
    .catalog-playback-controls.buttons-hidden #catalogToggleButtonsBtn i,
    .catalog-playback-controls.buttons-hidden #catalogToggleButtonsBtn .fas,
    .catalog-control-buttons:not(.visible) ~ #catalogToggleButtonsBtn i {
        transform: rotate(45deg) !important;
    }
    
    /* Progress Row */
    .catalog-progress-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .catalog-progress-slider {
        width: 100%;
        height: 6px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        outline: none;
        cursor: pointer;
    }
    
    .catalog-progress-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }
    
    .catalog-progress-slider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    }
    
    .catalog-progress-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }
    
    .catalog-progress-slider::-moz-range-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    }
    
    .catalog-time-labels {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: #ccc;
        padding: 0 5px;
    }
    
    .catalog-time-labels span {
        margin: 0 15px;
    }
    
    /* Control Buttons Row */
    .catalog-control-buttons {
        display: none; /* Hidden by default, shown when tracks are loaded */
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        min-height: 50px;
        width: 100%;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .catalog-control-buttons.visible {
        display: flex;
    }
    
    .catalog-control-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
        border: none;
        border-radius: 50%;
        background: var(--header-button-wrapper-gradient);
        box-shadow: var(--header-button-wrapper-neu-shadows);
        color: #fff;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.1s ease;
        font-size: 14px;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }
    
    .catalog-control-btn i {
        display: block;
        font-size: inherit;
    }
    
    /* Inner button layer for front gradient (matching header buttons exactly) */
    .catalog-control-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: var(--header-normal-button-front-gradient);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Rewind Button - Match Header Button Style */
    .catalog-rewind-btn.pressed,
    .catalog-rewind-btn:active {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        ) !important;
    }
    
    .catalog-rewind-btn:active .catalog-rewind-inactive {
        display: none;
    }
    
    .catalog-rewind-btn:active .catalog-rewind-active {
        display: block;
    }
    
    .catalog-rewind-btn:active::before {
        background: var(--header-pressed-button-front-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    /* Forward Button - Match Header Button Style */
    .catalog-forward-btn.pressed,
    .catalog-forward-btn:active {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        ) !important;
    }
    
    .catalog-forward-btn:active .catalog-forward-inactive {
        display: none;
    }
    
    .catalog-forward-btn:active .catalog-forward-active {
        display: block;
    }
    
    .catalog-forward-btn:active::before {
        background: var(--header-pressed-button-front-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    /* Play/Pause Button - Match Header Button Style */
    .catalog-play-pause-btn.pressed {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        ) !important;
    }
    
    .catalog-play-pause-btn.pressed::before {
        background: var(--header-pressed-button-front-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    .catalog-btn-icon {
        width: auto;
        height: auto;
        max-width: 50%;
        max-height: 50%;
        display: block;
        object-fit: contain;
        position: relative;
        z-index: 2;
        margin: auto;
        transform: scale(0.9);
    }
    
    .catalog-btn-icon.hidden {
        display: none;
    }
    
    .catalog-control-btn:active::before {
        box-shadow: var(--header-pressed-button-inset-shadows);
        transition: all 0.1s ease;
    }
    
    .catalog-control-btn.active {
        background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
        box-shadow: inset 2px 2px 5px #0a0a0a, inset -2px -2px 5px #3a3a3a;
        color: #4a9eff;
    }
    
    /* Play/Pause Button Pressed State - handled by background image change above */
    
    /* Shuffle Button Pressed/Active State - Match Header Button Style */
    .catalog-shuffle-btn.pressed,
    #catalogShuffleBtn.pressed,
    #catalogShuffleBtn.active {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        ) !important;
    }
    
    .catalog-shuffle-btn.pressed::before,
    #catalogShuffleBtn.pressed::before,
    #catalogShuffleBtn.active::before {
        background: var(--header-pressed-button-front-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    .catalog-shuffle-btn.pressed .catalog-shuffle-active,
    #catalogShuffleBtn.pressed .catalog-shuffle-active,
    #catalogShuffleBtn.active .catalog-shuffle-active {
        filter: brightness(1.1);
    }
    
    .catalog-play-pause-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        font-size: 18px;
    }
    
    /* Repeat Button - Match Header Button Style */
    .catalog-repeat-icon {
        display: block;
        position: relative;
        z-index: 2;
    }
    
    .catalog-repeat-number {
        position: absolute;
        bottom: 17.5%;
        right: 17.5%;
        transform: translate(0, 0);
        z-index: 3;
        font-weight: bold;
        font-size: 14px;
        color: rgba(200, 200, 200, 1);
        pointer-events: none;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 0, 0, 1);
        line-height: 1;
    }
    
    .catalog-repeat-btn.state-one .catalog-repeat-icon {
        display: block;
    }
    
    .catalog-repeat-btn.state-one .catalog-repeat-number {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .catalog-repeat-btn.state-all .catalog-repeat-icon {
        display: block;
        filter: brightness(1.2);
    }
    
    .catalog-repeat-btn.state-all .catalog-repeat-number {
        display: none;
    }
    
    .catalog-repeat-btn.pressed,
    .catalog-repeat-btn.state-one,
    .catalog-repeat-btn.state-all {
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        ) !important;
    }
    
    .catalog-repeat-btn.pressed::before,
    .catalog-repeat-btn.state-one::before,
    .catalog-repeat-btn.state-all::before {
        background: var(--header-pressed-button-front-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }
    
    /* Ensure all buttons in the row are visible */
    .catalog-control-buttons > button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .catalog-control-buttons > .catalog-placeholder-btn {
        opacity: 0.3 !important;
    }
    
    /* Load Track Button Container */
    .catalog-load-track-container {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        gap: 25px;
        pointer-events: none;
    }
    
    .catalog-load-track-container * {
        pointer-events: auto;
    }
    
    .catalog-load-track-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--controls-normal-button-wrapper-gradient);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        position: relative;
        flex-shrink: 0;
        /* Neumorphic outer shadow */
        box-shadow: 0.3vw 0.3vw 0.6vw #16191b,
                   -0.3vw -0.3vw 0.6vw #363e44;
    }
    
    .catalog-load-track-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        height: 85%;
        border-radius: 50%;
        background: var(--controls-normal-button-front-gradient);
        box-shadow: var(--controls-normal-button-inset-shadows);
        pointer-events: none;
    }
    
    .catalog-load-track-button:hover {
        transform: scale(1.05);
        box-shadow: 0.4vw 0.4vw 0.8vw #16191b,
                   -0.4vw -0.4vw 0.8vw #363e44;
    }
    
    .catalog-load-track-button:hover::before {
        box-shadow: inset 0.1vw 0.1vw 0.3vw rgba(255, 255, 255, 0.15),
                   inset -0.1vw -0.1vw 0.3vw rgba(0, 0, 0, 0.2);
    }
    
    .catalog-load-track-button:active {
        transform: scale(0.98);
        box-shadow: inset 0.2vw 0.2vw 0.4vw #16191b,
                   inset -0.2vw -0.2vw 0.4vw #363e44;
    }
    
    .catalog-load-track-button:active::before {
        box-shadow: inset 0.15vw 0.15vw 0.3vw rgba(0, 0, 0, 0.3),
                   inset -0.1vw -0.1vw 0.2vw rgba(255, 255, 255, 0.05);
    }
    
    .catalog-load-track-button .load-track-icon {
        font-size: 36px;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 300;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
        transition: color 0.2s ease;
    }
    
    .catalog-load-track-button:hover .load-track-icon {
        color: rgba(255, 255, 255, 1);
    }
    
    .catalog-load-track-message {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        text-align: center;
        font-weight: 300;
        margin: 0;
        padding: 0;
        width: auto;
        white-space: nowrap;
        display: block;
    }

    /* Folder Items */
    .folder-item {
        width: 100%;
        height: 45px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        background: rgba(45, 45, 45, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.18);
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 5px;
        position: relative;
    }

    .folder-item:hover {
        background-color: rgba(45, 45, 45, 0.4);
        transform: translateY(3px);
    }

    .folder-item.folder-back {
        background: rgba(80, 80, 80, 0.3);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .folder-item.folder-back:hover {
        background-color: rgba(80, 80, 80, 0.5);
    }

    .folder-item.active {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
        background: rgba(80, 80, 80, 0.5);
    }

    .folder-icon {
        font-size: 20px;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .folder-name {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 60px); /* Account for icon (24px) and padding (30px total) */
    }


    .phone.middle .content .catalog .catalog-content .entry-wrapper {
        width: 100%;
        height: 35px;
        border-radius: 1.25vw;
        display: flex;
        background: transparent;
        border: none;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper.pressed {
        background: linear-gradient(
          180deg,
          rgba(51, 57, 63, 0.75) 0%,
          rgba(18, 20, 23, 0.75) 100%
        );
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry {
        width: 99%;
        height: 95%;
        margin: auto;
        border-radius: 1.25vw;
        display: grid;
        grid-template-columns: 40px 1.5fr 1fr 0.75fr auto 20px;
        grid-template-rows: 1fr;
        justify-items: start;
        align-items: center;
        gap: 8px;
        grid-template-areas:
            "star title artist . control";
        cursor: pointer;
        padding: 2.5px 0px;
        background: transparent;
        border: none;
        overflow: hidden;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry.pressed {
        background: linear-gradient(
          135deg,
          rgba(19, 21, 23, 1) 0%,
          rgba(27, 29, 32, 1) 100%
        );
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(1) {
        grid-area: star;
        transform: translateX(20%);
        width: 27.5px;
        height: 27.5px;
        border-radius: 50%;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(1) button {
        background: url("/uploads/img/button/star-grey.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(1) button.pressed,
    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(1) button.favorited {
        background: url("/uploads/img/button/star-filled.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(1) button:active {
        background: url("/uploads/img/button/star-filled.png"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry h1 {
        grid-area: title;
        font-size: 15px;
        margin: 0;
        margin-left: 0;
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        text-align: left;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry h3 {
        grid-area: artist;
        text-align: left;
        font-size: 12px;
        margin: 0;
        margin-left: 5%;
        color: var(--main-icon-text-color);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(2) {
        grid-area: control;
        transform: translateX(20%);
        width: 27.5px;
        height: 27.5px;
        border-radius: 50%;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(2) button {
        background: url("/uploads/img/button/play-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(2).pressed {
        background: var(--header-pressed-wrapper-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.middle .content .catalog .catalog-content .entry-wrapper .entry div:nth-of-type(2) button.pressed {
        background: url("/uploads/img/button/pause-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.middle:after {
        content: "";
        width: 99%;
        height: 15%;
        background: linear-gradient(to top, rgba(28, 30, 34, 1), transparent);
        position: absolute;
        left: 0.5%;
        bottom: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        pointer-events: none;
    }

    /* ----------------------------------------------------------------------------
       Right Phone View - Playlists & Albums
       ---------------------------------------------------------------------------- */
    /* .phone.right margin is set earlier to 25px 0 for catalog views */

    .phone.right .content {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "header header header header header header header header"
            "main-content main-content main-content main-content main-content main-content main-content main-content";
        display: grid;
    }
    
    /* Toggle container uses absolute positioning from menu.css, so no grid-area needed */
    
    .phone.right .content > .right-content-wrapper {
        grid-area: main-content;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }
    
    .phone.right .content > section {
        display: flex;
        flex-direction: column;
    }
    
    .phone.right .content .right-content-wrapper > section.category-section {
        height: 50%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        flex-shrink: 0;
    }
    
    .phone.right .content .right-content-wrapper > section.favorites-icon-section {
        height: 90px;
        flex-shrink: 0;
        margin: 0 0 10px;
    }

    .phone.right .content .header > h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        margin: 0;
        padding: 0px 10px;
    }

    .phone.right .content .header h1 h1 {
        font-size: 18px;
        margin: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        /* Restrict to 2 lines with ellipsis */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }

    .phone.right .content .header h1 h3 {
        font-size: 14px;
        margin: 2px 0 0 0;
        color: var(--main-icon-text-color);
        font-weight: normal;
        text-align: center;
    }

    .phone.right .content .header div {
        display: flex;
    }

    .phone.right .content .header div:nth-of-type(1) button {
        background: url("/uploads/img/button/arrow-left-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.right .content .header div:nth-of-type(1) button:active {
        background: url("/uploads/img/button/arrow-left-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 48% 52%, center;
    }

    .phone.right .content .header div:nth-of-type(2) button {
        background: url("/uploads/img/button/menu-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    .phone.right .content .header div:nth-of-type(2) button:active,
    .phone.right .content .header div:nth-of-type(2) button.pressed {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    /* Favorites Icon Section */
    .phone.right .content .favorites-icon-section {
        padding: 1vw 3vw;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .phone.right .content .favorites-icon-section.hidden {
        display: none;
    }

    .phone.right .favorites-icon-panel-container {
        width: 100%;
        min-height: 60px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 6px;
        background-color: rgba(45, 45, 45, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 15px;
    }

    .phone.right .favorites-icon-panel {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 6px;
        gap: 10px;
    }

    .phone.right .favorite-icon-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #e0e0e0;
        background-color: rgba(155, 155, 155, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        font-weight: normal;
        padding: 8px 12px;
        flex-shrink: 0;
        width: 100px;
        text-align: center;
        line-height: 1.2;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .phone.right .favorite-icon-button img {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .phone.right .favorite-icon-button i.fa-music {
        font-size: 24px;
        margin-bottom: 4px;
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.2s ease;
    }

    .phone.right .favorite-icon-button.active i.fa-music {
        color: rgba(255, 255, 255, 1);
    }

    .phone.right .favorite-icon-button:hover {
        background-color: rgba(155, 155, 155, 0.15);
    }

    .phone.right .favorite-icon-button.active {
        box-shadow: inset 2px 2px 5px #b8b9be, 
                    inset -3px -3px 7px #fff;
    }

    .phone.right .favorite-icon-name {
        font-size: 0.85em;
        color: #b0b0b0;
        margin-top: 2px;
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Albums Section */
    .phone.right .content .category-section {
        padding: 5px 3vw 2vw 3vw;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;

    }
        
    .phone.right .content .category-section .app-search-container {
        margin-top: 2vw;
    }

    .phone.right .content .category-section .category-dropdown-container {
        margin: 5px 0 15px;
        padding: 0 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .phone.right .content .category-section .view-selection-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        background: var(--header-button-wrapper-gradient);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #eee;
        font-size: 16px;
        cursor: pointer;
        outline: none;
        transition: all 0.2s ease;
        box-shadow: var(--header-button-wrapper-neu-shadows);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .phone.right .content .category-section .view-selection-btn:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .phone.right .content .category-section .view-selection-btn:active {
        background: var(--header-pressed-wrapper-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.right .content .category-section .view-selection-icon {
        font-size: 14px;
    }

    .phone.right .content .category-section .category-dropdown-wrapper {
        position: relative;
        width: 100%;
        max-width: 200px;
        z-index: 10001;
    }

    .phone.right .content .category-section .category-dropdown {
        width: 100%;
        height: 30px;
        padding: 0 12px;
        background: var(--header-button-wrapper-gradient);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #eee;
        font-size: 12px;
        font-family: inherit;
        cursor: pointer;
        outline: none;
        transition: all 0.2s ease;
        box-shadow: var(--header-button-wrapper-neu-shadows);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        box-sizing: border-box;
    }

    .phone.right .content .category-section .category-dropdown:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .phone.right .content .category-section .category-dropdown:focus,
    .phone.right .content .category-section .category-dropdown[aria-expanded="true"] {
        border-color: rgba(100, 150, 255, 0.5);
        box-shadow: 0 0 0 2px rgba(100, 150, 255, 0.2);
    }

    .phone.right .content .category-section .category-dropdown-selected {
        flex: 1;
        text-align: left;
    }

    .phone.right .content .category-section .category-dropdown-arrow {
        font-size: 1.2vw;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .phone.right .content .category-section .category-dropdown[aria-expanded="true"] .category-dropdown-arrow {
        transform: rotate(180deg);
    }

    .phone.right .content .category-section .category-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.5vw);
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        min-width: 200px;
        background: rgba(64, 64, 64, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: var(--header-button-wrapper-neu-shadows);
        list-style: none;
        margin: 0;
        padding: 0.5vw 0;
        z-index: 10000;
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }

    .phone.right .content .category-section .category-dropdown-menu.hidden {
        display: none !important;
        visibility: hidden;
        opacity: 0;
    }

    .phone.right .content .category-section .category-dropdown-menu:not(.hidden) {
        display: block !important;
        visibility: visible;
        opacity: 1;
    }

    .phone.right .content .category-section .category-dropdown-option {
        padding: 1vw 1.5vw;
        color: #eee;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1vw;
        transition: background-color 0.15s ease;
        position: relative;
    }

    .phone.right .content .category-section .category-dropdown-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .phone.right .content .category-section .category-dropdown-option[aria-selected="true"] {
        background-color: rgba(100, 150, 255, 0.15);
        color: #6496ff;
    }

    .phone.right .content .category-section .category-dropdown-option span {
        flex: 1;
        text-align: left;
    }

    .phone.right .content .category-section .category-dropdown-check {
        font-size: 12px;
        color: #6496ff;
        opacity: 0;
        transition: opacity 0.15s ease;
        flex-shrink: 0;
    }

    .phone.right .content .category-section .category-dropdown-option[aria-selected="true"] .category-dropdown-check {
        opacity: 1;
    }

    .phone.right .content .category-section h2 {
        font-size: 16px;
        color: var(--main-icon-text-color);
        margin: 0 0 1vw 0;
        text-align: left;
    }

    /* View Selection Modal */
    .view-selection-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.25);
        z-index: 99999;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
        margin: 0;
        padding: 0;
        display: grid;
        place-items: center;
    }

    .view-selection-modal.hidden {
        display: none;
        opacity: 0;
    }

    .view-selection-modal-content {
        position: relative;
        background-color: rgba(64, 64, 64, 0.95);
        border: 1px solid #555;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        min-width: 250px;
        max-width: 90%;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        overflow: hidden;
    }

    .view-selection-modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        color: #eee;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease, color 0.2s ease;
        z-index: 10;
    }

    .view-selection-modal-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .view-selection-modal-title {
        margin: 0;
        font-size: 18px;
        color: #eee;
        font-weight: 500;
    }

    .view-selection-options {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .view-selection-option {
        padding: 12px 16px;
        color: #eee;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: background-color 0.15s ease;
        border-radius: 8px;
        position: relative;
    }

    .view-selection-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .view-selection-option[aria-selected="true"] {
        background-color: rgba(100, 150, 255, 0.15);
        color: #6496ff;
    }

    .view-selection-icon-option {
        font-size: 16px;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .view-selection-option span {
        flex: 1;
        text-align: left;
    }

    .view-selection-check {
        font-size: 14px;
        color: #6496ff;
        opacity: 0;
        transition: opacity 0.15s ease;
        flex-shrink: 0;
    }

    .view-selection-option[aria-selected="true"] .view-selection-check {
        opacity: 1;
    }

    .phone.right .content .category-row {
        display: flex;
        flex-wrap: wrap;
        gap: 2vw;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 1vw 0;
        flex: 1;
        align-content: flex-start;
        justify-content: center;

        -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 5%, 
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 5%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .phone.right .content .category-row.list-view {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5vw;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: stretch;
    }

    /* Album Item */
    .phone.right .content .album-item {
        flex-shrink: 0;
        padding: 5px;
        margin: 5px;
        width: 120px;
        height: 120px;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        background: var(--main-cover-wrapper-gradient);
        box-shadow: 2px 6px 8px 0px rgba(30, 30, 30, 0.5);
        transition: transform 0.2s ease;
    }

    .phone.right .content .album-item:active {
        transform: scale(0.95);
    }

    .phone.right .content .album-item.active {
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 2px 6px 8px 0px rgba(30, 30, 30, 0.5);
    }

    .phone.right .content .album-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .phone.right .content .album-item::after {
        content: attr(data-title);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        color: white;
        padding: 8px 10px 10px 10px;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* When music is playing, make non-active category items slightly greyscale */
    .phone.right .content .category-row.is-playing .album-item:not(.active) img {
        filter: grayscale(0.75);
        opacity: 0.9;
        transition: filter 0.2s ease, opacity 0.2s ease;
    }

    .phone.right .content .category-row.is-playing.list-view .album-item:not(.active) {
        filter: grayscale(0.75);
        opacity: 0.9;
    }

    /* List View Styles */
    .phone.right .content .category-row.list-view .album-item {
        width: 97.5%;
        max-width: none;
        height: auto;
        min-height: 60px;
        aspect-ratio: auto;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 15px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .phone.right .content .category-row.list-view .album-item::after {
        display: none;
    }

    .phone.right .content .category-row.list-view .album-item.active {
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }

    .phone.right .content .category-row.list-view .album-item img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .phone.right .content .category-row.list-view .album-item-title {
        flex: 1;
        color: #eee;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .phone.right .content .albums-row::-webkit-scrollbar {
        height: 6px;
    }

    .phone.right .content .albums-row::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .phone.right .content .albums-row::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .phone.right .content .albums-row::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    /* Playlist Tracks Container (Condensed Catalog) */
    .phone.right .playlist-tracks-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .phone.right .playlist-tracks-list {
        display: flex;
        flex-direction: column;
        gap: 2.5px;
        padding: 0;
        max-height: calc(100% - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .phone.right .playlist-tracks-list .entry-wrapper {
        width: 100%;
        height: 35px;
        border-radius: 1.25vw;
        display: flex;
        background: transparent;
        border: none;
        cursor: pointer;
        align-items: center;
        gap: 0;
    }

    .phone.right .playlist-tracks-list .entry-wrapper.pressed {
        background: linear-gradient(
          180deg,
          rgba(51, 57, 63, 0.75) 0%,
          rgba(18, 20, 23, 0.75) 100%
        );
    }

    .phone.right .playlist-tracks-list .entry-wrapper.dragging {
        opacity: 0.6;
        background-color: rgba(80, 80, 80, 0.3);
    }

    .phone.right .playlist-drag-handle:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .phone.right .playlist-tracks-list .entry-wrapper.drag-over {
        border-top: 2px solid rgba(255, 255, 255, 0.5);
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry {
        flex: 1;
        width: 99%;
        height: 95%;
        margin: auto;
        border-radius: 1.25vw;
        display: grid;
        grid-template-columns: 40px 2fr 1.5fr auto 20px;
        grid-template-rows: 1fr;
        justify-items: start;
        align-items: center;
        gap: 8px;
        grid-template-areas:
            "star title artist control .";
        cursor: pointer;
        padding: 2.5px 0px;
        background: transparent;
        border: none;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry.pressed {
        background: linear-gradient(
          135deg,
          rgba(19, 21, 23, 1) 0%,
          rgba(27, 29, 32, 1) 100%
        );
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(1) {
        grid-area: star;
        transform: translateX(20%);
        width: 27.5px;
        height: 27.5px;
        border-radius: 50%;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(1) button {
        background: url("/uploads/img/button/star-grey.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(1) button.pressed,
    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(1) button.favorited {
        background: url("/uploads/img/button/star-filled.png"), var(--header-normal-button-front-gradient);
        background-size: 35%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(1) button:active {
        background: url("/uploads/img/button/star-filled.png"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry h1 {
        grid-area: title;
        font-size: 15px;
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry h3 {
        grid-area: artist;
        text-align: left;
        font-size: 12px;
        margin: 0;
        color: var(--main-icon-text-color);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(2) {
        grid-area: control;
        transform: translateX(20%);
        width: 27.5px;
        height: 27.5px;
        border-radius: 50%;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(2) button {
        background: url("/uploads/img/button/play-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(2).pressed {
        background: var(--header-pressed-wrapper-gradient);
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.right .playlist-tracks-list .entry-wrapper .entry div:nth-of-type(2) button.pressed {
        background: url("/uploads/img/button/pause-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 30%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        background-position: center, center;
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.right .playlist-tracks-list .entry-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .phone.right .playlist-tracks-list .entry-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .phone.right .playlist-tracks-list .entry-wrapper::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .phone.right .playlist-tracks-list .entry-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    /* ----------------------------------------------------------------------------
       Responsive Design
       ---------------------------------------------------------------------------- */
    @media screen and (max-width: 650px) {
        .phone.mini {
            width: 90vw;
        }
    }
    
    @media screen and (max-width: 515px) {
        /* Main music player control buttons - 75% size */
        .phone.left .content .controls .audio {
            width: 40px;
            height: 40px;
            min-width: 40px;
            min-height: 40px;
            max-width: 40px;
            max-height: 40px;
        }
        
        .phone.left .content .controls .audio:nth-of-type(3) {
            width: 56.25px;
            height: 56.25px;
            min-width: 56.25px;
            min-height: 56.25px;
            max-width: 56.25px;
            max-height: 56.25px;
        }
    }
}
