/* ── Page mod ─────────────────────────────────────────────────────────────── */
.mod-page {
  width: 100%;
  padding: 0 0 60px;
}

/* ── Hero auteur ─────────────────────────────────────────────────────────── */
.mod-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mod-hero-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(230,0,126,0.4);
}

.mod-hero-info {
  flex: 1;
  min-width: 0;
}

.mod-hero-author {
  font-size: 13px;
  color: var(--text-muted, #aaa);
  margin-bottom: 4px;
}

.mod-hero-author span {
  color: var(--text, #fff);
  font-weight: 600;
}

.mod-topbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mod-topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}

.mod-back-btn i {
  font-size: 15px;
}

.mod-back-btn:hover {
  background: rgba(230,0,126,0.12);
  border-color: rgba(230,0,126,0.3);
  color: var(--primary);
}

.mod-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text, #fff);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted, #aaa);
  align-items: center;
}

.mod-hero-meta i {
  margin-right: 4px;
  color: #e6007e;
}

.mod-hero-badge {
  background: rgba(230,0,126,0.15);
  color: #e6007e;
  border: 1px solid rgba(230,0,126,0.3);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Corps : galerie + sidebar ───────────────────────────────────────────── */
.mod-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.mod-body > div:first-child {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mod-body { grid-template-columns: 1fr; }
}

/* ── Galerie ─────────────────────────────────────────────────────────────── */
.mod-gallery {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  min-width: 0;
}

.mod-gallery-main {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  height: 420px;
}

.mod-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mod-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e6007e transparent;
  -webkit-overflow-scrolling: touch;
}

.mod-gallery-thumbs img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity .2s, border-color .2s;
}

.mod-gallery-thumbs img.active,
.mod-gallery-thumbs img:hover {
  border-color: #e6007e;
  opacity: 1;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.mod-description {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px;
}

.mod-description h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #fff);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mod-description-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted, #aaa);
  white-space: pre-line;
  overflow: hidden;
}

.mod-description-text img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.mod-description-text a {
  color: var(--primary, #e6007e);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(230, 0, 126, 0.3);
  transition: border-color .15s, color .15s;
}

.mod-description-text a:hover {
  color: #ff3da0;
  border-bottom-color: rgba(230, 0, 126, 0.8);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.mod-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mod-download-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px;
}

.mod-download-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #aaa);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 16px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #e6007e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-bottom: 8px;
}

.btn-download:hover {
  background: #c8006e;
  color: #fff;
  transform: translateY(-1px);
}

.btn-download.btn-download-alt {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  margin-bottom: 0;
}

.btn-download.btn-download-alt:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-download i {
  font-size: 18px;
}

.mod-sidebar-stats {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 22px;
}

.mod-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

.mod-stat-row:last-child { border-bottom: none; }

.mod-stat-label {
  color: var(--text-muted, #aaa);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mod-stat-label i { color: #e6007e; }

.mod-stat-value {
  color: var(--text, #fff);
  font-weight: 600;
}

/* ── Erreur ──────────────────────────────────────────────────────────────── */
.mod-not-found {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted, #aaa);
}

.mod-not-found i {
  font-size: 48px;
  color: #e6007e;
  display: block;
  margin-bottom: 16px;
}
