* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Arial,
        sans-serif;

    background: #0f1117;

    color: #ffffff;
}


.container {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 40px 20px;
}


header {

    margin-bottom: 40px;
}


header h1 {

    margin: 0;

    font-size: 42px;

    letter-spacing: -2px;
}


header p {

    color: #858999;
}


h2 {

    margin-bottom: 20px;
}


.stations {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(200px, 1fr)
        );

    gap: 15px;
}


.station {

    border: 1px solid #282c38;

    background: #181b24;

    border-radius: 14px;

    padding: 20px;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}


.station:hover {

    background: #202430;

    transform: translateY(-2px);
}


.station.active {

    border-color: #6c63ff;

    background: #211f38;
}


.station-name {

    font-size: 24px;

    font-weight: 700;
}


.station-genre {

    margin-top: 5px;

    color: #8d87ff;
}


.description {

    margin-top: 10px;

    color: #858999;

    font-size: 14px;
}


.station-listeners {

    margin-top: 15px;

    color: #6f7482;

    font-size: 13px;
}


.player {

    margin-top: 40px;

    padding: 30px;

    background: #181b24;

    border: 1px solid #282c38;

    border-radius: 20px;
}


.player-info {

    margin-bottom: 25px;
}


.player audio {

    width: 100%;
}


.player-meta {

    display: flex;

    justify-content: space-between;

    margin-top: 15px;

    color: #6f7482;

    font-size: 13px;
}
.header-title {
    display: flex;

    align-items: center;

    gap: 15px;
}


.header-title h1 {
    margin: 0;
}


#total-listeners {
    padding: 6px 12px;

    border-radius: 20px;

    background: #211f38;

    color: #8d87ff;

    font-size: 13px;

    font-weight: 600;
}


.current-track {

    display: block;

    margin-top: 16px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    text-align: left;

    transition: color 0.2s;
}


.current-track:hover {

    color: #8d87ff;
}


.controls {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 25px;
}


.control-button {

    width: 46px;

    height: 46px;

    border-radius: 50%;

    border: none;

    background: #6c63ff;

    color: white;

    font-size: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;
}


.control-button:hover {

    background: #7c74ff;
}


.live-button {

    padding: 9px 14px;

    border: 1px solid #343846;

    border-radius: 8px;

    background: #181b24;

    color: #858999;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;
}


.live-button:hover {

    border-color: #6c63ff;

    color: #8d87ff;
}


.volume-container {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-left: auto;
}


#volume {

    width: 100px;

    accent-color: #6c63ff;

    cursor: pointer;
}


.login-message {

    position: fixed;

    left: 50%;

    bottom: 30px;

    transform:
        translate(-50%, 100px);

    padding: 14px 20px;

    background: #242834;

    border: 1px solid #343846;

    border-radius: 10px;

    color: #ffffff;

    font-size: 14px;

    opacity: 0;

    transition:
        opacity 0.25s,
        transform 0.25s;

    pointer-events: none;

    z-index: 1000;
}


.login-message.visible {

    opacity: 1;

    transform:
        translate(-50%, 0);
}


.station-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.favorite-button {

    width: 32px;

    height: 32px;

    border: none;

    background: transparent;

    color: #858999;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s,
        transform 0.2s;
}


.favorite-button:hover {

    color: #8d87ff;

    transform: scale(1.15);
}


.favorite-button.active {

    color: #ff5c8a;
}
