:root {
  --bg: #0b0d14;
  --panel: #171a24;
  --panel-soft: #1d2130;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5fb;
  --muted: #a7adbf;
  --muted-2: #8b91a2;
  --purple: #8b5cf6;
  --purple-strong: #9f67ff;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body {
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

a {
  color: #cfb9ff;
  text-decoration: none;
}

a:hover {
  color: #efe8ff;
}

.mod-page {
  padding: 24px;
}

.mod-shell {
  max-width: 1220px;
  margin: 0 auto;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--border);
}

.project-identity {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.project-icon-wrap {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.project-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.project-copy {
  min-width: 0;
}

.project-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.project-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #cbcfe0;
  font-size: 0.95rem;
}

.project-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 880px;
}

.project-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.project-meta-inline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-actions {
  flex-shrink: 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(176, 133, 255, 0.34);
  background: linear-gradient(180deg, var(--purple-strong), var(--purple));
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.download-button:hover {
  color: white;
  filter: brightness(1.05);
}

.download-button.small {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.tab-link {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f1f1fb;
  font-weight: 700;
}

.tab-link.active {
  background: rgba(139, 92, 246, 0.22);
  color: #d8c4ff;
}

.release-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(176, 133, 255, 0.22);
  border-radius: 24px;
}

.release-note-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #d7c4ff;
  font-size: 1.3rem;
}

.release-note h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.release-note p {
  margin: 0;
  color: #ddd7ee;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.surface-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.content-panel,
.versions-panel {
  padding: 0 0 8px;
}

.content-section {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: 0;
}

.intro-block h2,
.content-section h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.1;
}

.content-section h3 {
  font-size: 1.7rem;
}

.content-section p {
  margin: 0 0 14px;
  color: #daddeb;
}

.muted-italic {
  color: var(--muted);
  font-style: italic;
}

.hero-image-frame,
.config-image-frame {
  overflow: hidden;
  border-radius: 0;
  background: #090b11;
  border: 1px solid rgba(255,255,255,0.05);
}

.hero-image,
.config-image {
  width: 100%;
  object-fit: cover;
}

.thumbnail-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.thumbnail-card {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;

  width: 190px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0c0e16;
  overflow: hidden;
}

.thumbnail-card.active-thumb {
  outline: 2px solid rgba(139, 92, 246, 0.46);
}

.content-section ul {
  margin: 0 0 16px 18px;
  padding: 0;
  color: #e3e6f2;
}

.section-note,
.version-line {
  margin-bottom: 0 !important;
}

.version-line {
  font-size: 1.35rem;
}

.sidebar-column {
  display: grid;
  gap: 14px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.sidebar-group + .sidebar-group {
  margin-top: 14px;
}

.sidebar-label {
  margin-bottom: 8px;
  color: #dde0ed;
  font-weight: 600;
  font-size: 1.05rem;
}

.pill-tag,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #e8eaf7;
  white-space: nowrap;
}

.pill-tag.outlined {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(176, 133, 255, 0.24);
}

.pill-tag.muted {
  color: #c8cede;
}

.tag-chip {
  min-height: 32px;
  color: #cbcfe0;
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6ddff;
  margin-bottom: 12px;
  font-weight: 500;
}

.sidebar-link:last-child {
  margin-bottom: 0;
}

.creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.creator-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.creator-role {
  color: var(--muted);
}

.crown {
  color: #ffc950;
  font-size: 0.86rem;
}

.details-list {
  display: grid;
  gap: 12px;
  color: #d8dceb;
}

.details-list div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.versions-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.versions-table {
  padding: 16px 24px 24px;
}

.versions-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) 0.8fr 0.9fr 0.8fr 0.7fr 64px;
  gap: 16px;
  align-items: center;
}

.versions-head {
  padding: 0 10px 14px;
  color: #f4f6ff;
  font-weight: 700;
}

.versions-item {
  padding: 18px 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.release-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  color: #ceb8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.version-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
}

.version-subtitle {
  color: var(--muted);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.icon-action {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(176, 133, 255, 0.22);
  color: #dbccff;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mod-page {
    padding: 16px;
  }

  .project-header,
  .project-identity {
    flex-direction: column;
  }

  .project-actions {
    width: 100%;
  }

  .download-button {
    width: 100%;
  }

  .release-note {
    grid-template-columns: 1fr;
  }

  .versions-row {
    grid-template-columns: 1fr;
  }

  .versions-head {
    display: none;
  }

  .versions-item {
    gap: 10px;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .sidebar-column {
    grid-template-columns: 1fr;
  }

  .intro-block h2,
  .content-section h3 {
    font-size: 1.55rem;
  }

  .thumbnail-card {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;

    width: 144px;
  }
}
