/* clips.css - Page Highlights vidéo BleuBlancDunk */

.clips-wrap {
  padding-top: 20px;
  padding-bottom: 56px;
}

/* ── Loading / Empty ── */
.clips-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--muted, #64748b);
  font-size: 14px;
}

.clips-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0,0,0,.1);
  border-top-color: #0055A4;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

.clips-empty {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #dbe2ea);
  border-radius: var(--radius-md, 14px);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Date section ── */
.clips-date-section {
  margin-bottom: 32px;
}

.clips-date-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clips-date-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #dbe2ea);
}

/* ── Grid de cartes ── */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* ── Carte clip ── */
.clip-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #dbe2ea);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s, transform .12s;
}

.clip-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #b6c5db;
  transform: translateY(-2px);
}

.clip-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c1220;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-card__play {
  opacity: .85;
  transition: opacity .12s;
}

.clip-card:hover .clip-card__play { opacity: 1; }

.clip-card__info {
  padding: 12px 14px 14px;
}

.clip-card__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 4px;
}

.clip-card__meta {
  font-size: 12px;
  color: var(--muted, #64748b);
  margin: 0;
}

/* ── Modal ── */
.clips-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.clips-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, .75);
  backdrop-filter: blur(5px);
}

.clips-modal__inner {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(12, 18, 32, .35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clips-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .12s;
}

.clips-modal__close:hover { background: #f1f5f9; }

.clips-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0;
  padding-right: 40px;
}

.clips-modal__meta {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0;
}

.clips-modal__video {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  background: #000;
  max-height: 60vh;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .clips-grid {
    grid-template-columns: 1fr;
  }

  .clips-modal__inner {
    padding: 14px;
  }
}
