:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #20212a;
  background: #f8f9fc;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, video:focus-visible, section:focus-visible { outline: 3px solid #8b6cef; outline-offset: 5px; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.shell { width: min(1568px, calc(100% - 64px)); margin: 0 auto; }
.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; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 16px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 12px; }
.topbar { background: #fff; border-bottom: 1px solid #eaecf2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.9px; }
.brand-mark { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 34px; height: 34px; padding-bottom: 9px; border-radius: 11px; background: #20202b; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; right: -6px; top: -6px; width: 21px; height: 21px; border-radius: 50%; background: #ff8555; }
.brand-mark i { display: block; width: 4px; height: 8px; background: white; border-radius: 3px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }
.brand-divider { height: 20px; width: 1px; background: #e2e4eb; margin: 0 7px 0 14px; }
.brand-section { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #747885; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; text-decoration: none; color: #626674; padding: 10px 0 10px 12px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: #6340c5; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 20px; }
.heading-line { display: flex; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: clamp(27px, 2.2vw, 34px); font-weight: 750; line-height: 1.15; letter-spacing: -1.2px; }
.collection-count { display: grid; place-items: center; min-width: 31px; height: 27px; padding: 0 7px; border: 1px solid #e3deef; background: #eee9f8; border-radius: 8px; font-size: 12px; font-weight: 700; color: #795aba; }
.page-header p { margin: 10px 0 0; color: #757987; font-size: 13px; line-height: 1.5; }
.page-header .gallery-note { margin-top: 5px; font-size: 12px; color: #8a8d98; }
.format-label { display: flex; align-items: center; gap: 7px; color: #7a7e8b; font-size: 12px; }
.format-label svg { width: 17px; height: 17px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #797d89; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-button:hover { color: #272330; background: #eeedf4; }
.filter-button[aria-pressed="true"] { background: #fff; color: #563794; border-color: #e5deef; box-shadow: 0 2px 5px #23104606; }
.filter-button span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; border-radius: 5px; font-size: 10px; background: #f0ebf7; color: #7a5aaf; }
.sound-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid #e6e8ef; border-radius: 9px; background: #fff; color: #676a78; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sound-toggle svg { width: 15px; height: 15px; }
.sound-toggle:hover { border-color: #c4b8df; color: #6340c5; }
.sound-off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-off { display: block; }
.sound-toggle[aria-pressed="true"] .sound-waves { display: none; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.template-card { min-width: 0; }
.preview-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; isolation: isolate; background: #e8e9ee; box-shadow: 0 0 0 1px #20212a0a, 0 4px 12px #20212a06; transition: box-shadow .18s ease; }
.preview-frame::after { content: ""; pointer-events: none; position: absolute; inset: 0; border: 1px solid #20212a0c; border-radius: inherit; }
.template-card:hover .preview-frame { box-shadow: 0 0 0 1px #b8a8d055, 0 10px 28px #33245512; }
.template-card.is-playing .preview-frame { box-shadow: 0 0 0 2px #9576d7, 0 8px 24px #6b42ae18; }
video { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: transparent; }
.preview-placeholder { position: absolute; inset: 0; display: grid; align-content: start; padding: 24% 12% 0; text-align: center; color: #76698e; background: radial-gradient(ellipse at 75% 75%, #d6c7e5, transparent 60%), linear-gradient(135deg, #f4eff9, #e7e9f4); pointer-events: none; }
.preview-placeholder span { font-size: clamp(20px, 2vw, 30px); font-weight: 650; letter-spacing: -.8px; line-height: 1.2; }
.template-card.has-cover .preview-placeholder, .template-card.has-started .preview-placeholder { display: none; }
.preview-unavailable { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #757987; font-size: 14px; }
.duration { position: absolute; top: 14px; right: 14px; pointer-events: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 5px 8px; border-radius: 6px; color: #fff; background: #20202bb0; backdrop-filter: blur(8px); font-size: 10px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.preview-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 19px 13px 15px; min-height: 48px; border-radius: 40px; border: 1px solid #fff; background: #ffffffed; backdrop-filter: blur(12px); box-shadow: 0 4px 28px #0002; color: #33303e; font-size: 12px; font-weight: 650; transition: background .16s ease, box-shadow .16s ease; }
.preview-button svg { width: 18px; height: 18px; }
.preview-button:hover { background: #fff; color: #6340c5; box-shadow: 0 4px 30px #0003; }
.template-card.has-started .preview-button, .template-card.is-playing .duration { display: none; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 1px 0; }
.card-copy { min-width: 0; }
.card-copy h2 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: -.2px; }
.card-copy p { margin: 5px 0 0; color: #8a8d9a; font-size: 11px; line-height: 1.4; }
.example-product { display: inline-block; margin: 9px 0 0; padding: 5px 8px; border-radius: 6px; background: #eeefe9; color: #586255; font-size: 11px; line-height: 1.35; }
.open-video { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e4e6ef; border-radius: 50%; background: #fff; color: #676b7b; text-decoration: none; transition: color .16s ease, background .16s ease; }
.open-video svg { width: 21px; height: 21px; }
.open-video:hover { color: #6749a0; background: #ebe6f4; }
.playing-label { display: none; align-items: center; gap: 5px; color: #7c59b5; }
.playing-label i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.is-playing .playing-label { display: inline-flex; }
.is-playing .style-label { display: none; }
.playback-error { position: absolute; inset: auto 12px 70px; margin: 0; padding: 12px; background: #fff; border-radius: 9px; font-size: 12px; line-height: 1.5; text-align: center; box-shadow: 0 2px 12px #0002; }
.playback-error a { font-weight: 600; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; margin-top: 32px; border-top: 1px solid #e9eaf0; color: #9b9daa; font-size: 11px; }
.page-footer span:last-child { font-weight: 700; }
@media (min-width: 1700px) { .card-copy h2 { font-size: 16px; } .card-copy p { font-size: 12px; } }
@media (max-width: 1099px) { .template-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px 18px; } .shell { width: calc(100% - 48px); } }
@media (max-width: 760px) { .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; } .format-label { display: none; } .brand-section, .brand-divider { display: none; } .shell { width: calc(100% - 36px); } .toolbar { align-items: flex-start; } .filters { gap: 3px; } .filter-button { padding: 8px 10px; } .sound-toggle { width: 38px; padding: 8px; } .sound-toggle span { display: none; } .page-header { padding: 25px 0 22px; } }
@media (max-width: 520px) { .template-grid { grid-template-columns: minmax(0,1fr); gap: 28px; } .topbar-inner { min-height: 62px; } .brand { font-size: 20px; } .brand-mark { width: 31px; height: 31px; border-radius: 9px; padding-bottom: 7px; } h1 { font-size: 28px; } .toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; } .filters { flex: 1; gap: 2px; } .filter-button { padding: 8px; font-size: 11px; } .filter-button span { display: none; } .card-copy h2 { font-size: 16px; } .card-copy p { font-size: 12px; } .open-video { width: 44px; flex-basis: 44px; height: 44px; } .preview-button { font-size: 13px; } .duration { font-size: 11px; } .page-footer { margin-top: 26px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
