/* Apkcombo.tv — APKCombo-inspired layout */

:root {
  --bs-blue: #1a73e8;
  --bs-blue-dark: #1557b0;
  --bs-green: #2e7d32;
  --bs-green-btn: #43a047;
  --bs-text: #222;
  --bs-muted: #757575;
  --bs-border: #e0e0e0;
  --bs-bg: #fff;
  --bs-soft: #f7f7f7;
  --bs-container: 1100px;
  --bs-radius: 6px;
  --bs-font: "Roboto", Arial, Helvetica, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--bs-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bs-text);
  background: var(--bs-bg);
}

a {
  color: var(--bs-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

.bs-container {
  width: 100%;
  max-width: var(--bs-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.bs-header {
  background: #fff;
  border-bottom: 1px solid var(--bs-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bs-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.bs-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}

.bs-logo-link:hover {
  text-decoration: none;
}

.bs-logo-text {
  color: #333;
}

.bs-logo .custom-logo {
  max-height: 40px;
  width: auto;
}

.bs-search {
  display: flex;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.bs-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--bs-border);
  border-right: 0;
  border-radius: var(--bs-radius) 0 0 var(--bs-radius);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.bs-search input[type="search"]:focus {
  border-color: var(--bs-blue);
}

.bs-search .bs-btn {
  border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bs-nav-list {
  display: flex;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.bs-nav-list a {
  color: #333;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.bs-nav-list .current > a,
.bs-nav-list a:hover {
  color: var(--bs-blue);
}

/* ---------- Promo banner ---------- */
.bs-promo {
  padding: 14px 0 0;
}

.bs-promo-box {
  border: 2px dashed #90caf9;
  background: #f5fbff;
  color: var(--bs-blue);
  text-align: center;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--bs-radius);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.bs-btn:hover {
  text-decoration: none;
  opacity: 0.95;
}

.bs-btn-blue {
  background: var(--bs-blue);
  color: #fff;
}

.bs-btn-blue:hover {
  background: var(--bs-blue-dark);
  color: #fff;
}

.bs-btn-green {
  background: var(--bs-green-btn);
  color: #fff;
}

.bs-btn-green:hover {
  background: var(--bs-green);
  color: #fff;
}

.bs-btn-block {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
}

/* ---------- Layout ---------- */
.bs-main {
  padding: 20px 0 48px;
}

.bs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.bs-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Hero (home) ---------- */
.bs-hero {
  text-align: center;
  padding: 10px 0 24px;
}

.bs-hero-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bs-search-hero {
  max-width: 720px;
  margin: 0 auto;
}

.bs-search-hero input {
  border-radius: var(--bs-radius) 0 0 var(--bs-radius);
  padding: 12px 16px;
}

/* ---------- Sections / icon grid ---------- */
.bs-section {
  margin-bottom: 28px;
}

.bs-section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
}

.bs-icon-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px 8px;
}

.bs-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.bs-icon-card:hover {
  text-decoration: none;
}

.bs-icon-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
}

.bs-icon-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  color: #222;
}

.bs-icon-ver {
  font-size: 10px;
  color: var(--bs-muted);
}

.bs-see-all-wrap {
  text-align: right;
  margin-top: 8px;
}

.bs-see-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-blue);
}

/* ---------- Sidebar ---------- */
.bs-sidebar {
  position: sticky;
  top: 80px;
  min-width: 0;
  max-width: 280px;
  z-index: 2;
  background: #fff;
}

.bs-side-block {
  margin-bottom: 22px;
}

.bs-side-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
}

.bs-side-list {
  list-style: none;
}

.bs-side-list li {
  margin-bottom: 10px;
}

.bs-side-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.bs-side-item:hover {
  text-decoration: none;
}

.bs-side-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-side-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bs-side-meta strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-side-meta small {
  color: var(--bs-muted);
  font-size: 12px;
}

.bs-read-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.bs-cat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}

.bs-cat-grid li {
  min-width: 0;
}

.bs-cat-grid a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.25;
  padding: 4px 2px;
  min-width: 0;
  overflow: hidden;
}

.bs-cat-grid a:hover {
  color: var(--bs-blue);
  background: #f5f7fa;
  border-radius: 4px;
}

.bs-cat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.bs-cat-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Category icons — sprite from apkcombo.info */
.bs-cat-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: url("../images/categories/css-category-sprites.png") no-repeat;
  vertical-align: middle;
}

.bs-cat-icon.art-and-design,
.bs-cat-icon.art-design { background-position: -8px -8px; }
.bs-cat-icon.auto-and-vehicles,
.bs-cat-icon.auto-vehicles { background-position: -56px -8px; }
.bs-cat-icon.beauty { background-position: -8px -56px; }
.bs-cat-icon.books-and-reference,
.bs-cat-icon.books-reference { background-position: -56px -56px; }
.bs-cat-icon.business { background-position: -104px -8px; }
.bs-cat-icon.comics { background-position: -104px -56px; }
.bs-cat-icon.communication { background-position: -8px -104px; }
.bs-cat-icon.dating { background-position: -56px -104px; }
.bs-cat-icon.education { background-position: -104px -104px; }
.bs-cat-icon.entertainment { background-position: -152px -8px; }
.bs-cat-icon.events { background-position: -152px -56px; }
.bs-cat-icon.family { background-position: -152px -104px; }
.bs-cat-icon.finance { background-position: -8px -152px; }
.bs-cat-icon.food-and-drink,
.bs-cat-icon.food-drink { background-position: -56px -152px; }
.bs-cat-icon.game-action,
.bs-cat-icon.action { background-position: -104px -152px; }
.bs-cat-icon.game-adventure,
.bs-cat-icon.adventure { background-position: -152px -152px; }
.bs-cat-icon.game-arcade,
.bs-cat-icon.arcade { background-position: -200px -8px; }
.bs-cat-icon.game-board,
.bs-cat-icon.board { background-position: -200px -56px; }
.bs-cat-icon.game-card,
.bs-cat-icon.card { background-position: -200px -104px; }
.bs-cat-icon.game-casino,
.bs-cat-icon.casino { background-position: -200px -152px; }
.bs-cat-icon.game-casual,
.bs-cat-icon.casual { background-position: -8px -200px; }
.bs-cat-icon.game-educational,
.bs-cat-icon.educational { background-position: -56px -200px; }
.bs-cat-icon.game-music,
.bs-cat-icon.music { background-position: -104px -200px; }
.bs-cat-icon.game-puzzle,
.bs-cat-icon.puzzle { background-position: -152px -200px; }
.bs-cat-icon.game-racing,
.bs-cat-icon.racing { background-position: -200px -200px; }
.bs-cat-icon.game-role-playing,
.bs-cat-icon.role-playing { background-position: -248px -8px; }
.bs-cat-icon.game-simulation,
.bs-cat-icon.simulation { background-position: -248px -56px; }
.bs-cat-icon.game-sports { background-position: -248px -104px; }
.bs-cat-icon.game-strategy,
.bs-cat-icon.strategy { background-position: -248px -152px; }
.bs-cat-icon.game-trivia,
.bs-cat-icon.trivia { background-position: -248px -200px; }
.bs-cat-icon.game-word,
.bs-cat-icon.word { background-position: -8px -248px; }
.bs-cat-icon.health-and-fitness,
.bs-cat-icon.health-fitness { background-position: -56px -248px; }
.bs-cat-icon.house-and-home,
.bs-cat-icon.house-home { background-position: -104px -248px; }
.bs-cat-icon.libraries-and-demo,
.bs-cat-icon.libraries-demo { background-position: -152px -248px; }
.bs-cat-icon.lifestyle { background-position: -200px -248px; }
.bs-cat-icon.maps-and-navigation,
.bs-cat-icon.maps-navigation { background-position: -248px -248px; }
.bs-cat-icon.medical { background-position: -296px -8px; }
.bs-cat-icon.music-and-audio,
.bs-cat-icon.music-audio { background-position: -296px -56px; }
.bs-cat-icon.news-and-magazines,
.bs-cat-icon.news-magazines { background-position: -296px -104px; }
.bs-cat-icon.parenting { background-position: -296px -152px; }
.bs-cat-icon.personalization { background-position: -296px -200px; }
.bs-cat-icon.photography { background-position: -296px -248px; }
.bs-cat-icon.productivity { background-position: -8px -296px; }
.bs-cat-icon.shopping { background-position: -56px -296px; }
.bs-cat-icon.social { background-position: -104px -296px; }
.bs-cat-icon.sports { background-position: -152px -296px; }
.bs-cat-icon.tools,
.bs-cat-icon.uncategorized { background-position: -200px -296px; }
.bs-cat-icon.travel-and-local,
.bs-cat-icon.travel-local { background-position: -248px -296px; }
.bs-cat-icon.video-players,
.bs-cat-icon.video-players-editors { background-position: -296px -296px; }
.bs-cat-icon.weather { background-position: -344px -8px; }

/* ---------- Trending ---------- */
.bs-trending {
  margin: 28px 0;
}

.bs-trending-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.bs-trending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bs-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

.bs-trend-chip:hover {
  border-color: var(--bs-blue);
  text-decoration: none;
}

.bs-trend-chip img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

/* ---------- CTA box ---------- */
.bs-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 12px;
  background: var(--bs-soft);
}

.bs-cta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-cta-brand p {
  margin: 4px 0 0;
  color: var(--bs-muted);
  font-size: 13px;
}

/* ---------- Category / list ---------- */
.bs-breadcrumbs {
  font-size: 12px;
  color: var(--bs-blue);
  margin-bottom: 10px;
}

.bs-breadcrumbs .current {
  color: var(--bs-muted);
}

.bs-breadcrumbs span {
  color: #999;
}

.bs-page-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.bs-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bs-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--bs-border);
  border-radius: 4px;
  color: #444;
  font-size: 13px;
  background: #fff;
  text-decoration: none;
}

.bs-sort-tab:hover,
.bs-sort-tab.is-active {
  border-color: var(--bs-blue);
  color: var(--bs-blue);
  text-decoration: none;
}

.bs-list-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bs-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.bs-list-item:hover {
  text-decoration: none;
}

.bs-list-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-list-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.bs-list-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.bs-list-cat,
.bs-list-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.bs-list-cat {
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-list-meta {
  font-size: 12px;
  color: #999;
}

.bs-pagination {
  margin-top: 28px;
}

.bs-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.bs-pagination .page-numbers a,
.bs-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--bs-border);
  border-radius: 4px;
  color: #333;
  font-weight: 700;
  text-decoration: none;
}

.bs-pagination .page-numbers .current,
.bs-pagination .page-numbers a:hover {
  background: var(--bs-blue);
  border-color: var(--bs-blue);
  color: #fff;
}

/* ---------- Single ---------- */
.bs-single-header {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: start;
  margin-bottom: 12px;
}

.bs-single-icon {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.bs-single-head-meta {
  min-width: 0;
  padding-top: 2px;
}

.bs-single-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.bs-single-version {
  margin: 0 0 6px;
  color: #43a047;
  font-size: 15px;
  font-weight: 700;
}

.bs-single-dev {
  margin: 0;
  font-size: 14px;
}

.bs-single-dev a {
  color: var(--bs-blue);
  text-decoration: none;
}

.bs-single-dev a:hover {
  text-decoration: underline;
}

.bs-single-head-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 220px;
}

.bs-btn-download {
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 15px;
}

.bs-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #c5c5c5;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.bs-rating .bs-stars {
  letter-spacing: 2px;
}

.bs-rating small {
  color: var(--bs-muted);
  font-size: 12px;
  font-weight: 400;
}

.bs-single-catline {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--bs-muted);
}

.bs-single-catline a {
  color: var(--bs-muted);
  text-decoration: none;
}

.bs-single-catline a:hover {
  color: var(--bs-blue);
}

.bs-screenshots {
  margin: 0 0 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.bs-screenshots-track {
  display: flex;
  gap: 10px;
  width: max-content;
  min-width: 100%;
}

.bs-shot {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.bs-shot:focus-visible {
  outline: 2px solid var(--bs-blue);
  outline-offset: 2px;
}

.bs-screenshots img,
.bs-shot img {
  height: 260px;
  width: auto;
  max-width: none;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f0f0;
  transition: opacity 0.15s ease;
}

.bs-shot:hover img {
  opacity: 0.92;
}

/* ---------- Lightbox ---------- */
body.bs-lightbox-open {
  overflow: hidden;
}

.bs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 48px 64px;
}

.bs-lightbox[hidden] {
  display: none !important;
}

.bs-lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}

.bs-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.bs-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.bs-lightbox-prev {
  left: 16px;
}

.bs-lightbox-next {
  right: 16px;
}

.bs-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.bs-screenshots::-webkit-scrollbar {
  height: 8px;
}

.bs-screenshots::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 4px;
}

.bs-screenshots::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 4px;
}

.bs-latest {
  margin: 0 0 24px;
}

.bs-latest-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bs-border);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bs-latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}

.bs-latest-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bs-latest-label {
  font-size: 12px;
  color: var(--bs-muted);
  font-weight: 500;
}

.bs-latest-value {
  font-size: 14px;
  color: #222;
  word-break: break-word;
}

.bs-latest-value a {
  color: var(--bs-blue);
  text-decoration: none;
}

.bs-latest-value a:hover {
  text-decoration: underline;
}

/* Legacy table (unused on new single, keep for safety) */
.bs-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 13px;
}

.bs-info-table th,
.bs-info-table td {
  border: 1px solid var(--bs-border);
  padding: 10px 12px;
  text-align: left;
}

.bs-info-table th {
  width: 160px;
  background: var(--bs-soft);
  font-weight: 700;
  color: #555;
}

.bs-block {
  margin-bottom: 22px;
}

.bs-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bs-prose {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.bs-prose p {
  margin: 0 0 12px;
}

.bs-prose-clamp {
  max-height: 160px;
  overflow: hidden;
  position: relative;
}

.bs-description.is-expanded .bs-prose-clamp {
  max-height: none;
}

.bs-readmore-toggle {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--bs-blue);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.bs-single-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.bs-ad-slot {
  border: 1px dashed #cfcfcf;
  background: #fafafa;
  color: #999;
  text-align: center;
  padding: 28px 12px;
  margin: 14px 0;
  border-radius: 4px;
  font-size: 13px;
}

/* ---------- Download page ---------- */
.bs-download-wrap {
  text-align: center;
}

.bs-download-wrap .bs-breadcrumbs {
  text-align: left;
}

.bs-download-heading {
  margin: 8px 0 16px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.bs-dl-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bs-dl-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--bs-border);
  background: #f5f5f5;
  color: #555;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.bs-dl-tab.is-active {
  background: #fff;
  border-color: var(--bs-blue);
  color: var(--bs-blue);
}

.bs-dl-stage {
  margin: 8px 0;
  min-height: 120px;
}

.bs-dl-wait {
  margin: 0 0 8px;
  color: #666;
}

.bs-dl-timer {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #333;
}

.bs-dl-seconds {
  margin: 4px 0 0;
  color: var(--bs-muted);
  font-size: 13px;
}

.bs-dl-ready {
  max-width: 420px;
  margin: 0 auto;
}

.bs-telegram {
  margin-top: 8px;
}

.bs-dl-utils {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 24px;
}

.bs-util-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--bs-border);
  border-radius: 4px;
  color: #555;
  font-size: 12px;
  background: #fff;
  text-decoration: none;
}

.bs-util-btn:hover {
  border-color: var(--bs-blue);
  color: var(--bs-blue);
  text-decoration: none;
}

.bs-version-list {
  list-style: none;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.bs-version-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--bs-border);
}

.bs-version-item:last-child {
  border-bottom: 0;
}

.bs-version-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-version-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bs-version-info strong {
  font-size: 14px;
}

.bs-version-info span {
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-version-dl {
  flex-shrink: 0;
  padding: 6px;
  line-height: 0;
}

.bs-howto {
  text-align: left;
  margin: 20px 0;
  padding: 0 8px;
}

.bs-howto h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.bs-howto ol {
  padding-left: 20px;
}

.bs-howto li {
  margin-bottom: 8px;
}

.bs-empty {
  color: var(--bs-muted);
  padding: 24px 0;
}

/* ---------- Footer ---------- */
.bs-footer {
  border-top: 1px solid var(--bs-border);
  padding: 18px 0 28px;
  background: #fff;
}

.bs-copyright {
  margin: 0;
  font-size: 12px;
  color: var(--bs-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bs-icon-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .bs-layout {
    grid-template-columns: 1fr;
  }

  .bs-sidebar {
    position: static;
  }

  .bs-header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .bs-search-header {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .bs-list-grid {
    grid-template-columns: 1fr;
  }

  .bs-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bs-cta-box {
    flex-direction: column;
    text-align: center;
  }

  .bs-single-header {
    grid-template-columns: 96px minmax(0, 1fr);
    text-align: left;
  }

  .bs-single-icon {
    width: 96px;
    height: 96px;
  }

  .bs-single-head-actions {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .bs-latest-grid {
    grid-template-columns: 1fr;
  }

  .bs-screenshots img,
  .bs-shot img {
    height: 200px;
  }

  .bs-lightbox {
    padding: 56px 12px 40px;
  }

  .bs-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .bs-lightbox-prev {
    left: 8px;
  }

  .bs-lightbox-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .bs-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bs-nav-list {
    gap: 12px;
  }

  .bs-hero-title {
    font-size: 18px;
  }

  .bs-page-title {
    font-size: 22px;
  }
}
