/* -- Model pages ---------------------------------------------------------
   Shared by every /ai-models/<model>/ page. Scoped under .mp-*. Tokens and
   gradients match the AI models hub and the reviews hub.
   Prompt role colours are fixed across all model pages so readers learn
   them once. */
.mp-page {
  --mp-blue: var(--predis-blue, #1A6AFF); --mp-pink: var(--predis-pink, #F41A58);
  --mp-ink: var(--fg-1, #001F3C); --mp-ink-2: var(--fg-2, rgba(0, 31, 60, .75)); --mp-ink-3: rgba(0, 31, 60, .55);
  --mp-line: var(--border-1, rgba(0, 31, 60, .1)); --mp-tint: #F4F7FF;
  --mp-grad: linear-gradient(90deg, #1A6AFF 0%, #F41A58 100%);
  --mp-night: radial-gradient(ellipse 70% 70% at 100% 0%, rgba(244, 26, 88, .3) 0%, transparent 60%), radial-gradient(ellipse 70% 80% at 0% 100%, rgba(43, 117, 255, .4) 0%, transparent 60%), #0B1B3A;
  --role-subject: #1A6AFF; --role-action: #D3134B; --role-camera: #6D28D9; --role-audio: #0F766E; --role-style: #D97706;
}
.mp-page .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.mp-page button { font-family: inherit; }
.mp-page :focus-visible { outline: 2px solid var(--mp-blue); outline-offset: 2px; }

.mp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--mp-blue); margin-bottom: 14px; }
.mp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mp-pink); flex-shrink: 0; }
.mp-sec { padding: clamp(48px, 6vw, 88px) 0; }
.mp-sec--tint { background: linear-gradient(180deg, #fff 0%, var(--mp-tint) 10%, var(--mp-tint) 90%, #fff 100%); }
.mp-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.mp-head h2 { margin: 0; }
.mp-head p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--mp-ink-2); }
.mp-hint { font-size: 13.5px; color: var(--mp-ink-3); }
/* Hover wording for mouse users, tap wording for touch screens. */
.mp-hint-touch { display: none; }
@media (hover: none) { .mp-hint-hover { display: none; } .mp-hint-touch { display: inline; } }
.mp-verify { padding: 0 4px; border-radius: 4px; background: #FFF3C4; color: #7A5200; font-weight: 600; }

/* Buttons */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.mp-btn:hover { border-color: rgba(26, 106, 255, .45); color: var(--mp-blue); }
.mp-btn--primary { border: 0; color: #fff; background: var(--mp-grad); box-shadow: 0 8px 24px rgba(26, 106, 255, .22); }
.mp-btn--primary:hover { color: #fff; }
.mp-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.mp-btn--ghost-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.mp-btn--ghost-dark:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Hero */
.mp-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 4vw, 56px); }
.mp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--mp-ink-3); margin-bottom: 18px; }
.mp-crumbs a { color: inherit; text-decoration: none; }
.mp-crumbs a:hover { color: var(--mp-blue); }
.mp-crumbs [aria-current] { color: var(--mp-ink); font-weight: 600; }
.mp-hero-top { max-width: 820px; margin-bottom: clamp(24px, 3vw, 36px); }
.mp-hero h1 { margin: 0; }
.mp-hero-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--mp-ink-2); }
.mp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Media + prompt card layout (65 / 35). On wide screens the card matches
   the video's height: the row is sized by the video alone (the card body is
   absolutely positioned, so it adds no height), and the prompt fills
   whatever room is left, scrolling if it is longer. Below 1200px there
   isn't room for that, so the card drops under the video. */
.mp-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.mp-split > .mp-caption { margin: -10px 0 0; }
@media (max-width: 1199.98px) { .mp-split > .mp-caption { order: 1; } .mp-split > .mp-pc { order: 2; } }
@media (min-width: 1200px) {
  .mp-split { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); align-items: stretch; row-gap: 0; }
  .mp-split > .mp-caption { grid-column: 1; margin-top: 10px; }
  .mp-pc--fit { position: relative; min-height: 0; }
  .mp-pc--fit .mp-pc-body { position: absolute; inset: 20px; display: flex; flex-direction: column; }
  .mp-pc--fit .mp-pc-text, .mp-pc--fit .mp-pc-text.is-clamped { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-line-clamp: unset; padding-bottom: 16px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); scrollbar-width: thin; }
  .mp-pc--fit .mp-pc-more { display: none; }
  /* Keep the card's fixed parts compact so the prompt gets the room. */
  .mp-pc--fit .mp-pc-head { margin-bottom: 8px; }
  .mp-pc--fit .mp-pc-sub { display: none; }
  .mp-pc--fit .mp-legend { flex-shrink: 0; flex-wrap: nowrap; margin-top: 10px; }
  .mp-pc--fit .mp-legend button { min-height: 28px; padding: 2px 8px; font-size: 12px; }
  .mp-pc--fit .mp-chips { flex-shrink: 0; flex-wrap: nowrap; margin-top: 10px; }
  .mp-pc--fit .mp-chips li { padding: 3px 9px; font-size: 12px; white-space: nowrap; }
  .mp-pc--fit .mp-prov { flex-shrink: 0; margin-top: 10px; }
  .mp-pc--fit .mp-pc-actions { flex-shrink: 0; flex-wrap: nowrap; gap: 6px; margin-top: 12px; }
  .mp-pc--fit .mp-pc-actions .mp-btn { min-height: 38px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .mp-split { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
}

/* Players */
.mp-player { position: relative; border-radius: 20px; overflow: hidden; background: #0B1B3A; }
.mp-player video, .mp-player img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp-ratio-16x9 { aspect-ratio: 16 / 9; }
.mp-ratio-9x16 { aspect-ratio: 9 / 16; }
.mp-ratio-1x1 { aspect-ratio: 1 / 1; }
.mp-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(11, 27, 58, .65); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.mp-badge:hover { color: #fff; background: rgba(11, 27, 58, .85); }
.mp-player-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; padding: 16px; background: linear-gradient(0deg, rgba(11, 27, 58, .7), transparent); }
.mp-player.is-full .mp-player-bar { display: none; }
.mp-caption { margin: 10px 0 0; font-size: 13px; color: var(--mp-ink-3); }

/* Prompt card */
.mp-pc { border-radius: 20px; background: #fff; border: 1px solid var(--mp-line); padding: 20px; box-shadow: 0 2px 10px rgba(23, 27, 40, .04); }
.mp-pc-toggle { display: none; }
.mp-pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mp-pc-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--mp-ink); }
.mp-pc-text { position: relative; margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--mp-ink); white-space: pre-line; }
.mp-pc-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-pc-more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--mp-blue); font-weight: 600; font-size: 13.5px; cursor: pointer; }
/* Prompt roles: plain text by default. Picking a role in the legend gives
   just those phrases a soft marker; the pressed button names the role, so
   colour is never the only signal. */
.r { border-radius: 4px; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .15s ease; }
.mp-pc[data-role="subject"] .r-subject { background: rgba(26, 106, 255, .14); }
.mp-pc[data-role="action"] .r-action { background: rgba(244, 26, 88, .12); }
.mp-pc[data-role="camera"] .r-camera { background: rgba(124, 58, 237, .14); }
.mp-pc[data-role="audio"] .r-audio { background: rgba(15, 118, 110, .14); }
.mp-pc[data-role="style"] .r-style { background: rgba(217, 119, 6, .16); }
.mp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 14px 0 0; }
.mp-legend[hidden] { display: none; }
.mp-legend button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--mp-ink-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mp-legend button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.mp-legend button:hover { border-color: rgba(0, 31, 60, .25); }
.mp-legend button[aria-pressed="true"] { border-color: var(--dot); background: color-mix(in srgb, var(--dot) 10%, #fff); color: var(--mp-ink); }
.mp-legend [data-role-btn="subject"] { --dot: var(--role-subject); }
.mp-legend [data-role-btn="action"] { --dot: var(--role-action); }
.mp-legend [data-role-btn="camera"] { --dot: var(--role-camera); }
.mp-legend [data-role-btn="audio"] { --dot: var(--role-audio); }
.mp-legend [data-role-btn="style"] { --dot: var(--role-style); }
.mp-pc-sub { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink-3); }
.mp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.mp-chips li { padding: 4px 10px; border-radius: 999px; background: var(--mp-tint); font-size: 12.5px; font-weight: 600; color: var(--mp-ink-2); }
.mp-chips li.is-fixed { background: rgba(15, 118, 110, .1); color: var(--role-audio); }
.mp-refs-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.mp-refs-mini li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; font-size: 11.5px; font-weight: 600; color: var(--mp-ink-2); text-align: center; }
.mp-refs-mini img, .mp-refs-mini .mp-wave { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--mp-line); }
.mp-prov { margin: 14px 0 0; font-size: 12.5px; color: var(--mp-ink-3); }
.mp-pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mp-pc-actions .mp-btn { flex: 1 1 auto; }
.mp-copy-msg { margin: 8px 0 0; font-size: 13px; color: var(--role-action); }

/* Facts strip */
.mp-facts { list-style: none; display: grid; grid-template-columns: repeat(var(--facts, 7), minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border: 1px solid var(--mp-line); border-radius: 20px; background: #fff; overflow: hidden; }
.mp-facts li { padding: 16px 18px; border-left: 1px solid var(--mp-line); }
.mp-facts li:first-child { border-left: 0; }
.mp-facts dt, .mp-fact-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-3); }
.mp-fact-label a { display: inline-flex; color: var(--mp-ink-3); }
.mp-fact-label a:hover { color: var(--mp-blue); }
.mp-fact-value { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--mp-ink); }
.mp-facts-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 10px 4px 0; font-size: 13px; color: var(--mp-ink-3); }
.mp-facts-foot a { color: var(--mp-blue); font-weight: 600; text-decoration: none; }
.mp-sources { margin: 10px 4px 0; padding-left: 18px; font-size: 13px; color: var(--mp-ink-2); }
.mp-sources a { color: var(--mp-blue); }

/* Beat timeline */
.mp-beats-layout { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 24px; align-items: start; }
.mp-segbar { display: flex; gap: 3px; margin-top: 12px; }
.mp-seg { position: relative; height: 34px; padding: 0 8px; border: 1px solid var(--mp-line); border-radius: 8px; background: #fff; color: var(--mp-ink-2); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; }
.mp-seg::before { content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: rgba(26, 106, 255, .16); }
.mp-seg span { position: relative; }
.mp-seg[aria-current="true"] { background: rgba(26, 106, 255, .1); color: var(--mp-blue); box-shadow: inset 0 0 0 1.5px var(--mp-blue); }
.mp-beatlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mp-beat { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; color: var(--mp-ink-2); font-size: 15px; line-height: 1.5; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.mp-beat:hover { background: #fff; border-color: var(--mp-line); }
.mp-beat time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--mp-ink-3); }
.mp-beat[aria-current="true"] { background: #fff; border-color: rgba(26, 106, 255, .35); color: var(--mp-ink); box-shadow: 0 8px 22px rgba(0, 31, 60, .07); }
.mp-beat[aria-current="true"] time { color: var(--mp-blue); }
.mp-beat-prompt { display: block; margin-top: 4px; font-size: 13px; color: var(--mp-ink-3); }
.mp-beat[aria-current="true"] .mp-beat-prompt { color: var(--mp-ink-2); }
.mp-footnote { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--mp-line); font-size: 14.5px; line-height: 1.6; color: var(--mp-ink-2); }

/* Compare player */
.mp-compare-prompt { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--mp-tint); font-size: 14.5px; line-height: 1.6; color: var(--mp-ink); }
.mp-compare-prompt strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink-3); }
.mp-ab { display: none; gap: 6px; margin-bottom: 10px; }
.mp-ab button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-weight: 600; color: var(--mp-ink-2); cursor: pointer; }
.mp-ab button[aria-pressed="true"] { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }
.mp-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-compare-side figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--mp-ink); }
.mp-endcard { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(11, 27, 58, .82); color: #fff; font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; text-align: center; padding: 16px; }
.mp-endcard[hidden] { display: none; }
.mp-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.mp-play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mp-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mp-play svg { width: 18px; height: 18px; }
.mp-scrub { flex: 1; accent-color: var(--mp-blue); min-height: 44px; }
.mp-time { flex-shrink: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mp-ink-2); }
.mp-diff { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--mp-line); border-radius: 18px; overflow: hidden; background: #fff; font-size: 15px; }
.mp-diff th, .mp-diff td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--mp-line); }
.mp-diff thead th { border-top: 0; background: var(--mp-tint); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-3); }
.mp-diff tbody th { font-weight: 600; color: var(--mp-ink); width: 30%; }
.mp-diff td { color: var(--mp-ink-2); }
.mp-diff td:last-child { color: var(--mp-ink); font-weight: 600; }
.mp-verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--mp-tint); }
.mp-verdict p { margin: 0; max-width: 760px; font-size: 15.5px; line-height: 1.6; color: var(--mp-ink); }
.mp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--mp-blue); text-decoration: none; white-space: nowrap; }
.mp-link:hover { text-decoration: underline; }

/* Reference board: heading and inputs on the left, the tall 9:16 result on
   the right, so both columns end up about the same height. Each input
   carries a mini timeline of where it is used. */
.mp-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mp-board .mp-head { margin-bottom: 20px; }
.mp-tray { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; margin: 10px 0 0; }
.mp-ref { display: grid; grid-template-columns: auto minmax(0, 170px) minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 12px; width: 100%; min-height: 44px; padding: 12px; border-radius: 16px; border: 1px solid var(--mp-line); background: #fff; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.mp-ref-use { display: flex; flex-direction: column; gap: 6px; }
.mp-mini { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--mp-tint); overflow: hidden; }
.mp-mini i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--mp-grad); }
.mp-ref-when { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--mp-ink-3); }
.mp-ref:hover, .mp-ref[aria-pressed="true"] { border-color: var(--mp-blue); box-shadow: 0 8px 22px rgba(26, 106, 255, .12); }
.mp-ref img, .mp-wave { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.mp-wave { display: flex; align-items: center; justify-content: center; gap: 3px; background: rgba(15, 118, 110, .1); }
.mp-wave i { width: 3px; border-radius: 2px; background: var(--role-audio); }
.mp-ref-role { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-blue); }
.mp-ref-name { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--mp-ink); }
.mp-ref-type { display: block; font-size: 12.5px; color: var(--mp-ink-3); }
.mp-out-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-ink-3); }
.mp-track { position: relative; height: 12px; margin-top: 10px; border-radius: 6px; background: var(--mp-tint); overflow: hidden; }
.mp-track i { position: absolute; top: 0; bottom: 0; background: var(--mp-grad); opacity: 0; transition: opacity .2s ease; }
.mp-track.is-on i { opacity: 1; }
.mp-track-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--mp-ink-3); font-variant-numeric: tabular-nums; }

/* Edit slider */
.mp-edit { max-width: 320px; margin: 0 auto; }
.mp-wipe { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #0B1B3A; touch-action: pan-y; }
.mp-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-wipe-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.mp-wipe-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.mp-wipe-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.mp-wipe-tag { position: absolute; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(11, 27, 58, .65); color: #fff; font-size: 12px; font-weight: 700; }
.mp-wipe-tag--before { left: 12px; }
.mp-wipe-tag--after { right: 12px; }
.mp-wipe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.mp-wipe:focus-within .mp-wipe-line::after { outline: 2px solid var(--mp-blue); outline-offset: 2px; }

/* Gallery */
.mp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mp-filters button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: 14px; font-weight: 600; color: var(--mp-ink-2); cursor: pointer; }
.mp-filters button[aria-pressed="true"] { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }
.mp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mp-gcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--mp-line); scroll-margin-top: 120px; }
.mp-gcard[hidden] { display: none; }
.mp-gcard .mp-player { border-radius: 0; aspect-ratio: 4 / 3; }
/* Every clip is 16:9, so show the whole frame instead of a 4:3 crop. */
.mp-gallery--wide .mp-gcard .mp-player, .mp-gallery--wide .mp-gcard.is-open .mp-player { aspect-ratio: 16 / 9; min-height: 0; }
.mp-gcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.mp-gcard-tag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--mp-tint); font-size: 12px; font-weight: 600; color: var(--mp-ink-2); }
.mp-gcard h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--mp-ink); }
.mp-gcard p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mp-ink-2); }
.mp-gcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.mp-gcard-detail { display: none; }
.mp-gcard.is-open { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.mp-gcard.is-open .mp-player { aspect-ratio: auto; min-height: 100%; }
.mp-gcard.is-open .mp-gcard-summary { display: none; }
.mp-gcard.is-open .mp-gcard-detail { display: block; padding: 20px; }
.mp-gcard.is-open .mp-pc { border: 0; padding: 0; box-shadow: none; }
.mp-gallery-empty { padding: 24px; text-align: center; color: var(--mp-ink-3); }
.mp-tap { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }

/* Limitations */
.mp-limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mp-limit { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--mp-line); }
.mp-limit h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--mp-ink); }
.mp-limit p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mp-ink-2); }
.mp-limit-fix { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--mp-line); color: var(--mp-ink) !important; }
.mp-limit-fix strong { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--role-audio); }
.mp-limit-src { font-size: 12.5px; color: var(--mp-ink-3); }
.mp-limit-src a { color: inherit; }

/* How to */
.mp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; }
.mp-step { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--mp-line); }
.mp-shot { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 16px; border-radius: 12px; background: var(--mp-tint); border: 1px dashed rgba(0, 31, 60, .2); font-size: 13px; font-weight: 600; color: var(--mp-ink-3); }
.mp-shot--img { overflow: hidden; border-style: solid; border-color: var(--mp-line); }
.mp-shot--img img { width: 100%; height: 100%; object-fit: cover; }
.mp-step-num { font-size: 26px; font-weight: 800; line-height: 1; background: var(--mp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mp-step h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 700; }
.mp-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mp-ink-2); }
.mp-template { margin-top: 24px; border-radius: 20px; overflow: hidden; background: #0B1B3A; color: #fff; }
.mp-template-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mp-template-head p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.mp-template pre { margin: 0; padding: 20px; font-size: 14px; line-height: 1.7; color: #DCE6FF; white-space: pre-wrap; }

/* Pricing */
.mp-price { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mp-price .mp-diff { margin-top: 0; }
.mp-price-side { padding: 24px; border-radius: 20px; color: #fff; background: var(--mp-night); }
.mp-price-side p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.mp-price-side .mp-verify { background: rgba(255, 243, 196, .9); }


/* Related + CTA */
.mp-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mp-rel { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--mp-line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.mp-rel:hover { border-color: rgba(26, 106, 255, .4); transform: translateY(-2px); }
.mp-rel strong { font-size: 17px; color: var(--mp-ink); }
.mp-rel span { font-size: 14px; line-height: 1.5; color: var(--mp-ink-2); }
.mp-hub-link { display: inline-flex; margin-top: 18px; }
.mp-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 3.5vw, 48px); border-radius: 26px; color: #fff; background: var(--mp-night); }
.mp-cta h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; }
.mp-cta p { margin: 10px 0 0; font-size: 16px; color: rgba(255, 255, 255, .75); }
.mp-cta .mp-btn { flex-shrink: 0; background: #fff; color: var(--mp-ink); border: 0; }
.mp-cta .mp-btn:hover { color: var(--mp-blue); }
.mp-sticky { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1030; display: none; }
.mp-sticky .mp-btn { width: 100%; }

/* Responsive */
@media (max-width: 1199.98px) {
  .mp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-facts li:nth-child(4n+1) { border-left: 0; }
  .mp-facts li:nth-child(n+5) { border-top: 1px solid var(--mp-line); }
  .mp-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .mp-beats-layout, .mp-price { grid-template-columns: minmax(0, 1fr); }
  .mp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-gcard.is-open { grid-template-columns: minmax(0, 1fr); }
  .mp-gcard.is-open .mp-player { aspect-ratio: 4 / 3; min-height: 0; }
  .mp-board { grid-template-columns: minmax(0, 1fr); }
  .mp-ref { grid-template-columns: auto minmax(0, 1fr); }
  .mp-ref-use { grid-column: 1 / -1; }
  .mp-board-out { max-width: 320px; width: 100%; justify-self: center; }
  .mp-steps { grid-template-columns: minmax(0, 1fr); }
  .mp-cta { flex-direction: column; align-items: flex-start; }
  /* Prompt card collapses to a "View the prompt" bar under the video. */
  .mp-pc--collapsible { padding: 0; }
  .mp-pc--collapsible .mp-pc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
  .mp-pc-toggle strong { display: block; font-size: 14px; color: var(--mp-ink); }
  .mp-pc-toggle span span { display: block; max-width: 70vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--mp-ink-3); }
  .mp-pc-toggle::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-right: 2px solid var(--mp-ink-3); border-bottom: 2px solid var(--mp-ink-3); transform: rotate(45deg); transition: transform .2s ease; }
  .mp-pc--collapsible.is-open .mp-pc-toggle::after { transform: rotate(-135deg); }
  .mp-pc--collapsible .mp-pc-body { display: none; padding: 0 16px 16px; }
  .mp-pc--collapsible.is-open .mp-pc-body { display: block; }
  .mp-sticky.is-on { display: block; }
  .mp-page { padding-bottom: 72px; }
}
@media (max-width: 767.98px) {
  /* Compare becomes an A/B toggle on one player. */
  .mp-ab { display: flex; }
  .mp-compare-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-compare-grid[data-show="left"] .mp-compare-side--right, .mp-compare-grid[data-show="right"] .mp-compare-side--left { display: none; }
  /* Reference tray scrolls sideways. */
  .mp-tray { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .mp-tray li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  .mp-hero-sub { font-size: 16px; }
  .mp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-facts li { border-left: 0 !important; border-top: 1px solid var(--mp-line); }
  .mp-facts li:nth-child(-n+2) { border-top: 0; }
  .mp-facts li:nth-child(2n) { border-left: 1px solid var(--mp-line) !important; }
  .mp-gallery, .mp-limits, .mp-related { grid-template-columns: minmax(0, 1fr); }
  .mp-diff th, .mp-diff td { padding: 12px; font-size: 14px; }
  .mp-hero-actions .mp-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-page *, .mp-page *::before, .mp-page *::after { transition: none !important; }
  .mp-rel:hover { transform: none; }
}
