/* getmusic.cc redesign: matches musicplayeroffline.com (light sage, Inter, green accents).
   Loaded after the page's original inline styles, so it reskins the pairing tool
   without touching its markup or script. */
:root {
  --gm-bg: #e9efe9; --gm-card: #ffffff; --gm-field: #f4f7f4; --gm-ink: #0b110c; --gm-muted: #4d5a50;
  --gm-line: #d3ddd4; --gm-green: #15923f; --gm-green-strong: #1faa4d; --gm-green-soft: #d6f0dc;
  --gm-shadow: 0 1px 2px rgba(11,17,12,.04), 0 12px 32px rgba(11,17,12,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --gm-bg: #0d130f; --gm-card: #151c17; --gm-field: #0f1511; --gm-ink: #eef3ee; --gm-muted: #a2afa5;
    --gm-line: #27322b; --gm-green: #39d870; --gm-green-strong: #2fc864; --gm-green-soft: #143021;
    --gm-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  }
}
html { scroll-behavior: smooth; }
body.text-white, body.gm-page {
  background: var(--gm-bg) !important; color: var(--gm-ink) !important; margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gm-page *, .gm-nav *, .gm-main *, .gm-foot * { box-sizing: border-box; }

/* ---------- header ---------- */
.gm-nav {
  max-width: 1040px; margin: 20px auto 0; padding: 10px 14px 10px 12px; width: calc(100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: 999px; box-shadow: var(--gm-shadow);
}
.gm-brand { display: flex; align-items: center; gap: 10px; color: var(--gm-ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.gm-brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.gm-links { display: flex; align-items: center; gap: 6px; }
.gm-links a { white-space: nowrap; color: var(--gm-muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.gm-links a:hover { color: var(--gm-ink); background: var(--gm-field); }
.gm-links a.gm-cta { background: var(--gm-ink); color: var(--gm-bg); }
.gm-links a.gm-cta:hover { background: var(--gm-green-strong); color: #fff; }
.gm-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--gm-green-soft); color: var(--gm-green); border: 1px solid color-mix(in srgb, var(--gm-green) 30%, transparent);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.gm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gm-green-strong); }
.gm-hero-badge { text-align: center; margin: 44px 16px 0; }

/* ---------- the pairing tool (original markup, new skin) ---------- */
.p-5.text-green.text-center { padding: 18px 20px 0 !important; }
h1#title { color: var(--gm-ink); font-size: clamp(34px, 5.2vw, 58px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; }
div.small { font-size: 16px; line-height: 1.75; color: var(--gm-muted); }
.container.mt-5 { margin-top: 30px !important; }
.otpbox {
  background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: 28px; box-shadow: var(--gm-shadow);
  height: 390px; margin-bottom: 24px;
}
.title_new { color: var(--gm-ink); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
input.otp {
  width: 64px; height: 78px; margin: 6px; font-size: 40px; font-weight: 600; color: var(--gm-ink);
  background-color: var(--gm-field) !important; border: 1.5px solid var(--gm-line); border-radius: 16px;
  caret-color: var(--gm-green-strong); transition: border-color .15s, box-shadow .15s;
}
input.otp:focus, input.otp:active { border: 1.5px solid var(--gm-green-strong); box-shadow: 0 0 0 4px var(--gm-green-soft); outline: none; }
#errorSpan { display: block; min-height: 24px; margin-top: 8px; font-weight: 600; }
/* Both cards: content centred, the original <br> spacers are not needed */
.otpbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.otpbox br { display: none; }

/* QR code: white tile, green scanner corners, app icon in the middle.
   The code is drawn at error-correction level H, so the small centre icon stays scannable. */
#qrcode {
  position: relative; width: 236px; height: 236px; margin: 12px auto 0; padding: 18px;
  background: #ffffff; border: 0; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(11,17,12,.07), 0 2px 4px rgba(11,17,12,.05), 0 18px 40px rgba(11,17,12,.12);
}
#qrcode canvas { display: block; width: 200px; height: 200px; image-rendering: pixelated; border-radius: 4px; }
#qrcode::before {
  content: ""; position: absolute; inset: -11px; border: 3px solid var(--gm-green-strong); border-radius: 36px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) top left / 46px 46px no-repeat, linear-gradient(#000 0 0) top right / 46px 46px no-repeat,
                linear-gradient(#000 0 0) bottom left / 46px 46px no-repeat, linear-gradient(#000 0 0) bottom right / 46px 46px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 46px 46px no-repeat, linear-gradient(#000 0 0) top right / 46px 46px no-repeat,
                linear-gradient(#000 0 0) bottom left / 46px 46px no-repeat, linear-gradient(#000 0 0) bottom right / 46px 46px no-repeat;
}
#qrcode::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: #ffffff url(icon-192.png?v=2) center / 34px 34px no-repeat; border-radius: 11px;
  box-shadow: 0 0 0 3px #ffffff, 0 2px 8px rgba(11,17,12,.18); pointer-events: none;
}
#statusModal { border-radius: 28px; }
a.test { display: none; }
footer.center { margin-top: 6px; color: var(--gm-muted); font-size: 14px; }
footer.center select {
  margin-left: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--gm-line);
  background: var(--gm-card); color: var(--gm-ink); font: inherit;
}
.gm-about-link { margin: 14px 0 0; font-size: 14px; }
.gm-about-link a { color: var(--gm-green); font-weight: 600; text-decoration: none; }
.gm-about-link a:hover { text-decoration: underline; }

/* ---------- guide ---------- */
.gm-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 0; text-align: left; }
.gm-sec { padding: 56px 0 0; scroll-margin-top: 16px; }
.gm-sec-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.gm-sec-head h2, .gm-page h1 { color: var(--gm-ink); font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 12px; }
.gm-sec-head p { color: var(--gm-muted); font-size: 17px; line-height: 1.65; margin: 0; }
.gm-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-grid.gm-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-grid.gm-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gm-card { background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: 22px; padding: 22px; box-shadow: var(--gm-shadow); }
.gm-card h3 { color: var(--gm-ink); font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; }
.gm-card p { color: var(--gm-muted); font-size: 15px; line-height: 1.6; margin: 0; }
ol.gm-steps { list-style: none; margin: 0; padding: 0; counter-reset: gm; }
ol.gm-steps li { counter-increment: gm; scroll-margin-top: 16px; }
ol.gm-steps li::before {
  content: counter(gm); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--gm-green-soft); color: var(--gm-green); font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.gm-note { text-align: center; color: var(--gm-muted); font-size: 15px; margin: 20px 0 0; }
.gm-wide { max-width: 760px; margin: 0 auto; }
.gm-wide.gm-card p { font-size: 17px; line-height: 1.7; }

/* FAQ accordion: native <details>, so every answer is in the HTML */
.gm-faq { max-width: 760px; margin: 0 auto; background: var(--gm-card); border: 1px solid var(--gm-line); border-radius: 22px; box-shadow: var(--gm-shadow); padding: 6px 22px; }
.gm-faq details { border-bottom: 1px solid var(--gm-line); }
.gm-faq details:last-child { border-bottom: 0; }
.gm-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; color: var(--gm-ink); font-size: 16px; font-weight: 600;
}
.gm-faq summary::-webkit-details-marker { display: none; }
.gm-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--gm-muted); transition: transform .2s; }
.gm-faq details[open] summary::after { transform: rotate(45deg); color: var(--gm-green); }
.gm-faq summary:focus-visible { outline: 2px solid var(--gm-green-strong); outline-offset: 4px; border-radius: 8px; }
.gm-faq details p { color: var(--gm-muted); font-size: 15.5px; line-height: 1.65; margin: 0; padding: 0 28px 20px 0; }

/* call to action + links */
.gm-get { text-align: center; padding: 40px 24px; border-radius: 28px; }
.gm-get h2 { color: var(--gm-ink); font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.gm-get p { color: var(--gm-muted); font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.gm-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.gm-stores a { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--gm-ink); color: var(--gm-bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.gm-stores a:hover { background: var(--gm-green-strong); color: #fff; }
.gm-stores a.gm-ghost { background: transparent; color: var(--gm-ink); border: 1px solid var(--gm-line); }
.gm-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.gm-more a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gm-line); background: var(--gm-card); color: var(--gm-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.gm-more a:hover { border-color: var(--gm-green-strong); color: var(--gm-green); }
.gm-foot { max-width: 1040px; margin: 64px auto 0; padding: 22px 16px 36px; border-top: 1px solid var(--gm-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--gm-muted); font-size: 14px; }
.gm-foot a { color: var(--gm-ink); text-decoration: none; font-weight: 500; }
.gm-foot a:hover { color: var(--gm-green); }
.gm-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* tutorial page */
.gm-page .gm-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 48px 16px 0; }
.gm-page .gm-hero p { color: var(--gm-muted); font-size: 18px; line-height: 1.65; margin: 0; }

@media (max-width: 900px) {
  .gm-grid, .gm-grid.gm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gm-links a:not(.gm-cta) { display: none; }
  .gm-links a.gm-cta { font-size: 14px; padding: 8px 13px; }
  .gm-brand { font-size: 16px; }
  .gm-nav { gap: 8px; }
  .gm-grid, .gm-grid.gm-two, .gm-grid.gm-four { grid-template-columns: 1fr; }
  .gm-sec { padding-top: 44px; }
  .gm-hero-badge { margin-top: 32px; }
  input.otp { width: 56px; height: 70px; font-size: 34px; margin: 4px; }
  .otpbox { height: 360px; gap: 18px; }
  .gm-faq { padding: 4px 18px; }
  .gm-foot { flex-direction: column; }
}
