:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #e50914;
  --accent-dim: rgba(229, 9, 20, 0.15);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-row img {
  height: 48px;
  width: auto;
}

.brand-row h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  padding: 2rem 0 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}

.ver-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: #ff6b6b;
  font-size: 0.85rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.5rem;
  height: 100%;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card .sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dl-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dl-item.recommended {
  border-color: rgba(229, 9, 20, 0.45);
  background: var(--accent-dim);
}

.dl-item strong {
  font-size: 0.95rem;
}

.dl-item span.meta {
  font-size: 0.8rem;
  color: var(--muted);
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  transition: filter 0.15s ease;
}

a.btn:hover {
  filter: brightness(1.08);
}

a.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

a.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.note.access-note {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.note.access-note span {
  flex: 1 1 16rem;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.note strong {
  color: var(--text);
}

footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

footer a {
  color: #ccc;
}

.loading,
.error {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
}