/* =========================================================
   GENERAL STYLES
========================================================= */

body {
    margin: 0;
    height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: 'Poppins', sans-serif;
    color: #ffffff;

    background: #181828;
    background-attachment: fixed;

    user-select: none;
}


/* =========================================================
   SCROLLBAR
========================================================= */

/* WebKit */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 33, 50, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #D0006F;
    border: 2px solid rgba(30, 33, 50, 0.5);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D0006F;
}

/* Firefox */

* {
    scrollbar-color: #D0006F rgba(30, 33, 50, 0.5);
    scrollbar-width: thin;
}


/* =========================================================
   STATION LIST
========================================================= */

#station-list {
    flex: 1;

    text-align: center;

    padding-bottom: 75px;
}

#station-list h1 {
    margin-bottom: 20px;

    font-size: 2rem;
    color: #f5f5f5;
}

#stations {
    max-width: 600px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 12px;

    list-style: none;

    padding: 0 20px;
    padding-bottom: 30px;
}

#stations li {
    width: 100%;
    height: 75px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;

    padding: 0;

    background: #23233a;
    border-radius: 10px;

    cursor: pointer;

    transition: all 0.3s;
}

#stations li:hover {
    background: #2a2a4a;
}

#stations li > div:first-child {
    position: relative;

    display: flex;

    flex-shrink: 0;
}

#stations img {
    width: 75px;
    height: 75px;

    flex-shrink: 0;

    object-fit: cover;

    background: #3a3a53;
    border-radius: 10px 0 0 10px;
}

#stations .list-item-info {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: left;
}

#stations .list-item-name {
    margin-bottom: 4px;

    overflow: hidden;

    font-size: 0.95rem;
    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
}

#stations .list-item-meta {
    overflow: hidden;

    font-size: 0.8rem;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   STATION ICONS
========================================================= */

.station-icon {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

/* Play Icon */

.play-icon {
    top: 50%;
    left: 50%;

    width: 50px;
    height: 50px;

    transform: translate(-50%, -50%);

    background: #FFFFFF;
    border-radius: 50px;

    color: #D0006F;
    font-size: 26px;

    opacity: 0;
    z-index: 13;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

    transition: opacity 0.3s;
}

#stations li:hover .play-icon {
    opacity: 1;
}

/* Speaker Icon */

.speaker-icon {
    top: 50%;
    right: -15px;

    width: 32px;
    height: 32px;

    display: none;

    transform: translateY(-50%);

    background: #D0006F;
    border: solid 1px white;
    border-radius: 50%;

    color: white;
    font-size: 16px;

    z-index: 12;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#stations li.playing .speaker-icon {
    display: flex;
}


/* =========================================================
   PLAYER BAR
========================================================= */

#player-bar {
    position: fixed;
    bottom: 0;
    left: 50%;

    width: 90%;
    max-width: 800px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    margin: 10px 0;
    padding: 5px 7px;

    transform: translateX(-50%);

    background: #23233a;

    backdrop-filter: blur(3px);

    color: white;

    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

    z-index: 999;
}

.player-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-section.logo {
    flex: 0 0 auto;
}

.player-section.logo img,
#player-bar-logo {
    width: 60px;
    height: 60px;

    display: block;

    padding: 2px;

    object-fit: cover;

    background: #3a3a53;
    border-radius: 6px;

    cursor: pointer;
}

.player-section.meta {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    padding: 4px 6px;

    text-align: left;

    cursor: pointer;
}

#player-bar-title {
    max-width: 100%;
    margin: 0;

    overflow: hidden;

    font-size: 20px;
    font-weight: bold;

    white-space: nowrap;
    text-overflow: ellipsis;
}

#player-bar-artist {
    max-width: 100%;
    margin: 0;

    overflow: hidden;

    font-size: 16px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-section.controls {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 10px;
}

.player-section.controls button {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: transparent;
    border: none;
    border-radius: 50%;

    color: #ffffff;
    font-size: 35px;

    cursor: pointer;
}


/* =========================================================
   FULLSCREEN PLAYER
========================================================= */

.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    background: #181828;

    z-index: 10000;
}

.fullscreen-player.show {
    display: flex;
}

.fullscreen-player .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;

    color: #fff;
    font-size: 20px;

    cursor: pointer;
}

.fullscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 20px;

    text-align: center;

    background: transparent;
    color: #fff;
}

.fullscreen-content img#fullscreen-logo {
    width: 220px;
    height: 220px;

    display: block;

    padding: 5px;

    object-fit: cover;

    background: #3a3a53;
    border-radius: 16px;
}

#fullscreen-meta {
    width: 100%;
    max-width: 520px;
}

#fullscreen-meta h2 {
    margin: 0;

    font-size: 2rem;
}

#fullscreen-meta p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

#fullscreen-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#fullscreen-controls button {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: transparent;
    border: none;
    border-radius: 50%;

    color: #ffffff;
    font-size: 45px;

    cursor: pointer;
}

#fullscreen-controls button#fullscreen-prev,
#fullscreen-controls button#fullscreen-next {
    width: 50px;
    height: 50px;

    font-size: 30px;
}

#fullscreen-feedback-text {
    margin-top: 20px;
}

#fullscreen-feedback-text a {
    color: #D0006F;
    font-weight: 600;
    text-decoration: none;
}

#fullscreen-feedback-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   VOLUME CONTROL
========================================================= */

#volume-control {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-button {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: transparent;
    border: none;
    border-radius: 50%;

    color: #ffffff;
    font-size: 35px;

    cursor: pointer;
}

#volume-slider-container {
    position: absolute;
    bottom: 70px;
    left: 0;

    width: 40px;
    height: 160px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: #23233a;

    backdrop-filter: blur(3px);

    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

    z-index: 1000;
}

#volume-slider-container.show {
    display: flex;
}

#volume-slider {
    width: 150px;
    height: 8px;

    appearance: none;
    -webkit-appearance: none;

    transform: rotate(-90deg);
    transform-origin: center;

    background: #f5f5f5;
    border-radius: 5px;

    outline: none;

    cursor: pointer;

    touch-action: pan-y;
}

#volume-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;

    appearance: none;
    -webkit-appearance: none;

    background: #1ED9B4;
    border-radius: 50%;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    transform: translateX(-4px);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;

    background: #1ED9B4;
    border: none;
    border-radius: 50%;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    transform: translateX(-4px);
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 0.7);

    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;

    width: 500px;
    max-width: 80%;
    max-height: 80vh;

    overflow-y: auto;

    padding: 20px;

    background: #23233a;
    border: solid 2px #181828;
    border-radius: 15px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;

    color: #ffffff;
    font-size: 20px;

    cursor: pointer;

    transition: all 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-loading {
    padding: 40px 20px;

    text-align: center;

    color: #D0006F;
    font-size: 40px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 30px;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#modal-logo,
#app-modal-logo {
    width: 72px;
    height: 72px;

    display: block;

    padding: 2px;

    object-fit: cover;

    background: #3a3a53;
    border-radius: 9px;
}

.modal-title-section h2 {
    margin: 0;
    margin-bottom: 5px;

    color: #D0006F;
    font-size: 1.8rem;
}

.modal-title-section p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-description p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-link {
    margin: 10px;

    text-align: center;
}

.modal-link a {
    display: inline-block;

    padding: 10px 20px;

    background: #3a3a53;
    border-radius: 10px;

    color: #ffffff;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.3s;
}

.modal-link a:hover {
    background: #4a4a63;
}


/* =========================================================
   APP INFO
========================================================= */

#app-info-button {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;

    color: #fff;
    font-size: 20px;

    cursor: pointer;

    transition: all 0.3s;
}

#app-info-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.info {
    margin: 0;
    padding: 0;

    list-style: none;
}

.info li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    padding: 12px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info li:last-child {
    border-bottom: none;
}

.label {
    color: #9aa0b5;
    font-weight: 600;
}

.value {
    text-align: right;
}

.app-info-body .modal-link {
    margin-top: 20px;

    text-align: center;
}

.app-modal-footer {
    margin-top: auto;

    text-align: center;

    color: #9aa0b5;
    font-size: 1rem;
}

.link {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}


/* =========================================================
   MEDIA QUERIES
========================================================= */

@media (max-width: 1000px) {
    #volume-control {
        display: none !important;
    }
	
    #volume-slider-container {
        display: none !important;
    }
}