
.opis-artysty {
    max-width: 720px;
    margin: 18px 0 30px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 1.7;
}

.gatunki-artysty {
    margin-bottom: 10px;
    color: #777;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.opis-artysty p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

@media (max-width: 520px) {
    .opis-artysty {
        margin: 14px 0 24px;
        padding: 14px 16px;
    }

    .opis-artysty p {
        font-size: 14px;
    }
}

.play-linked-track {
    display: inline-block;
    margin: 2px 0;
    padding: 2px 2px;
    border: none;
    border-radius: 8px;
    background: #0879c9;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.play-linked-track:hover {
    background: #005a9e;
}

.play-linked-track:active {
    transform: scale(0.98);
}

.artist-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.artist-link:hover {
    text-decoration: underline;
    color: #0879c9;
}

.album-link {
    display: inline;
    color: #0879c9;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.album-link:hover {
    text-decoration: underline;
    color: #005a9e;
}

.close-lyrics2 {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    line-height: 40px;

    padding: 15px 15px 15px;
    box-sizing: border-box;
        border: none;
    border-radius: 10%;
}

.lyrics-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);

    overflow-y: auto;
    padding: 60px 25px 40px;
    box-sizing: border-box;
}

.lyrics-content {
    max-width: 900px;
    margin: 0 auto;

    color: white;
    font-size: 18px;
    line-height: 1.7;

    white-space: pre-wrap;
    text-align: center;
}

.close-lyrics {
    position: fixed;
    top: 15px;
    right: 20px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: white;

    font-size: 32px;
    line-height: 40px;

    cursor: pointer;
    z-index: 100000;
}

.close-lyrics:hover {
    background: rgba(255, 255, 255, 0.3);
}

.disc-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-image {
    
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0,255,170,.18);
    
    z-index: 1;
    transition: opacity .3s ease;
}

.disc {
    opacity: 1.00;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background: #08090d;
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    padding: 30px;

    overflow-x: hidden;
}


/* =====================================================
   TŁO
===================================================== */

.background-glow {
    position: fixed;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(0, 255, 170, 0.16),
            transparent 70%
        );

    filter: blur(45px);

    animation: pulse 6s infinite alternate;

    pointer-events: none;
}


@keyframes pulse {

    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1.2);
    }
}


/* =====================================================
   GŁÓWNY KONTENER
===================================================== */

.player {

    position: relative;

    width: min(1180px, 96vw);

    height: min(760px, 92vh);

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 24px;

    background:
        rgba(20, 20, 30, 0.88);

    backdrop-filter: blur(18px);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 26px;

    padding: 24px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.5);

    overflow: hidden;
}


/* =====================================================
   LEWA CZĘŚĆ - ODTWARZACZ
===================================================== */

.player-main {

    min-width: 0;

    min-height: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    text-align: center;

    overflow: hidden;
}


/* =====================================================
   HEADER
===================================================== */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 12px;
}


.header h1 {

    font-size: 26px;

    letter-spacing: 2px;

    white-space: nowrap;
}


.live {

    color: #00ff99;

    font-weight: bold;

    font-size: 14px;

    white-space: nowrap;

    text-shadow:
        0 0 10px
        rgba(0, 255, 153, 0.5);
}


/* =====================================================
   PŁYTA
===================================================== */

.disc-container {

    display: flex;

    justify-content: center;

    margin: 2px 0 2px;
}


.disc {

    color: #1c4531;

    width: 170px;

    height: 170px;

    flex-shrink: 0;

    border-radius: 50%;

    background:

        radial-gradient(
            circle at center,
            #111 0 16px,
            #333 17px 28px,
            #1c4531 29px 34px,
            transparent 35px
        ),

        repeating-radial-gradient(
            circle,
            #222 0 3px,
            #111 4px 8px
        );

    border: 7px solid #444;

    box-shadow:
        0 0 30px
        rgba(0, 255, 170, 0.15);
}


.disc.playing {

    animation:
        spin 3.5s linear infinite;
}


@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =====================================================
   NAZWA UTWORU
===================================================== */

#title {

    margin-bottom: 10px;

    font-size: 21px;

    color: #00ffcc;

    min-height: 28px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =====================================================
   WIZUALIZER
===================================================== */

#visualizer {

    width: 100%;

    height: 100px;

    margin:
        5px 0
        8px;

    border-radius: 12px;

    background: #101116;
}


/* =====================================================
   CZAS
===================================================== */

.time-row {

    display: flex;

    justify-content: space-between;

    color: #9da3b4;

    font-size: 13px;

    margin:
        0 2px
        4px;
}


/* =====================================================
   PASEK PRZEWIJANIA
===================================================== */

#seek {

    width: 100%;

    height: 12px;

    margin:
        0 0
        16px;

    cursor: pointer;

    accent-color: #00ff99;
}


/* =====================================================
   PRZYCISKI
===================================================== */

.controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    margin-bottom: 14px;
}


button {

    border: none;

    border-radius: 999px;

    padding:
        11px 18px;

    min-width: 52px;

    font-size: 19px;

    cursor: pointer;

    background: #00ff99;

    color: #111;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


button:hover {

    transform:
        translateY(-1px)
        scale(1.04);

    background: #33ffad;

    box-shadow:
        0 0 18px
        rgba(0, 255, 153, 0.25);
}


button:active {

    transform: scale(0.96);
}


/* =====================================================
   GŁOŚNOŚĆ
===================================================== */

.volume-row {

    display: flex;

    align-items: center;

    gap: 8px;

    margin:
        0 auto
        12px;

    width: min(300px, 70%);
}


.volume-row input {

    width: 100%;

    height: 5px;

    cursor: pointer;

    accent-color: #00ff99;
}


/* =====================================================
   STATUS
===================================================== */

.status {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    color: #cfd3dc;

    font-size: 13px;

    margin-top: 2px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    margin-top: 12px;

    color: #8e94a6;

    font-size: 13px;
}


/* =====================================================
   PLAYLISTA - PRAWA STRONA
===================================================== */

.playlist-panel {

    min-width: 0;

    min-height: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    background:
        rgba(10, 12, 18, 0.72);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    padding: 16px;

    overflow: hidden;
}


/* =====================================================
   NAGŁÓWEK PLAYLISTY
===================================================== */

.playlist-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 12px;
}


.playlist-header h2 {

    font-size: 18px;

    color: #00ffcc;
}


#playlistCount {

    min-width: 32px;

    padding:
        4px 8px;

    border-radius: 20px;

    background:
        rgba(0, 255, 153, 0.12);

    color: #00ff99;

    font-size: 12px;

    text-align: center;
}


/* =====================================================
   WYSZUKIWARKA
===================================================== */

#search {

    width: 100%;

    height: 40px;

    flex-shrink: 0;

    border: none;

    outline: none;

    border-radius: 10px;

    padding:
        0 12px;

    background:
        rgba(255, 255, 255, 0.07);

    color: white;

    font-size: 14px;

    margin-bottom: 10px;
}


#search::placeholder {

    color: #7f8595;
}


#search:focus {

    background:
        rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 0 1px
        rgba(0, 255, 153, 0.25);
}


/* =====================================================
   LISTA UTWORÓW
===================================================== */

#playlist {

    list-style: none;

    padding: 0;

    margin: 0;

    flex: 1;

    min-height: 0;

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(0, 255, 153, 0.5)
        rgba(255, 255, 255, 0.04);
}


/* Chrome / Edge / Safari */

#playlist::-webkit-scrollbar {

    width: 7px;
}


#playlist::-webkit-scrollbar-track {

    background:
        rgba(255, 255, 255, 0.03);

    border-radius: 10px;
}


#playlist::-webkit-scrollbar-thumb {

    background:
        rgba(0, 255, 153, 0.45);

    border-radius: 10px;
}


#playlist::-webkit-scrollbar-thumb:hover {

    background:
        rgba(0, 255, 153, 0.7);
}


/* =====================================================
   POJEDYNCZY UTWÓR
===================================================== */

.play-item {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    min-height: 46px;

    padding:
        8px 10px;

    margin-bottom: 5px;

    border-radius: 10px;

    color: #d8dce5;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.play-item:hover {

    background:
        rgba(0, 255, 153, 0.08);

    color: #fff;

    transform:
        translateX(2px);
}


/* =====================================================
   IKONA PLAY / PAUZA
===================================================== */

.play-icon {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 27px;

    height: 27px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(0, 255, 153, 0.1);

    color: #00ff99;

    font-size: 12px;
}


/* =====================================================
   NAZWA UTWORU
===================================================== */

.song-name {

    min-width: 0;

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 14px;
}


/* =====================================================
   AKTYWNY UTWÓR
===================================================== */

.play-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(0, 255, 153, 0.16),
            rgba(0, 255, 153, 0.05)
        );

    color: #00ffcc;

    box-shadow:
        inset 3px 0 0
        #00ff99;
}


.play-item.active .play-icon {

    background:
        #00ff99;

    color: #07100c;

    box-shadow:
        0 0 12px
        rgba(0, 255, 153, 0.35);
}


/* =====================================================
   RESPONSYWNOŚĆ
===================================================== */

@media (max-width: 900px) {

    body {

        align-items: flex-start;

        padding:
            15px;
    }


    .player {

        width: 100%;

        height: auto;

        min-height: 0;

        grid-template-columns: 1fr;

        padding: 18px;

        overflow: visible;
    }


    .player-main {

        min-height: auto;

        overflow: visible;
    }


    .playlist-panel {

        height: 360px;

        min-height: 360px;
    }


    .disc {

        width: 150px;

        height: 150px;
    }


    #visualizer {

        height: 80px;
    }
}


/* =====================================================
   TELEFONY
===================================================== */

@media (max-width: 520px) {

    body {

        padding: 8px;
    }


    .player {

        width: 100%;

        padding: 14px;

        border-radius: 18px;

        gap: 14px;
    }


    .header {

        align-items: flex-start;
    }


    .header h1 {

        font-size: 19px;

        letter-spacing: 1px;
    }


    .live {

        font-size: 11px;
    }


    .disc {

        width: 125px;

        height: 125px;
    }


    #title {

        font-size: 17px;
    }


    #visualizer {

        height: 65px;
    }


    .controls {

        gap: 9px;
    }


    button {

        min-width: 45px;

        padding:
            10px 13px;

        font-size: 17px;
    }


    .volume-row {

        width: 90%;
    }


    .status {

        flex-direction: column;

        align-items: center;

        gap: 4px;
    }


    .playlist-panel {

        height: 320px;

        min-height: 320px;

        padding: 12px;
    }


    .play-item {

        min-height: 43px;

        padding:
            7px 8px;
    }
}
#title a,
#title a:visited,
#title a:hover,
#title a:active {
    color: inherit;
    font: inherit;
    text-decoration: underline;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    margin-top: 3px;
    font-size: 0.78rem;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-order {
    margin-left: 10px;
    font-size: 0.75rem;
    opacity: 0.45;
    min-width: 24px;
    text-align: right;
}

.current-title {
    font-size: 1.15em;
    font-weight: 700;
}

.current-meta {
    margin-top: 5px;
    font-size: 0.75em;
    opacity: 0.6;
    font-weight: 400;
}

.spotify-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.75em;
}