/* =========================
   DOWNLOAD PAGE
========================= */

.download-page {
  position: relative;
  min-height: 100vh;
  padding: 72px 18px 86px;
  color: #f5efe6;
  background:
    radial-gradient(90% 75% at 50% 8%, rgba(205, 133, 63, 0.12), rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68)),
    url('/assets/images/download/bg-download.webp') center / cover fixed no-repeat;
}

.download-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64)),
    radial-gradient(80% 60% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.download-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/images/download/noise.png') center repeat;
  opacity: 0.09;
  mix-blend-mode: screen;
  pointer-events: none;
}

.download-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
}

/* =========================
   HERO
========================= */

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
}

.download-hero-copy,
.download-summary,
.download-notice,
.download-guide {
  border: 1px solid rgba(205, 133, 63, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(205, 133, 63, 0.15), rgba(0, 0, 0, 0)),
    linear-gradient(135deg, rgba(18, 13, 9, 0.95), rgba(5, 5, 5, 0.92));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.download-hero-copy {
  padding: 34px 36px;
}

.download-kicker,
.episode-label {
  display: inline-flex;
  color: #ffb86d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-hero h1 {
  margin: 8px 0 12px;
  color: #fff4df;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.96;
  text-shadow:
    0 0 18px rgba(90, 140, 255, 0.18),
    0 5px 18px rgba(0, 0, 0, 0.55);
}

.download-hero p {
  max-width: 720px;
  margin: 0;
  color: #d4c7af;
  font-size: 17px;
  line-height: 1.7;
}

.download-summary {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.download-summary div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.download-summary strong {
  display: block;
  color: #ffd39d;
  font-size: 26px;
  line-height: 1.05;
}

.download-summary span {
  display: block;
  margin-top: 5px;
  color: #a99d87;
  font-size: 13px;
}

/* =========================
   NOTICE
========================= */

.download-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-left-width: 4px;
}

.download-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #ffd39d;
  font-size: 15px;
}

.download-notice p {
  margin: 0;
  color: #cfc1a9;
  font-size: 14px;
  line-height: 1.65;
}

/* =========================
   EPISODE CARDS
========================= */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.episode-card {
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 184, 109, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(120% 130% at 0% 100%, rgba(205, 133, 63, 0.17), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(19, 19, 19, 0.93), rgba(2, 2, 2, 0.96));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.46),
    inset 0 -24px 38px rgba(255, 120, 40, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 32%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.episode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 198, 126, 0.6);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(205, 133, 63, 0.12),
    inset 0 -24px 42px rgba(255, 120, 40, 0.08);
}

.episode-card:hover::after {
  opacity: 1;
}

.episode-number {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 184, 109, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 184, 109, 0.14), rgba(0, 0, 0, 0.12));
  color: rgba(255, 211, 157, 0.72);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.episode-content {
  padding: 24px 26px;
}

.episode-content h2 {
  margin: 8px 0 16px;
  color: #f7f1e7;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.episode-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(172px, max-content));
  gap: 10px;
  margin-bottom: 20px;
}

.episode-meta span {
  display: inline-grid;
  grid-template-columns: 82px minmax(0, max-content);
  align-items: center;
  gap: 12px;
  min-width: 172px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: #d4c7af;
  font-size: 13px;
  white-space: nowrap;
}

.episode-meta strong {
  color: #ffca8a;
  font-weight: 800;
  text-align: left;
}

.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 184, 109, 0.44);
  border-radius: 999px;
  background:
    radial-gradient(100% 140% at 50% 0%, rgba(255, 184, 109, 0.2), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(43, 32, 18, 0.97), rgba(10, 8, 6, 0.98));
  color: #ffd39d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(205, 133, 63, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-download::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.btn-download:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 157, 0.78);
  color: #fff4df;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 184, 109, 0.16);
}

.btn-download:active {
  transform: translateY(1px);
}

/* =========================
   GUIDE
========================= */

.download-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
}

.download-guide div {
  padding: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.download-guide-index {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffb86d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.download-guide h3 {
  margin: 0 0 8px;
  color: #fff4df;
  font-size: 18px;
}

.download-guide p {
  margin: 0;
  color: #bfb29d;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {
  .download-hero {
    grid-template-columns: 1fr;
  }

  .download-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .download-page {
    padding: 36px 12px 54px;
    background-attachment: scroll;
  }

  .download-hero-copy {
    padding: 24px 20px;
  }

  .download-summary {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .download-notice {
    padding: 16px;
  }

  .episode-card {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 190px;
  }

  .episode-number {
    font-size: 26px;
  }

  .episode-content {
    padding: 20px 18px;
  }

  .episode-meta {
    grid-template-columns: 1fr;
  }

  .episode-meta span {
    width: 100%;
    min-width: 0;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .download-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .episode-card {
    grid-template-columns: 1fr;
  }

  .episode-number {
    justify-content: flex-start;
    min-height: 52px;
    padding-left: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 184, 109, 0.16);
    letter-spacing: 0.02em;
  }
}
