/* =====================================================================
   JM RADIO — titres.css : page Titres diffusés
   ===================================================================== */

/* En ce moment */
.ti-now { display: flex; align-items: center; gap: 22px; padding: 18px; margin-bottom: 18px; border-radius: var(--jm-radius, 22px); background: linear-gradient(120deg, rgba(251, 191, 36, 0.1), rgba(12, 16, 27, 0.85) 55%); border: 1px solid rgba(251, 191, 36, 0.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ti-now-cover { position: relative; width: 132px; height: 132px; flex: none; border-radius: 18px; overflow: hidden; background: #0F172A; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.ti-now-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-eq { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; padding: 4px 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); }
.ti-eq i { width: 3px; height: 100%; background: var(--gold); border-radius: 2px; animation: tiEq 1s ease-in-out infinite; transform-origin: bottom; }
.ti-eq i:nth-child(2) { animation-delay: .15s; } .ti-eq i:nth-child(3) { animation-delay: .3s; } .ti-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes tiEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.ti-now-body { flex: 1; min-width: 0; }
.ti-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #FCA5A5; }
.ti-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: tiPulse 1.6s ease-out infinite; }
@keyframes tiPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
.ti-now-body h2 { margin: 6px 0 2px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; color: #fff; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-now-body p { margin: 0 0 14px; color: var(--gold); font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-now-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.ti-btn i { color: var(--gold); }
.ti-btn:hover { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }
.ti-btn.primary { background: linear-gradient(135deg, #E72535, #B91C1C); border-color: transparent; box-shadow: 0 8px 20px rgba(231, 37, 53, 0.3); }
.ti-btn.primary i { color: #fff; }
.ti-btn.primary:hover { filter: brightness(1.08); }

/* Filtres */
.ti-controls { display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 16px; border-radius: var(--jm-radius, 22px); background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); }
.ti-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ti-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); color: #CBD5E1; font-family: inherit; cursor: pointer; transition: all .2s ease; }
.ti-day small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #64748B; }
.ti-day b { font-size: 1.1rem; font-weight: 900; color: #fff; }
.ti-day:hover { border-color: rgba(251, 191, 36, 0.35); }
.ti-day.active { background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.06)); border-color: rgba(251, 191, 36, 0.55); }
.ti-day.active small { color: var(--gold); }
.ti-filters { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; }
.ti-field { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(7, 10, 18, 0.6); color: #fff; }
.ti-field i { color: #64748B; font-size: 0.85rem; }
.ti-field input, .ti-field select { background: none; border: 0; outline: none; color: #fff; font-family: inherit; font-size: 0.88rem; min-width: 0; width: 100%; color-scheme: dark; }
.ti-field select option { background: #0F172A; }
.ti-field:focus-within { border-color: rgba(251, 191, 36, 0.5); }

/* Liste */
.ti-summary { color: var(--text-secondary); font-size: 0.88rem; margin: 0 4px 12px; min-height: 1.2em; }
.ti-summary b { color: #fff; }
.ti-list { display: flex; flex-direction: column; gap: 14px; }
.ti-hour { border-radius: 20px; background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); overflow: hidden; }
.ti-hour header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.ti-hour-label { font-weight: 900; color: var(--gold); font-size: 0.98rem; display: inline-flex; align-items: center; gap: 8px; }
.ti-hour-count { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); }
.ti-rows { list-style: none; margin: 0 0 -1px; padding: 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)); background-size: 1px calc(100% - 24px); background-position: center 12px; background-repeat: no-repeat; }
.ti-row { display: grid; grid-template-columns: 52px 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); transition: background .15s ease; }
.ti-row:hover { background: rgba(255, 255, 255, 0.04); }
.ti-time { font-size: 0.8rem; font-weight: 800; color: #94A3B8; font-variant-numeric: tabular-nums; }
.ti-cover { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #0F172A; }
.ti-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ti-meta b { font-size: 0.9rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-meta span { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-ask { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: none; color: #94A3B8; font-family: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; opacity: 0; transition: all .15s ease; }
.ti-row:hover .ti-ask, .ti-ask:focus-visible { opacity: 1; }
.ti-ask:hover { color: #111; background: var(--gradient-gold); border-color: transparent; }
.ti-loading, .ti-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 46px 16px; border-radius: 20px; background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); color: var(--text-secondary); }
.ti-loading { flex-direction: row; justify-content: center; font-weight: 600; }
.ti-loading i, .ti-empty i { color: var(--gold); font-size: 1.1rem; }
.ti-empty i { font-size: 1.8rem; margin-bottom: 6px; }
.ti-empty b { color: #fff; font-size: 1.05rem; }

@media (max-width: 1200px) { .ti-rows { grid-template-columns: minmax(0, 1fr); background-image: none; } }
@media (hover: none) { .ti-ask { opacity: 1; } .ti-ask span { display: none; } }
@media (max-width: 760px) {
    .ti-now { gap: 14px; padding: 14px; }
    .ti-now-cover { width: 86px; height: 86px; border-radius: 14px; }
    .ti-now-body h2 { font-size: 1.15rem; }
    .ti-now-body p { font-size: 0.85rem; margin-bottom: 10px; }
    .ti-btn { height: 36px; padding: 0 12px; font-size: 0.78rem; }
    .ti-controls { padding: 10px; }
    .ti-days { gap: 5px; }
    .ti-day { padding: 6px 2px; border-radius: 10px; }
    .ti-day b { font-size: 0.95rem; }
    .ti-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ti-search { grid-column: 1 / -1; }
    .ti-row { grid-template-columns: 44px 42px minmax(0, 1fr) auto; gap: 10px; padding: 9px 4px; }
    .ti-cover { width: 42px; height: 42px; }
}
@media (max-width: 420px) {
    .ti-now { flex-direction: column; align-items: flex-start; }
    .ti-now-cover { width: 72px; height: 72px; }
}
