/* =========================================
   AI MUSIC PRODUCTION STUDIO
   Main Application Styles
========================================= */

* {
    box-sizing: border-box;
}

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

:root {
    --bg: #09090f;
    --bg-secondary: #11111a;
    --card: #151520;
    --card-hover: #1c1c2b;

    --text: #ffffff;
    --text-secondary: #a6a6b5;
    --text-muted: #6f6f80;

    --primary: #9b5cff;
    --secondary: #ff3cac;
    --accent: #7c4dff;

    --border: rgba(255, 255, 255, 0.08);

    --sidebar-width: 250px;
    --player-height: 78px;

    --radius: 14px;
}

/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);

    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   APP SHELL
========================================= */

.app-shell {
    min-height: 100vh;
    padding-bottom: var(--player-height);
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: var(--player-height);

    width: var(--sidebar-width);

    background:
        linear-gradient(
            180deg,
            #11111b 0%,
            #0b0b12 100%
        );

    border-right: 1px solid var(--border);

    padding: 24px 16px;

    display: flex;
    flex-direction: column;

    z-index: 100;
}

/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 4px 8px 28px;
}

.brand-logo {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    font-size: 23px;

    box-shadow:
        0 0 25px rgba(155, 92, 255, 0.35);
}

.brand h1 {
    font-size: 14px;
    letter-spacing: 1px;
}

.brand span {
    display: block;

    margin-top: 3px;

    font-size: 8px;
    letter-spacing: 1.8px;

    color: var(--text-muted);
}

/* NAVIGATION */

.navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 14px;

    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;

    transform: translateX(2px);
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(155, 92, 255, 0.2),
            rgba(255, 60, 172, 0.08)
        );

    color: white;

    box-shadow:
        inset 3px 0 var(--primary);
}

/* SIDEBAR BOTTOM */

.sidebar-bottom {
    margin-top: auto;
}

.premium-card {
    padding: 18px;

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(155, 92, 255, 0.18),
            rgba(255, 60, 172, 0.08)
        );

    border: 1px solid rgba(155, 92, 255, 0.18);
}

.premium-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.premium-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.premium-card p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.premium-card button {
    width: 100%;

    padding: 9px;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.copyright {
    text-align: center;

    color: var(--text-muted);

    font-size: 9px;

    margin-top: 18px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    margin-left: var(--sidebar-width);

    min-height: calc(
        100vh - var(--player-height)
    );

    padding: 0 34px 50px;
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
    height: 76px;

    display: flex;
    align-items: center;

    gap: 14px;

    position: sticky;
    top: 0;

    z-index: 50;

    background: rgba(9, 9, 15, 0.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.search-box {
    flex: 1;

    max-width: 570px;

    height: 42px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border-radius: 10px;

    background: #13131c;

    border: 1px solid var(--border);
}

.search-box span {
    color: var(--text-muted);
    font-size: 22px;
}

.search-box input {
    width: 100%;

    background: transparent;

    border: 0;
    outline: 0;

    color: white;

    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.upgrade-button {
    padding: 10px 15px;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(155,92,255,.2),
            rgba(255,60,172,.16)
        );

    border: 1px solid rgba(155,92,255,.3);

    font-size: 12px;
}

.notification-button {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #151520;

    color: white;
}

.profile {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-left: 4px;
}

.avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    font-weight: 700;
}

.profile strong {
    display: block;
    font-size: 11px;
}

.profile small {
    color: var(--text-muted);
    font-size: 9px;
}

/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 340px;

    margin-top: 24px;

    border-radius: 22px;

    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 50px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,60,172,.38),
            transparent 35%
        ),
        radial-gradient(
            circle at 45% 80%,
            rgba(155,92,255,.35),
            transparent 40%
        ),
        linear-gradient(
            120deg,
            #1c1031,
            #110f20 55%,
            #160b1d
        );

    border: 1px solid rgba(255,255,255,.07);
}

.hero::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: 90px;
    top: 10px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.12),
            transparent 65%
        );

    filter: blur(8px);
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 550px;
}

.badge {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 6px;

    background: rgba(255,255,255,.08);

    color: #d7baff;

    font-size: 9px;

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.hero h2 {
    font-size: clamp(36px, 5vw, 62px);

    line-height: 1.05;

    margin-bottom: 10px;
}

.artist {
    color: var(--text-secondary);

    font-size: 14px;

    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.play-button {
    padding: 12px 20px;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(155,92,255,.25);
}

.library-button {
    padding: 12px 18px;

    border-radius: 9px;

    color: white;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.1);
}

/* =========================================
   SECTIONS
========================================= */

.content-section {
    margin-top: 38px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 20px;
}

.section-header p {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}

.section-header button {
    background: transparent;
    color: var(--text-muted);

    font-size: 11px;
}

.section-header button:hover {
    color: white;
}

/* =========================================
   SONG GRID
========================================= */

.music-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;
}

.song-card {
    min-width: 0;

    padding: 10px;

    border-radius: var(--radius);

    background: var(--card);

    border: 1px solid transparent;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.song-card:hover {
    transform: translateY(-4px);

    background: var(--card-hover);

    border-color: rgba(155,92,255,.2);
}

.song-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    line-height: 0;
}

.song-cover img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    border-radius: inherit;

    opacity: 1;
    visibility: visible;
}

.card-play {
    position: absolute;

    right: 9px;
    bottom: 9px;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    opacity: 0;

    transform: translateY(5px);

    transition: .2s ease;
}

.song-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.song-card h3 {
    font-size: 13px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card p {
    margin-top: 4px;

    font-size: 10px;

    color: var(--text-muted);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   CATEGORIES
========================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}

.category-card {
    padding: 20px;

    min-height: 90px;

    display: flex;
    align-items: flex-end;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            #201337,
            #151521
        );

    border: 1px solid var(--border);

    font-weight: 700;

    font-size: 13px;

    transition: .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: rgba(155,92,255,.35);
}

/* =========================================
   PLAYLISTS
========================================= */

.playlist-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}

.playlist-card {
    min-height: 125px;

    padding: 18px;

    display: flex;
    align-items: flex-end;

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            #251342,
            #14141f
        );

    border: 1px solid var(--border);

    font-size: 13px;
    font-weight: 700;

    transition: .2s ease;
}

.playlist-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(255,60,172,.3);
}

/* =========================================
   DAILY MIX
========================================= */

.mix-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.mix-card {
    padding: 22px;

    min-height: 110px;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(155,92,255,.14),
            rgba(255,60,172,.06)
        );

    border: 1px solid var(--border);
}

.mix-card strong {
    display: block;

    font-size: 15px;

    margin-bottom: 7px;
}

.mix-card span {
    font-size: 10px;

    color: var(--text-muted);
}

/* =========================================
   AI MUSIC PRODUCTION STUDIO
   PREMIUM MUSIC PLAYER
========================================= */

.music-player {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    height: 92px;

    z-index: 9999;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        minmax(420px, 1.4fr)
        minmax(260px, 1fr);

    align-items: center;

    gap: 24px;

    padding:
        10px
        24px;

    background:
        linear-gradient(
            180deg,
            rgba(18, 17, 28, .97),
            rgba(9, 8, 15, .99)
        );

    border-top:
        1px solid
        rgba(255,255,255,.07);

    box-shadow:
        0 -15px 40px
        rgba(0,0,0,.35);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}


/* =========================================
   CURRENT SONG
========================================= */

.player-song-info {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 14px;
}


.player-cover-wrapper {

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #171329,
            #0d0b15
        );

    box-shadow:
        0 6px 20px
        rgba(0,0,0,.35);
}


.player-cover {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        opacity .25s ease;
}


.player-song-details {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.player-title {

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-bottom: 5px;
}


.player-artist {

    color:
        rgba(255,255,255,.52);

    font-size: 12px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================
   PLAYER ICON BUTTON
========================================= */

.player-icon-button {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color:
        rgba(255,255,255,.65);

    font-size: 19px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        .2s ease;
}


.player-icon-button:hover {

    color: #ffffff;

    background:
        rgba(255,255,255,.08);

    transform:
        translateY(-1px);
}


/* =========================================
   LIKE
========================================= */

.player-like-button {

    font-size: 25px;

    margin-left: 4px;
}


.player-like-button:hover {

    color:
        #ff4db8;
}


/* =========================================
   CENTER PLAYER
========================================= */

.player-center {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;
}


/* =========================================
   CONTROLS
========================================= */

.player-controls {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;
}


.player-control-button {

    width: 30px;
    height: 30px;

    padding: 0;

    border: none;

    background: transparent;

    color:
        rgba(255,255,255,.72);

    font-size: 17px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        .2s ease;
}


.player-control-button:hover {

    color: #ffffff;

    transform:
        scale(1.12);
}


/* =========================================
   ACTIVE SHUFFLE / REPEAT
========================================= */

.player-control-button.active {

    color:
        #d85cff;

    text-shadow:
        0 0 12px
        rgba(216,92,255,.7);
}


/* =========================================
   MAIN PLAY BUTTON
========================================= */

.main-play-button {

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #9b5cff,
            #ec45c7
        );

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 7px 25px
        rgba(194,75,230,.38);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.main-play-button:hover {

    transform:
        scale(1.08);

    box-shadow:
        0 10px 32px
        rgba(194,75,230,.55);
}


.main-play-button.playing {

    box-shadow:
        0 0 25px
        rgba(216,92,255,.5);
}


/* =========================================
   PROGRESS
========================================= */

.player-progress {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 9px;
}


.player-time {

    width: 34px;

    color:
        rgba(255,255,255,.48);

    font-size: 10px;

    text-align: center;
}


/* =========================================
   RANGE SLIDERS
========================================= */

.progress-slider,
.volume-slider {

    appearance: none;

    -webkit-appearance: none;

    border: none;

    outline: none;

    cursor: pointer;
}


.progress-slider {

    flex: 1;

    height: 4px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.14);
}


.progress-slider::-webkit-slider-thumb {

    appearance: none;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        #e454d7;

    box-shadow:
        0 0 10px
        rgba(228,84,215,.7);
}


.progress-slider::-moz-range-thumb {

    width: 10px;
    height: 10px;

    border: none;

    border-radius: 50%;

    background:
        #e454d7;
}


/* =========================================
   RIGHT SIDE
========================================= */

.player-right {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;
}


.volume-slider {

    width: 90px;

    height: 4px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.14);
}


.volume-slider::-webkit-slider-thumb {

    appearance: none;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        #d85cff;
}


.volume-slider::-moz-range-thumb {

    width: 10px;
    height: 10px;

    border: none;

    border-radius: 50%;

    background:
        #d85cff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .music-player {

        grid-template-columns:
            1fr
            auto;

        height: 76px;

        padding:
            8px 12px;
    }


    .player-center {

        order: 2;
    }


    .player-song-info {

        order: 1;
    }


    .player-right {

        display: none;
    }


    .player-cover-wrapper {

        width: 48px;
        height: 48px;
    }


    .player-title {

        font-size: 13px;
    }


    .player-artist {

        font-size: 10px;
    }


    .player-controls {

        gap: 8px;
    }


    .player-control-button {

        width: 26px;
        height: 26px;

        font-size: 14px;
    }


    .main-play-button {

        width: 42px;
        height: 42px;

        font-size: 16px;
    }

}

/* =========================================
   PAGE SPACE FOR FIXED PLAYER
========================================= */

main,
.app-content,
#app,
.page-content {

    padding-bottom: 120px;
}

/* =========================================================
   AI MUSIC PRODUCTION STUDIO
   FINAL PLAYER LAYOUT OVERRIDE
   ========================================================= */

.music-player {
    position: fixed !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 92px !important;

    z-index: 99999 !important;

    display: grid !important;

    grid-template-columns:
        minmax(280px, 1fr)
        minmax(400px, 1.5fr)
        minmax(260px, 1fr) !important;

    grid-template-rows: 1fr !important;

    align-items: center !important;

    gap: 25px !important;

    padding: 10px 28px !important;

    box-sizing: border-box !important;

    background:
        linear-gradient(
            180deg,
            rgba(18, 17, 28, 0.98),
            rgba(8, 7, 13, 0.99)
        ) !important;

    border-top:
        1px solid rgba(255,255,255,.08) !important;

    box-shadow:
        0 -12px 40px rgba(0,0,0,.45) !important;

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   LEFT SONG INFORMATION
   ========================================================= */

.music-player .player-song-info {

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-start !important;

    min-width: 0 !important;

    width: 100% !important;

    gap: 14px !important;
}


.music-player .player-cover-wrapper {

    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;

    flex: 0 0 58px !important;

    overflow: hidden !important;

    border-radius: 9px !important;
}


.music-player .player-cover {

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block !important;
}


.music-player .player-song-details {

    min-width: 0 !important;

    flex: 1 !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;
}


.music-player .player-title {

    display: block !important;

    width: 100% !important;

    font-size: 14px !important;

    font-weight: 700 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    color: #fff !important;
}


.music-player .player-artist {

    display: block !important;

    width: 100% !important;

    margin-top: 4px !important;

    font-size: 11px !important;

    color: rgba(255,255,255,.5) !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;
}


/* =========================================================
   CENTER PLAYER
   ========================================================= */

.music-player .player-center {

    width: 100% !important;

    min-width: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 5px !important;
}


/* =========================================================
   IMPORTANT FIX:
   FORCE PLAYER BUTTONS HORIZONTALLY
   ========================================================= */

.music-player .player-controls {

    width: auto !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 18px !important;

    flex-wrap: nowrap !important;
}


.music-player .player-control-button {

    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;

    flex: 0 0 30px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    border: none !important;

    background: transparent !important;

    color: rgba(255,255,255,.72) !important;

    cursor: pointer !important;
}


.music-player .main-play-button {

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;

    flex: 0 0 48px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border: none !important;

    border-radius: 50% !important;

    background:
        linear-gradient(
            135deg,
            #9b5cff,
            #ec45c7
        ) !important;

    color: white !important;

    cursor: pointer !important;

    box-shadow:
        0 7px 25px rgba(194,75,230,.4) !important;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.music-player .player-progress {

    width: 100% !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    gap: 8px !important;
}


.music-player .progress-slider {

    flex: 1 !important;

    width: auto !important;

    min-width: 0 !important;

    height: 4px !important;
}


.music-player .player-time {

    width: 34px !important;

    min-width: 34px !important;

    font-size: 10px !important;

    color: rgba(255,255,255,.48) !important;

    text-align: center !important;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.music-player .player-right {

    width: 100% !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-end !important;

    gap: 7px !important;
}


.music-player .volume-slider {

    width: 85px !important;

    min-width: 60px !important;

    height: 4px !important;
}


.music-player .player-icon-button {

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;

    flex: 0 0 34px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border: none !important;

    background: transparent !important;

    color: rgba(255,255,255,.68) !important;

    cursor: pointer !important;
}


/* =========================================================
   AUDIO ELEMENT
   ========================================================= */

.music-player > audio {

    display: none !important;
}


/* =========================================================
   CONTENT SPACE
   ========================================================= */

body {

    padding-bottom: 92px !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1100px) {

    .music-player {
        height: 92px !important;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .music-player {

        grid-template-columns:
            minmax(220px, 1fr)
            minmax(350px, 1.3fr)
            minmax(180px, .8fr) !important;

        gap: 12px !important;

        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .music-player .player-like-button,
    .music-player #queue-button,
    .music-player #more-button {

        display: none !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .music-player {

        height: 78px !important;

        display: grid !important;

        grid-template-columns:
            1fr auto !important;

        gap: 8px !important;

        padding:
            7px 12px !important;
    }


    .music-player .player-song-info {

        grid-column: 1 !important;

        grid-row: 1 !important;
    }


    .music-player .player-center {

        width: auto !important;

        grid-column: 2 !important;

        grid-row: 1 !important;
    }


    .music-player .player-progress,
    .music-player .player-right {

        display: none !important;
    }


    .music-player .player-controls {

        gap: 5px !important;
    }


    .music-player .player-control-button {

        display: none !important;
    }


    .music-player .main-play-button {

        width: 44px !important;
        height: 44px !important;
    }


    .music-player .player-cover-wrapper {

        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
    }


    body {

        padding-bottom: 78px !important;
    }

}

/* =========================================================
   AI MUSIC PRODUCTION STUDIO
   PREMIUM QUEUE PANEL
   ========================================================= */

.queue-panel {

    position: fixed;

    right: 24px;
    bottom: 105px;

    width: 360px;
    max-width: calc(100vw - 32px);

    max-height: 520px;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            rgba(24, 22, 35, 0.98),
            rgba(10, 9, 16, 0.99)
        );

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 18px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.55);

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px)
        scale(.97);

    transform-origin:
        bottom right;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    z-index: 100000;
}


/* ==========================================
   QUEUE OPEN
   ========================================== */

.queue-panel.open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================
   QUEUE HEADER
   ========================================== */

.queue-header {

    min-height: 70px;

    padding:
        16px
        18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

    background:
        rgba(255,255,255,.025);
}


.queue-header h3 {

    margin: 0;

    font-size: 17px;

    font-weight: 700;

    color: #ffffff;
}


.queue-header span {

    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,.45);

    font-size: 10px;
}


/* ==========================================
   CLOSE QUEUE
   ========================================== */

.queue-close-button {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);

    color:
        rgba(255,255,255,.65);

    font-size: 23px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.queue-close-button:hover {

    background:
        rgba(255,255,255,.12);

    color: #ffffff;

    transform:
        rotate(90deg);
}


/* ==========================================
   QUEUE LIST
   ========================================== */

.queue-list {

    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding:
        8px;
}


/* ==========================================
   QUEUE SCROLLBAR
   ========================================== */

.queue-list::-webkit-scrollbar {

    width: 5px;
}


.queue-list::-webkit-scrollbar-track {

    background:
        transparent;
}


.queue-list::-webkit-scrollbar-thumb {

    background:
        rgba(255,255,255,.15);

    border-radius: 10px;
}


.queue-list::-webkit-scrollbar-thumb:hover {

    background:
        rgba(155,92,255,.5);
}


/* ==========================================
   QUEUE ITEM
   ========================================== */

.queue-item {

    width: 100%;

    min-height: 66px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        8px 10px;

    margin-bottom: 3px;

    border: 1px solid transparent;

    border-radius: 11px;

    background:
        transparent;

    color: white;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.queue-item:hover {

    background:
        rgba(255,255,255,.06);

    border-color:
        rgba(255,255,255,.07);

    transform:
        translateX(2px);
}


/* ==========================================
   ACTIVE QUEUE ITEM
   ========================================== */

.queue-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(155,92,255,.18),
            rgba(255,60,172,.08)
        );

    border-color:
        rgba(155,92,255,.22);
}


/* ==========================================
   QUEUE COVER
   ========================================== */

.queue-item-cover {

    position: relative;

    width: 48px;
    height: 48px;

    flex:
        0 0 48px;

    overflow: hidden;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #171329,
            #0d0b15
        );
}


.queue-item-cover img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ==========================================
   CURRENT SONG INDICATOR
   ========================================== */

.queue-playing-indicator {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0,0,0,.55);

    color:
        #ffffff;

    font-size: 17px;

    opacity: 0;

    transition:
        opacity .2s ease;
}


.queue-item.active
.queue-playing-indicator {

    opacity: 1;
}


/* ==========================================
   QUEUE INFORMATION
   ========================================== */

.queue-item-info {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.queue-item-info strong {

    display: block;

    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


.queue-item-info span {

    display: block;

    margin-top: 4px;

    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color:
        rgba(255,255,255,.45);

    font-size: 10px;
}


/* ==========================================
   QUEUE NUMBER
   ========================================== */

.queue-item-number {

    width: 24px;

    flex:
        0 0 24px;

    text-align: center;

    color:
        rgba(255,255,255,.30);

    font-size: 9px;
}


.queue-item.active
.queue-item-number {

    color:
        #c66cff;
}


/* ==========================================
   EMPTY QUEUE
   ========================================== */

.queue-empty {

    min-height: 240px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.queue-empty-icon {

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(155,92,255,.2),
            rgba(255,60,172,.12)
        );

    color:
        #c66cff;

    font-size: 24px;
}


.queue-empty p {

    margin: 0;

    color:
        rgba(255,255,255,.45);

    font-size: 12px;
}


/* =========================================================
   VOLUME BUTTON
   ========================================================= */

.music-player
#volume-button {

    font-size: 17px;

    transition:
        transform .2s ease,
        filter .2s ease;
}


.music-player
#volume-button:hover {

    filter:
        drop-shadow(
            0 0 8px
            rgba(155,92,255,.6)
        );
}


/* =========================================================
   LIKE BUTTON
   ========================================================= */

.music-player
.player-like-button {

    font-size: 25px;

    color:
        rgba(255,255,255,.55);

    transition:
        color .2s ease,
        transform .2s ease;
}


.music-player
.player-like-button:hover {

    color:
        #ff4db8;
}


.music-player
.player-like-button.liked {

    color:
        #ff4db8;

    text-shadow:
        0 0 12px
        rgba(255,77,184,.45);
}


/* =========================================================
   MORE MENU
   ========================================================= */

.player-more-menu {

    position: fixed;

    right: 22px;

    bottom: 105px;

    width: 210px;

    padding: 7px;

    display: flex;

    flex-direction: column;

    gap: 3px;

    background:
        rgba(24,22,35,.98);

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 13px;

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.5);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(10px)
        scale(.97);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    z-index: 100001;
}


.player-more-menu.open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.player-more-menu button {

    width: 100%;

    padding:
        11px 12px;

    border: none;

    border-radius: 8px;

    background:
        transparent;

    color:
        rgba(255,255,255,.70);

    text-align: left;

    font-size: 11px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.player-more-menu button:hover {

    background:
        rgba(255,255,255,.07);

    color: #ffffff;
}


/* =========================================================
   QUEUE + PLAYER MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .queue-panel {

        left: 10px;
        right: 10px;

        bottom: 88px;

        width: auto;

        max-width: none;

        max-height:
            calc(100vh - 105px);

        border-radius: 16px;
    }


    .player-more-menu {

        right: 10px;

        bottom: 88px;

        width: 200px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {

    .queue-panel {

        left: 6px;
        right: 6px;

        bottom: 84px;

        max-height:
            calc(100vh - 95px);
    }


    .queue-header {

        min-height: 62px;

        padding:
            13px 14px;
    }


    .queue-item {

        min-height: 60px;

        padding:
            6px 8px;
    }


    .queue-item-cover {

        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }

}

/* ==========================================
   PLAYLIST DETAILS PAGE
   ========================================== */

.playlist-details-page {
    width: 100%;
    padding: 32px;
}


/* ==========================================
   HEADER
   ========================================== */

.playlist-details-header {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    padding: 28px;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.025)
        );
    border: 1px solid rgba(255,255,255,0.08);
}


.playlist-details-cover {
    width: 220px;
    min-width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #151515;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}


.playlist-details-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.playlist-details-info {
    min-width: 0;
}


.playlist-type {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.65;
}


.playlist-details-info h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
}


.playlist-description {
    max-width: 700px;
    margin: 0 0 14px;
    opacity: 0.7;
}


.playlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    opacity: 0.65;
}


/* ==========================================
   ACTIONS
   ========================================== */

.playlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}


.playlist-play-button,
.playlist-action-button,
.playlist-back-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    font: inherit;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}


.playlist-play-button {
    background: #ffffff;
    color: #111111;
    font-weight: 700;
}


.playlist-action-button,
.playlist-back-button {
    background: rgba(255,255,255,0.08);
    color: inherit;
}


.playlist-action-button:hover,
.playlist-play-button:hover,
.playlist-back-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


.playlist-action-button.danger {
    color: #ff6b6b;
}


/* ==========================================
   SONG SECTION
   ========================================== */

.playlist-songs-section {
    margin-top: 34px;
}


.playlist-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}


.playlist-section-header h2 {
    margin: 0;
}


.playlist-section-header span {
    font-size: 13px;
    opacity: 0.55;
}


/* ==========================================
   SONG ROW
   ========================================== */

.playlist-song-list {
    display: flex;
    flex-direction: column;
}


.playlist-song-row {
    display: grid;
    grid-template-columns:
        36px
        54px
        minmax(0, 1fr)
        42px
        42px;

    align-items: center;
    gap: 12px;

    min-height: 70px;
    padding: 8px 12px;

    border-radius: 12px;

    transition:
        background 0.2s ease;
}


.playlist-song-row:hover {
    background: rgba(255,255,255,0.06);
}


.playlist-song-number {
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}


.playlist-song-cover {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #151515;
}


.playlist-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.playlist-song-info {
    min-width: 0;
}


.playlist-song-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}


.playlist-song-artist {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0.55;
}


/* ==========================================
   SONG BUTTONS
   ========================================== */

.playlist-song-play,
.playlist-song-remove {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: inherit;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.playlist-song-play:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.08);
}


.playlist-song-remove {
    font-size: 22px;
    opacity: 0.5;
}


.playlist-song-remove:hover {
    background: rgba(255,70,70,0.12);
    color: #ff6b6b;
    opacity: 1;
}


/* ==========================================
   EMPTY STATE
   ========================================== */

.playlist-empty-state,
.playlist-no-songs {
    text-align: center;
    padding: 70px 20px;
}


.playlist-empty-icon,
.playlist-no-songs-icon {
    font-size: 48px;
    margin-bottom: 14px;
}


.playlist-empty-state h2,
.playlist-no-songs h3 {
    margin: 0 0 8px;
}


.playlist-empty-state p,
.playlist-no-songs p {
    margin: 0 0 20px;
    opacity: 0.6;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 700px) {

    .playlist-details-page {
        padding: 18px;
    }


    .playlist-details-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }


    .playlist-details-cover {
        width: 180px;
        min-width: 180px;
        height: 180px;
    }


    .playlist-details-info h1 {
        font-size: 34px;
    }


    .playlist-song-row {
        grid-template-columns:
            28px
            48px
            minmax(0, 1fr)
            36px
            36px;

        gap: 8px;
    }


    .playlist-song-cover {
        width: 48px;
        height: 48px;
    }


    .playlist-song-number {
        font-size: 12px;
    }

}

/* =========================================================
   ADD TO PLAYLIST PANEL
========================================================= */

.add-to-playlist-panel {
    position: fixed;

    right: 24px;
    bottom: 105px;

    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: 480px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(24,22,35,.99),
            rgba(10,9,16,.99)
        );

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.55);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(12px)
        scale(.97);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    z-index: 100002;
}


.add-to-playlist-panel.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* HEADER */

.add-playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}


.add-playlist-header h3 {
    margin: 0;

    font-size: 16px;
}


.add-playlist-header span {
    display: block;

    max-width: 230px;

    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: rgba(255,255,255,.45);

    font-size: 10px;
}


#add-playlist-close {
    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,.07);

    color: white;

    font-size: 21px;

    cursor: pointer;
}


/* LIST */

.add-playlist-list {
    flex: 1;

    overflow-y: auto;

    padding: 8px;
}


.add-playlist-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    margin-bottom: 3px;

    border: 1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: white;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}


.add-playlist-item:hover {
    background:
        rgba(255,255,255,.06);
}


.add-playlist-item.added {
    border-color:
        rgba(155,92,255,.22);

    background:
        rgba(155,92,255,.10);
}


.add-playlist-item-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(155,92,255,.22),
            rgba(255,60,172,.12)
        );
}


.add-playlist-item-info {
    min-width: 0;

    flex: 1;
}


.add-playlist-item-info strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
}


.add-playlist-item-info span {
    display: block;

    margin-top: 3px;

    color:
        rgba(255,255,255,.42);

    font-size: 10px;
}


.add-playlist-status {
    color:
        rgba(255,255,255,.42);

    font-size: 10px;
}


.add-playlist-item.added
.add-playlist-status {
    color: #c46cff;
}


/* EMPTY */

.add-playlist-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px;
}


.add-playlist-empty > div {
    font-size: 34px;

    margin-bottom: 10px;
}


.add-playlist-empty strong {
    font-size: 13px;
}


.add-playlist-empty span {
    margin-top: 5px;

    color:
        rgba(255,255,255,.45);

    font-size: 10px;
}


/* CREATE */

.create-playlist-from-player {
    margin: 8px;

    padding: 11px 14px;

    border: 1px solid
        rgba(155,92,255,.25);

    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            rgba(155,92,255,.16),
            rgba(255,60,172,.10)
        );

    color: white;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.create-playlist-from-player:hover {
    background:
        linear-gradient(
            90deg,
            rgba(155,92,255,.26),
            rgba(255,60,172,.17)
        );
}


@media (max-width: 700px) {

    .add-to-playlist-panel {
        left: 10px;
        right: 10px;

        bottom: 88px;

        width: auto;

        max-width: none;

        max-height:
            calc(100vh - 105px);
    }
}