/* 1stopdownload: black and gold, with a big centred hero and a full-width contact strip */
:root {
  --bg: #0a0a0c;
  --panel: #141417;
  --panel-2: #232327;
  --line: rgba(212, 175, 55, .3);
  --text: #ffffff;
  --muted: #b9b9c2;
  --accent: #d4af37;
  --on-accent: #1a1405;
  --radius: 0;

  --fs-title: 24px;
  --fs-heading: 16px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 12px;
  --fs-icon: 17px;
  --fs-input: 16px;

  --body: "Montserrat", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

:root:lang(zh-TW) {
  --body: "Montserrat", "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 var(--fs-body)/1.5 var(--body);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 800 var(--fs-title)/1.1 var(--body);
  text-decoration: none;
}

.lede { margin: 0; color: var(--muted); font-size: var(--fs-small); }

.search { position: relative; display: block; }

.search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: 600 var(--fs-input) var(--body);
  outline: none;
}

.search input:focus { border-color: var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-body);
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear[hidden] { display: none; }

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: 600 var(--fs-small)/1 var(--body);
}

.lang i { color: var(--accent); font-size: var(--fs-label); }
.lang:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.lang select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  font-size: var(--fs-input);
  cursor: pointer;
  opacity: 0;
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 var(--fs-small)/1 var(--body);
  text-decoration: none;
}

.contact i { font-size: var(--fs-icon); }

.grid { display: grid; margin: 0; padding: 0; list-style: none; }

.tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, hsl(var(--hue) 70% 50%), hsl(var(--hue) 70% 28%));
  color: #fff;
  font: 800 var(--fs-heading)/1 var(--body);
}

.tile.has-logo { display: block; background: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; }

/* White glow keeps dark logos readable on black */
.tile img, .brand img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .45));
}
.name { margin: 0; font: 700 var(--fs-heading)/1.2 var(--body); overflow-wrap: anywhere; }
.soon, .play { display: block; margin: 2px 0 0; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--body); }
.info { min-width: 0; }
.actions { display: flex; gap: 6px; }

.dl {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 38px;
  padding: 0 6px;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: 700 var(--fs-label)/1.1 var(--body);
  text-align: center;
  text-decoration: none;
}

a.dl:hover { background: var(--accent); color: var(--on-accent); }

.empty {
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.foot { margin-top: 28px; color: var(--muted); font-size: var(--fs-small); }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--text); font: 700 var(--fs-heading)/1.2 var(--body); }
.foot p { margin: 0 0 8px; }
.foot ul { margin: 0 0 8px; padding-left: 18px; }
.foot a { color: var(--accent); }
.foot strong { color: var(--text); }
.age { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font: 700 var(--fs-label)/1 var(--body); }
.copyright { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }

a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.langrow { display: flex; justify-content: flex-end; padding: 10px 16px 0; }

.hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 16px 26px;
  text-align: center;
}

.hero .search { width: min(620px, 100%); }

.contact {
  display: flex;
  justify-content: center;
  background: var(--accent);
}

.contact a { flex: 0 1 220px; min-height: 46px; background: none; }
.contact a:hover { background: #000; color: var(--accent); }

.page { width: min(1200px, 100%); margin: 0 auto; padding: 22px 16px 0; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 12px;
  border-top: 3px solid var(--accent);
  background: var(--panel);
  text-align: center;
}

.tile { justify-self: center; margin-top: 12px; }
.tile.has-logo { width: 100%; height: 60px; padding: 0 16px; }
.actions { padding: 0 12px; }

/* Banners */
.promo { display: block; width: min(1200px, 100%); margin: 0 auto; }
.promo img { display: block; width: 100%; height: auto; }
.promo-top { margin-bottom: 14px; }
.promo-bottom { margin-top: 20px; }
.card.featured { border-color: var(--accent); }

@media (max-width: 760px) {
  :root { --fs-title: 20px; --fs-heading: 14px; --fs-body: 13px; --fs-small: 12px; --fs-label: 10px; --fs-icon: 15px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile.has-logo { height: 44px; padding: 0 8px; }
  .actions { flex-wrap: wrap; padding: 0 8px; }
  .dl { flex: 1 1 40%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
