/* ===== VARIABLES ===== */
:root {
  --teal: #00B4A0;
  --teal-dark: #009688;
  --gold: #F5A623;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #777;
  --border: #E0E0E0;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.08);
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; }
a { text-decoration: none; color: inherit; }

/* DARK THEME — the site's CSS is written with hardcoded colors throughout
   rather than variables everywhere, so a real per-rule dark palette isn't
   practical to retrofit. Inverting the whole rendered page (then inverting
   media back so photos/icons don't look like photo negatives) gives a
   working dark mode across every existing page with no per-rule rewrite. */
html[data-theme="dark"] { background: #F5F5F5; filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] .no-invert { filter: invert(1) hue-rotate(180deg); }

.theme-toggle-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.theme-toggle-btn:hover { background: var(--teal-dark); }

/* NAVBAR */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 38px; height: 38px; background: var(--teal); border-radius: 8px; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.search-form { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; }
.search-form i { color: var(--text-muted); }
.search-form input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-categories { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* PLATFORM TABS */
.platform-tabs { background: var(--white); border-bottom: 1px solid var(--border); display: flex; max-width: 1280px; margin: 0 auto; overflow-x: auto; padding: 0 20px; }
.platform-tabs .tab { position: relative; padding: 16px 20px; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .2s; }
.platform-tabs .tab i { font-size: 15px; color: inherit; }
.platform-tabs .tab:hover, .platform-tabs .tab.active { color: var(--teal); border-bottom-color: var(--teal); background: rgba(0,180,160,.05); }
.crown { position: absolute; top: 8px; right: 4px; font-size: 11px; line-height: 1; }

/* PLATFORM BANNER */
.platform-banner { background: linear-gradient(90deg, var(--teal), #2E6BFF); color: #fff; padding: 14px 0; }
.platform-banner-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.platform-banner h1 { font-size: 20px; font-weight: 600; }
.breadcrumb { font-size: 13px; opacity: .85; }
.breadcrumb a { color: #fff; }

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 24px 20px; display: flex; gap: 24px; }
.homepage .content-area { flex: 1; min-width: 0; }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; border-left: 4px solid var(--teal); padding-left: 12px; }
.section-header h2 { font-size: 18px; font-weight: 600; }
.view-all { font-size: 13px; border: 1px solid var(--border); border-radius: 4px; padding: 4px 12px; color: var(--text-muted); }
.view-all:hover { border-color: var(--teal); color: var(--teal); }

.platform-section { background: var(--white); border-radius: 8px; padding: 16px; margin-bottom: 24px; box-shadow: var(--card-shadow); }

/* SOFTWARE ROW */
.software-list { display: flex; flex-direction: column; gap: 0; }
.software-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #F0F0F0; transition: background .15s; border-radius: 6px; }
.software-row:last-child { border-bottom: none; }
.software-row:hover { background: var(--bg); }
.sw-icon { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.sw-icon img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.sw-icon-placeholder { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.sw-badge { position: absolute; top: -4px; left: -4px; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; color: #fff; }
.badge-latest { background: #e74c3c; }
.badge-pre-activated { background: var(--teal); }
.badge-recommended { background: #27ae60; }
.sw-info { flex: 1; min-width: 0; }
.sw-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.sw-cat { font-size: 12px; color: var(--teal); font-weight: 500; }
.sw-platform { min-width: 110px; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sw-platform-name { display: flex; align-items: center; gap: 5px; }
.sw-size { min-width: 110px; text-align: center; margin-left: auto; }
.size-label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 2px; font-weight: 600; }
.size-num { font-size: 20px; font-weight: 700; color: var(--teal); display: inline; line-height: 1.1; }
.size-unit { font-size: 12px; color: var(--text-muted); margin-left: 2px; }
.premium-crown { position: absolute; top: -14px; right: 0; font-size: 13px; }

/* SIDEBAR */
.sidebar { width: 240px; flex-shrink: 0; }
.sidebar-block { background: var(--white); border-radius: 8px; padding: 16px; box-shadow: var(--card-shadow); }
.sidebar-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0F0F0; }
.sidebar-item:last-child { border-bottom: none; }
.si-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.si-thumb img { width: 100%; height: 100%; object-fit: cover; }
.si-placeholder { width: 44px; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.si-info { flex: 1; min-width: 0; }
.si-title { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-cat { display: block; font-size: 11px; color: var(--teal); }
.si-size { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* PLATFORM PAGE — 3 column */
.platform-page { align-items: flex-start; }
.filter-sidebar { width: 220px; flex-shrink: 0; }
.filter-block { background: var(--white); border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: var(--card-shadow); }
.filter-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.filter-check input[type=checkbox] { accent-color: var(--teal); }
.filter-link { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; padding:9px 10px; border-radius:8px; color:var(--text); transition:all .18s; }
.filter-link:hover { background:rgba(0,180,160,.06); color:var(--teal); }
.filter-link.active { background:var(--teal); color:#fff; }
.filter-link.active .crown-sm { color:#fff; }
.crown-sm { font-size: 11px; }
.platform-page .content-area { flex: 1; background: var(--white); border-radius: 8px; padding: 16px; box-shadow: var(--card-shadow); }
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-left: 4px solid var(--teal); padding-left: 12px; }
.list-header h2 { font-size: 18px; font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.sort-wrap select { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 13px; outline: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }
.pagination a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* CATEGORIES OVERLAY */
.categories-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; align-items: center; justify-content: center; }
.categories-overlay.open { display: flex; }
.categories-modal { background: var(--white); border-radius: 12px; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; padding: 30px; position: relative; }
.close-modal { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
.categories-modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.cat-platform-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab { border: 1px solid var(--border); background: var(--white); border-radius: 20px; padding: 6px 16px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.cat-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-item { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; transition: all .2s; }
.cat-item:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,180,160,.04); }
.cat-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 18px; }

/* DETAIL PAGE */
.detail-page { flex-direction: column; }
.detail-main { background: var(--white); border-radius: 8px; padding: 24px; box-shadow: var(--card-shadow); }
.detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.detail-icon img, .detail-icon-placeholder { width: 90px; height: 90px; border-radius: 14px; }
.detail-icon-placeholder { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; }
.detail-title-wrap { flex: 1; }
.detail-title-wrap h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.detail-title-wrap p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.detail-meta { display: flex; align-items: center; gap: 20px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.btn-download-main { background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-download-main:hover { background: var(--teal-dark); }
.screenshots-wrap { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 20px; }
.screenshot-thumb { width: 180px; height: 110px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); }
.detail-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.dtab { background: none; border: none; padding: 10px 18px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.dtab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.tab-content { display: none; font-size: 14px; line-height: 1.7; color: var(--text); }
.tab-content.active { display: block; }
.download-link-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; transition: all .2s; }
.download-link-row:hover { border-color: var(--teal); background: rgba(0,180,160,.04); }
.mirror-name { color: var(--text-muted); font-size: 12px; }
.link-size { margin-left: auto; font-weight: 600; color: var(--text-muted); font-size: 13px; }

/* DOWNLOAD PAGE */
.download-page { justify-content: center; }
.download-box { background: var(--white); border-radius: 10px; padding: 40px; text-align: center; box-shadow: var(--card-shadow); max-width: 480px; width: 100%; }
.download-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.countdown-bar { background: var(--bg); border-radius: 10px; height: 6px; margin: 20px 0; overflow: hidden; }
.countdown-fill { height: 100%; background: var(--teal); width: 0%; transition: width 1s linear; border-radius: 10px; }
.dl-error-text { color: #c0392b; background: #fdecea; border: 1px solid #f5c2bd; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 10px; }
.dl-btn.dl-error .dl-btn-label { color: #c0392b; }

/* FOOTER */
.site-footer { background: #1C1C1C; color: var(--text-muted); padding: 40px 0 0; margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 13px; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-assistant { background: #2a2a2a; border-radius: 10px; padding: 20px; }
.footer-assistant h3 { color: #fff; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-free { background: #fff; color: #1C1C1C; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.footer-assistant ul { list-style: none; margin: 12px 0; }
.footer-assistant ul li { font-size: 12px; margin-bottom: 6px; color: var(--text-muted); }
.btn-chrome-footer { background: var(--teal); color: #fff; border: none; border-radius: 6px; padding: 10px 18px; font-size: 13px; cursor: pointer; width: 100%; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.btn-how { background: none; border: 1px solid #555; color: var(--text-muted); border-radius: 6px; padding: 8px; font-size: 13px; cursor: pointer; width: 100%; }
.footer-bottom { border-top: 1px solid #333; max-width: 1280px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.footer-bottom a { color: var(--text-muted); margin-right: 12px; }

/* DETAIL PAGE V2 */
.detail-page-v2 { align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-card { background: var(--white); border-radius: 8px; padding: 24px; box-shadow: var(--card-shadow); }
.detail-title-lg { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.detail-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.card-heading { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* Screenshot slider */
.screenshot-slider { position: relative; width: 100%; height: 380px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; background: #111; }
.screenshot-slider.no-shots { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; }
.slider-track { display: flex; height: 100%; transition: transform .35s ease; }
.slide { height: 100%; flex-shrink: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.slider-arrow:hover { background: rgba(0,0,0,.7); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots .dot.active { background: #fff; }

/* Detail body (Overview / Key Features / Requirements / Conclusion) */
.detail-body { font-size: 14px; line-height: 1.75; color: var(--text); }
.detail-body h2 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; }
.detail-body ul { margin: 0 0 12px 20px; }
.detail-body li { margin-bottom: 8px; }
.detail-body li strong { color: var(--text); }

/* Previous version table */
.version-table-wrap { overflow-x: auto; }
.version-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.version-table th { text-align: left; padding: 10px 12px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.version-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.ver-date { white-space: nowrap; color: var(--text-muted); }
.ver-code { color: var(--teal); }
.ver-downloads { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ver-dl-btn { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.ver-dl-btn.torrent { background: #4A5568; }
.ver-dl-btn.fast { background: var(--teal); }
.ver-dl-btn.disabled { background: #ccc; cursor: not-allowed; }
.ver-size { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Comments */
.comment-form-heading { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.comment-note { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.comment-error { color: #e74c3c; font-size: 13px; margin-bottom: 12px; }
.comment-success { color: #1a8a6f; background: #e8f8f5; border: 1px solid #b5e8dc; border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.comment-form label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.comment-form input, .comment-form textarea { border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: 14px; font-family: var(--font); outline: none; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); }
.btn-post-comment { background: var(--teal); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-post-comment:hover { background: var(--teal-dark); }
.comments-list { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.comment-item.comment-hidden { display: none; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.comment-name { font-size: 14px; font-weight: 700; }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-message { font-size: 13px; color: var(--text); line-height: 1.6; }
.comment-admin-reply { margin-top: 8px; padding: 10px 12px; background: #F0F9F8; border-left: 3px solid var(--teal); border-radius: 4px; font-size: 12px; }
.comment-admin-reply strong { color: var(--teal); }
.comment-admin-reply p { margin-top: 4px; color: var(--text); }
.btn-load-more { margin-top: 14px; width: 100%; background: var(--teal); color: #fff; border: none; border-radius: 6px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-load-more:hover { background: var(--teal-dark); }

/* Sidebar v2 */
.detail-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--white); border-radius: 8px; padding: 20px; box-shadow: var(--card-shadow); }
.stats-card { text-align: left; }
.stat-size { margin-bottom: 14px; text-align: center; }
.stat-size-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.stat-size-num { font-size: 34px; font-weight: 700; color: var(--teal); }
.stat-size-unit { font-size: 15px; color: var(--text-muted); font-weight: 600; margin-left: 3px; }
.version-pill { background: var(--bg); color: var(--text); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.rating-badge { background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.review-count { color: var(--text-muted); font-size: 12px; }
.btn-fast-download { width: 100%; background: var(--gold); color: #fff; border: none; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.btn-fast-download:hover { filter: brightness(0.95); }
.btn-fast-download.dl-loading { background: #BDBDBD; cursor: wait; }
.btn-fast-download.dl-ready { background: var(--teal); }
.btn-fast-download.dl-ready:hover { background: var(--teal-dark); }
.dl-code-output { margin-bottom: 12px; }
.beta-tag { background: rgba(255,255,255,.25); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn-row .btn-torrent { min-width: 110px; }
.icon-group { display: flex; flex-shrink: 0; gap: 8px; margin-left: auto; }
.btn-torrent { flex: 1; background: var(--teal); color: #fff; border: none; border-radius: 6px; padding: 11px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.btn-torrent:hover { background: var(--teal-dark); }
.btn-icon { width: 40px; flex-shrink: 0; background: var(--bg); border: none; border-radius: 6px; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.btn-icon:hover { background: #E4E4E4; }
.btn-icon.fav-btn.active { color: #e74c3c; }
.version-history-link { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; color: var(--text-muted); }
.version-history-link:hover { color: var(--teal); }
.sidebar-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.info-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.info-table td:first-child { color: var(--text-muted); width: 40%; }
.info-table td:last-child { text-align: right; font-weight: 500; }
.info-table tr:last-child td { border-bottom: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* Tags/keywords ko user se chhupaya gaya hai (SEO ke liye HTML mein maujood
   rehte hain, functional bhi rehte hain — sirf visually hide) */
.tag-list-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tag-link { color: var(--teal); font-size: 12.5px; font-weight: 500; }
.tag-link:hover { text-decoration: underline; }

/* Other products from developer (dark full-width section) */
.other-products-section { background: #1C1C1C; padding: 32px 0; margin-top: 40px; }
.other-products-heading { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.other-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-product-item { display: flex; align-items: center; gap: 12px; background: #2a2a2a; border-radius: 8px; padding: 12px; position: relative; }
.other-product-item:hover { background: #333; }
.other-product-num { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.other-product-icon { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.other-product-icon img { width: 100%; height: 100%; object-fit: cover; }
.other-product-info { min-width: 0; }
.other-product-title { display: block; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.other-product-desc { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ARTICLES */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--card-shadow); transform: translateY(-2px); }
.article-card-img { width: 100%; height: 150px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 14px; }
.article-card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.article-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.article-date { font-size: 11px; color: var(--teal); font-weight: 500; }
.article-featured-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; }
.article-content { font-size: 14px; line-height: 1.8; color: var(--text); }

/* SEARCH PAGE */
.search-page .content-area { flex: 1; background: var(--white); border-radius: 8px; padding: 20px; box-shadow: var(--card-shadow); }
.search-page h2 { font-size: 18px; margin-bottom: 16px; }
.search-page em { color: var(--teal); font-style: normal; font-weight: 600; }
.no-results { color: var(--text-muted); text-align: center; padding: 40px; }

/* DOWNLOAD ADS (promo buttons) */
.promo-ad-block { background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow); padding: 14px; margin-bottom: 16px; display: flex; }
.promo-ad-block.align-left { justify-content: flex-start; }
.promo-ad-block.align-center { justify-content: center; }
.promo-ad-block.align-right { justify-content: flex-end; }
.promo-ad-inline-wrap { display: flex; margin-bottom: 10px; }
.promo-ad-inline-wrap.align-left { justify-content: flex-start; }
.promo-ad-inline-wrap.align-center { justify-content: center; }
.promo-ad-inline-wrap.align-right { justify-content: flex-end; }
.promo-ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; padding: 12px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; color: #fff; font-family: inherit; cursor: pointer; transition: filter .15s; }
.promo-ad-btn:hover { filter: brightness(0.95); }
.promo-ad-btn.promo-ad-waiting { pointer-events: none; opacity: .7; }
.promo-ad-btn.promo-ad-ready { background: var(--teal) !important; }
.promo-ad-btn.shape-pill { border-radius: 999px; }
.promo-ad-btn.shape-square { border-radius: 0; }
.promo-ad-btn.size-small { padding: 8px 14px; font-size: 12px; min-width: 160px; }
.promo-ad-btn.size-large { padding: 16px 26px; font-size: 16px; min-width: 260px; }
.promo-ad-sidebar { margin-bottom: 0; }

/* ADMIN WIDGETS (Ads & Widgets) */
.admin-widget { margin-bottom: 16px; }
.admin-widget:last-child { margin-bottom: 0; }
@keyframes widgetFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes widgetSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes widgetBounceIn { 0% { opacity: 0; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: scale(1); } }
.widget-anim-fade { animation: widgetFadeIn .5s ease both; }
.widget-anim-slide { animation: widgetSlideIn .5s ease both; }
.widget-anim-bounce { animation: widgetBounceIn .5s ease both; }

/* ===== POST SHARE BUTTONS ===== */
.share-wrap { background: var(--white); border-radius: 8px; padding: 18px 20px; box-shadow: var(--card-shadow); margin: 18px 0; }
.share-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.share-title i { color: var(--teal); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .15s, opacity .15s; cursor: pointer; border: none; text-decoration: none; }
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-more { display: none; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.share-more.open { display: flex; }
.share-more-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 20px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.share-more-toggle:hover { color: var(--teal); border-color: var(--teal); }
.share-more-toggle i { transition: transform .2s; }
.share-more-toggle.open i { transform: rotate(45deg); }
.share-copy { background: #6B7280; border-radius: 20px; width: auto; padding: 0 14px; gap: 6px; font-size: 12.5px; font-weight: 600; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher select { height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); color: var(--text); font-size: 13px; padding: 0 8px; cursor: pointer; outline: none; font-family: var(--font); }
.lang-switcher select:hover { border-color: var(--teal); }
@media (max-width: 768px) {
  .lang-switcher { display: none; }
}

/* ===== Platform badge on post page (after download link) ===== */
.post-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(0,180,160,.08);
  border: 1px solid rgba(0,180,160,.25);
  color: var(--teal, #00B4A0);
  font-size: 13px;
  font-weight: 600;
}
.post-platform-badge:hover { background: rgba(0,180,160,.16); }

/* ===== Translate-in-progress notice ===== */
.translate-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 10px 20px;
  background: #FFF8E5;
  border: 1px solid #F5A623;
  border-radius: 8px;
  color: #8a5a00;
  font-size: 13px;
}

/* ============================================================
   MOBILE RESPONSIVE FIXES — full site (phones aur tablets par
   layout theek karne ke liye: header, homepage list, sidebar,
   post/detail page, footer, tables, comments waghera)
   ============================================================ */
@media (max-width: 900px) {
  .container { flex-direction: column; padding: 16px 14px; gap: 16px; }
  .sidebar, .filter-sidebar, .detail-sidebar { width: 100%; }
  .other-products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .navbar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search-form { order: 3; max-width: 100%; flex-basis: 100%; }
  .nav-left { flex-wrap: wrap; gap: 10px; }
  .platform-tabs { padding: 0 14px; }
  .platform-banner-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }

  .software-row { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .sw-size { min-width: 0; margin-left: 0; }

  .detail-header { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .detail-icon img, .detail-icon-placeholder { width: 70px; height: 70px; }
  .detail-meta { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .detail-title-lg { font-size: 20px; text-align: center; }

  .screenshot-thumb { width: 140px; height: 90px; }
  .detail-tabs { overflow-x: auto; }

  .comment-form-row { grid-template-columns: 1fr; }
  .other-products-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; padding: 0 16px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Product info / spec table: scroll horizontally instead of overflowing screen */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .promo-ad-btn { min-width: 0; width: 100%; }
  .btn-row { flex-direction: column; }
  .btn-row .btn-torrent, .btn-icon { width: 100%; }
}

/* Comment form captcha */
.cap-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cap-row img { border: 1px solid var(--border); border-radius: 6px; height: 42px; }
.cap-refresh { width: 42px; height: 42px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--teal); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cap-refresh:hover { background: var(--border); }

/* ============================================================
   ANKER-STYLE AG-Blue: dark gaming poster-card theme
   (Original CSS inspired by the general look of large poster-card
   game-download sites — portrait cover art, dark UI, bold accent
   color. No code or assets copied from any external site.)
   ============================================================ */
:root {
  --teal: #3E7BFA !important;
  --teal-dark: #2554C7 !important;
  --gold: #3E7BFA !important;
  --bg: #0F1115 !important;
  --white: #1A1D24 !important;
  --text: #F1F2F4 !important;
  --text-muted: #9098A8 !important;
  --border: #2A2E38 !important;
  --card-shadow: 0 4px 18px rgba(0,0,0,.4) !important;
  --font: 'Poppins', sans-serif !important;
}
body { background: var(--bg) !important; }
.navbar, .sidebar-card, .detail-card, footer, .sidebar-block, .stats-card { background: var(--white) !important; border-color: var(--border) !important; }
.navbar { border-bottom: 1px solid var(--border) !important; }
a { color: var(--text); }
.btn-primary, .btn-post-comment, .promo-ad-btn { background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important; border: none !important; }
.section-header { border-left: 4px solid var(--teal) !important; }
.sw-badge { background: var(--teal) !important; color: #fff !important; }

/* Poster-card grid: portrait cover art, title + genre + size below —
   the core "AnkerGames-style" card look. */
.software-list { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 18px !important; }
.software-row {
  flex-direction: column !important; align-items: stretch !important;
  border-radius: 10px !important; border: 1px solid var(--border) !important;
  overflow: hidden !important; padding: 0 !important; background: var(--white) !important;
  box-shadow: var(--card-shadow); transition: transform .18s, box-shadow .18s !important;
}
.software-row:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.55) !important; border-color: var(--teal) !important; }
.sw-icon { width: 100% !important; height: auto !important; aspect-ratio: 3/4 !important; border-radius: 0 !important; }
.sw-icon img, .sw-icon-placeholder { width: 100% !important; height: 100% !important; border-radius: 0 !important; font-size: 40px !important; }
.sw-info { padding: 12px !important; width: 100% !important; }
.sw-info h4 { font-size: 14px !important; color: var(--text) !important; margin-bottom: 4px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-info p { display: none !important; }
.sw-cat { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 4px; margin-top: 4px; }
.sw-size { width: 100% !important; margin: 6px 0 0 !important; padding: 0 12px 12px !important; text-align: left !important; }
.size-label { color: var(--text-muted) !important; }
.size-num, .size-unit { color: var(--text) !important; }

@media (max-width: 1100px) { .software-list { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 900px)  { .software-list { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px)  { .software-list { grid-template-columns: repeat(2, 1fr) !important; } }

/* Detail/post page: big dark hero banner behind the title, like a
   game cover splash, with the download panel as a floating card. */
.platform-banner {
  background: linear-gradient(180deg, rgba(15,17,21,.3), var(--bg) 92%), linear-gradient(120deg, var(--teal-dark), #000);
  padding: 60px 24px 40px !important;
}
.platform-banner-inner h1 { color: #fff !important; font-size: 30px !important; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.platform-banner .breadcrumb, .platform-banner .breadcrumb a { color: rgba(255,255,255,.75) !important; }
.detail-card, .sidebar-card { border: 1px solid var(--border) !important; border-radius: 12px !important; }
.detail-title-lg { color: var(--text) !important; }
.stat-size-num { color: var(--teal) !important; }
.post-platform-badge { background: rgba(255,255,255,.05) !important; border-color: var(--teal) !important; color: var(--teal) !important; }

/* Is site ka default hi dark hai — built-in light/dark toggle button
   (jo poore page ke colors invert karta hai) yahan hide kar diya
   hai, warna already-dark design ulta/kharab ho jata. */
.theme-toggle-btn { display: none !important; }

/* ============================================================
   HOMEPAGE — hero slider, trending strip, category tiles
   Original layout/CSS written for this project (uses the same
   --teal / --white / --border variables as the rest of the site,
   so it automatically follows the AG-Blue palette above).
   ============================================================ */

.homepage-full { display: flex; flex-direction: column; gap: 28px; width: 100%; }

/* ----- Hero slider ----- */
.hero-slider { position: relative; border-radius: 14px; overflow: hidden; height: 420px; background: var(--white); box-shadow: var(--card-shadow); }
.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-icon { font-size: 130px; color: rgba(255,255,255,.28); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,12,16,.94) 0%, rgba(10,12,16,.62) 42%, rgba(10,12,16,.15) 75%, transparent 100%); }
.hero-content { position: relative; z-index: 3; max-width: 620px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 48px; color: #fff; }
.hero-badge { display: inline-flex; align-items: center; align-self: flex-start; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 5px; }
.hero-content h2 { font-size: 34px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.hero-meta i { margin-right: 5px; color: var(--teal); }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 8px; transition: transform .15s, box-shadow .15s; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.btn-hero-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 500; font-size: 14px; padding: 11px 20px; border-radius: 8px; transition: background .15s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); }

.hero-dots { position: absolute; z-index: 4; left: 48px; bottom: 20px; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.hero-dot.active { background: var(--teal); width: 22px; border-radius: 4px; }

.hero-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,12,16,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.hero-nav:hover { background: rgba(10,12,16,.75); }
.hero-nav.prev { left: 18px; }
.hero-nav.next { right: 18px; }

@media (max-width: 900px) {
  .hero-slider { height: 340px; }
  .hero-content { padding: 28px; max-width: 100%; }
  .hero-content h2 { font-size: 24px; }
  .hero-nav { display: none; }
}
@media (max-width: 600px) {
  .hero-slider { height: 300px; }
  .hero-desc { display: none; }
  .hero-dots { left: 20px; }
}

/* ----- Trending rank badge (top downloads grid) ----- */
.trend-rank { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(10,12,16,.75); color: var(--teal); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--teal); }

/* ----- Category tiles ----- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--card-shadow); }
.cat-tile-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.cat-tile-icon svg { width: 22px; height: 22px; fill: currentColor; }
.cat-tile-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-tile-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile-count { font-size: 12px; color: var(--text-muted); }

/* ----- "no data yet" placeholder for empty homepage sections ----- */
.homepage-empty-hint { text-align: center; padding: 34px 20px; color: var(--text-muted); background: var(--white); border: 1px dashed var(--border); border-radius: 10px; font-size: 14px; }
