.gallery-hero {
    padding: 52px 20px 34px;
    text-align: center;
}
.gallery-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    margin-bottom: 14px;
}
.gallery-hero .eyebrow::before,
.gallery-hero .eyebrow::after {
    content: '';
    display: block;
    width: 26px; height: 2px;
    background: #1db954;
    border-radius: 2px;
}
.gallery-hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.92);
    margin: 0 0 8px;
}
.gallery-hero .hero-date {
    font-size: clamp(13px, 2.5vw, 15px);
    color: rgba(255,255,255,0.50);
}

/* ── Controls bar ── */
.gallery-controls {
    max-width: 1400px;
    margin: 0 auto 26px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.70);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.chip:hover { background: rgba(255,255,255,0.10); color: #fff; }
.chip.active {
    background: rgba(29,185,84,0.18);
    border-color: rgba(29,185,84,0.45);
    color: #86efac;
}
.chip.on-air-chip.active {
    background: rgba(231,76,60,0.18);
    border-color: rgba(231,76,60,0.45);
    color: #fca5a5;
}
.count-label {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
}
.count-label strong { color: rgba(255,255,255,0.70); }

/* ── Grid ── */
.gallery-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 70px;
}
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

/* ── Card ── */
.prog-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}
.prog-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 24px 55px rgba(0,0,0,0.50);
    border-color: rgba(29,185,84,0.28);
}
.prog-card.hidden { display: none; }

/* on-air glow */
.prog-card.is-on-air {
    border-color: rgba(29,185,84,0.40);
    box-shadow: 0 0 0 1px rgba(29,185,84,0.22), 0 14px 35px rgba(0,0,0,0.40);
}

/* ── OBB media ── */
.card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0,0,0,0.45);
}
.card-media img,
.card-media .obb-video-thumb {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
/* Video used as thumbnail — frozen on first frame, no controls */
.obb-video-thumb {
    pointer-events: none;
}
.prog-card:hover .card-media img,
.prog-card:hover .card-media .obb-video-thumb { transform: scale(1.06); }

.no-obb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,rgba(29,185,84,0.07),rgba(0,0,0,0.25));
}
.no-obb-letters {
    font-size: 54px; font-weight: 900;
    color: rgba(29,185,84,0.18);
    letter-spacing: 0.06em;
    user-select: none;
}

.media-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.38);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.prog-card:hover .media-overlay { opacity: 1; }

.play-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(29,185,84,0.90);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 0 20px rgba(29,185,84,0.45);
}
.play-circle:hover { transform: scale(1.12); background: #1db954; }
.play-circle svg  { margin-left: 3px; }

/* on-air badge */
.on-air-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(231,76,60,0.90);
    color: #fff;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: #fff; border-radius: 50%;
    animation: pulse 1.4s infinite;
}
@keyframes pulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%    { opacity:0.4; transform:scale(0.65); }
}

/* ── Card body ── */
.card-body {
    padding: 18px 18px 14px;
    flex: 1;
    display: flex; flex-direction: column; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.card-dj {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #1db954;
}
.card-title {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.92);
    line-height: 1.2;
}
.card-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.52);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Card footer ── */
.card-footer {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Star rating — mirrors schedule.css .star-btn */
.prog-rating { display: flex; flex-direction: column; gap: 5px; }
.prog-stars  { display: flex; gap: 2px; }
.prog-star {
    background: none; border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.14);
    padding: 0 1px; line-height: 1;
    transition: color 0.2s ease,
                transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
                filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.prog-star:hover:not(:disabled),
.prog-star.hov {
    color: #ffd700;
    transform: scale(1.32) rotate(-5deg);
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.65));
}
.prog-star.filled {
    color: #ffd700;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.40));
}
.prog-star.rated-lock { cursor: default; }
.prog-star:disabled:not(.filled) {
    color: rgba(255,255,255,0.10);
    cursor: default; transform: none; filter: none;
}
@keyframes starPop {
    0%  { transform:scale(1); }
    30% { transform:scale(1.6) rotate(10deg); }
    55% { transform:scale(0.85) rotate(-5deg); }
    75% { transform:scale(1.2) rotate(3deg); }
    100%{ transform:scale(1) rotate(0); }
}
.prog-star.pop { animation: starPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }

.prog-rating-meta {
    font-size: 11.5px;
    color: rgba(255,255,255,0.38);
    display: flex; align-items: center; gap: 5px;
}
.prog-rating-avg {
    color: #ffd700; font-weight: 700;
    text-shadow: 0 0 8px rgba(255,215,0,0.35);
}
.rated-msg { color: #86efac; font-size: 11px; font-weight: 600; }

/* Details button — same feel as .remind-btn */
.details-btn {
    border: 1px solid rgba(255,255,255,0.14);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-family: inherit;
}
.details-btn:hover {
    background: rgba(29,185,84,0.18);
    border-color: rgba(29,185,84,0.40);
    color: #86efac;
}

/* ── Empty state ── */
.gallery-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 70px 20px;
    color: rgba(255,255,255,0.38);
    font-size: 15px;
}
.gallery-empty .empty-icon { font-size: 44px; margin-bottom: 14px; }

/* ── Modal ── */
/* ══════════════════════════════════════
    RESPONSIVE — TABLET (max 768px)
    2-column compact grid
══════════════════════════════════════ */
@media (max-width: 768px) {
    .gallery-hero { padding: 28px 14px 18px; }
    .gallery-hero h1 { font-size: 26px; }
    .gallery-hero .hero-date { font-size: 12px; }
    .gallery-hero .eyebrow { font-size: 10px; margin-bottom: 8px; }
    .gallery-controls { padding: 0 14px; margin-bottom: 16px; gap: 8px; }
    .chip { padding: 5px 12px; font-size: 12px; }
    .count-label { font-size: 12px; }
    .gallery-wrap { padding: 0 14px 40px; }
    .program-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 12px 12px 10px; gap: 4px; }
    .card-dj   { font-size: 9px; letter-spacing: 0.14em; }
    .card-title { font-size: 14px; }
    .card-desc  { font-size: 12px; -webkit-line-clamp: 2; }
    .card-footer { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .details-btn { width: 100%; text-align: center; padding: 8px 12px; font-size: 12px; }
    .prog-star { font-size: 1.1rem; }
    .prog-rating-meta { font-size: 10px; }
    .rated-msg { font-size: 10px; }
    .on-air-badge { font-size: 8px; padding: 4px 8px; gap: 4px; }
    .pulse-dot { width: 5px; height: 5px; }
}

/* ══════════════════════════════════════
    MOBILE (max 480px) — very compact
══════════════════════════════════════ */
@media (max-width: 480px) {
    .gallery-hero { padding: 22px 12px 14px; }
    .gallery-hero h1 { font-size: 22px; }
    .gallery-hero .eyebrow { display: none; }
    .gallery-controls { padding: 0 12px; margin-bottom: 12px; }
    .gallery-wrap { padding: 0 12px 32px; }
    .program-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body { padding: 10px 10px 8px; gap: 3px; }
    .card-dj   { font-size: 8.5px; }
    .card-title { font-size: 13px; line-height: 1.15; }
    .card-desc  { display: none; }
    .card-footer { padding: 8px 10px; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
    .prog-rating { gap: 3px; }
    .prog-stars  { gap: 1px; }
    .prog-star   { font-size: 0.95rem; padding: 0; }
    .prog-rating-meta { display: none; }
    .details-btn { width: auto; padding: 6px 10px; font-size: 11px; border-radius: 6px; }
    .count-label { display: none; }
    /* Modal slides up from bottom */
}

/* ══════════════════════════════════════
    EXTRA SMALL (max 360px) — single col
══════════════════════════════════════ */
@media (max-width: 360px) {
    .program-grid { grid-template-columns: 1fr; gap: 10px; }
    .card-desc { display: -webkit-box; -webkit-line-clamp: 2; }
    .card-footer { flex-direction: column; align-items: flex-start; }
    .details-btn { width: 100%; text-align: center; }
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
    .details-btn { min-height: 40px; }
    .prog-star { min-width: 26px; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ── Expand panel (replaces modal) ── */
.card-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1),
                opacity 0.3s ease,
                padding 0.3s ease;
    opacity: 0;
    border-top: 0px solid rgba(255,255,255,0.08);
}
.prog-card.expanded .card-expand {
    max-height: 600px;
    opacity: 1;
    border-top-width: 1px;
    padding: 16px 18px 18px;
}

.expand-desc {
    font-size: 13.5px;
    line-height: 1.72;
    color: rgba(255,255,255,0.60);
}

/* Details button toggle state */
.details-btn .btn-label-open  { display: inline; }
.details-btn .btn-label-close { display: none; }
.prog-card.expanded .details-btn .btn-label-open  { display: none; }
.prog-card.expanded .details-btn .btn-label-close { display: inline; }
.prog-card.expanded .details-btn {
    background: rgba(231,76,60,0.15);
    border-color: rgba(231,76,60,0.35);
    color: #fca5a5;
}

/* Disable hover lift when expanded */
.prog-card.expanded {
    transform: none !important;
    border-color: rgba(29,185,84,0.35);
    box-shadow: 0 0 0 1px rgba(29,185,84,0.20), 0 18px 50px rgba(0,0,0,0.45);
}

/* Hide the hover overlay once expanded (OBB already showing below) */
.prog-card.expanded .media-overlay { display: none; }

@media (max-width: 480px) {
    .prog-card.expanded .card-expand { padding: 12px 12px 14px; }
    .expand-desc { font-size: 12.5px; }
}