:root {
  color-scheme: dark;
  --bg: #020617;
  --card: rgba(30, 41, 59, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.apk-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.apk-back {
  margin-bottom: 1.25rem;
}

.apk-back__link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.apk-back__link:hover {
  text-decoration: underline;
}

.apk-card__icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.apk-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.apk-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.apk-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.apk-list {
  display: grid;
  gap: 1rem;
}

.apk-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.apk-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.apk-card__icon--fallback {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.apk-card__body {
  flex: 1;
  min-width: 0;
}

.apk-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.apk-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.apk-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.apk-card__btn:hover {
  background: var(--accent-hover);
}

.apk-empty,
.apk-error {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.apk-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.apk-footer a {
  color: #60a5fa;
  text-decoration: none;
}
