html,
body {
    height: 100%;
}

.main {
    padding-bottom: 120px;
}

/* leave space for bottom player */

.player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #111827, #0d9488);
    color: #fff;
    padding: .75rem 1rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.player-title {
    font-weight: 700;
}

.player-controls button {
    margin-right: .5rem;
}

.station-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

/* Default logo box (public pages) */
.is-clipped-logo {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #1111;
}

/* ===== Compact 5-up grid helper (Bulma-compatible) ===== */
@media screen and (min-width: 1024px) {
    .is-2-4 {
        /* 20% width => 5 columns */
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Optional: slightly tighter cards for denser grids (global) */
.card .card-content {
    padding: 0.75rem 0.75rem 0.9rem;
}

.card .title.is-6 {
    font-size: .98rem;
    line-height: 1.2;
}

.card .subtitle.is-7 {
    font-size: .78rem;
}

.buttons.are-small .button {
    padding: 0.4rem 0.6rem;
}

/* ================================
   Uniform Small Cards (scoped)
   Wrap your grid: .columns.compact-cards
   ================================ */
.compact-cards>.column {
    padding: .45rem;
}

.compact-cards .column {
    display: flex;
}

.compact-cards .column .card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* 6–7 columns on wider screens (only inside compact-cards) */
@media (min-width: 1024px) {
    .compact-cards .is-2-4 {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }

    /* 6 cols */
}

@media (min-width: 1408px) {
    .compact-cards .is-2-4 {
        flex: 0 0 14.2857%;
        max-width: 14.2857%;
    }

    /* 7 cols */
}

/* Uniform logo/header: override Bulma square ratio to fixed height */
.compact-cards .image.is-1by1 {
    padding-top: 0;
    height: 96px;
}

.compact-cards .card-image {
    background: rgba(0, 0, 0, .03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-cards .is-clipped-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tighter content + vertical layout so buttons stick to bottom */
.compact-cards .station-card .card-content {
    padding: .6rem .6rem .7rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Title: clamp to 2 lines with uniform block height */
.compact-cards .card .title.is-6 {
    font-size: .9rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
    /* 2 lines x 1.15 */
    margin-bottom: .25rem;
}

/* Subtitle/meta: 1 line clamp */
.compact-cards .card .subtitle.is-7 {
    font-size: .72rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.15em;
    margin-bottom: .4rem;
}

/* Buttons always at the bottom, smaller size */
.compact-cards .buttons.are-small {
    margin-top: auto;
}

.compact-cards .buttons.are-small .button {
    padding: .30rem .50rem;
    font-size: .75rem;
}

/* Softer hover for compact mode */
.compact-cards .station-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    transition: transform .15s, box-shadow .15s;
}