/* Page Tendance + page Recherche : mise en page et états « en attente » */

.dsc-trend-page,
.dsc-search-landing {
  width: min(1020px, calc(100vw - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 0;
}

.dsc-trend-page .section,
.dsc-search-landing .section {
  margin-top: 0;
}

.dsc-trend-head {
  margin-bottom: 1rem;
}

.dsc-trend-head h1,
.dsc-trend-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dsc-trend-lead {
  margin: 0.5rem 0 0;
  color: var(--muted, rgba(200, 204, 220, 0.82));
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 40rem;
}

.dsc-trend-tabs.bottom-nav {
  position: static;
  margin-top: 1rem;
  padding: 0.65rem;
  border-radius: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.dsc-trend-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(12, 12, 18, 0.92));
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(254, 243, 199, 0.95);
}

.dsc-trend-notice p {
  margin: 0;
}

.dsc-trend-grid-wrap {
  min-height: 200px;
}

/* --- Recherche --- */

.dsc-search-landing__hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dsc-search-landing__lead {
  margin: 0.5rem 0 0;
  color: var(--muted, rgba(200, 204, 220, 0.82));
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 36rem;
}

.dsc-search-landing__form-card {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
}

.dsc-search-landing__form {
  margin: 0;
}

.dsc-search-landing__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dsc-search-landing__field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.dsc-search-landing__field input[type="search"],
.dsc-search-landing__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: 1rem;
}

.dsc-search-landing__field select {
  font-size: 0.95rem;
}

.dsc-search-landing__submit.btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.dsc-search-waiting {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dsc-search-waiting__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dsc-search-waiting__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted, rgba(200, 204, 220, 0.78));
  max-width: 40rem;
}

.dsc-search-landing__grid {
  margin-top: 0.25rem;
}

.dsc-search-waiting__empty-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted, rgba(200, 204, 220, 0.78));
}

.dsc-search-landing .dsc-search-landing__grid.grid.grid-4 {
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.dsc-search-landing .dsc-search-landing__grid.grid.grid-4 > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .dsc-search-landing .dsc-search-landing__grid.grid.grid-4 {
    overflow-x: visible;
  }
}

@media (max-width: 520px) {
  .dsc-search-landing .dsc-search-landing__grid.grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dsc-search-landing__footer {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dsc-search-landing__footer .btn {
  text-decoration: none;
}

.dsc-search-landing__footer .btn:hover,
.dsc-search-landing__footer .btn:focus {
  text-decoration: none;
}

/* --- Squelettes --- */

.dsc-manga-skeleton-grid {
  pointer-events: none;
}

.dsc-manga-skeleton-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 24, 0.65);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  overflow: hidden;
}

.dsc-manga-skeleton-card__cover {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  margin: 8px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 40%,
    rgba(255, 255, 255, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: dsc-skeleton-shimmer 1.35s ease-in-out infinite;
}

.dsc-manga-skeleton-card__line {
  position: relative;
  z-index: 1;
  display: block;
  height: 10px;
  border-radius: 6px;
  max-width: 100%;
  animation: dsc-skeleton-shimmer 1.35s ease-in-out infinite;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.05) 90%
  );
  background-size: 200% 100%;
}

.dsc-manga-skeleton-card__line--short {
  max-width: 55%;
}

@keyframes dsc-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsc-manga-skeleton-card__cover,
  .dsc-manga-skeleton-card__line {
    animation: none;
  }
}

.dsc-trend-empty-card {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.55);
}

.dsc-trend-empty-card p {
  margin: 0 0 0.75rem;
  color: var(--muted, rgba(200, 204, 220, 0.85));
  font-size: 0.9rem;
  line-height: 1.55;
}

.dsc-trend-empty-card p:last-child {
  margin-bottom: 0;
}
