html,
body {

    margin: 0;
    padding: 0;

    min-height: 100%;

    background-image: none;

    background-color: #222222;

    font-family: 'Titillium Web', sans-serif;

    font-size: 13px;

    color: #eeeeee;

    letter-spacing: 1px;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;
}


body {

    display: flex;

    justify-content: center;

    padding: 55px 20px;

    box-sizing: border-box;
}


/* =========================
   PAGE
   ========================= */

.page {

    width: 650px;

    max-width: 100%;
}


/* =========================
   IPOD BODY
   ========================= */

.ipod {

    position: relative;

    width: 100%;

    height: 760px;

    box-sizing: border-box;

    padding: 30px 35px 150px;

    background: #dddddd;

    border: 3px solid #000000;

    border-radius: 45px;

    box-shadow: 9px 9px 0 #000000;

    overflow: hidden;
}


/* =========================
   SCREEN
   ========================= */

.ipod-screen {

    width: 100%;

    height: 480px;

    box-sizing: border-box;

    padding: 9px;

    background: #000000;

    border: 2px solid #444444;

    border-radius: 12px;

    box-shadow:
        inset 0 0 0 2px #dddddd;
}


.screen {

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    min-width: 0;
    min-height: 0;

    box-sizing: border-box;

    background: #222222;

    border: 1px solid #000000;

    overflow: hidden;
}


/* =========================
   TOP BAR
   ========================= */

.screen-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-shrink: 0;

    padding: 7px 11px;

    background: #dddddd;

    color: #111111;

    border-bottom: 1px solid #000000;

    font-family: Times, serif;

    font-size: 11px;

    letter-spacing: 2px;
}


.battery {

    color: #333333;

    font-size: 9px;

    letter-spacing: 0;
}


/* =========================
   SCREEN PAGES
   ========================= */

.screen-page {

    flex: 1;

    min-width: 0;
    min-height: 0;

    overflow: hidden;
}


.screen-page.hidden {

    display: none;
}


.screen-content {

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    padding: 10px;

    box-sizing: border-box;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background: #222222;
}


/* =========================
   NOW PLAYING
   ========================= */

.now-playing {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 9px;

    border-bottom: 1px dotted #777777;
}


.now-playing-cover {

    width: 65px;
    height: 65px;

    flex-shrink: 0;

    padding: 2px;

    background: #000000;

    border: 1px solid #dddddd;
}


.now-playing-cover img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.now-playing-info {

    min-width: 0;
}


.now-label {

    display: block;

    margin-bottom: 2px;

    color: #dddddd;

    font-size: 8px;

    letter-spacing: 2px;
}


.now-playing-info h1 {

    margin: 0;

    color: #eeeeee;

    font-family: Times, serif;

    font-size: 18px;

    font-weight: normal;

    letter-spacing: 1px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.now-playing-info p {

    margin: 2px 0;

    color: #dddddd;

    font-size: 11px;
}


.now-album {

    color: #eeeeee;

    font-size: 9px;

    font-style: italic;
}


/* =========================
   PROGRESS
   ========================= */

.progress {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 2px;

    color: #eeeeee;

    font-size: 7px;
}


.progress-line {

    position: relative;

    flex: 1;

    height: 3px;

    background: #000000;

    border: 1px solid #dddddd;
}


.progress-dot {

    position: absolute;

    top: -3px;

    left: 22%;

    width: 7px;
    height: 7px;

    background: #dddddd;

    border: 1px solid #000000;

    border-radius: 50%;
}


/* =========================
   LIBRARY HEADER
   ========================= */

.library-header {

    display: flex;

    justify-content: space-between;

    padding: 5px 2px;

    color: #dddddd;

    border-bottom: 1px dotted #777777;

    font-size: 8px;

    letter-spacing: 2px;
}


/* =========================
   MUSIC LIST
   ========================= */

.music-list {

    flex: 1;

    min-height: 0;

    margin-top: 4px;

    padding-right: 5px;

    padding-bottom: 3px;

    box-sizing: border-box;

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-color:
        #dddddd
        #000000;
}


.music-list::-webkit-scrollbar {

    width: 9px;
}


.music-list::-webkit-scrollbar-track {

    background: #000000;

    border: 1px solid #dddddd;
}


.music-list::-webkit-scrollbar-thumb {

    background: #dddddd;

    border: 2px solid #000000;
}


.music-list::-webkit-scrollbar-thumb:hover {

    background: #ffffff;
}


/* =========================
   SONG
   ========================= */

.song {

    position: relative;

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 63px;

    margin-bottom: 6px;

    padding: 5px;

    box-sizing: border-box;

    background: rgba(40, 40, 40, 0.95);

    border: 1px solid #000000;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.song:hover {

    background: #333333;

    transform: translateX(2px);
}


.song.active {

    background: #dddddd;

    color: #111111;

    border-color: #000000;
}


.song > img {

    display: block;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    object-fit: cover;

    border: 1px solid #000000;
}


.song-info {

    min-width: 0;

    flex: 1;
}


.song-info h2 {

    margin: 0 0 1px;

    font-family: Times, serif;

    font-size: 12px;

    font-weight: normal;

    letter-spacing: 1px;

    color: #eeeeee;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.song-info p {

    margin: 0;

    color: #dddddd;

    font-size: 10px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.song-info span {

    display: block;

    margin-top: 1px;

    color: #eeeeee;

    font-size: 8px;

    font-style: italic;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.song.active .song-info h2,
.song.active .song-info p,
.song.active .song-info span {

    color: #111111;
}


/* =========================
   HEART BUTTON
   ========================= */

.heart {

    flex-shrink: 0;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #dddddd;

    font-family: Arial, sans-serif;

    font-size: 20px;

    line-height: 28px;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

    transition:
        color 0.15s ease,
        transform 0.15s ease,
        text-shadow 0.15s ease;
}


.heart:hover {

    transform: scale(1.15);

    color: #ffffff;
}


.heart:active {

    transform: scale(0.9);
}


.heart.liked {

    color: #dddddd;

    text-shadow:
        0 0 3px #ffffff,
        0 0 7px #dddddd,
        0 0 12px #dddddd;
}


/* GLOW FOR LIKED ACTIVE SONG */

.song.active .heart.liked {

    color: #333333;

    text-shadow:
        0 0 3px #ffffff,
        0 0 7px #333333,
        0 0 12px #333333;
}


/* =========================
   ARTISTS MENU
   ========================= */

.artists-content {

    overflow-y: auto;

    scrollbar-color:
        #dddddd
        #000000;
}


.artists-content::-webkit-scrollbar {

    width: 9px;
}


.artists-content::-webkit-scrollbar-track {

    background: #000000;
}


.artists-content::-webkit-scrollbar-thumb {

    background: #dddddd;

    border: 2px solid #000000;
}


.menu-heading {

    display: flex;

    justify-content: space-between;

    padding: 6px 2px;

    margin-bottom: 10px;

    color: #dddddd;

    border-bottom: 1px dotted #777777;

    font-size: 8px;

    letter-spacing: 2px;
}


.artist-list {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.artist {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px;

    background: rgba(40, 40, 40, 0.95);

    border: 1px solid #000000;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.artist:hover {

    background: #333333;

    transform: translateX(2px);
}


.artist img {

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    object-fit: cover;

    border: 1px solid #000000;
}


.artist-info {

    min-width: 0;

    flex: 1;
}


.artist-info h2 {

    margin: 0;

    color: #eeeeee;

    font-family: Times, serif;

    font-size: 14px;

    font-weight: normal;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.artist-info p {

    margin: 3px 0 0;

    color: #dddddd;

    font-size: 9px;

    font-style: italic;
}


.artist-arrow {

    color: #dddddd;

    font-size: 20px;
}


.artist-note {

    margin-top: 20px;

    padding-top: 10px;

    border-top: 1px dotted #777777;

    color: #dddddd;

    font-family: Times, serif;

    font-size: 10px;

    text-align: center;

    letter-spacing: 2px;
}


/* =========================
   SCREEN BOTTOM
   ========================= */

.screen-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-shrink: 0;

    padding: 5px 10px;

    background: #000000;

    color: #dddddd;

    font-size: 7px;

    letter-spacing: 1px;
}


.screen-bottom button {

    padding: 0;

    border: 0;

    background: transparent;

    color: #dddddd;

    font-family: inherit;

    font-size: 7px;

    letter-spacing: 1px;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;
}


.screen-bottom button:hover {

    color: #ffffff;
}


/* =========================
   CLICK WHEEL
   ========================= */

.click-wheel {

    position: absolute;

    left: 50%;

    bottom: 45px;

    width: 190px;
    height: 190px;

    transform: translateX(-50%);

    background: #333333;

    border: 3px solid #000000;

    border-radius: 50%;

    box-shadow:
        inset 0 0 0 5px #dddddd,
        inset 0 0 0 7px #000000;
}


.click-wheel button {

    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    background: transparent;

    color: #dddddd;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

    font-family: inherit;

    letter-spacing: 1px;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}


.click-wheel button:hover {

    color: #ffffff;
}


.wheel-menu {

    top: 18px;

    left: 0;
    right: 0;
}


.wheel-prev {

    top: 50%;

    left: 17px;

    transform: translateY(-50%);

    font-size: 12px;
}


.wheel-next {

    top: 50%;

    right: 17px;

    transform: translateY(-50%);

    font-size: 12px;
}


.wheel-play {

    bottom: 18px;

    left: 0;
    right: 0;

    font-size: 10px;
}


.wheel-center {

    top: 50%;
    left: 50%;

    width: 65px;
    height: 65px;

    transform: translate(-50%, -50%);

    background: #dddddd !important;

    border: 2px solid #000000 !important;

    border-radius: 50%;

    color: #333333 !important;

    font-size: 18px;

    box-shadow:
        2px 2px 0 #000000;
}


.wheel-center:hover {

    color: #000000 !important;
}


/* =========================
   BACK LINK
   ========================= */

.back-area {

    text-align: center;

    margin-top: 28px;
}


.back-area a {

    display: inline-block;

    padding: 6px 15px;

    background: #dddddd;

    color: #111111;

    border: 1px solid #111111;

    box-shadow: 3px 3px 0 #000000;

    text-decoration: none;

    font-style: italic;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


.back-area a:hover {

    transform: translate(-2px, -2px);

    box-shadow: 5px 5px 0 #000000;

    background: #333333;

    color: #ffffff;
}


.back-area a:active {

    transform: translate(1px, 1px);

    box-shadow: 0 0 0 #000000;
}


/* =========================
   GENERAL LINKS
   ========================= */

a {

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 700px) {

    body {

        padding: 25px 10px;
    }


    .ipod {

        height: 720px;

        padding: 20px 22px 130px;

        border-radius: 35px;
    }


    .ipod-screen {

        height: 460px;
    }


    .click-wheel {

        width: 170px;
        height: 170px;

        bottom: 35px;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 500px) {

    .page {

        width: 100%;
    }


    .ipod {

        height: 700px;

        padding: 15px;

        padding-bottom: 125px;

        border-radius: 28px;
    }


    .ipod-screen {

        height: 450px;

        padding: 7px;
    }


    .now-playing-cover {

        width: 55px;
        height: 55px;
    }


    .now-playing-info h1 {

        font-size: 15px;
    }


    .click-wheel {

        width: 155px;
        height: 155px;

        bottom: 25px;
    }


    .wheel-center {

        width: 55px;
        height: 55px;
    }

}