:root{
  --primary: #007aff;
  --accent: #00c27a;
  --bg: #f4f5f7;
  --card: #ffffff;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}
.ad {
  width: 100%;
  margin: 18px auto;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  color: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ad-header { margin-top: 40px; }
.ad-mid {}
.ad-feed {}
.ad-bottom { margin-bottom: 40px; }
*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:#111;
}

/* HEADER */
.header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  padding:18px 14px;
  position:sticky;
  top:0;
  z-index:40;
  border-bottom:1px solid #e5e7eb;
}

.header-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.brand h1{
  margin:0;
  font-size:30px;
  font-weight:900;
  letter-spacing:0.3px;
  background: linear-gradient(90deg, #007aff, #00c27a);
  -webkit-background-clip:text;
  color:transparent;
}
.brand .sub{
  font-size:14px;
  color:var(--muted);
  margin-top:6px;
}


/* SEARCH */
.search-box{
  margin-top:14px;
  width:100%;
  display:flex;
  justify-content:center;
}
.search-box input{
  width:100%;
  max-width:740px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #d1d5db;
  font-size:15px;
  background:#fff;
}
.search-box input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(0,122,255,0.15);
  outline:none;
}


/* SECTION */
.section{
  padding:20px 14px 4px;
  max-width:1100px;
  margin:0 auto;
}
.section h2{
  margin:0 0 10px;
  font-size:17px;
  color:#111;
}


/* TOP APPS */
.top-grid{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:4px;
}
.top-card{
  min-width:220px;
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  display:flex;
  gap:10px;
  box-shadow:var(--shadow);
  text-decoration:none;
  color:inherit;
}
.top-card img.icon{
  width:58px; height:58px;
  border-radius:14px;
  object-fit:cover;
}
.tinfo h3{
  font-size:15px;
  margin:0;
  font-weight:600;
}
.meta{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}


/* GRID PRINCIPAL */
.apps-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  padding-bottom:30px;
}

.app-card{
  display:flex;
  gap:14px;
  align-items:center;
  background:var(--card);
  padding:14px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  text-decoration:none;
  color:inherit;
  transition:transform .12s;
}
.app-card:active{ transform:scale(.98); }

.app-card img.icon{
  width:70px; height:70px;
  border-radius:14px;
  object-fit:cover;
}

.info h3{
  margin:0;
  font-size:17px;
  font-weight:700;
}

.label{
  padding:4px 8px;
  border-radius:999px;
  background:#e9f7ff;
  color:#007aff;
  font-size:12px;
  font-weight:700;
  margin-left:6px;
}

.nores{
  padding:12px;
  color:var(--muted);
}

/* RESPONSIVE */
@media (min-width:600px){
  .apps-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (min-width:900px){
  .apps-grid{ grid-template-columns:repeat(4,1fr); }

  .top-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    overflow:visible;
  }

  .top-card{
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:18px;
  }

  .top-card img.icon{
    width:72px;
    height:72px;
    margin-bottom:8px;
  }
}