/* ═══════════════════════════════════════
   Aether Home — Console header, channel
   modules (station cards), preset bank,
   station directory, operations manual.
   Mobile-first responsive.
   ═══════════════════════════════════════ */

/* ── Layout ── */
.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 120px;
}

.main-content {
    min-width: 0;
}

/* ── Console header (replaces marketing hero) ── */
.console-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.console-header > * {
    min-width: 0;
}

.ident-panel,
.status-panel {
    padding: 1.1rem 1.2rem;
}

/* Mobile: the console header is a one-line ident so the station grid sits
   above the fold. Intro copy + network status return from 768px. */
@media (max-width: 767px) {
    .console-header {
        padding-top: 0.75rem;
    }

    .ident-panel {
        padding: 0.8rem 1rem;
    }

    .ident-panel h1 {
        font-size: var(--fs-h2);
        margin-bottom: 0;
    }

    .ident-panel .panel-kicker {
        margin-bottom: 0.35rem;
    }

    .ident-panel .hero-sub,
    .status-panel {
        display: none;
    }

    .layout {
        padding-top: 0.75rem;
    }
}

.panel-kicker {
    display: block;
    margin-bottom: 0.6rem;
}

.ident-panel h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.ident-panel .hero-sub {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.status-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.status-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    font-variant-numeric: tabular-nums;
}

.status-key {
    color: var(--text-muted);
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    min-width: 5.5em;
    flex-shrink: 0;
}

.status-key::before {
    content: '▸ ';
    color: var(--signal-dim);
}

.status-val {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Section headers ── */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    color: var(--text-primary);
    white-space: nowrap;
}

.section-title::before {
    content: '── ';
    color: var(--signal-dim);
}

.section-count {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--fs-micro);
    background: var(--bg-inset);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ── Station grid ── */
.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.7rem;
    counter-reset: ch;
}

/* ── Channel module (station card) ── */
.station-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
    position: relative;
    touch-action: manipulation;
}

/* corner brackets */
.station-card::before,
.station-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transition: border-color var(--t-med) var(--ease);
}

.station-card::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
}

.station-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
}

.station-card:hover {
    border-color: var(--line-strong);
    background: var(--bg-panel-2);
}

.station-card:hover::before,
.station-card:hover::after {
    border-color: var(--line-signal);
}

.station-card:hover .card-led {
    background: var(--signal);
    box-shadow: 0 0 4px var(--signal);
}

.station-card.playing {
    border-color: var(--line-signal);
    box-shadow: 0 -1px 0 0 var(--signal) inset, var(--shadow-panel);
}

.station-card.playing::before,
.station-card.playing::after {
    border-color: var(--line-signal);
}

.station-card.playing .card-led {
    background: var(--ok);
    box-shadow: 0 0 4px var(--ok);
    animation: led-blink 1.2s steps(2, start) infinite;
}

/* head row: LED + channel id + verified tag */
.card-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    min-height: 14px;
}

.card-led {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--text-muted);
    flex-shrink: 0;
    transition: background var(--t-med) var(--ease);
}

.card-ch {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#station-grid .card-ch::before {
    content: 'CH ';
}

#station-grid .card-ch::after {
    counter-increment: ch;
    content: counter(ch, decimal-leading-zero);
}

#fav-grid .card-ch::before {
    content: 'P';
}

#fav-grid .card-ch::after {
    counter-increment: ch;
    content: counter(ch, decimal-leading-zero);
}

.verified-badge {
    margin-left: auto;
    background: var(--ok-bg);
    color: var(--ok);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(43, 213, 118, 0.25);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* main row: icon + name/meta */
.card-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    min-width: 0;
}

.station-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-inset);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color var(--t-med) var(--ease);
    flex-shrink: 0;
}

.station-card:hover .station-icon {
    border-color: var(--line-signal);
}

.station-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-id {
    min-width: 0;
    flex: 1;
}

.station-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-meta {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* data row: codec/bitrate readout + EQ bars */
.card-data {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    min-height: 18px;
}

.bitrate-badge {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-inset);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.card-data:empty {
    display: none;
}

/* ── EQ animation ── */
.eq-bars {
    display: none;
    gap: 2px;
    height: 14px;
    align-items: flex-end;
}

.station-card.playing .eq-bars {
    display: flex;
}

.eq-bar {
    width: 3px;
    background: var(--signal);
    border-radius: 1px 1px 0 0;
    animation: eq 0.5s infinite alternate ease-in;
}

.eq-bar:nth-child(1) { animation-delay: 0.1s; height: 8px; }
.eq-bar:nth-child(2) { animation-delay: 0.3s; height: 13px; }
.eq-bar:nth-child(3) { animation-delay: 0.15s; height: 6px; }
.eq-bar:nth-child(4) { animation-delay: 0.4s; height: 11px; }

@keyframes eq {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* actions */
.card-actions {
    display: flex;
    gap: 0.4rem;
    width: 100%;
    margin-top: auto;
}

.btn-play {
    flex: 1;
    background: var(--signal-bg);
    color: var(--signal);
    border: 1px solid var(--line-signal);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.btn-play:hover {
    background: var(--signal);
    color: var(--bg-base);
}

.btn-fav {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn-fav:hover,
.btn-fav.active {
    color: var(--err);
    border-color: var(--err);
}

/* ── Loading / states ── */
.spinner {
    display: none;
    margin: 3rem auto;
    width: 36px;
    height: 36px;
    border: 3px solid var(--line);
    border-radius: 50%;
    border-top-color: var(--signal);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    color: var(--text-muted);
    grid-column: 1 / -1;
    padding: 3rem 1rem;
}

.empty-state::before {
    content: '[ NO SIGNAL ] ';
    color: var(--warn);
}

/* ── Preset bank tools ── */
.fav-tools {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
}

.fav-tools .history-clear {
    margin-left: 0;
}

.fav-tools .history-clear.active,
.history-clear.active {
    color: var(--signal);
    border-color: var(--line-signal);
}

.fav-move {
    background: var(--bg-inset);
    border: 1px solid var(--line-signal);
    border-radius: var(--radius-sm);
    color: var(--signal);
    font-size: 0.6rem;
    width: 24px;
    height: 22px;
    min-height: 22px;
    cursor: pointer;
    margin-left: 0.2rem;
}

.fav-move:first-of-type {
    margin-left: auto;
}

.fav-move:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Signal log (recently played) ── */
.history-clear {
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    min-height: 28px;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.history-clear:hover {
    color: var(--err);
    border-color: var(--err);
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    min-width: 0;
}

.history-row:first-child {
    border-top: 1px solid var(--line);
}

.history-row:hover {
    background: var(--bg-panel);
}

.history-time {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 5.5em;
    flex-shrink: 0;
}

.history-name {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.history-meta {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9em;
    display: none;
}

.history-dur {
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.history-play {
    background: var(--signal-bg);
    border: 1px solid var(--line-signal);
    border-radius: var(--radius-sm);
    color: var(--signal);
    width: 34px;
    min-height: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.history-play:hover {
    background: var(--signal);
    color: var(--bg-base);
}

.history-toggle {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.45rem 0.5rem;
    min-height: 34px;
    cursor: pointer;
    text-align: left;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.history-toggle:hover {
    color: var(--signal);
    background: var(--bg-panel);
}

@media (min-width: 768px) {
    .history-meta {
        display: inline;
    }
}

/* ── Operations manual (FAQ) ── */
.faq-section {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
    counter-reset: faq;
}

.faq-section h2 {
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-section h2::before {
    content: '── ';
    color: var(--signal-dim);
}

.faq-item {
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--line);
}

.faq-q {
    padding: 0.8rem 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: background var(--t-med) var(--ease);
    min-height: 48px;
}

.faq-q::before {
    counter-increment: faq;
    content: 'Q.' counter(faq, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.faq-q > span {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-left: auto;
}

.faq-q:hover {
    background: var(--bg-panel);
}

.faq-a {
    padding: 0 0.5rem 0.9rem 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    display: none;
    border-left: 2px solid var(--line-signal);
    margin-left: 0.5rem;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-item.open .faq-q {
    background: var(--bg-panel);
}

/* ── Station detail modal ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 1.1rem 1.2rem;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.modal-close {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    min-height: 32px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.modal-close:hover {
    color: var(--err);
    border-color: var(--err);
}

.modal-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    min-width: 0;
}

.modal-icon {
    width: 56px;
    height: 56px;
}

.modal-id {
    min-width: 0;
}

.modal-id h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    overflow-wrap: anywhere;
}

.modal-telemetry {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.8rem;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
}

.modal-telemetry .status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.modal-tag {
    background: var(--bg-inset);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.5rem;
    min-height: 26px;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.modal-tag:hover {
    color: var(--signal);
    border-color: var(--line-signal);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.modal-actions .btn-play {
    flex: 0 1 140px;
}

.modal-actions .btn-fav {
    min-height: 38px;
    height: 38px;
}

.modal-link {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.7rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.modal-link:hover {
    color: var(--signal);
    border-color: var(--line-signal);
    opacity: 1;
}

a.modal-link {
    margin-left: auto;
}

.modal-section {
    border-top: 1px solid var(--line);
    padding-top: 0.8rem;
    margin-bottom: 0.9rem;
}

.modal-tracklog {
    list-style: none;
    margin: 0.6rem 0 0;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    color: var(--text-secondary);
}

.modal-tracklog li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--line);
    overflow-wrap: anywhere;
}

.tracklog-time {
    color: var(--text-muted);
    margin-right: 0.6rem;
    font-variant-numeric: tabular-nums;
}

.modal-similar {
    margin-top: 0.6rem;
}

.similar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    min-width: 0;
}

.similar-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.similar-meta {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ── Preset bank empty state (mobile Presets tab) ── */
.fav-empty {
    font-family: var(--font-mono);
    font-size: var(--fs-data);
    color: var(--text-muted);
    padding: 1.25rem 0.5rem;
    text-align: center;
    margin: 0;
}

.fav-empty::before {
    content: '[ EMPTY ] ';
    color: var(--warn);
}

/* ═══ Responsive: 360px- (very small) ═══ */
@media (max-width: 359px) {
    .station-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ Responsive: 480px+ ═══ */
@media (min-width: 480px) {
    .station-grid {
        grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
        gap: 0.8rem;
    }

    .station-name {
        font-size: 0.9rem;
    }
}

/* ═══ Responsive: 768px+ (Tablet) ═══ */
@media (min-width: 768px) {
    .layout {
        padding: 1.5rem 2rem 120px;
        gap: 1.5rem;
    }

    .console-header {
        padding: 1.5rem 2rem 0;
        grid-template-columns: 2fr 1fr;
    }

    .station-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 1rem;
    }

    .station-card {
        padding: 0.85rem 1rem;
    }

    .station-icon {
        width: 44px;
        height: 44px;
    }

    .station-name {
        font-size: 0.95rem;
    }

    .station-meta {
        font-size: 0.6875rem;
    }

    .bitrate-badge {
        font-size: 0.6875rem;
    }

    .faq-section {
        padding: 0 1.5rem;
    }
}

/* ═══ Responsive: 1024px+ (Desktop) ═══ */
@media (min-width: 1024px) {
    .station-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

/* ═══ Mobile (<768px): stations as a list. The card DOM is unchanged — head and
   main rows dissolve (display: contents) into one 4-column grid row:
   icon | name+meta | actions, with codec/verified on the second line. ═══ */
@media (max-width: 767px) {
    .station-grid {
        grid-template-columns: 1fr;
        gap: 0;
        border-top: 1px solid var(--line);
    }

    .station-card {
        display: grid;
        grid-template-columns: 40px auto 1fr auto;
        grid-template-areas:
            "icon id id actions"
            "icon data ver actions";
        column-gap: 0.7rem;
        row-gap: 0.2rem;
        align-items: center;
        padding: 0.6rem 0.1rem 0.6rem 0;
        border: none;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
    }

    .station-card::before,
    .station-card::after {
        display: none; /* no corner brackets on list rows */
    }

    .station-card.playing {
        background: var(--signal-bg);
        box-shadow: inset 2px 0 0 var(--signal);
        padding-left: 0.5rem;
    }

    .card-head,
    .card-main {
        display: contents;
    }

    .card-led,
    .card-ch {
        display: none;
    }

    .station-icon {
        grid-area: icon;
    }

    .card-id {
        grid-area: id;
    }

    .card-data {
        grid-area: data;
        margin: 0;
        min-height: 0;
        justify-content: flex-start;
    }

    .verified-badge {
        grid-area: ver;
        margin-left: 0;
        justify-self: start;
    }

    .card-actions {
        grid-area: actions;
        width: auto;
        margin: 0;
        gap: 0.4rem;
    }

    .btn-play {
        flex: none;
        padding: 0.45rem 0.6rem;
        min-height: 40px;
    }

    .station-card .btn-fav {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .station-name {
        font-size: 0.9rem;
    }

    /* section headers: let the preset tools wrap under a long title */
    .section-header {
        flex-wrap: wrap;
    }

    .fav-tools {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
