.model-showcase {
  --showcase-accent: #27a776;
  --showcase-panel: #18191b;
  --showcase-panel-soft: #1d1f21;
  --showcase-border: rgba(255, 255, 255, 0.1);
  --showcase-muted: rgba(255, 255, 255, 0.6);
  --showcase-edge-gutter: 30px;
  padding: 54px 0 78px;
  overflow: hidden;
  background: #111214;
  color: #fff;
}

.model-showcase-shell {
  width: min(1520px, calc(100% - 72px));
  margin: 0 auto;
}

.model-showcase-intro,
.model-category-header {
  display: flex;
  gap: 24px;
  padding-inline: var(--showcase-edge-gutter);
  align-items: flex-end;
  justify-content: space-between;
}

.model-showcase-intro {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.model-showcase-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #68d6aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-showcase-intro h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: Cardo, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
}

.model-showcase-intro p,
.model-category-header p {
  margin: 0;
  color: var(--showcase-muted);
}

.model-showcase-intro p {
  font-size: 14px;
}

.model-showcase-all,
.model-category-view-all {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  color: #70dbb1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.model-showcase-all:hover,
.model-category-view-all:hover {
  color: #fff;
}

.model-showcase-state {
  display: flex;
  min-height: 180px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--showcase-muted);
  font-size: 14px;
}

.model-showcase-state[hidden] {
  display: none;
}

.model-showcase-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--showcase-accent);
  border-radius: 50%;
  animation: modelShowcaseSpin 0.8s linear infinite;
}

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

.model-showcase-error {
  flex-wrap: wrap;
  color: #f0aaa7;
}

.model-showcase-error a {
  color: #7ce0b8;
}

.model-category-section {
  padding-top: 42px;
}

.model-category-header {
  margin-bottom: 17px;
}

.model-category-header h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.model-category-header p {
  font-size: 13px;
}

.model-carousel-frame {
  position: relative;
  padding-inline: var(--showcase-edge-gutter);
}

.model-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.model-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.model-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  padding: 2px 1px 8px;
}

.model-showcase-card {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--showcase-border);
  border-radius: 7px;
  overflow: hidden;
  flex-direction: column;
  background: var(--showcase-panel);
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.model-showcase-card:hover,
.model-showcase-card:focus-visible {
  border-color: rgba(39, 167, 118, 0.65);
  background: var(--showcase-panel-soft);
  color: #fff;
  transform: translateY(-2px);
}

.model-showcase-card:focus-visible {
  outline: 3px solid rgba(39, 167, 118, 0.3);
  outline-offset: 2px;
}

.model-card-visual {
  position: relative;
  display: flex;
  min-height: 42%;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 28% 24%, rgba(74, 184, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(17, 84, 126, 0.48), rgba(12, 36, 51, 0.7));
  color: #58c1ff;
}

.model-showcase-card[data-category="image_to_video"] .model-card-visual,
.model-showcase-card[data-category="reference_to_video"] .model-card-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(134, 103, 255, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(65, 43, 137, 0.55), rgba(29, 23, 59, 0.78));
  color: #b49fff;
}

.model-showcase-card[data-category="lip_sync"] .model-card-visual,
.model-showcase-card[data-category="background_removal"] .model-card-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(39, 167, 118, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(22, 104, 73, 0.52), rgba(15, 49, 38, 0.78));
  color: #70dfb2;
}

.model-showcase-card[data-category="video_extension"] .model-card-visual,
.model-showcase-card[data-category="model_hub"] .model-card-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 155, 76, 0.25), transparent 35%),
    linear-gradient(135deg, rgba(131, 68, 28, 0.5), rgba(55, 34, 19, 0.78));
  color: #ffb579;
}

.model-card-visual > i {
  font-size: clamp(38px, 4vw, 58px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.model-card-company-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.model-card-body {
  display: flex;
  min-height: 0;
  padding: 14px;
  flex: 1;
  flex-direction: column;
}

.model-card-company {
  margin-bottom: 6px;
  overflow: hidden;
  color: #6bd8ab;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.model-card-title {
  margin: 0;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.model-card-action {
  display: flex;
  margin-top: auto;
  padding-top: 9px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
}

.model-showcase-card:hover .model-card-action {
  color: #7ce0b8;
}

.model-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  background: rgba(17, 18, 20, 0.94);
  color: #fff;
  font-size: 22px;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.model-carousel-arrow:hover:not(:disabled) {
  border-color: var(--showcase-accent);
  background: #1f4939;
}

.model-carousel-arrow:focus-visible {
  outline: 3px solid rgba(39, 167, 118, 0.35);
  outline-offset: 2px;
}

.model-carousel-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.model-carousel-arrow.is-hidden {
  display: none;
}

.model-carousel-prev { left: 4px; }
.model-carousel-next { right: 4px; }

@media (max-width: 1199px) {
  .model-carousel-track {
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

@media (max-width: 991px) {
  .model-showcase-shell {
    width: min(100% - 48px, 1520px);
  }

  .model-carousel-track {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px) {
  .model-showcase {
    --showcase-edge-gutter: 22px;
    padding: 42px 0 62px;
  }

  .model-showcase-shell {
    width: min(100% - 30px, 1520px);
  }

  .model-showcase-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-carousel-track {
    grid-auto-columns: calc((100% - 14px) / 2);
    gap: 14px;
  }

  .model-carousel-prev { left: 1px; }
  .model-carousel-next { right: 1px; }
}

@media (max-width: 520px) {
  .model-showcase {
    --showcase-edge-gutter: 18px;
  }

  .model-category-header {
    gap: 12px;
    align-items: flex-start;
  }

  .model-category-header h3 {
    font-size: 19px;
  }

  .model-category-header p {
    display: none;
  }

  .model-category-view-all span {
    display: none;
  }

  .model-carousel-track {
    grid-auto-columns: 82%;
  }

  .model-carousel-arrow {
    width: 36px;
    height: 50px;
  }

  .model-card-title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-carousel-viewport {
    scroll-behavior: auto;
  }

  .model-showcase-card,
  .model-showcase-spinner {
    animation: none;
    transition: none;
  }
}
