/* Radio-only additions layered over the shared site stylesheet. */
.radio-player-shell iframe {
    pointer-events: none;
    user-select: none;
}

.radio-station-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.55rem;
}

.radio-station-list button {
    min-height: 3rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.radio-station-list button[aria-pressed="true"] {
    font-weight: 650;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.radio-station-list button.radio-station-pending {
    opacity: 0.8;
}

.radio-station-list button.radio-station-pending::after {
    content: " · loading";
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.7;
}

.radio-panel {
    box-sizing: border-box;
    width: 100%;
    margin: 1.6rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--site-line-soft);
}

.radio-panel h3 {
    margin: 0 0 0.65rem;
    font-style: normal;
}

.radio-up-next ol,
.radio-history-list {
    margin: 0;
    padding-left: 1.5rem;
}

.radio-up-next li,
.radio-history-list li {
    margin: 0.22rem 0;
}

.radio-history-main,
.radio-history-meta {
    display: block;
}

.radio-history-meta {
    margin-top: 0.08rem;
    opacity: 0.66;
}

.radio-up-next .radio-group-continuation {
    list-style-type: "↳  ";
}

.radio-profile-subheading {
    margin: 1.35rem 0 0.25rem;
    font-style: normal;
}

.radio-preference-chart {
    width: 100%;
    max-width: 56rem;
    margin: 0.4rem auto 0;
}

.radio-preference-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.radio-radar-grid,
.radio-radar-axis {
    fill: none;
    stroke: var(--site-line-soft);
    stroke-width: 1.2;
}

.radio-radar-neutral {
    stroke: var(--site-line);
    stroke-dasharray: 6 6;
}

.radio-radar-label {
    fill: currentColor;
    font-size: 14px;
}

.radio-radar-preference-fill {
    fill: currentColor;
    fill-opacity: 0.12;
    stroke: none;
}

.radio-radar-preference-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linejoin: round;
}

.radio-radar-dot {
    fill: currentColor;
    stroke: Canvas;
    stroke-width: 2;
}

.radio-preference-summary {
    margin-top: 0.5rem;
}

.radio-sync-status {
    margin-top: 1rem;
}

.radio-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr) auto;
    gap: 0.75rem;
    align-items: end;
    margin-top: 0.8rem;
}

.radio-add-main,
.radio-add-station {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.radio-add-main textarea,
.radio-add-station select {
    box-sizing: border-box;
    width: 100%;
    font: inherit;
}

.radio-add-main textarea {
    min-height: 4.4rem;
    resize: vertical;
}

.radio-add-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.radio-add-group input {
    margin: 0;
}

#radio-add-status:empty {
    min-height: 0;
    margin: 0;
}

@media (max-width: 760px) {
    .radio-station-list {
        grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    }

    .radio-add-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .radio-add-group {
        grid-column: 1;
    }

    #radio-add-button {
        width: 100%;
    }

    .radio-radar-label {
        font-size: 12px;
    }
}

/* Manage station assignments and download the current catalogue. */
#radio-reclassify-station {
    display: block;
    max-width: 100%;
    margin: 0.4rem 0 0.25rem;
    padding: 0.3rem 0.5rem;
    font: inherit;
}
.radio-reclassify-label { display: block; }
.radio-library-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.3rem 0.8rem;
    margin-bottom: 1.25rem;
}
.radio-library-files a { display: block; }
