/* Home page revamp: hero, offers, staff picks, click-to-play video.
   Uses the site tokens (--text, --muted, --line, --panel, --yellow, --blue) so dark and bright themes both work. */

.hx-hero,
.hx-offers,
.hx-picks,
.hx-showcase {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hx-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 8vw, 104px) 0 clamp(36px, 5vw, 64px);
}

.hx-hero h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hx-hero h1 em {
  color: var(--yellow);
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hx-sub {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.hx-sub strong {
  color: var(--text);
  font-weight: 700;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.hx-btn:hover {
  transform: translateY(-1px);
}

.hx-btn-primary {
  background: var(--yellow);
  color: #17120a;
  box-shadow: 0 10px 30px rgba(243, 199, 79, 0.25);
}

.hx-btn-primary:hover {
  background: #ffd96b;
}

.hx-btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hx-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hx-proof li::before {
  content: "\2713";
  margin-right: 7px;
  color: var(--teal);
  font-weight: 800;
}

.hx-hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
}

.hx-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  aspect-ratio: 4 / 5;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hx-tile:nth-child(even) {
  transform: translateY(8px);
}

.hx-tile:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.hx-tile:nth-child(even):hover {
  transform: translateY(5px);
}

.hx-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-tile-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 10px 9px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 8, 0.82));
  color: #fff;
}

.hx-tile-label b {
  font-size: 13px;
  font-weight: 700;
}

.hx-tile-label small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------- Offers ---------- */
.hx-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 clamp(36px, 5vw, 64px);
}

.hx-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hx-offer:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.hx-offer.is-featured {
  border-color: rgba(243, 199, 79, 0.45);
  background: linear-gradient(180deg, rgba(243, 199, 79, 0.1), var(--panel));
}

.hx-offer-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124, 207, 255, 0.14);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hx-offer.is-featured .hx-offer-tag {
  background: var(--yellow);
  color: #17120a;
}

.hx-offer strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
}

.hx-offer p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hx-offer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hx-offer-price b {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.hx-offer-price s {
  color: var(--soft);
  font-size: 15px;
}

.hx-offer-price:empty,
.hx-offer-price b:empty + s:empty {
  display: none;
}

.hx-offer-cta {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Staff picks ---------- */
.hx-picks {
  padding: 0 0 clamp(36px, 5vw, 72px);
}

.hx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hx-section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.hx-section-head .hx-kicker {
  margin-bottom: 6px;
}

.hx-link {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hx-link:hover {
  text-decoration: underline;
}

.hx-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hx-pick {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hx-pick:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.hx-pick-art {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
}

.hx-pick-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-pick-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.hx-pick-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.hx-pick-row strong {
  font-size: 15px;
}

.hx-pick-price {
  font-size: 14px;
  font-weight: 800;
}

.hx-pick-price.is-free {
  color: var(--teal);
}

.hx-pick-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Click-to-play showcase ---------- */
.hx-showcase {
  padding: 0 0 clamp(36px, 5vw, 72px);
}

.hx-video,
.hx-video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
}

.hx-video {
  padding: 0;
  cursor: pointer;
}

.hx-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.4s ease;
}

.hx-video:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.hx-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #17120a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.hx-video-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 8, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hx-hero {
    grid-template-columns: 1fr;
  }

  .hx-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hx-offers {
    grid-template-columns: 1fr;
  }

  .hx-hero-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-tile:nth-child(even) {
    transform: none;
  }

  .hx-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-tile,
  .hx-offer,
  .hx-pick,
  .hx-btn,
  .hx-video img {
    transition: none;
  }
}

/* Square/portrait source art must crop into the 16:9 frame, not stretch it */
.hx-pick-art {
  position: relative;
  overflow: hidden;
}

.hx-pick-art img {
  position: absolute;
  inset: 0;
}

/* ---------- New in Flash ---------- */
.hx-new { padding: 0 0 clamp(28px, 4vw, 56px); }
.hx-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hx-news:empty { display: none; }
.hx-news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.hx-news-item:hover { border-color: var(--line-2); }
.hx-news-item strong { font-size: 14.5px; }
.hx-news-item span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 720px) { .hx-news { grid-template-columns: minmax(0, 1fr); } }
