/* ─── Hero Slider ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--dark);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: pointer;
}

.slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
  overflow: hidden;
}

.slide-bg-icon {
  color: rgba(255, 255, 255, 0.04);
  transition: transform 8s ease;
}

.slide-bg-icon svg {
  width: 380px;
  height: 380px;
}

.slide:hover .slide-bg-icon { transform: scale(1.06) rotate(-5deg); }

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(13,13,13,0.98) 0%,
    rgba(13,13,13,0.75) 50%,
    transparent 100%
  );
}

.slide-overlay-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(13,13,13,0.9) 0%, transparent 50%);
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 0 48px 48px;
  max-width: 680px;
  width: 100%;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--deep-red);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  animation: fadeInDown 0.5s var(--ease) both;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeInUp 0.5s var(--ease) 0.06s both;
}

.slide-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  margin-bottom: 18px;
  max-width: 500px;
  animation: fadeInUp 0.5s var(--ease) 0.12s both;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  animation: fadeInUp 0.5s var(--ease) 0.16s both;
}

.slide-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-meta-item svg { color: var(--accent-red); }

.slide-actions {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.5s var(--ease) 0.2s both;
}

.slider-controls {
  position: absolute;
  bottom: 24px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.slider-btn {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--deep-red);
  border-color: var(--deep-red);
  transform: scale(1.08);
}

.slider-dots { display: flex; gap: 6px; align-items: center; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.dot.active {
  background: var(--accent-red);
  width: 22px;
  border-radius: 4px;
}

/* ─── Categories banner ───────────────────────────────────── */
.categories-banner {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  opacity: 0;
  animation: scaleIn 0.4s var(--ease) forwards;
}

.cat-card:hover {
  border-color: var(--deep-red);
  background: rgba(193,18,31,0.07);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.cat-icon {
  width: 42px;
  height: 42px;
  background: var(--mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--accent-red);
  transition: background var(--dur) var(--ease);
}

.cat-card:hover .cat-icon { background: rgba(193,18,31,0.15); }
.cat-name  { font-size: 0.84rem; font-weight: 700; font-family: var(--font-display); }
.cat-count { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

/* ─── Versions showcase ───────────────────────────────────── */
.versions-showcase { padding: 64px 0; }

.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.version-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 18px;
  cursor: pointer;
  text-align: center;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: scaleIn 0.4s var(--ease) forwards;
}

.version-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-red), var(--accent-red));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.version-card:hover::before,
.version-card.latest::before { transform: scaleX(1); }

.version-card:hover {
  border-color: var(--deep-red);
  transform: translateY(-3px);
}

.version-card.latest { border-color: rgba(193,18,31,0.4); }

.version-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.version-label { font-size: 0.76rem; color: var(--muted); margin-bottom: 8px; }
.version-count { font-size: 0.88rem; font-weight: 600; }

.version-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--deep-red);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 7px;
}

/* ─── CTA banner ──────────────────────────────────────────── */
.cta-banner { padding: 72px 0; background: var(--dark); }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(193,18,31,0.1), rgba(255,45,45,0.04));
  border: 1px solid rgba(193,18,31,0.25);
  border-radius: 16px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(193,18,31,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-text p { color: var(--muted); }

/* ─── Browse page ─────────────────────────────────────────── */
.browse-layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 28px;
  padding: 28px 0 64px;
}

.browse-sidebar { display: flex; flex-direction: column; gap: 16px; }

.filter-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filter-panel h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}

.filter-group { margin-bottom: 14px; }

.filter-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 12px;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.filter-group select:focus { border-color: var(--deep-red); }

.btn-reset {
  width: 100%;
  padding: 9px;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin-top: 4px;
}

.btn-reset:hover { border-color: var(--deep-red); color: var(--white); }

.sidebar-telegram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34,158,217,0.1), rgba(34,158,217,0.04));
  border-color: rgba(34,158,217,0.2);
}

.sidebar-telegram h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.sidebar-telegram p  { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }

.btn-telegram-join {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #229ED9;
  color: white;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-telegram-join:hover { background: #1c8ad1; transform: translateY(-1px); }

.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.results-count { font-size: 0.875rem; color: var(--muted); }

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  background: var(--mid);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.view-btn.active,
.view-btn:hover {
  background: var(--deep-red);
  border-color: var(--deep-red);
  color: white;
}

/* ─── Categories full page ────────────────────────────────── */
.categories-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
  padding: 28px 0 64px;
}

.cat-full-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  opacity: 0;
  animation: scaleIn 0.4s var(--ease) forwards;
}

.cat-full-card:hover {
  border-color: var(--deep-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.cat-full-icon {
  width: 56px;
  height: 56px;
  background: var(--mid);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent-red);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.cat-full-icon svg { width: 26px; height: 26px; }
.cat-full-card:hover .cat-full-icon { background: rgba(193,18,31,0.15); transform: scale(1.1); }

.cat-full-name  { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.cat-full-count { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }

.cat-full-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.cat-full-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--deep-red), var(--accent-red));
  border-radius: 2px;
  transition: width 0.8s var(--ease);
}

/* ─── Versions full page ──────────────────────────────────── */
.versions-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 36px 0 80px;
}

.version-full-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 22px;
  cursor: default;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.45s var(--ease) forwards;
  display: flex;
  flex-direction: column;
}

.version-full-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-red), var(--accent-red));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.version-full-card:hover::before,
.version-full-card.current::before { transform: scaleX(1); }

.version-full-card:hover { border-color: var(--deep-red); transform: translateY(-4px); }
.version-full-card.current { border-color: rgba(193,18,31,0.4); }

.vfc-img { width: 100%; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; max-height: 200px; }
.vfc-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.vfc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.vfc-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--accent-red); }
.vfc-label { font-size: 0.74rem; color: var(--muted); text-align: right; line-height: 1.5; }
.vfc-desc  { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.vfc-details { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
.vfc-mods  { font-size: 1.5rem; font-weight: 700; margin-bottom: 3px; }
.vfc-sub   { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.vfc-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.vfc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.vfc-actions .btn-primary, .vfc-actions .btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 0.82rem; border-radius: var(--r);
  font-weight: 600; cursor: pointer; transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.vfc-actions .btn-primary { background: var(--deep-red); color: white; }
.vfc-actions .btn-primary:hover { background: var(--accent-red); }
.vfc-actions .btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.vfc-actions .btn-secondary:hover { border-color: var(--deep-red); color: var(--accent-red); }

.vfc-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(193,18,31,0.1);
  border: 1px solid rgba(193,18,31,0.18);
  color: var(--accent-red);
}

/* ─── Mod detail ──────────────────────────────────────────── */
.mod-detail-hero {
  height: 380px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.mod-detail-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
  overflow: hidden;
}

.mod-detail-hero-bg svg {
  width: 340px;
  height: 340px;
  color: rgba(255,255,255,0.03);
}

.mod-detail-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--black) 0%, rgba(13,13,13,0.55) 55%, transparent 100%);
}

.mod-detail-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 40px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.mod-detail-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 3px solid var(--deep-red);
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-red);
  animation: scaleIn 0.4s var(--ease) both;
  position: relative;
  overflow: hidden;
}

.mod-detail-thumb svg { width: 44px; height: 44px; }

.mod-detail-title-wrap { flex: 1; }

.mod-detail-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.mod-detail-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInUp 0.45s var(--ease) 0.05s both;
}

.mod-detail-meta {
  display: flex;
  gap: 18px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.58);
  flex-wrap: wrap;
  animation: fadeInUp 0.45s var(--ease) 0.1s both;
}

.mod-detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mod-detail-meta svg { color: var(--accent-red); }

.mod-detail-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  padding: 36px 0 64px;
}

.mod-detail-main { display: flex; flex-direction: column; gap: 22px; }

.detail-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--white);
}

.detail-section-title svg { color: var(--accent-red); }

.detail-section p {
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  line-height: 1.85;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.screenshot-item {
  aspect-ratio: 16/9;
  background: var(--mid);
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  overflow: hidden;
  position: relative;
}

.screenshot-item:hover {
  border-color: var(--deep-red);
  color: rgba(193,18,31,0.25);
  transform: scale(1.03);
}

.screenshot-item svg { width: 40px; height: 40px; }

.install-steps { display: flex; flex-direction: column; gap: 12px; }

.install-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--deep-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text { font-size: 0.9rem; color: rgba(255,255,255,0.8); padding-top: 4px; }

.changelog-list { display: flex; flex-direction: column; gap: 14px; }

.changelog-item { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.changelog-item:last-child { border-bottom: none; padding-bottom: 0; }

.changelog-ver {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.changelog-desc { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

.reviews-list { display: flex; flex-direction: column; gap: 12px; }

.review-item {
  padding: 14px;
  background: var(--mid);
  border-radius: var(--r);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.review-user { font-weight: 700; font-size: 0.9rem; }
.review-stars { display: flex; gap: 2px; color: var(--warning); }
.review-text  { font-size: 0.87rem; color: rgba(255,255,255,0.72); }
.review-date  { font-size: 0.74rem; color: var(--dim); margin-top: 6px; }

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rating-summary { display: flex; align-items: center; gap: 14px; }
.rating-big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.rating-stars { display: flex; flex-direction: column; gap: 4px; }
.stars-row { display: flex; gap: 2px; color: var(--warning); }
.rating-total { font-size: 0.78rem; color: var(--muted); }

/* ─── Mod sidebar ─────────────────────────────────────────── */
.mod-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}

.sidebar-section h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 14px;
}

.btn-download-big {
  width: 100%;
  padding: 13px;
  background: var(--deep-red);
  color: white;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.btn-download-big:hover {
  background: var(--accent-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.btn-fav-big {
  width: 100%;
  padding: 10px;
  background: var(--mid);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-fav-big:hover { border-color: var(--deep-red); color: var(--white); }
.btn-fav-big.active { background: rgba(193,18,31,0.1); border-color: var(--deep-red); color: var(--accent-red); }

.mod-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stat-item {
  text-align: center;
  padding: 12px;
  background: var(--mid);
  border-radius: var(--r);
}

.stat-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.stat-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.version-list { display: flex; flex-wrap: wrap; gap: 6px; }

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-red);
}

.author-name  { font-weight: 700; margin-bottom: 2px; }
.author-mods  { font-size: 0.78rem; color: var(--muted); }

.related-mini { display: flex; flex-direction: column; gap: 10px; }

.related-mini-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease);
  align-items: center;
}

.related-mini-item:hover { opacity: 0.7; }

.related-mini-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-red);
}

.related-mini-title { font-size: 0.87rem; font-weight: 600; margin-bottom: 2px; }
.related-mini-meta  { font-size: 0.74rem; color: var(--muted); }

/* ─── Requests page ───────────────────────────────────────── */
.requests-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 28px 0 64px;
}

.requests-form-card,
.requests-list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}

.requests-form-card h2,
.requests-list-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--deep-red);
  color: white;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-submit:hover { background: var(--accent-red); }

.request-item {
  background: var(--mid);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 10px;
}

.request-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.request-name { font-weight: 700; font-size: 0.93rem; }

.status-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending { background: rgba(245,158,11,0.14); color: var(--warning); }
.status-found   { background: rgba(16,185,129,0.14); color: var(--success); }

.request-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; }
.request-meta { font-size: 0.74rem; color: var(--dim); display: flex; justify-content: space-between; }

/* ─── Auth modal ──────────────────────────────────────────── */
.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--light);
  border-radius: var(--r);
  padding: 4px;
  margin-bottom: 24px;
}

.modal-tab {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.modal-tab.active { background: var(--deep-red); color: white; }

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--deep-red);
  color: white;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-auth:hover { background: var(--accent-red); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.social-btn {
  padding: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--dur) var(--ease);
}

.social-btn:hover { border-color: var(--deep-red); background: rgba(193,18,31,0.07); }

/* ─── Download modal ──────────────────────────────────────── */
.download-box { max-width: 480px; }

.download-header { text-align: center; margin-bottom: 24px; }

.download-header-icon {
  width: 60px;
  height: 60px;
  background: rgba(193,18,31,0.12);
  border: 2px solid rgba(193,18,31,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent-red);
  animation: borderGlow 2s ease infinite;
}

.download-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.download-header p  { color: var(--muted); font-size: 0.9rem; }

.download-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.dl-opt {
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: left;
}

.dl-opt:hover { border-color: var(--deep-red); background: rgba(193,18,31,0.06); }

.dl-opt-icon {
  width: 40px;
  height: 40px;
  background: var(--mid);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.dl-opt strong { display: block; font-weight: 700; margin-bottom: 2px; }
.dl-opt small  { font-size: 0.76rem; color: var(--muted); }

.dl-progress { margin-bottom: 18px; }
.dl-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.dl-fill { height: 100%; background: linear-gradient(90deg, var(--deep-red), var(--accent-red)); transition: width 0.1s linear; }
.dl-pct  { font-size: 0.82rem; color: var(--muted); text-align: center; }

.install-guide-mini { padding-top: 16px; border-top: 1px solid var(--border); }
.install-guide-mini h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 10px; }
.install-guide-mini ol { padding-left: 16px; }
.install-guide-mini li { font-size: 0.84rem; color: rgba(255,255,255,0.68); margin-bottom: 5px; }

/* ─── Review modal ────────────────────────────────────────── */
.star-input-row { display: flex; gap: 6px; margin-bottom: 16px; }

.star-input-btn {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.star-input-btn:hover,
.star-input-btn.on { color: var(--warning); transform: scale(1.15); }

/* ─── Profile page ────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding: 28px 0 64px;
}

.profile-sidebar { display: flex; flex-direction: column; gap: 14px; }

.profile-avatar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}

.avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--mid);
  border: 3px solid var(--deep-red);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}

.avatar-circle svg { width: 36px; height: 36px; }

.profile-username { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }

.profile-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(193,18,31,0.12);
  border: 1px solid rgba(193,18,31,0.25);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
}

.profile-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.profile-nav-link:last-child { border-bottom: none; }
.profile-nav-link svg { color: var(--accent-red); flex-shrink: 0; }
.profile-nav-link:hover,
.profile-nav-link.active { background: rgba(193,18,31,0.07); color: var(--white); padding-left: 20px; }

.profile-tab { display: none; }
.profile-tab.active { display: block; }

.profile-tab-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.history-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-name { font-weight: 600; margin-bottom: 3px; }
.history-cat  { font-size: 0.78rem; color: var(--muted); }
.history-date { font-size: 0.8rem; color: var(--muted); }

.settings-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 520px;
}

.settings-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.btn-save {
  padding: 10px 24px;
  background: var(--deep-red);
  color: white;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn-save:hover { background: var(--accent-red); }

/* ─── Horizontal mod rows ─────────────────────────────────── */
.mods-row-wrap {
  position: relative;
}

.mods-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mods-row::-webkit-scrollbar { display: none; }

.mods-row .mod-card {
  flex: 0 0 238px;
  scroll-snap-align: start;
}

.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mid);
  border: 1px solid var(--border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow);
}

.row-arrow:hover {
  background: var(--deep-red);
  border-color: var(--deep-red);
}

.row-arrow-left  { left: -20px; }
.row-arrow-right { right: -20px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mod-detail-layout { grid-template-columns: 1fr; }
  .mod-detail-sidebar { order: -1; }
  .browse-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .requests-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-slider { height: 360px; }
  .slide-title { font-size: 1.9rem; }
  .slide-content { padding: 0 20px 28px; }
  .cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .slider-controls { right: 20px; }
  .slide-actions { flex-direction: column; gap: 8px; }
  .mod-detail-hero { height: 280px; }
  .mod-detail-hero-content { padding: 20px; gap: 14px; }
  .mod-detail-title { font-size: 1.6rem; }
  .download-opts { grid-template-columns: 1fr; }
  .row-arrow { display: none; }
  .mods-row .mod-card { flex: 0 0 155px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .versions-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-slider { height: 300px; }
  .slide-title { font-size: 1.5rem; }
  .slide-desc { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-content { padding: 0 16px 22px; }
  .slider-controls { display: none; }
  .mod-detail-hero { height: 220px; }
  .mod-detail-title { font-size: 1.3rem; }
  .mod-detail-meta { font-size: 0.78rem; gap: 8px; }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profile-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .review-item { padding: 14px; }
}

@media (max-width: 420px) {
  .slide-title { font-size: 1.25rem; }
  .slide-meta { flex-wrap: wrap; gap: 6px; }
  .categories-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
  .mods-row .mod-card { flex: 0 0 135px; }
}
.img-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--muted);
  font-size: .95rem;
}
.img-drop-zone:hover, .img-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(99,102,241,.07);
  color: var(--text);
}

.section-page-layout {
  padding-top: 32px;
  padding-bottom: 60px;
}
.section-page-layout .mods-grid {
  min-height: 200px;
}
.profile-owner-hero {
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a0a 60%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border);
}
.profile-owner-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(193,18,31,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.profile-owner-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 36px;
  flex-wrap: wrap;
}
.profile-owner-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--accent-red);
  overflow: hidden; flex-shrink: 0;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(193,18,31,0.25);
}
.profile-owner-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.profile-owner-name {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--white); margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.profile-owner-role {
  font-size: 0.82rem; color: var(--accent-red);
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 20px;
}
.profile-owner-stats {
  display: flex; gap: 32px;
}
.profile-owner-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700; color: var(--white);
  line-height: 1;
}
.profile-owner-stat-label {
  font-size: 0.75rem; color: var(--muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.profile-owner-mods-section {
  padding-top: 48px; padding-bottom: 80px;
}

.profile-music-bar {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
  padding: 12px 28px;
  position: sticky; top: 62px; z-index: 90;
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.music-bar-left {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.music-icon-btn {
  background: var(--accent-red);
  border: none; cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.15s, background 0.15s;
  flex-shrink: 0;
}
.music-icon-btn:hover { transform: scale(1.08); background: var(--deep-red); }
.music-info { display: flex; flex-direction: column; gap: 4px; }
.music-title {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; color: var(--white);
  letter-spacing: 0.04em;
}
.music-wave {
  display: flex; align-items: flex-end; gap: 2px; height: 14px;
}
.music-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: var(--accent-red); height: 4px;
  transition: height 0.2s;
}
.music-wave.playing span:nth-child(1) { animation: wave 0.9s 0.0s infinite ease-in-out alternate; }
.music-wave.playing span:nth-child(2) { animation: wave 0.9s 0.15s infinite ease-in-out alternate; }
.music-wave.playing span:nth-child(3) { animation: wave 0.9s 0.3s infinite ease-in-out alternate; }
.music-wave.playing span:nth-child(4) { animation: wave 0.9s 0.45s infinite ease-in-out alternate; }
.music-wave.playing span:nth-child(5) { animation: wave 0.9s 0.6s infinite ease-in-out alternate; }
@keyframes wave {
  0%   { height: 3px; }
  100% { height: 14px; }
}
.music-bar-right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
  flex-wrap: wrap;
}
.music-vol-icon { color: var(--muted); display: flex; align-items: center; }
.music-vol-slider,
.music-seek-slider {
  -webkit-appearance: none; appearance: none;
  height: 3px; border-radius: 2px;
  background: var(--border); outline: none; cursor: pointer;
}
.music-vol-slider  { width: 80px; }
.music-seek-slider { width: 140px; background: linear-gradient(to right, var(--accent-red) 0%, var(--border) 0%); }
.music-vol-slider::-webkit-slider-thumb,
.music-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent-red); cursor: pointer;
}
.music-time { font-size: 0.75rem; color: var(--muted); min-width: 32px; text-align: right; }

.discover-filters-row {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 24px; flex-wrap: wrap;
}
.discover-filters-row select {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r); padding: 8px 14px;
  font-family: var(--font-body); font-size: 0.85rem; cursor: pointer;
  outline: none; transition: border-color 0.2s;
}
.discover-filters-row select:focus { border-color: var(--accent-red); }
.discover-count-badge {
  font-size: 0.78rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
  margin-left: auto;
}

@media (max-width: 600px) {
  .profile-owner-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .profile-owner-avatar { width: 80px; height: 80px; }
  .profile-owner-name { font-size: 1.7rem; }
  .profile-music-bar { padding: 10px 16px; gap: 12px; }
  .music-seek-slider { width: 90px; }
  .music-vol-slider  { width: 60px; }
}

.discover-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}
.discover-filters-row select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.discover-filters-row select:focus { border-color: var(--accent-red); }
.discover-count-badge {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.profile-owner-hero {
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0d 50%, #0d0d1a 100%);
  border-bottom: 1px solid var(--border);
}
.profile-owner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(193,18,31,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(193,18,31,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.profile-owner-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
}
.profile-owner-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-red);
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-owner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}
.profile-owner-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.1;
}
.profile-owner-role {
  font-size: 0.85rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 20px;
}
.profile-owner-stats { display: flex; gap: 32px; }
.profile-owner-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.profile-owner-stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

.profile-music-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
  flex-wrap: wrap;
}
.music-bar-left { display: flex; align-items: center; gap: 14px; }
.music-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.music-icon-btn:hover { background: var(--deep-red); transform: scale(1.08); }
.music-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.music-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.music-wave span {
  display: block;
  width: 3px;
  background: var(--accent-red);
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s;
}
.music-wave.playing span:nth-child(1) { animation: wave 0.8s ease-in-out infinite; }
.music-wave.playing span:nth-child(2) { animation: wave 0.8s ease-in-out 0.1s infinite; }
.music-wave.playing span:nth-child(3) { animation: wave 0.8s ease-in-out 0.2s infinite; }
.music-wave.playing span:nth-child(4) { animation: wave 0.8s ease-in-out 0.3s infinite; }
.music-wave.playing span:nth-child(5) { animation: wave 0.8s ease-in-out 0.4s infinite; }
@keyframes wave {
  0%, 100% { height: 4px; }
  50%       { height: 14px; }
}
.music-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.music-vol-icon { color: var(--muted); display: flex; align-items: center; }
.music-vol-slider,
.music-seek-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.music-vol-slider  { width: 80px; }
.music-seek-slider { width: 160px; }
.music-vol-slider::-webkit-slider-thumb,
.music-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  cursor: pointer;
}
.music-time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.profile-owner-mods-section { padding: 40px 0 64px; }

@media (max-width: 600px) {
  .profile-owner-content { flex-direction: column; text-align: center; }
  .profile-owner-stats   { justify-content: center; }
  .profile-owner-avatar  { width: 90px; height: 90px; }
  .profile-owner-name    { font-size: 1.7rem; }
  .music-seek-slider     { width: 100px; }
  .music-vol-slider      { width: 60px; }
  .profile-music-bar     { top: 56px; }
  .discover-count-badge  { margin-left: 0; }
}

.vfc-left-block  { display: flex; flex-direction: column; gap: 2px; }
.vfc-right-block { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vfc-tag-current { background: var(--accent-red) !important; color: #fff !important; font-weight: 700; }
.vfc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.vfc-mods-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
}
.versions-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 32px 0 64px;
}

.tools-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.tools-section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}
.tools-section-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.tsc-icon { color: var(--accent-red); }
.tsc-title { font-size: 1.2rem; font-weight: 700; }
.tsc-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.tsc-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.tools-back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.tools-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.tools-back-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }
.tools-breadcrumb { color: var(--muted); font-size: 0.84rem; }

.tools-mods-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.tmods-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.tmods-tab:hover { border-color: var(--accent-red); color: var(--text); }
.tmods-tab.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

.tmods-search-row { margin-bottom: 16px; }
.tmods-search {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.9rem;
}
.tmods-search:focus { outline: none; border-color: var(--accent-red); }

.tmods-grid { display: flex; flex-direction: column; gap: 10px; }
.tmods-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.tmods-card:hover { border-color: var(--accent-red); }
.tmods-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--border); flex-shrink: 0; }
.tmods-info { flex: 1; min-width: 0; }
.tmods-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.tmods-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.tmods-badge { border-radius: 20px; padding: 2px 8px; font-size: 0.72rem; background: var(--accent-red22,rgba(220,38,38,0.15)); color: var(--accent-red); }
.tmods-arrow { color: var(--muted); flex-shrink: 0; }

.tmod-detail { display: flex; flex-direction: column; gap: 20px; }
.tmod-hero {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  align-items: flex-start;
}
.tmod-hero-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.tmod-hero-info { flex: 1; }
.tmod-hero-info h2 { margin: 0 0 8px; font-size: 1.3rem; }
.tmod-hero-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.82rem; color: var(--muted); }
.tmod-hero-meta span { display: flex; align-items: center; gap: 4px; }
.tmod-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.btn-dl-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity 0.2s;
}
.btn-dl-tool:hover { opacity: 0.85; }

.tmod-tabs-mini {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tmod-info-grid { display: flex; flex-direction: column; gap: 10px; }
.tmod-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
}
.tmod-info-row span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tmod-info-row strong { font-weight: 600; }

.tmod-section { margin-top: 16px; }
.tmod-section h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-bottom: 12px; }
.tmod-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tmod-steps li { font-size: 0.88rem; color: var(--muted); }

.tmod-code-wrap { position: relative; }
.tmod-code {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #a8d8b9;
  overflow: auto;
  max-height: 360px;
  white-space: pre;
}
.tmod-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text);
}

.tmod-changelog { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tmod-cl-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.tmod-cl-ver { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--accent-red); }
.tmod-cl-desc { font-size: 0.85rem; color: var(--muted); }

.tmod-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}
.tmod-empty p { font-size: 0.9rem; }

.tdev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tdev-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.tdev-card-avatar { color: var(--accent-red); width: 56px; height: 56px; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tdev-card-name { font-weight: 700; font-size: 1rem; }
.tdev-card-count { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.tdev-card-mods { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.tdev-mod-tag { background: var(--surface); border-radius: 20px; padding: 2px 8px; font-size: 0.72rem; color: var(--muted); }

.tdev-card-mini { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.tdev-avatar { color: var(--accent-red); }
.tdev-info { flex: 1; }
.tdev-name { font-weight: 700; font-size: 1rem; }
.tdev-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }

.tmanifest-info { max-width: 600px; }
.tmanifest-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tmanifest-icon { color: var(--accent-red); }
.tmanifest-hero h3 { margin: 0 0 4px; }
.tmanifest-hero p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.tmanifest-select-row { margin-bottom: 20px; }
.tmanifest-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 280px;
}

.tchanges-list { display: flex; flex-direction: column; gap: 20px; }
.tchanges-mod { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.tchanges-mod-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.tchanges-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }

@media (max-width: 600px) {
  .tmod-hero { flex-direction: column; }
  .tmod-hero-img { width: 100%; height: 180px; }
}