/* =====================================================================
   JM RADIO — stations.css : page « Nos stations »
   ===================================================================== */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.st-card { --st: #E72535; position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--jm-panel, rgba(12, 16, 27, .78)); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.st-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45); }
.st-card.is-playing { border-color: color-mix(in srgb, var(--st) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--st) 55%, transparent), 0 20px 44px rgba(0, 0, 0, 0.45); }

.st-cover { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #0B0F19; cursor: pointer; overflow: hidden; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; }
.st-card:hover .st-cover img { transform: scale(1.04); }
.st-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.st-card.is-playing .st-cover img { filter: brightness(.82); }

.st-play { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff; background: var(--st); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); transition: transform .2s ease, filter .2s ease; }
.st-play i.fa-play { margin-left: 3px; }
.st-card[data-station="classiks"] .st-play { color: #111; }
.st-cover:hover .st-play { transform: scale(1.08); filter: brightness(1.08); }
.st-cover:focus-visible { outline: 3px solid var(--st); outline-offset: -3px; }

/* Égaliseur animé quand la station joue */
.st-eq { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); display: none; align-items: flex-end; gap: 5px; height: 42px; }
.st-eq i { width: 6px; height: 100%; border-radius: 3px; background: #fff; transform-origin: bottom; animation: stEq 1s ease-in-out infinite; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.st-eq i:nth-child(2) { animation-delay: .2s; } .st-eq i:nth-child(3) { animation-delay: .4s; } .st-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes stEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.st-card.is-playing .st-eq { display: inline-flex; }
.st-live { position: absolute; top: 10px; left: 10px; z-index: 2; display: none; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 900; letter-spacing: 1px; color: #fff; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.st-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); animation: stPulse 1.4s ease-in-out infinite; }
@keyframes stPulse { 50% { opacity: .35; } }
.st-card.is-playing .st-live { display: inline-flex; }

.st-info { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 13px; min-width: 0; }
.st-name { font-size: 0.98rem; font-weight: 800; color: var(--st); line-height: 1.25; }
.st-now { font-size: 0.86rem; font-weight: 600; color: #F1F5F9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st-hint { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.55; color: var(--text-secondary); background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); max-width: 760px; }
.st-hint i { color: var(--gold); margin-top: 3px; }

@media (max-width: 760px) {
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .st-play { width: 42px; height: 42px; left: 9px; bottom: 9px; font-size: 0.95rem; }
    .st-eq { height: 32px; gap: 4px; bottom: 14px; }
    .st-eq i { width: 5px; }
    .st-info { padding: 9px 10px 11px; }
    .st-name { font-size: 0.88rem; }
    .st-now { font-size: 0.78rem; }
}
