html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  background: #ffffff;
}

.hero.is-light {
  background: #f8fafc;
}

.hero-body {
  padding-top: 2.15rem;
  padding-bottom: 2rem;
}

.publication-title {
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.55rem, 2.55vw, 2.35rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  color: #1f2937 !important;
  margin-bottom: 0.65rem !important;
}

.hero-subtitle {
  max-width: 860px;
  margin: 0 auto 0.85rem;
  color: #6b7280;
  font-size: 1.06rem;
  line-height: 1.72;
}

.project-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.project-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-width: 10.5rem;
  padding: 0.78rem 1.2rem;
  border-radius: 16px;
  background: #202c43;
  border: 1px solid #202c43;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.project-action-button:hover {
  background: #263652;
  border-color: #263652;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.project-action-button.is-disabled {
  opacity: 0.82;
}

.project-action-button.is-disabled:hover {
  background: #202c43;
  border-color: #202c43;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transform: none;
}

.project-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  font-size: 1rem;
  text-align: center;
}

.project-action-icon svg {
  width: 1rem;
  height: 1rem;
}

.project-action-icon-arxiv {
  width: 1.1rem;
}

.project-action-icon-arxiv .ai {
  font-size: 1.1rem;
  line-height: 1;
}

.publication-links .link-block {
  display: inline-block;
  margin: 0 0.2rem;
}

.publication-links .button {
  background: #ffffff;
  border: 1px solid #d8dee9;
  color: #374151;
  font-weight: 600;
  font-size: 0.92rem;
}

.publication-links .button:hover {
  color: #3273dc;
  border-color: #3273dc;
}

.section-title {
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.65rem !important;
  color: #1f2937 !important;
  margin-bottom: 1.3rem !important;
}

.demo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfcfe;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 600;
}

.featured-demo-section {
  padding-top: 0.25rem;
}

.featured-demo-container {
  max-width: 620px !important;
}

.featured-demo-head {
  margin-bottom: 0.7rem;
}

.featured-demo-head .section-title {
  margin-bottom: 0.35rem !important;
}

.featured-demo-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #5b6676;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.featured-demo-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.featured-demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f172a;
}

.notice-text {
  color: #4b5563;
  font-size: 0.92rem;
}

.soundtrack-section {
  background: linear-gradient(180deg, #f5f8fc 0%, #eef4fb 100%);
}

.soundtrack-header {
  margin-bottom: 1.45rem;
  padding: 1.1rem 1rem 0.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.soundtrack-header .section-title {
  margin-bottom: 0.5rem !important;
}

.soundtrack-notice {
  color: #5b6676;
  font-size: 0.96rem;
}

.results-container {
  width: min(90vw, 1680px);
  max-width: none !important;
}

.demo-group {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.9rem 0.95rem 1rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.demo-group-bench {
  border-color: #d6deea;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demo-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.demo-group-bench .demo-group-title {
  color: #1f2937;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.audio-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 0.9rem 0.95rem;
}

.audio-card audio {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.audio-card-text {
  margin: 0;
  color: #4b5563;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: left;
}

.demo-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
}

.demo-card-plain video {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.demo-card-v2a video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
}

.demo-meta {
  padding: 0.58rem 0.66rem 0.66rem;
}

.demo-caption {
  margin: 0;
  color: #4b5563;
  font-size: 0.72rem;
  line-height: 1.42;
  text-align: left;
}

.meta-label-inline {
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: 0.2rem;
}

.meta-label-audio {
  color: #2563eb;
}

.meta-label-word {
  color: #059669;
}

.meta-label-music {
  color: #d97706;
}

.other-task-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.other-task-card {
  border: 1px dashed #cfd8e3;
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
  text-align: center;
  color: #4b5563;
  font-weight: 600;
}

.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #3273dc;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .demo-grid,
  .demo-grid-wide,
  .demo-grid-four,
  .audio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .demo-grid,
  .demo-grid-wide,
  .demo-grid-four,
  .audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .publication-title {
    font-size: 1.5rem !important;
  }

  .hero-body {
    padding-top: 1.8rem;
    padding-bottom: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .featured-demo-subtitle {
    font-size: 0.92rem;
  }

  .featured-demo-container {
    max-width: none !important;
  }

  .demo-grid,
  .demo-grid-wide,
  .demo-grid-four,
  .audio-grid,
  .other-task-row {
    grid-template-columns: 1fr;
  }
}
