body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    margin: 0 20px 52px 20px;
    line-height: 1.4;
    color: #a9b7c6;
    position: relative;
    background: #1e1e1e no-repeat center center fixed;
    background-size: cover;
    transition: background-image 0.8s ease-in-out;
    min-height: 100vh;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

#playerBox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(50, 50, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

#logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #3c3f41;
    border-radius: 8px;
    background: #1e1e1e;
    box-shadow: black 1px 1px 2px 0;
    background-size: cover;
    position: relative;
    overflow: hidden;
    transition: background-image 0.4s ease-in-out;
}

#logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
            135deg,
            rgba(255,255,255,0.35) 0%,
            rgba(255,255,255,0.15) 35%,
            rgba(255,255,255,0) 50%
    );
    pointer-events: none;
}

#info {
    flex: 1;
    min-width: 0;
}

#current {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
    color: dodgerblue;
    text-shadow: 1px 1px 2px black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#stations {
    list-style: none;
    padding: 0;
    margin: 0;
}

#stations li {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
    background: rgba(43, 43, 43, 0.6);
}

#stations li:hover {
    background: #323232;
}

#stations li.playing {
    background: #214283;
    border-color: #287bde;
    color: #ffffff;
}

.small {
    font-size: 13px;
    color: #808080;
}

audio {
    display: none;
}

#playPause.loading {
    pointer-events: none;
    opacity: 0.6;
}

#playPause, .play-btn {
    flex: 1 1 0;
    padding: 8px 0;
    border: 1px solid #3c3f41;
    border-radius: 6px;
    background: #3c3f41;
    color: #a9b7c6;
    font-size: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: solid;
    transition: background 0.2s ease, color 0.2s ease;
}

#playPause.loading::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    width: 20px;
    height: 20px;
    border: 2px solid #a9b7c6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#playPause:hover, .play-btn:hover, .vote-btn:hover {
    background: #287bde;
    color: #ffffff;
    border-color: #287bde;
}

.vote-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #3c3f41;
    border-radius: 6px;
    background: #3c3f41;
    color: #555555;
    font-size: 30px;
    cursor: not-allowed;
    opacity: 0.25;
}

.vote-btn::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #287bde;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.vote-btn:hover::after {
    opacity: 1;
}

.vote-btn:disabled {
    background: #3c3f41;
    color: #555555;
    cursor: not-allowed;
    border-color: #3c3f41;
}

.vote-btn:disabled:hover {
    background: #3c3f41;
    color: #555555;
    border-color: #3c3f41;
}

#controls {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-top: 20px;
}

.footer-container {
    max-width: 872px;
    width: 100%;
    background: rgba(50, 50, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 12px 0 0;
    padding: 10px 14px 5px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-container a {
    color: #a9b7c6;
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 10px;
}

.footer-container a:hover {
    color: #287bde;
}

.footer-container a:first-child {
    margin-left: 0;
}

.footer-container a:last-child {
    margin-right: 0;
}

.footer-subtext {
    font-size: 10px;
    color: #707070;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
