* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 14, .52), rgba(2, 4, 8, .92)),
    url('/assets/anymediaplayer/wallpaper.jpg') center / cover no-repeat,
    var(--bg);
  transform: translateZ(0);
}
a { color: var(--accent-glow); }
.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 calc(30px + env(safe-area-inset-bottom));
}
.site-header {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.brand-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 106px;
  padding: 14px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--text);
  background: rgba(0, 0, 0, .80);
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.045);
}
.brand-titlebar {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(68px, 10vw, 104px);
  object-fit: contain;
  object-position: center;
}
.topbar { min-width: 0; }
.nav-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.nav-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 6px var(--control-padding-x);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--text);
  text-decoration: none;
  background: var(--tint-neutral);
  font-size: var(--control-font-size);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-link {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
  white-space: normal;
}
.nav-link:hover, .button:hover { filter: brightness(1.14); }
.nav-link:active, .button:active { transform: translateY(1px); }
.button.primary { border-color: var(--selector-line); background: var(--tint-green); }
.button[aria-disabled="true"] { cursor: default; color: var(--muted); filter: none; }
.glass, .content > section, .legal {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: 0 16px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.045);
}
.hero {
  position: relative;
  padding: clamp(22px, 5vw, 52px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 128, 0, .20), rgba(0, 196, 255, .08) 50%, rgba(255, 0, 150, .08));
}
.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -100px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 212, 106, .20), transparent 68%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 790px; }
.eyebrow { margin: 0 0 8px; color: var(--success); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.lede { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: clamp(14px, 2vw, 17px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.platforms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.platforms span, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--tint-neutral);
  font-size: 11px;
  font-weight: 750;
}
.content { display: grid; gap: 12px; margin-top: 12px; }
.content > section { padding: clamp(16px, 3vw, 26px); }
h2 { margin: 0 0 11px; font-size: clamp(21px, 3vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
h3 { margin: 0 0 7px; font-size: 16px; }
p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
ul, ol { margin: 9px 0; padding-left: 21px; color: var(--muted); font-size: 13px; line-height: 1.52; }
li + li { margin-top: 6px; }
strong { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature, .price-card, .journey-step {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  border: 1px solid var(--selector-line);
  border-radius: 10px;
  color: var(--success);
  background: var(--tint-green);
  font-size: 17px;
}
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--selector-line); background: linear-gradient(150deg, rgba(0,128,0,.22), var(--surface-2)); }
.price { margin: 11px 0 3px; color: var(--text); font-size: 32px; font-weight: 850; letter-spacing: -.035em; }
.price small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.price-card ul { min-height: 86px; }
.price-card .button { width: 100%; margin-top: auto; }
.fine-print { color: var(--muted); font-size: 11px; }
.notice {
  padding: 13px;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0,196,255,.07), rgba(255,255,255,.025));
}
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: journey; }
.journey-step { counter-increment: journey; }
.journey-step::before {
  content: counter(journey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  color: var(--text);
  background: var(--tint-neutral);
  font-weight: 850;
}
.legal { overflow: hidden; }
.legal-header { padding: clamp(22px, 5vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(0,128,0,.15), rgba(0,196,255,.06)); }
.legal-header h1 { font-size: clamp(32px, 6vw, 50px); }
.effective { margin-top: 13px; font-size: 12px; }
.legal-content { padding: clamp(20px, 4vw, 42px); }
.legal-content section + section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-content h2 { font-size: 21px; }
.contact-box { padding: 14px; border: 1px solid var(--accent-line); border-radius: 13px; background: var(--surface-2); }
.contact-box p { margin: 3px 0; }
.breadcrumbs { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--accent-glow); }
.page-intro { max-width: 820px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.resource-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface-2); text-decoration: none; }
.resource-card:hover { border-color: var(--selector-line); filter: brightness(1.08); }
.resource-card p { margin-bottom: 0; }
.tool-panel { display: grid; gap: 12px; }
.tool-label { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; font-weight: 800; }
.tool-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-input, .tool-output, .tool-select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  background: rgba(0,0,0,.34); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tool-input, .tool-output { min-height: 230px; padding: 12px; resize: vertical; }
.tool-select { min-height: 38px; padding: 7px 10px; }
.tool-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.tool-row > label { flex: 1 1 190px; }
.tool-status { min-height: 22px; color: var(--muted); font-size: 12px; }
.tool-status.ok { color: var(--success); }
.tool-status.warn { color: #ffd56a; }
.result-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.result-table th, .result-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.result-table th { color: var(--text); }
.tool-table-wrap { max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.matcher-table { min-width: 860px; }
.matcher-table thead { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.match-select { min-width: 390px; font-family: inherit; }
.matcher-epg-input { min-height: 82px; }
.matcher-preview { min-height: 170px; }
.matcher-actions { align-items: center; }
.tool-check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.tool-check input { width: 18px; height: 18px; accent-color: var(--success); }
.button:disabled { cursor: default; opacity: .55; filter: none; }
.answer { padding: 13px; border-left: 3px solid var(--success); background: var(--surface-2); }
.article-meta { color: var(--muted); font-size: 11px; }
.code-sample { overflow-x: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.38); color: var(--text); font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.privacy-note { padding: 11px 13px; border: 1px solid var(--selector-line); border-radius: 12px; background: var(--tint-green); }
footer { padding: 16px 8px 2px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
footer a { margin: 0 5px; }
@media (max-width: 780px) {
  .grid, .price-grid, .journey, .card-grid { grid-template-columns: 1fr; }
  .price-card ul { min-height: 0; }
}
@media (max-width: 620px) {
  .shell { width: 100%; padding: calc(10px + env(safe-area-inset-top)) 10px calc(20px + env(safe-area-inset-bottom)); }
  .site-header { gap: 8px; }
  .brand-banner { min-height: 90px; padding: 9px 8px; border-radius: 16px; }
  .brand-titlebar { width: 100%; height: 76px; max-width: 560px; }
  .nav-actions { gap: 6px; }
  .nav-link { min-height: 46px; padding: 7px 5px; font-size: 11px; }
  .hero, .content > section, .legal { border-radius: 16px; }
  .button { min-height: var(--control-height-mobile); padding: 7px 11px; border-radius: 11px; }
}
@media (max-width: 390px) {
  .nav-actions { gap: 5px; }
  .nav-link { padding-inline: 3px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link:active, .button:active { transform: none; }
}
