/* ----------------------------------------------------------------------------
   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: 650px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.phone.hidden {
  display: none;
}

.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 (min-width: 275px) {
    .phone {
        width: 95%;
        height: 50vh;
        position: relative;
        margin: 10px 0;
        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; /* Enable absolute positioning for children */
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(18, 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";
    }

    /* Header */
    .phone .content .header {
        grid-area: header;
        display: flex;
        justify-content: space-between;
        align-items: center;
        justify-content: center;
        padding-top: 2vw;
        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;
    }

    .phone.left .content .header h1 h1 {
        font-size: 22px;
        margin: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

    .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,
    .phone.left .content .header div:nth-of-type(1).shuffle-active {
        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 .content .visual article div {
        border-radius: 10%;
        background: url(/uploads/img/music/lo-fi.jpg);
        background-size: cover;
    }

    .phone.left .content .main article {
        width: 225px;
        height: 225px;
        margin: 5px auto 5px;
        padding: 10px 0px;
        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;
    }

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

    .phone.left .content .title {
        grid-area: title;
        position: relative;
        margin: 0;
        padding: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 2;
        background: transparent;
        min-height: 0;
    }

    .phone.left .content .title h1 {
        width: 100%;
        position: relative;
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
        margin: 15px 0 0 0;
        padding: 0;
        text-align: center;
        line-height: 1.3;
    }

    .phone.left .content .title h3 {
        width: 100%;
        position: relative;
        color: var(--main-icon-text-color);
        font-size: 10px;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 1.1;
    }

    /* 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:not(.mini-controls) {
        grid-area: controls;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 75%;
        margin: auto;
    }
    
    /* Mini controls base styling - layout properties only, visibility controlled by specific rules below */
    .phone.left .content .controls.mini-controls {
        grid-area: controls;
        justify-content: center;
        align-items: center;
        gap: 15px;
        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 (5th button) */
    .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;
    }

    /* Media Query: Smaller buttons for screens < 650px */
    @media (max-width: 550px) {
        .phone .content .controls .audio {
            width: 38px;
            height: 38px;
        }

        .phone .content .controls .audio:nth-of-type(3) {
            width: 56px;
            height: 56px;
        }

        .phone .content .controls .audio button {
            transform: scale(0.925);
        }
    }

/* ----------------------------------------------------------------------------
   Middle Section (Tracklist View)
    ---------------------------------------------------------------------------- */
    .phone.middle .content {
    position: relative;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 1fr 1fr 1fr 0.5fr 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"
        "search search search search search search search search"
        "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: space-evenly;
        align-items: center;
    }

    .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: translate(12%, -5%);
    }

    .phone.middle .content .visual div:nth-of-type(2) {
        opacity: 1;
        background: linear-gradient(
          135deg,
          rgba(218, 77, 12, 1) 0%,
          rgba(180, 54, 19, 1) 100%
        );
        transform: translate(-12%, -5%);
    }

    .phone.middle .content .visual div:nth-of-type(2) button {
        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: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: translateY(-5%);
        width: 125px;
        height: 125px;
    }

    .phone.middle .content .visual article div {
        width: 90%;
        height: 90%;
        box-shadow: none;
        transform: none !important;
    }

    /* Catalog */
    .phone.middle .content .tracklist-search-section {
        grid-area: search;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
    }
    
    .phone.middle .content .tracklist-search-section .app-search-container {
        width: 90%;
        max-width: 400px;
        margin: 0;
    }
    
    .phone.middle .content .tracklist-search-section .app-search-input {
        padding: 10px 15px 10px 40px;
        text-align: center;
    }
    
    .phone.middle .content .tracklist-search-section .app-search-input::placeholder {
        text-align: center;
    }

    .phone.middle .content .catalog {
        grid-area: catalog;
        position: relative;
        display: flex;
        overflow-y: scroll;
    }
    
    .phone.middle .content .catalog .catalog-content {
        gap: 2.5px;
        margin: auto;
        width: 95%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
    }

    .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.7fr auto 20px;
        grid-template-rows: 1fr;
        justify-items: start;
        align-items: center;
        gap: 0;
        grid-template-areas:
            "star title artist . control";
        cursor: pointer;
        padding: 2.5px 0px;
        background: transparent;
        border: none;
    }

    .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: 5%;
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    .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 Section (Playlists & Albums View)
       ---------------------------------------------------------------------------- */
    .phone.right {
        margin: auto;
    }

    .phone.right .content {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(18, 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"
            "favorites favorites favorites favorites favorites favorites favorites favorites"
            "favorites favorites favorites favorites favorites favorites favorites favorites"
            "favorites favorites favorites favorites favorites favorites favorites favorites"
            "favorites favorites favorites favorites favorites favorites favorites favorites"
            "favorites favorites favorites favorites favorites favorites favorites favorites"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums"
            "albums albums albums albums albums albums albums albums";
    }

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

    .phone.right .content .header h1 h1 {
        font-size: 22px;
        margin: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

    .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 {
        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 {
        grid-area: favorites;
        padding: 1vw 3vw 0 3vw;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phone.right .favorites-icon-panel-container {
        width: 100%;
        min-height: 80px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 8px;
        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: 10px;
        gap: 15px;
    }

    .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: 12px 16px;
        flex-shrink: 0;
        width: 120px;
        text-align: center;
        line-height: 1.2;
        cursor: pointer;
        transition: all 0.2s ease;
    }

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

    .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.95em;
        color: #b0b0b0;
        margin-top: 4px;
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Albums Section */
    .phone.right .content .albums-section {
        grid-area: albums;
        padding: 5px 3vw 2vw 3vw;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

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

    .phone.right .content .albums-row {
        display: flex;
        gap: 2vw;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1vw 0;
        flex: 1;
        scrollbar-width: thin;
    }

    /* 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 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;
    }

    .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 1.25fr 1fr 1fr auto 20px;
        grid-template-rows: 1fr;
        justify-items: start;
        align-items: center;
        gap: 0;
        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;
        margin-left: 5%;
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    .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);
    }

    /* ----------------------------------------------------------------------------
       Mini Music Player
       ---------------------------------------------------------------------------- */
    .phone.mini {
        position: fixed;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%) scale(1);
        width: 75vw;
        max-height: 215px;
        max-width: 550px;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
        z-index: 2500;
    }

    .phone.mini::before {
        transform: scale(0.975, 0.95);
    }

    .phone.mini.music-player-hidden {
        opacity: 0;
        transform: translateX(-50%) scale(0.01);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .phone.mini .content {
        position: relative; /* Enable absolute positioning for children */
        grid-template-rows: 1.5fr 1.5fr 3fr;
        grid-template-areas:
            "header header header header header header header header"
            "slider slider slider slider slider slider slider slider"
            "controls controls controls controls controls controls controls controls";
        padding-bottom: 10px;
    }

    .phone.mini .content .main {
        display: none;
    }

    /* Header */
    .phone.mini .content .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: auto;
        padding-top: 15px;
        margin-bottom: 5px;
        width: 90%;
    }

    .phone.mini .content .header div {
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .phone.mini .content .header div button {
        transform: scale(0.8);
    }

    .phone.mini .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.mini .content .header div:nth-of-type(1) button.pressed,
    .phone.mini .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.mini .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;
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.mini .content .header a div.audio button {
        background: url("/uploads/img/button/menu-grey.svg"), var(--header-normal-button-front-gradient);
        background-size: 40%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
    }

    .phone.mini .content .header a div.audio button:active {
        background: url("/uploads/img/button/menu-white.svg"), var(--header-pressed-button-front-gradient);
        background-size: 40%, auto;
        background-repeat: no-repeat;
        background-position: 50% 52%, center;
        box-shadow: var(--header-pressed-button-inset-shadows);
    }

    .phone.mini .content .header a {
        background-color: transparent;
        text-decoration: none;
        display: inline-block;
    }

    .phone.mini .content .title {
        flex-grow: 1;
        text-align: center;
        margin-left: 5px;
        margin-right: 5px;
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .phone.mini .content .title h1 {
        font-size: 16px;
        margin: 0;
    }

    .phone.mini .content .title h3 {
        font-size: 12px;
        margin: 2px 0 0 0;
        position: static;
    }

    /* Mini Player Visualizer */
    .mini-player-visualizer {
        grid-area: slider;
        width: 100%;
        height: 100%;
        min-height: 50px;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 1;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phone.mini .content .slider {
        grid-area: slider;
        position: relative;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        z-index: 2;
        width: 100%;
        height: 100%;
        padding: 0 3%;
    }

    /* Mini player canvas styling */
    .phone.mini #jukeboxVisualizerCanvas {
        width: 92.5%;
        height: 60%;
        min-width: 150px;
        min-height: 30px;
        display: block;
        border-radius: 8px;
        position: relative;
        z-index: 1;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
    }

    /* Mini Player Slider */
    .phone.mini .content .slider input[type="range"] {
        appearance: none;
        width: 90%;
        height: 4%;
        background: black;
        box-shadow: inset 0 -1px 2px var(--main-icon-text-color);
        border-radius: 20px;
        padding: 0;
    }

    .phone.mini .content .slider input[type="range"]::-webkit-slider-thumb {
        width: 15px;
        height: 15px;
    }

    .phone.mini .content .slider input[type="range"]::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }

    /* Timestamp Track */
    .phone.mini .content .slider label {
        font-size: 12px;
        bottom: -25%;
    }

    .phone.left:not(.mini) .content .controls:not(.mini-controls) {
        display: flex !important;
    }

    .phone.left:not(.mini) .content .controls.mini-controls {
        display: none !important;
    }

    .phone.left.mini .content .controls:not(.mini-controls) {
        display: none !important;
    }

    .phone.left.mini .content .controls.mini-controls {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12.5%;
    }

    .phone.left.mini .content .controls.mini-controls .audio {
        width: 48px;
        height: 48px;
        transform: translateY(0);
    }

    .phone.left.mini .content .controls.mini-controls .audio:nth-of-type(1) 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.left.mini .content .controls.mini-controls .audio:nth-of-type(1) 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;
    }

    .phone.left.mini .content .controls.mini-controls .audio:nth-of-type(2) {
        width: 60px;
        height: 60px;
    }

    .phone.left.mini .content .controls.mini-controls .audio:nth-of-type(2) 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.left.mini .content .controls.mini-controls .audio:nth-of-type(2) button:active,
    .phone.left.mini .content .controls.mini-controls .audio:nth-of-type(2) 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;
    }

    .phone.left.mini .content .controls.mini-controls .audio:nth-of-type(3) 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.left.mini .content .controls.mini-controls .audio:nth-of-type(3) 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;
    }

    .phone.left.mini .content .controls.mini-controls .audio button {
        background-size: 35%, auto !important;
    }

    /* ----------------------------------------------------------------------------
       Playlist Selector Container (Modal)
       ---------------------------------------------------------------------------- */
    .playlist-selector-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        background: rgba(45, 45, 45, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        padding: 20px;
        z-index: 2600;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .phone.mini:not(.music-player-hidden) + .playlist-selector-container,
    .playlist-selector-container:has(+ .phone.mini:not(.music-player-hidden)) {
        top: auto;
        bottom: calc(15% + 250px);
        transform: translateX(-50%);
    }

    .playlist-selector-container.hidden {
        display: none;
    }

    .existing-playlists-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
        max-height: 200px;
        overflow-y: auto;
    }

    .playlist-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 20px;
        color: white;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .playlist-pill:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .playlist-pill.active {
        background-color: rgba(80, 200, 120, 0.3);
        border-color: rgba(80, 200, 120, 0.5);
    }

    .playlist-pill input[type="checkbox"] {
        display: none;
    }

    .add-playlist-container {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    #newPlaylistInput {
        flex-grow: 1;
        margin: 0;
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        color: #fff;
        font-size: 14px;
    }

    #newPlaylistInput::placeholder {
        color: #999;
    }

    #newPlaylistInput:focus {
        background-color: rgb(60, 60, 60, 0.75);
        border-color: rgba(255, 255, 255, 0.5);
        outline: none;
    }

    #addNewPlaylistBtn.neumorphic-btn-icon {
        background-color: rgba(80, 200, 120, 0.2);
        padding: 6px 8px;
        width: 30px;
        border-radius: 50%;
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    #addNewPlaylistBtn.neumorphic-btn-icon:hover {
        background-color: rgba(80, 200, 120, 0.3);
    }

    /* ----------------------------------------------------------------------------
       Responsive Design
       ---------------------------------------------------------------------------- */
    @media screen and (max-width: 650px) {
        .phone.mini {
            width: 90vw;
        }
    }
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
/* Footer Journal Icon */
.footer .menu#journal img {
    width: 40px;
}