/* Project detail page — black theme */

.detail-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.detail-header h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.detail-header p:not(.eyebrow) {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.detail-section {
  padding-top: 56px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: 64px;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: 110px;
  padding-top: 8px;
}

.detail-sidebar h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-visit-btn {
  width: 100%;
}

.detail-main {
  min-width: 0;
}

.detail-desc {
  margin-bottom: 48px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.detail-desc p {
  margin: 0 0 18px;
}

.detail-desc b,
.detail-desc strong {
  color: var(--text);
}

.detail-videos {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.detail-video {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
}

.detail-video video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.detail-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.detail-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.detail-screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.detail-screenshot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
}

.detail-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.not-found {
  max-width: 640px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.not-found h1,
.not-found h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
}

.not-found p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-visit-btn {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .detail-section {
    padding-top: 48px;
  }

  .detail-screenshots {
    grid-template-columns: 1fr;
  }
}
