/* "Tải bản PC" page (downloads.html). Colours come from css/style.css (:root tokens, light and dark). */

.dl-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dl-header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-back { text-decoration: none; }

.dl-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dl-lang button {
  border: 0; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--text-dim); background: var(--bg-card);
}
.dl-lang button[aria-pressed="true"] { color: var(--text); background: var(--bg-elev); font-weight: 600; }

.dl-main { display: grid; gap: 20px; }
.dl-list { display: grid; gap: 16px; }
.dl-empty { color: var(--text-dim); }

.dl-card {
  --dl-accent: var(--accent);
  display: grid; grid-template-columns: 240px 1fr; gap: 18px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); border-left: 4px solid var(--dl-accent);
}
.dl-card__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg-elev); }
.dl-card__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dl-card__title { margin: 0; font-size: 20px; }
.dl-card__meta { margin: 0; color: var(--text-dim); font-size: 14px; }
.dl-card__note { margin: 0; line-height: 1.5; }
.dl-card__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.dl-btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
  color: #fff; background: var(--accent-strong);
}
.dl-btn:hover { background: var(--accent); }
.dl-link { color: var(--accent); text-decoration: none; font-size: 14px; }
.dl-link:hover { text-decoration: underline; }

.dl-sum { font-size: 13px; color: var(--text-dim); }
.dl-sum summary { cursor: pointer; }
.dl-sum__hash {
  display: block; margin: 8px 0 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg-elev); color: var(--text); font-size: 12px; overflow-wrap: anywhere;
}
.dl-sum__copy {
  font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
}
.dl-sum__how { margin: 8px 0 0; }

.dl-howto { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.dl-howto__title { margin: 0 0 8px; font-size: 16px; }
.dl-howto__list { margin: 0; padding-left: 20px; line-height: 1.6; color: var(--text-dim); }

@media (max-width: 640px) {
  .dl-card { grid-template-columns: 1fr; padding: 14px; }
  .dl-btn { width: 100%; text-align: center; }
}
