* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Landing Page ========== */

.landing {
  position: relative;
  cursor: pointer;
}

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
}

.header {
  background: #c0392b;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-join {
  background: #fff;
  color: #c0392b;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
}

.dots-icon {
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  background: #111;
  padding: 0 12px;
  border-bottom: 1px solid #222;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 12px 14px;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-tab.active {
  color: #fff;
  border-bottom-color: #c0392b;
  font-weight: 600;
}

.nav-search {
  margin-left: auto;
  padding: 8px;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #111;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #222;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
  color: #ccc;
}

.filter-chip.flag {
  padding: 6px 10px;
}

.filter-chip.flag img,
.filter-tag-icon,
.section-flag,
.thumb-flag-img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.filter-tag-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-flag {
  width: 18px;
  height: 14px;
}

.section-more {
  font-size: 12px;
  color: #888;
}

.thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
}

.thumb-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f1c40f;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.thumb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thumb-name {
  font-size: 11px;
  font-weight: 600;
}

.thumb-flag-img {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.section {
  padding: 14px 12px 4px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.thumb-icons {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
}

.thumb-icon {
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 10px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #111;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #666;
}

.bottom-nav-item.active {
  color: #c0392b;
}

.bottom-nav-item span:first-child {
  font-size: 18px;
}

.content-pad {
  padding-bottom: 70px;
}

/* ========== Download Page ========== */

.download-page {
  background: #fff;
  color: #222;
  min-height: 100vh;
  padding: 16px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #8b2942;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.app-dev {
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}

.app-date {
  font-size: 12px;
  color: #aaa;
}

.share-btn {
  color: #888;
  font-size: 20px;
  padding: 4px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #999;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  text-decoration: none;
}

.btn-download svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.install-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #1976d2;
  font-size: 13px;
  margin-bottom: 24px;
}

.about-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.about-section .tagline {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.about-section p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.about-more {
  color: #1976d2;
  font-size: 13px;
  margin-top: 8px;
  display: inline-block;
}
