:root {
  --bg: #0F1419; --surface: #1A1F28; --border: #2A3038;
  --text: #E6EDF3; --muted: #8B949E; --accent: #4FC3F7;
  --right: #34D399; --left: #60A5FA; --cyan: #22D3EE;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); margin: 0; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 80px; }
header { border-bottom: 1px solid var(--border); padding: 18px 0; margin-bottom: 36px; }
header .wrap { padding-bottom: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.brand { font-weight: 700; letter-spacing: -0.2px; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }
.navs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav { color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav:hover { color: var(--text); }
.nav[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
header .navs { margin-left: auto; }
.nav.lang { border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
@media (max-width: 640px) {
  /* Phones: the nav always sits on its own line under the brand, on one
     line that scrolls sideways if it must, so it looks the same on every
     page whatever the labels' length. */
  header { padding: 12px 0 10px; margin-bottom: 28px; }
  header .wrap { flex-wrap: wrap; gap: 8px; }
  .nav.lang { order: 2; margin-left: auto; }
  header .navs { order: 3; margin-left: 0; }
  .navs { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 11px; padding-bottom: 6px; scrollbar-width: none; }
  .navs::-webkit-scrollbar { display: none; }
  .nav { font-size: 13px; }
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
h2 { font-size: 23px; letter-spacing: -0.3px; margin: 44px 0 14px; }
p { margin: 0 0 16px; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-bottom: 32px;
}
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.video {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 14px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { width: 100%; border: 1px solid var(--border); border-radius: 14px; display: block; margin-bottom: 14px; }
.caption { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.cover { margin-bottom: 32px; }
.updated, .small { color: var(--muted); font-size: 13px; }
.updated { margin: -16px 0 24px; }
ul.data { padding-left: 20px; margin: 0 0 10px; }
ul.data li { margin-bottom: 6px; }
.melody { display: grid; gap: 6px; margin: 0 0 16px; }
.melody div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.melody span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; word-spacing: 2px;
}
.melody i { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
@media (max-width: 520px) { .melody div { grid-template-columns: repeat(2, 1fr); } }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.legend li {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: 14px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.right { background: var(--right); }
.dot.left { background: var(--left); }
.dot.cyan { background: var(--cyan); }
ol.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0 0 16px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(79, 195, 247, 0.12); color: var(--accent);
  border: 1px solid rgba(79, 195, 247, 0.35);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
ol.steps strong { display: block; }
details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 14px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--muted); }
.cta {
  background: linear-gradient(135deg, rgba(79,195,247,0.10), rgba(52,211,153,0.07));
  border: 1px solid rgba(79, 195, 247, 0.28); border-radius: 16px;
  padding: 28px 24px; margin: 46px 0 10px; text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: 22px; }
.cta p { color: var(--muted); margin: 0 0 20px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stores a {
  padding: 13px 26px; border-radius: 11px; text-decoration: none;
  font-weight: 600; font-size: 15px; background: var(--accent); color: #07222E;
}
.stores a.ghost { background: transparent; color: var(--accent); border: 1px solid rgba(79,195,247,0.45); }
.stores a:hover { filter: brightness(1.08); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.more a {
  display: block; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.more a:hover { border-color: rgba(79,195,247,0.45); }
.more b { display: block; font-size: 15px; }
.more span { color: var(--muted); font-size: 13px; }
.group { margin: 0 0 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; }
.jump { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.jump a { color: var(--accent); text-decoration: none; }
footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 0; color: #556; font-size: 13px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
