/* ============================================================
   download.css — the /download page (FFmpeg-style platform tiles)
   ============================================================ */

.dl-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}

/* ---- Header ---- */
.dl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dl-head-icon { width: 30px; height: 30px; color: var(--text); flex: none; }
.dl-head h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.dl-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ---- Platform tiles ---- */
.dl-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.dl-tile {
  --tile: var(--surface2);
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--tile);
  color: #fff;
  cursor: pointer;
  padding: 22px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.62;
  filter: saturate(0.85);
  transition: opacity var(--transition), transform var(--transition),
              box-shadow var(--transition), border-color var(--transition);
}
.dl-tile svg { width: 40px; height: 40px; }
.dl-tile:hover { opacity: 0.9; transform: translateY(-2px); }
.dl-tile.active {
  opacity: 1;
  filter: none;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dl-tile.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* ---- Panels ---- */
.dl-panels { position: relative; }
.dl-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.dl-panel h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dl-ver {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}
.dl-ver:empty { display: none; }
.dl-panel > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 620px;
}

.dl-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}
.dl-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.dl-btn-ext {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}
.dl-btn-disabled {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}

.dl-note {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 620px;
}
.dl-note code {
  font-family: 'DM Mono', monospace;
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
}

.dl-footnote {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 30px;
  text-align: center;
}
.dl-footnote a { color: var(--accent); text-decoration: none; }
.dl-footnote a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .dl-tiles { grid-template-columns: repeat(3, 1fr); }
  .dl-head h1 { font-size: 24px; }
}
@media (max-width: 420px) {
  .dl-tiles { grid-template-columns: repeat(2, 1fr); }
  .dl-tile.active::after { display: none; }
}
