/* ═══════════════════════════════════════════════════════════════
   4ssets — publisher storefront (4ssets.xyz)
   Self-contained stylesheet. Accent = "apple red".
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-top: #0a1628; --bg-mid: #071020; --bg-bottom: #030810;
    --accent: #E12D2D; --accent-dark: #A61B1B; --accent-light: #FF6B5E;
    --accent-glow: rgba(225, 45, 45, 0.25); --accent-glow-strong: rgba(225, 45, 45, 0.50);
    --glass-bg: rgba(255,255,255,0.04); --glass-bg-hover: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.08); --glass-border-hover: rgba(255,255,255,0.16);
    --text-primary: #f0f4ff; --text-secondary: #bec9e0; --text-muted: #6f81a3;
    --success: #22c55e; --danger: #ef4444;
    --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 40px; --space-xl: 64px;
    --max-width: 1120px; --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;
    --transition-fast: 0.2s ease; --transition-base: 0.3s ease;
    --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-cta: 'Russo One', 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font-body); color: var(--text-primary);
    background: linear-gradient(to bottom, #0a1220 0%, #070d18 55%, #04070d 100%);
    background-attachment: fixed; min-height: 100vh; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 30%, var(--accent-light) 50%, var(--accent) 70%, var(--accent-dark) 100%);
    background-size: 220% 100%; background-position: 0% 50%; color: #fff;
    font-family: var(--font-cta); font-size: 0.92rem; font-weight: 400; letter-spacing: 0.03em;
    border: none; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
    box-shadow: 0 5px 16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 4px rgba(90,0,0,0.35);
    transition: background-position var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 10px 34px var(--accent-glow-strong), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 4px rgba(90,0,0,0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    background: rgba(255,255,255,0.03); color: var(--text-primary); font-size: 0.95rem; font-weight: 500;
    border: 2px solid var(--glass-border-hover); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-secondary:hover { color: #fff; background: rgba(225,45,45,0.10); border-color: var(--accent-dark); box-shadow: 0 8px 26px rgba(225,45,45,0.18); }
.btn-secondary:active { transform: scale(0.97); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 64px; background: linear-gradient(90deg, rgba(12,18,28,0.90) 0%, rgba(24,30,42,0.80) 100%); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header__inner { max-width: var(--max-width); margin: 0 auto; height: 100%; padding: 0 var(--space-md); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); font-family: var(--font-cta); font-size: 1.15rem; color: #fff; }
.brand__logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-cta); font-size: 1.25rem; letter-spacing: 0.01em; }
.brand__name b { color: var(--accent); font-weight: inherit; }
.brand__sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__link { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; transition: color var(--transition-fast); }
.header__link:hover { color: var(--accent); }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); padding: 4px; line-height: 1; }
.hamburger svg { width: 26px; height: 26px; display: block; }

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
main { padding-top: 64px; }
.back-link { display: inline-block; margin: 24px 0 4px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition-fast); }
.back-link:hover { color: var(--accent); }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent); }
.section { margin-top: 56px; margin-bottom: 56px; }
.section__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.section__intro { color: var(--text-secondary); max-width: 720px; margin: 0 0 26px; }

/* Publisher hero */
.pub-hero { padding-top: 72px; padding-bottom: 64px; }
/* Hero band (shared: home banner + asset card) */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(0.42) saturate(1.1); transform: scale(1.15); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,7,13,0.60) 0%, rgba(4,7,13,0.82) 100%); }
.hero__inner { position: relative; z-index: 2; }
.pub-hero__eyebrow { margin-bottom: 12px; }
.pub-hero__title { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 14px; }
.pub-hero__title .brand__name { font-size: inherit; }
.pub-hero__lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 0 26px; }
.pub-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pub-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; }
.pub-stat__num { font-family: var(--font-cta); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.pub-stat__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* Catalog grid */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; color: inherit; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-dark); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-glow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1220; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225,45,45,0.18), rgba(225,45,45,0.02)); color: rgba(255,255,255,0.55); font-family: var(--font-cta); font-size: 1.1rem; text-align: center; padding: 16px; }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); }
.card__badge--soon { background: rgba(255,255,255,0.14); color: var(--text-secondary); box-shadow: none; }
.card__body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 5px; }
.card__tagline { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 14px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--font-cta); color: var(--accent); font-size: 1rem; }
.card__price--free { color: var(--success); }

/* Asset notice. Driven by items/<slug>.json → notice. */
.notice {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
    margin: 14px 0 22px; padding: 14px 16px;
    border-radius: var(--radius-md); border: 1px solid transparent;
}
.notice__icon { flex: none; align-self: flex-start; font-size: 1.25rem; line-height: 1.3; }
.notice__text { flex: 1 1 240px; margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-secondary); }
.notice__action {
    flex: none; display: inline-flex; align-items: center; padding: 8px 14px;
    border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.notice--update {
    background: linear-gradient(180deg, rgba(70, 150, 230, 0.16), rgba(70, 150, 230, 0.05));
    border-color: rgba(140, 196, 255, 0.32);
}
.notice--update .notice__action { color: #d7ebff; border: 1px solid rgba(140, 196, 255, 0.4); background: rgba(70, 150, 230, 0.16); }
.notice--update .notice__action:hover { background: rgba(70, 150, 230, 0.32); color: #fff; }
.notice--promo {
    background: linear-gradient(180deg, rgba(225, 45, 45, 0.2), rgba(225, 45, 45, 0.05));
    border-color: rgba(225, 45, 45, 0.42);
}
.notice--promo .notice__action { color: #fff; border: 1px solid rgba(255, 140, 130, 0.45); background: rgba(225, 45, 45, 0.28); }
.notice--promo .notice__action:hover { background: var(--accent); }
.notice--warning {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.18), rgba(234, 179, 8, 0.05));
    border-color: rgba(250, 204, 21, 0.4);
}
.notice--warning .notice__action { color: #fde68a; border: 1px solid rgba(250, 204, 21, 0.45); background: rgba(234, 179, 8, 0.16); }
.notice--warning .notice__action:hover { background: rgba(234, 179, 8, 0.34); color: #fff; }
.notice--card {
    margin: 0; border-width: 1px 0 0; border-radius: 0; padding: 12px 14px; gap: 8px;
}
.notice--card .notice__icon { font-size: 1.05rem; }
.notice--card .notice__text { flex: 1 1 160px; font-size: 0.8rem; line-height: 1.45; }
.notice--card .notice__action { padding: 6px 10px; font-size: 0.78rem; }
.pipes { display: flex; gap: 5px; }
.pipe { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--glass-border); }

/* Support */
.support { background: linear-gradient(135deg, rgba(225,45,45,0.10), rgba(225,45,45,0.02)); border: 1px solid rgba(225,45,45,0.25); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.support h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.support p { color: var(--text-secondary); margin: 0 0 18px; }
.support__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.support__item { display: flex; gap: 12px; align-items: flex-start; }
.support__item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.support__item b { display: block; color: #fff; font-size: 0.95rem; }
.support__item span { font-size: 0.86rem; color: var(--text-muted); }
.support__item a { color: var(--accent); text-decoration: none; }
.support__item a:hover { text-decoration: underline; }

/* Asset page */
.asset-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); margin-top: 8px; padding: 26px; }
.asset-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
/* Grid and flex children are min-width:auto by default, which means a track can
   grow past its share to fit its contents. The thumbnail strip is a nowrap flex
   row of fifteen items, so without this the column expands to ~1500px and takes
   the whole hero — and the page — wide with it. */
.asset-hero__grid > * { min-width: 0; }
.gallery, .gallery__thumbs { min-width: 0; max-width: 100%; }
.gallery__main { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #0a1220; border: 1px solid var(--glass-border); padding: 0; cursor: pointer; }
.gallery__zoom { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(4,7,13,0.6); color: #fff; font-size: 1rem; backdrop-filter: blur(4px); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; cursor: pointer; border: none; box-shadow: 0 6px 20px var(--accent-glow-strong); transition: transform var(--transition-fast); }
.gallery__play::after { content:''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.gallery__play:hover { transform: translate(-50%,-50%) scale(1.08); }
.gallery__play[hidden] { display: none; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb { position: relative; width: 92px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #0a1220; padding: 0; }
.gallery__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.7rem; background: rgba(4,7,13,0.35); pointer-events: none; }
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225,45,45,0.18), rgba(225,45,45,0.02)); color: rgba(255,255,255,0.5); font-family: var(--font-cta); font-size: 1.3rem; }
.buy { position: relative; }
.buy__badge { margin-bottom: 10px; }
.buy__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; margin: 0 0 8px; }
.buy__tagline { color: var(--text-secondary); margin: 0 0 18px; }
.buy__price { font-family: var(--font-cta); font-size: 2rem; color: var(--accent); margin: 0 0 16px; }
.buy__price--free { color: var(--success); }
.buy__cta { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; width: 100%; margin-bottom: 10px; }
.buy__demo { border-color: var(--accent-dark); }
.buy__demo svg { flex-shrink: 0; }
.buy__meta { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--glass-border); padding-top: 18px; }
.buy__meta li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.buy__meta span { color: var(--text-muted); }
.buy__meta b { color: var(--text-primary); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.buy__meta span { min-width: 0; }
.pipeline-support { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; }
.pipeline { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); font-size: 0.9rem; font-weight: 600; }
.pipeline--yes { border-color: rgba(34,197,94,0.35); }
.pipeline--no { opacity: 0.5; }
.pipeline__dot { width: 9px; height: 9px; border-radius: 50%; }
.pipeline--yes .pipeline__dot { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.pipeline--no .pipeline__dot { background: var(--text-muted); }
.prose p { color: var(--text-secondary); line-height: 1.8; margin: 0 0 14px; }
.feat-list, .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat-list li { position: relative; padding-left: 30px; color: var(--text-secondary); line-height: 1.6; }
.feat-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-glow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF6B5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.plain-list li { padding-left: 20px; position: relative; color: var(--text-secondary); }
.plain-list li::before { content: '•'; position: absolute; left: 4px; color: var(--accent); }
.tech-table { width: 100%; border-collapse: collapse; }
.tech-table td { padding: 11px 4px; border-bottom: 1px solid var(--glass-border); font-size: 0.92rem; }
.tech-table td:first-child { color: var(--text-muted); width: 45%; }
.tech-table td:last-child { color: var(--text-primary); font-weight: 500; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); }
.acc { border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; background: var(--glass-bg); }
.acc details { border-bottom: 1px solid var(--glass-border); }
.acc details:last-child { border-bottom: none; }
.acc summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform var(--transition-fast); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 20px 18px; color: var(--text-secondary); line-height: 1.7; }
.acc__body ul { margin: 0; padding-left: 18px; }
.acc__meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-left: auto; margin-right: 8px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Outline styles grid + packages */
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.style {
    display: flex; align-items: center; gap: 14px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 13px 16px;
}
/* Fixed square that never shrinks: the descriptions differ in length, and a
   thumbnail that changed size row to row would make the list look uneven when
   the whole point of it is to compare ten looks at a glance. */
.style__thumb {
    flex: 0 0 auto; width: 80px; height: 80px;
    border-radius: 10px; object-fit: cover; display: block;
    background: #0a1220; border: 1px solid var(--glass-border);
}
/* Takes the rest of the row, and min-width:0 so a long description wraps
   instead of pushing the card wider than its grid column. */
.style__text { flex: 1 1 auto; min-width: 0; }
.style b { display: block; color: var(--text-primary); margin-bottom: 2px; }
.style span { font-size: 0.86rem; color: var(--text-muted); }
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pkg { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 22px; }
.pkg__name { font-size: 1.1rem; font-weight: 800; margin: 0 0 12px; }
.pkg__cta { display: inline-flex; margin-top: 14px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(4,7,13,0.6); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 44px var(--space-md) 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__tagline { color: var(--text-muted); font-size: 0.9rem; margin: 14px 0 16px; max-width: 300px; }
.footer__heading { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 14px; }
.footer__link { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; margin-bottom: 9px; transition: color var(--transition-fast); }
.footer__link:hover { color: var(--accent); }
.footer__bottom { max-width: var(--max-width); margin: 0 auto; padding: 16px var(--space-md); border-top: 1px solid rgba(255,255,255,0.05); }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); transition: all var(--transition-fast); }
.social-link:hover { border-color: var(--accent-dark); color: var(--accent); }

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(3,6,12,0.85); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__shell { position: relative; width: min(960px, 100%); }
.modal__close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 8px; border: none; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal__body { border-radius: var(--radius-md); overflow: hidden; background: #000; }
.modal__body iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.modal__body img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; background: #0a1220; }
/* Locally hosted clip: same frame as the YouTube iframe, but height-capped so a
   tall window never pushes the close button off screen. */
.modal__body video { display: block; width: 100%; height: auto; max-height: 84vh; aspect-ratio: 16/9; background: #000; }

/* Buy button before the Store listing exists.
   Same shape as the real button so the sidebar keeps its rhythm, but visibly
   inert: muted, no pointer, no hover. A greyed-out control that still looks
   clickable is the thing people report as broken. */
.buy__cta--soon {
    background: rgba(255,255,255,0.07);
    color: var(--muted, #8b93a7);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}
.buy__soon-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted, #8b93a7);
}

/* Cookie consent */
.uc-cookie { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3,6,12,0.4); backdrop-filter: blur(4px); }
.uc-cookie[hidden] { display: none !important; }
.uc-cookie__box { width: 100%; max-width: 440px; background: rgba(16,22,30,0.98); border: 1px solid var(--glass-border); border-radius: 18px; padding: 32px 28px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.uc-cookie__icon { width: 50px; height: 50px; margin: 0 auto 16px; display: block; color: var(--accent); }
.uc-cookie__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; }
.uc-cookie__text { margin: 0 0 24px; font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); }
.uc-cookie__text a { color: var(--accent); }
.uc-cookie__actions { display: flex; gap: 12px; justify-content: center; }
.uc-cookie__btn { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; padding: 12px 26px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: all var(--transition-fast); }
.uc-cookie__btn--ghost { background: transparent; border-color: rgba(255,255,255,0.16); color: var(--text-secondary); }
.uc-cookie__btn--ghost:hover { border-color: rgba(255,255,255,0.32); color: var(--text-primary); }
.uc-cookie__btn--accept { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.uc-cookie__btn--accept:hover { background: var(--accent-light); }
body.uc-cookie-open { overflow: hidden; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0 4px; font-size: 0.85rem; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { opacity: 0.5; }
.crumbs__current { color: var(--text-secondary); }

/* Asset body layout */
.asset-body { display: grid; grid-template-columns: 1fr; gap: 44px; margin-top: 56px; }

/* Responsive */
@media (max-width: 900px) {
    .catalog, .related { grid-template-columns: repeat(2, 1fr); }
    .asset-hero__grid { grid-template-columns: 1fr; }
    .asset-hero { padding: 18px; }
    .buy { position: static; }
    /* Fifteen thumbnails wrap into five rows on a phone and push the price and
       the buy button below the fold. One scrollable row keeps the gallery a
       single gesture deep and the decision visible. */
    .gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .gallery__thumb { flex: 0 0 auto; scroll-snap-align: start; }
    .support { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .pkg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .hamburger { display: block; }
    .header__nav {
        position: fixed; top: 64px; left: 0; right: 0; z-index: 999;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(12,18,28,0.98); backdrop-filter: blur(20px);
        padding: 4px 16px 14px; border-bottom: 1px solid var(--glass-border);
        transform: translateY(-145%); visibility: hidden; pointer-events: none;
        transition: transform 0.35s ease, visibility 0s linear 0.35s;
        max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .header__nav.nav--open {
        transform: translateY(0); visibility: visible; pointer-events: auto;
        transition: transform 0.35s ease, visibility 0s;
    }
    .header__nav .header__link { font-size: 1.05rem; padding: 15px 2px; border-bottom: 1px solid var(--glass-border); }
    .header__nav .header__link:last-child { border-bottom: none; }
    .catalog, .related { grid-template-columns: 1fr; }
    /* On a phone the hero is the whole screen anyway. A 24px page gutter plus an
       18px card padding plus a border leaves the gallery about 300px wide on a
       360px device — the card frame costs more than it gives, so it goes edge to
       edge and keeps only its vertical rhythm. */
    .asset-hero {
        margin-left: calc(var(--space-md) * -1);
        margin-right: calc(var(--space-md) * -1);
        padding: 16px var(--space-md) 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .asset-hero__grid { gap: 22px; }
    .gallery__thumb { width: 74px; }
    .buy__price { font-size: 1.7rem; }
    .buy__title { margin-bottom: 6px; }
    .crumbs { margin-top: 16px; }
    .pub-stats { gap: 22px; }
    .footer__inner { grid-template-columns: 1fr; gap: 26px; }
    .support { padding: 26px; }
    .styles { grid-template-columns: 1fr; }
    .style { gap: 12px; padding: 12px 14px; }
    .style__thumb { width: 64px; height: 64px; }
    .uc-cookie__actions { flex-direction: column-reverse; }
    .uc-cookie__btn { width: 100%; }
}
