@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg-primary: #16181c;
  --bg-secondary: #1e2025;
  --bg-tertiary: #252830;
  --bg-card: #1e2025;
  --bg-card-hover: #252830;
  --accent: #f5c518;
  --accent-dim: #c49d10;
  --accent-muted: rgba(245, 197, 24, 0.12);
  --text-primary: #fff;
  --text-secondary: #f1f1f1;
  --text-muted: #c7c7c7;
  --border: #2e3138;
  --border-accent: #f5c518;
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 52px;
  --sidebar-width: 220px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #111316;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo i {
  font-size: 18px;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 34px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 12px 0 36px;
  outline: none;
  transition: border-color var(--transition);
}

.nav-search input:focus { border-color: var(--accent); }
.nav-search input::placeholder { color: var(--text-muted); }

.nav-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* ── PAGE WRAPPER ── */
.page-wrapper {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-item:hover, .sidebar-item.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.sidebar-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.sidebar-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 20px;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

/* ── TOOLBAR ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  height: 34px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 0 10px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--accent); }

.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.view-btn.active, .view-btn:hover {
  background: var(--accent-muted);
  color: var(--accent);
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── MOD GRID ── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── MOD CARD (GRID) ── */
.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.mod-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.mod-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.mod-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 28px;
}

.mod-card-body {
  padding: 12px;
}

.mod-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.mod-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.mod-card-meta i { font-size: 11px; }

.mod-card-featured {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #111316;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── MOD CARD (LIST) ── */
.mod-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.mod-list-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.mod-list-thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.mod-list-thumb-placeholder {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
}

.mod-list-body {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
}

.mod-list-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-list-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.mod-list-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.mod-list-footer i { font-size: 11px; }

.mod-list-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.mod-list-action {
  padding: 0 16px;
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #111316;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-download:hover { background: var(--accent-dim); }

/* ── HERO SECTION ── */
.hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.hero-slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px; /* tinggi fixed biar ga loncat */
}

.hero-slide-text {
  flex: 1;
}

.hero-slide-action {
  flex-shrink: 0;
  width: 160px; /* lebar fixed biar slot selalu ada */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Progress Bar */
.hero-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  margin-left: 32px;
}

.hero-progress-fill {
  height: 100%;
  background: #007ffa;
  width: 100%;
  animation: heroCountdown 7s linear infinite;
  transform-origin: left;
}

@keyframes heroCountdown {
  from { width: 100%; }
  to   { width: 0%; }
}

/* Slides */
.hero-slide {
  display: none;
  animation: heroFadeIn 0.5s ease;
}

.hero-slide.active {
  display: block;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Upload Button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-btn:hover {
  opacity: 0.85;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: var(--accent);
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ── */
.footer {
  background: #111316;
  border-top: 1px solid var(--border);
  padding: 32px 24px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.empty-state p {
  font-size: 15px;
}

/* ── STATIC PAGES ── */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.static-page .last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-left: 20px;
}

.static-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.static-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ── MOD PAGE (SLUG) ── */
.mod-page-wrapper {
  display: flex;
  gap: 24px;
  max-width: 1280px;
}

.mod-main {
  flex: 1;
  min-width: 0;
}

.mod-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.mod-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.mod-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

/* Media Slider */
.media-slider {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  aspect-ratio: 16/9;
}

.media-slider-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-slider-main iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.media-slider-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  z-index: 2;
}

.slider-nav:hover { background: var(--accent); color: #111; border-color: var(--accent); }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

.slider-thumbs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.slider-thumb {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: var(--bg-tertiary);
}

.slider-thumb.active, .slider-thumb:hover {
  border-color: var(--accent);
}

.slider-thumb-video {
  width: 80px;
  height: 45px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  transition: border-color var(--transition);
}

.slider-thumb-video.active, .slider-thumb-video:hover {
  border-color: var(--accent);
}

/* Mod Description */
.mod-description {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.mod-description h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mod-description p {
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

/* Mod Info Sidebar */
.mod-info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.mod-info-box h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mod-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.mod-info-row:last-child { border-bottom: none; }

.mod-info-label {
  color: var(--text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.mod-info-value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

.btn-download-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #111316;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition);
  margin-bottom: 10px;
}

.btn-download-large:hover { background: var(--accent-dim); }

.btn-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  margin-bottom: 16px;
}

.btn-source:hover { border-color: var(--accent); color: var(--accent); }

/* Tags */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Comments */
.comments-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.comments-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }

.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-muted); }

.btn-comment {
  align-self: flex-end;
  background: var(--accent);
  color: #111316;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}

.btn-comment:hover { background: var(--accent-dim); }

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child { border-bottom: none; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.comment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 38px;
}

/* Related Posts */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  gap: 10px;
  font-size: 14px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* No search results */
.search-highlight {
  background: var(--accent-muted);
  color: var(--accent);
  padding: 0 2px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE ADD-ON — REVISED
   Paste ini di bawah CSS yang udah ada.
   Tidak mengubah tampilan desktop sama sekali.
   ═══════════════════════════════════════════════ */

/* Default: hamburger HIDDEN di desktop */
.nav-hamburger {
  display: none;
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .mod-page-wrapper {
    flex-direction: column;
  }

  .mod-sidebar {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --nav-height: 48px;
  }

  /* ── NAVBAR ── */
  .navbar {
    padding: 8px 14px;
    gap: 8px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-height);
    align-items: center;
  }

  /* Baris 1: logo kiri, hamburger kanan */
  .nav-logo {
    flex: 1;
    font-size: 18px;
    order: 1;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    order: 2;
  }

  .nav-hamburger:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Baris 2: search bar full width */
  .nav-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  /* Nav links masuk sidebar drawer, hidden di navbar */
  .nav-links {
    display: none;
  }

  /* ── PAGE WRAPPER ── */
  .page-wrapper {
    flex-direction: column;
  }

  /* Sidebar disembunyikan, jadi drawer */
  .sidebar {
    display: none;
  }

  /* ── SIDEBAR MOBILE DRAWER ── */
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 200;
    border-right: 2px solid var(--accent);
    overflow-y: auto;
    animation: slideInLeft 0.22s ease;
  }

  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
  }

  /* Overlay gelap saat drawer terbuka */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 199;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  /* ── MAIN CONTENT ── */
  .main-content {
    padding: 14px;
  }

  /* ── HERO ── */
  .hero {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .hero-slide-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: unset;
  }

  .hero-slide-action {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  /* ── TOOLBAR ── */
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar-left {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .toolbar-right {
    width: 100%;
    justify-content: flex-end;
  }

  .filter-select {
    font-size: 12px;
    height: 32px;
    padding: 0 8px;
    flex: 1;
  }

  .results-count {
    width: 100%;
    text-align: right;
    font-size: 12px;
  }

  /* ── MOD GRID ── */
  .mod-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
  }

  /* ── MOD LIST ITEM ── */
  .mod-list-thumb,
  .mod-list-thumb-placeholder {
    width: 100px;
    height: 60px;
  }

  .mod-list-title {
    font-size: 15px;
  }

  .mod-list-desc {
    display: none;
  }

  .mod-list-action {
    padding: 0 10px;
  }

  .btn-download {
    font-size: 12px;
    padding: 7px 12px;
    gap: 5px;
  }

  /* ── MOD PAGE (SLUG) ── */
  .mod-page-wrapper {
    gap: 16px;
  }

  .mod-title {
    font-size: 22px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .slider-thumbs {
    gap: 5px;
  }

  .slider-thumb,
  .slider-thumb-video {
    width: 60px;
    height: 34px;
  }

  .slider-nav {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .mod-description {
    padding: 14px;
  }

  .mod-info-box {
    padding: 14px;
  }

  .btn-download-large {
    font-size: 16px;
    padding: 12px;
  }

  /* ── RELATED GRID ── */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── FOOTER ── */
  .footer {
    padding: 24px 14px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* ── SECTION HEADER ── */
  .section-title {
    font-size: 15px;
  }

  /* ── COMMENTS ── */
  .comments-section {
    padding: 14px;
  }

  .comment-text {
    padding-left: 0;
    margin-top: 6px;
  }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .mod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mod-card-title {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-title {
    font-size: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .mod-list-thumb,
  .mod-list-thumb-placeholder {
    width: 80px;
    height: 50px;
  }
}

/* ── MOBILE DIALOG ── */
.mobile-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mobile-dialog-overlay.visible {
  display: flex;
}

.mobile-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: dialogPopIn 0.25s ease;
}

@keyframes dialogPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mobile-dialog-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--accent);
}

.mobile-dialog-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.mobile-dialog-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.mobile-dialog-desc strong {
  color: var(--accent);
}

.mobile-dialog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111316;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
  margin-bottom: 12px;
  cursor: pointer;
}

.mobile-dialog-btn:hover { background: var(--accent-dim); }

.mobile-dialog-note {
  font-size: 12px;
  color: var(--text-muted);
}