.page-theme-detail .theme-detail {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-4xl);
}

.theme-detail__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
}

.theme-detail__back {
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
}

.theme-detail__back:hover { color: var(--white); }

.theme-detail__sep { color: var(--gray-600); }
.theme-detail__current { color: var(--gray-300); font-weight: 500; }

.theme-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.theme-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin: 0 0 var(--space-sm);
}

.theme-detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.theme-detail__meta-row a {
  color: #5865f2;
  text-decoration: none;
}

.theme-detail__meta-row a:hover { text-decoration: underline; }

.theme-detail__desc {
  max-width: 720px;
  margin: 0 0 var(--space-md);
  color: var(--gray-400);
  line-height: 1.6;
}

.theme-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.theme-detail__tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gray-800);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

.theme-detail__likes {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--gray-300);
  font-weight: 600;
  white-space: nowrap;
}

.theme-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .theme-detail__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.theme-detail__preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  background: var(--gray-900);
}

.theme-detail__screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.theme-detail__live {
  margin-bottom: var(--space-xl);
}

.theme-detail__live-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.theme-detail__live-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.theme-detail__live-head p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.theme-detail__live--hero {
  margin-bottom: var(--space-2xl);
}

.theme-detail__live-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-detail__section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 var(--space-md);
}

/* Discord preview — Gibbu ThemePreview embed */
.discord-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #313338;
}

.discord-preview--full {
  border-color: #1e1f22;
}

.discord-preview__frame {
  display: block;
  width: 100%;
  border: 0;
  background: #313338;
}

.discord-preview__frame--full {
  height: min(78vh, 860px);
  min-height: 520px;
}

.discord-preview:fullscreen {
  border-radius: 0;
  border: none;
  background: #000;
}

.discord-preview:fullscreen .discord-preview__frame--full {
  height: 100vh;
  min-height: 100vh;
}

/* Sidebar panels */
.theme-detail__panel {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: var(--space-md);
}

.theme-detail__panel h3 {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.theme-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.theme-detail__action {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-detail__about {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.theme-detail__about div {
  display: grid;
  gap: 0.15rem;
}

.theme-detail__about dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.theme-detail__about dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-300);
  word-break: break-word;
}

.theme-detail__about a {
  color: #5865f2;
  text-decoration: none;
}

.theme-detail__hash {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
}

.theme-detail__person {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-detail__person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  color: white;
  font-weight: 700;
}

.theme-detail__person strong {
  display: block;
  color: var(--white);
}

.theme-detail__person a {
  font-size: 0.8125rem;
  color: #5865f2;
  text-decoration: none;
}

.theme-detail__contrib-title {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.theme-detail__contrib-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.theme-detail__contrib-list a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.875rem;
}

.theme-detail__contrib-list a:hover { color: var(--white); }

.theme-detail__editor {
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .theme-detail__header {
    flex-direction: column;
  }
}
