body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Pixelated MS Sans Serif", Arial;
    font-size: 11px;
    background: linear-gradient(#0e3aba, #3c69e7 50%, #7ca6f9);
}

.title-bar {
    font-family: "Pixelated MS Sans Serif", Arial;
    font-size: 11px;
}

.track-title,
.track-artist {
    max-width: 100%;
}

.track-title {
    font-weight: bold;
    margin: 0 0 4px 0;
}

.track-artist {
    margin: 0;
}

.track-text {
    display: inline-block;
    white-space: nowrap;
    transform: translateX(0);
}

.track-text.scroll {
    will-change: transform;
    animation: scroll-text linear infinite;
    animation-duration: var(--scroll-duration, 10s);
}

.track-text.scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-text {
    0%,
    10% {
        transform: translateX(0);
    }

    45%,
    55% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }

    90%,
    100% {
        transform: translateX(0);
    }
}

fieldset {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.track-line {
    overflow: hidden;
    width: 100%;
}

.channel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-controls select {
    flex: 1;
    min-width: 0;
}

.channel-controls #play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    gap: 4px;
}

.now-playing-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-art {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: cover;
}

.app-window    { width: 320px; }
.play-icon     { font-size: 16px; }
.volume-row    { align-items: center; }
.volume-slider { width: 150px; }
.volume-value  { min-width: 35px; text-align: right; }
.actions-row   { justify-content: flex-end; }
.clock-field   { flex: 1; text-align: right; min-width: 60px; }

dialog.urls-dialog {
    border: none;
    padding: 0;
    max-width: 90vw;
    /* UA stylesheets set font + color directly on <dialog>, blocking inheritance from body. */
    font: inherit;
    color: inherit;
}

dialog.urls-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.urls-help {
    margin: 0 0 8px 0;
}

.urls-table {
    width: 100%;
    border-collapse: collapse;
}

.urls-table th,
.urls-table td {
    padding: 3px 6px;
    text-align: left;
    border-bottom: 1px solid #d4d0c8;
}

.urls-table th {
    background: #ece9d8;
    font-weight: bold;
}

.urls-table tbody tr {
    cursor: pointer;
}

.urls-table tbody tr:hover,
.urls-table tbody tr:focus-visible {
    background: #316ac5;
    color: #ffffff;
    outline: none;
}

.urls-table .url {
    font-family: 'Lucida Console', Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
}

.urls-status {
    margin: 8px 0 0 0;
    min-height: 1.2em;
    font-style: italic;
    color: #555;
}

