/* /models explorer (owner 19.11, TUR-44): search + type chips + sort, compact picture cards with one green Try,
   quick look drawer (desktop: right side panel, phone: bottom sheet with the list still visible above it).
   Page tokens only (light / dark follow the theme); rd-v6: soft shadow, no outlines, no gradients, no hover lift. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* compact hero: the search box must be on the first screen, also at 390 px */
html .seo-page > .seo-hero.mx-hero { padding: 0 0 4px; margin: 8px 0 0; }
html .seo-page > section.mx { margin-top: 20px !important; }
html .seo-hero.mx-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 0 auto 10px; }
html .seo-hero.mx-hero .lead { font-size: 16px; margin-bottom: 0; }
.mx-offers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; }
.mx-offers li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-h, #15803d); }
.mx-offers li::before { content: ""; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
html[data-theme="dark"] .mx-offers li, html[data-theme="dark"] .mx-hook { color: #86efac; }

/* toolbar */
.mx-bar { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: var(--panel); box-shadow: var(--rd-card-sh, 0 10px 30px -12px rgba(15,17,21,.14)); }
.mx-search input { width: 100%; height: 50px; padding: 0 18px 0 46px; border-radius: 999px; border: 0; font: inherit; font-size: 16px; color: var(--text);
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4.5 4.5'/%3E%3C/svg%3E") no-repeat 16px 50%; }
.mx-search input::placeholder { color: var(--muted); }
.mx-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mx-fs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.mx-fs::-webkit-scrollbar { display: none; }
.mx-f { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 15px; color: var(--text); background: var(--panel-2); }
.mx-f span { font-size: 12px; font-weight: 700; color: var(--muted); }
.mx-f:hover { background: var(--line-strong); }
.mx-f[aria-pressed="true"] { background: var(--text); color: var(--panel); }
.mx-f[aria-pressed="true"]:hover { background: var(--text); }
.mx-f[aria-pressed="true"] span { color: inherit; opacity: .85; }
.mx-f:focus-visible, .mx-t input:focus-visible, .mx-sort select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mx-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* sound / free toggles: pill with a small switch, green when on */
.mx-t { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; cursor: pointer; user-select: none;
  font-size: 15px; font-weight: 800; color: var(--text); background: var(--panel-2); transition: background-color .15s, color .15s; }
.mx-t:hover { background: var(--line-strong); }
.mx-t input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 38px; height: 24px; margin: 0; border-radius: 999px; cursor: pointer;
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background-color .18s, box-shadow .18s; }
.mx-t input::before { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: transform .18s, background-color .18s; }
.mx-t input:checked { background: var(--rd-green, #16a34a); box-shadow: none; }
.mx-t input:checked::before { transform: translateX(14px); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.mx-t:has(input:checked) { background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-ink, #166534); }
.mx-t:has(input:checked):hover { background: var(--rd-green-soft, #dcfce7); }
@media (prefers-reduced-motion: reduce) { .mx-t, .mx-t input, .mx-t input::before { transition: none; } }
.mx-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mx-sort select { height: 36px; padding: 0 12px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; color: var(--text); background: var(--panel-2); }
.mx-count { margin: 14px 2px 12px; font-size: 14px; color: var(--muted); }

/* cards */
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mx-card { display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--panel); color: var(--text);
  box-shadow: var(--rd-card-sh, 0 10px 30px -12px rgba(15,17,21,.14)); transition: box-shadow .15s; }
.mx-card[hidden] { display: none; }
.mx-card:hover, .mx-card:focus-within { box-shadow: var(--rd-card-sh-h, 0 18px 40px -14px rgba(15,17,21,.22)); }
.mx-pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--panel-2); overflow: hidden; }
.mx-pic img, .mx-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-pic video { opacity: 0; transition: opacity .2s; }
.mx-pic.on video { opacity: 1; }
.mx-pic .mh-ph { height: 100%; }
.mx-play { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(15,17,21,.6); }
.mx-play::after { content: ""; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.mx-pic.on .mx-play { opacity: 0; }
.mx-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; min-width: 0; }
.mx-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.mx-name { color: var(--text); text-decoration: none; }
.mx-name:hover { color: var(--accent-fg); }
.mx-name:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-chips:empty { display: none; }
.mx-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--panel-2); color: var(--text); }
.mx-chip.snd { background: var(--accent-soft); color: var(--accent-ink); }
.mx-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-hook { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border-radius: 12px; font-size: 13px; font-weight: 800;
  background: var(--rd-green-tint, #ecfdf3); color: var(--rd-green-h, #15803d); }
.mx-hook i { font-style: normal; }
/* gift clips per pack (TUR-44): each pack name opens /pricing#pack-<name>; not a quick-look trigger (no data-q) */
.mx-hook span { min-width: 0; }
.mx-hook a.mx-pk { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.mx-hook a.mx-pk:hover { text-decoration-thickness: 2.5px; }
.mx-hook a.mx-pk:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.mx-hook.big { font-size: 15px; padding: 10px 14px; }
.mx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.mx-price { margin: 0; display: grid; font-size: 14px; line-height: 1.3; min-width: 0; }
.mx-price b { font-size: 18px; }
.mx-price small { color: var(--muted); font-size: 12px; }
.btn.mx-try { flex: none; min-width: 88px; height: 42px; padding: 0 20px; justify-content: center; font-size: 15px; }
.mx-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.mx-rank { margin: 22px 2px 0; font-size: 14px; color: var(--muted); }
.mx-rank a { color: var(--accent-fg); font-weight: 700; }

/* quick look */
html.mx-lock { overflow: hidden; }
.mx-dlg { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--panel); color: var(--text); box-shadow: -20px 0 60px -20px rgba(15,17,21,.35); overflow-y: auto; overscroll-behavior: contain; }
.mx-dlg::backdrop { background: rgba(15,17,21,.45); }
.mx-dlg[open] { animation: mx-in .2s ease-out; }
@keyframes mx-in { from { transform: translateX(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .mx-dlg[open] { animation: none; } .mx-pic video { transition: none; } }
.mx-x { position: sticky; top: 12px; float: right; z-index: 2; width: 44px; height: 44px; margin: 12px 12px -56px 0; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--text); background: var(--panel); box-shadow: 0 2px 10px rgba(15,17,21,.18); }
.mx-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mx-gal { display: grid; gap: 4px; background: var(--panel-2); }
.mx-gal > * { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.mx-gal.n2, .mx-gal.n3 { grid-template-columns: 1fr 1fr; }
.mx-gal.n3 > :first-child { grid-column: 1 / -1; }
.mx-gal.n2 > *, .mx-gal.n3 > :not(:first-child) { aspect-ratio: 16 / 7; }
.mx-d-body { display: grid; gap: 14px; padding: 20px 24px 28px; }
.mx-eyebrow { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mx-d h2 { margin: -8px 0 0; font-size: 30px; line-height: 1.15; }
.mx-d h2:focus { outline: none; }
.mx-lead { margin: 0; font-size: 16px; line-height: 1.5; }
.mx-dprice { margin: 0; font-size: 16px; }
.mx-dprice b { font-size: 22px; }
.mx-dprice small { color: var(--muted); font-size: 14px; }
.mx-d-cta { position: sticky; bottom: 0; z-index: 1; margin: 0 -24px; padding: 12px 24px 14px; background: var(--panel); box-shadow: 0 -10px 20px -14px rgba(15,17,21,.25); }
.btn.mx-try-big { display: flex; width: 100%; justify-content: center; }
.mx-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.mx-d-body > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.mx-cmp { padding: 16px; border-radius: 18px; background: var(--bg-soft, var(--panel-2)); }
.mx-cmp h3, .mx-tips h3 { margin: 0 0 6px; font-size: 16px; }
.mx-cmp p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.mx-cmp table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mx-cmp th, .mx-cmp td { padding: 8px 6px; text-align: left; border-top: 1px solid var(--line); font-weight: 600; }
.mx-cmp td { font-variant-numeric: tabular-nums; }
.mx-cmp tr:first-child th, .mx-cmp tr:first-child td { border-top: 0; }
.mx-cmp tr.us th, .mx-cmp tr.us td { color: var(--rd-green-h, #15803d); font-weight: 900; }
html[data-theme="dark"] .mx-cmp tr.us th, html[data-theme="dark"] .mx-cmp tr.us td { color: #86efac; }
.mx-save { text-align: right !important; color: var(--muted); font-size: 13px; }
.mx-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-tips > div { padding: 14px; border-radius: 16px; background: var(--panel-2); }
.mx-tips p { margin: 0; font-size: 14px; line-height: 1.45; }
.mx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.mx-facts dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mx-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mx-more { margin: 0; }
.mx-more a { color: var(--accent-fg); font-weight: 800; }

/* phones: horizontal cards (more models per screen), quick look as a bottom sheet */
@media (max-width: 600px) {
  html .seo-hero.mx-hero .lead { display: none; }
  .mx-offers { gap: 6px; margin-top: 10px; }
  .mx-offers li { padding: 5px 10px; font-size: 12px; }
  .mx-bar { padding: 12px; border-radius: 20px; }
  .mx-sort { margin-left: 0; }
  .mx-grid { grid-template-columns: 1fr; gap: 10px; }
  .mx-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-radius: 18px; }
  .mx-pic { aspect-ratio: auto; min-height: 100%; }
  .mx-play { width: 24px; height: 24px; left: 8px; bottom: 8px; }
  .mx-play::after { left: 9px; top: 6px; border-width: 6px 0 6px 8px; }
  .mx-body { padding: 12px 12px 12px 14px; gap: 6px; }
  .mx-body h3 { font-size: 16px; }
  .mx-card .mx-chips .mx-chip:nth-child(n+2) { display: none; }
  .mx-desc { font-size: 13px; }
  .mx-hook { font-size: 12px; padding: 4px 8px; }
  .mx-price b { font-size: 16px; }
  .btn.mx-try { min-width: 0; height: 40px; padding: 0 16px; }
  .mx-price small { display: none; }
  .mx-foot { gap: 8px; }
  .mx-dlg { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92vh; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px -20px rgba(15,17,21,.35); }
  @keyframes mx-in { from { transform: translateY(40px); opacity: .4; } }
  .mx-d-body { padding: 16px 16px 20px; }
  .mx-d-cta { margin: 0 -16px; padding: 10px 16px 12px; }
  .mx-d h2 { font-size: 24px; }
  .mx-tips, .mx-facts { grid-template-columns: 1fr; }
}
