@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #171713;
  --muted: #696961;
  --paper: #f6f5f1;
  --line: #d9d7cf;
  --lime: #dfff55;
  --blue: #3869f7;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; gap: 11px; align-items: center; font: 700 21px/1 Manrope, sans-serif; letter-spacing: -.5px; }
.brand-mark { position: relative; width: 27px; height: 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
.brand-mark i { display: block; border-radius: 5px 2px 2px 5px; background: var(--ink); }
.brand-mark i:last-child { border-radius: 2px 5px 5px 2px; background: var(--blue); transform: translateY(5px); }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.site-nav a { position: relative; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-pill { padding: 11px 15px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; }

.share-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 12px 11px 17px;
  display: flex;
  gap: 13px;
  align-items: center;
  font: 500 14px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: .18s ease;
}
.share-button:hover { background: var(--ink); color: var(--white); }
.share-arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); }

.hero { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 104px; }
.eyebrow, .section-kicker { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(56, 105, 247, .11); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 27px 0 28px; max-width: 960px; font: 600 clamp(60px, 8.2vw, 112px)/.91 Manrope, sans-serif; letter-spacing: -.075em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 580px; margin: 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; letter-spacing: -.02em; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; }
.primary-button { min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: white; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 14px; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { transform: translateY(-1px); }
.availability { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.availability i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(205, 229, 69, .22); }
.availability strong { color: var(--ink); font-weight: 600; }
.site-stats { max-width: 660px; margin: 42px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.site-stats div { padding: 20px 20px 0 0; }
.site-stats dt { font: 600 27px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.site-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.editor-preview { margin-top: 76px; border: 1px solid #cccac1; border-radius: 18px; overflow: hidden; background: #20201d; box-shadow: 0 30px 70px rgba(30,30,24,.12); }
.preview-toolbar { height: 50px; padding: 0 18px; background: #292925; color: #a9a9a1; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.preview-title { color: #e8e8e1; font-weight: 500; }
.preview-canvas { min-height: 390px; padding: 42px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; background-color: #e8e5dc; background-image: linear-gradient(#d4d0c5 1px, transparent 1px), linear-gradient(90deg, #d4d0c5 1px, transparent 1px); background-size: 26px 26px; }
.caption-card, .meme-card { border-radius: 12px; }
.caption-card { padding: clamp(25px, 4.2vw, 58px); background: #fdfcf8; display: flex; justify-content: center; flex-direction: column; font: 500 clamp(23px, 4vw, 52px)/1.04 Manrope, sans-serif; letter-spacing: -.045em; }
.caption-card strong { color: var(--blue); font-weight: 600; }
.meme-card { min-height: 250px; position: relative; overflow: hidden; background: var(--lime); display: grid; place-items: center; }
.meme-card::before, .meme-card::after { content: ""; position: absolute; background: var(--ink); }
.meme-card::before { width: 70%; height: 70%; border-radius: 50% 48% 45% 52%; transform: rotate(-17deg); }
.meme-card::after { width: 55%; height: 15%; bottom: 13%; border-radius: 50%; filter: blur(13px); opacity: .18; }
.meme-label { z-index: 1; position: absolute; top: 15px; left: 15px; padding: 6px 9px; border-radius: 6px; background: rgba(255,255,255,.88); font-size: 11px; font-weight: 600; }
.play-button { z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: white; font-size: 18px; }
.timeline { height: 116px; padding: 18px 20px 18px 110px; position: relative; display: grid; gap: 8px; background: #1a1a18; }
.track { height: 36px; border-radius: 5px; padding: 0 11px; display: flex; align-items: center; font-size: 9px; font-weight: 600; letter-spacing: .09em; }
.video-track { width: 76%; color: #d8d8d2; background: #393935; }
.meme-track { width: 28%; margin-left: 42%; color: #171713; background: var(--lime); }
.playhead { position: absolute; left: 55%; top: 10px; bottom: 10px; width: 1px; background: #ff634a; }
.playhead::before { content: ""; position: absolute; top: 0; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: #ff634a; }

.steps { padding: 110px max(24px, calc((100vw - 1180px) / 2)); background: var(--white); display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.section-kicker { margin-bottom: 22px; }
.steps h2, .community h2 { margin-bottom: 0; font: 600 clamp(43px, 5vw, 68px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step-list li { padding: 25px 0; display: grid; grid-template-columns: 75px 1fr; border-bottom: 1px solid var(--line); }
.step-number { color: var(--blue); font: 600 12px/1 Manrope, sans-serif; }
.step-list h3 { margin-bottom: 7px; font: 600 21px/1.2 Manrope, sans-serif; letter-spacing: -.03em; }
.step-list p { max-width: 470px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.clip-library { padding: 110px max(24px, calc((100vw - 1180px) / 2)); background: #20201d; color: white; }
.library-heading { margin-bottom: 46px; display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; }
.library-heading h2 { margin: 0; font: 600 clamp(43px, 5vw, 68px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.library-heading > p { max-width: 400px; margin: 0; color: #aaa9a1; font-size: 17px; line-height: 1.5; }
.clip-library .section-kicker { color: #929189; }
.catalog-search { margin-bottom: 38px; }
.clip-search { max-width: 760px; padding: 6px; display: flex; gap: 8px; border: 1px solid #4a4a44; border-radius: 12px; background: #292925; }
.clip-search:focus-within { border-color: #85857d; }
.clip-search input { min-width: 0; flex: 1; padding: 10px 12px; border: 0; outline: 0; background: transparent; color: white; font: 400 16px/1.3 "DM Sans", sans-serif; }
.clip-search input::placeholder { color: #85857d; }
.clip-search button { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); cursor: pointer; font: 600 13px/1 "DM Sans", sans-serif; }
.tag-list { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tag-list > span { margin-right: 3px; color: #85857d; font-size: 12px; }
.tag-chip { padding: 7px 10px; border: 1px solid #4a4a44; border-radius: 999px; background: transparent; color: #c7c6bf; cursor: pointer; font: 500 12px/1 "DM Sans", sans-serif; }
.tag-chip:hover { border-color: var(--lime); color: var(--lime); }
.search-status { min-height: 18px; margin: 12px 0 0; color: #929189; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 14px; }
.clip-card { min-width: 0; }
.clip-poster { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 11px; background: #30302c; }
.clip-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.clip-card:hover .clip-poster img { transform: scale(1.025); }
.clip-play { position: absolute; inset: 50% auto auto 50%; width: 48px; height: 48px; padding-left: 3px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px; }
.clip-duration { position: absolute; right: 9px; bottom: 9px; padding: 4px 6px; border-radius: 4px; background: rgba(18,18,16,.78); font-size: 11px; }
.clip-card-copy { padding: 13px 2px 0; display: flex; justify-content: space-between; gap: 18px; }
.clip-card-copy h3 { overflow: hidden; margin: 0; font: 500 16px/1.35 Manrope, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.clip-card-copy span { flex: none; color: #929189; font-size: 12px; line-height: 1.8; }
.clip-card-stats { padding: 7px 2px 0; display: flex; gap: 12px; color: #77776f; font-size: 11px; }
.library-more { margin-top: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.load-more-button { min-width: 190px; min-height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #56564f; border-radius: 999px; background: transparent; color: white; cursor: pointer; font: 500 14px/1 "DM Sans", sans-serif; transition: border-color .2s ease, background .2s ease; }
.load-more-button:hover { border-color: #aaa99f; background: #292925; }
.load-more-button:disabled { cursor: wait; opacity: .6; }
.library-more p { margin: 0; color: #929189; font-size: 12px; }

.community { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 120px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.community-stamp { display: inline-block; margin-bottom: 35px; padding: 7px 10px; border: 1px solid var(--ink); border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: .11em; transform: rotate(-2deg); }
.community-copy > p { max-width: 520px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; transform: rotate(2deg); }
.community-grid span { min-height: 108px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); display: flex; align-items: flex-end; font: 600 19px/1 Manrope, sans-serif; }
.community-grid span:nth-child(2), .community-grid span:nth-child(5) { background: var(--blue); color: white; border-color: var(--blue); }
.community-grid span:nth-child(3) { background: var(--lime); border-color: #cadd45; }

.explore-modes { padding: 110px max(24px, calc((100vw - 1180px) / 2)); background: white; display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.explore-modes h2 { margin: 0; font: 600 clamp(43px, 5vw, 68px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.mode-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mode-links > a { min-height: 330px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; transition: transform .2s ease; }
.mode-links > a:hover { transform: translateY(-4px); }
.mode-links span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.mode-links strong { margin-top: auto; font: 600 27px/1.05 Manrope, sans-serif; letter-spacing: -.04em; }
.mode-links p { margin: 15px 0 24px; color: var(--muted); line-height: 1.45; }
.mode-links i { font-style: normal; font-size: 13px; }
.mode-links .reels-mode { border-color: var(--blue); background: var(--blue); color: white; }
.mode-links .reels-mode span, .mode-links .reels-mode p { color: rgba(255,255,255,.7); }

.tags-page { min-height: 70vh; }
.tags-hero { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 82px 0 62px; }
.tags-hero h1 { margin-bottom: 30px; }
.tags-hero > p:last-child { max-width: 570px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.tag-directory { padding: 30px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--ink); }
.directory-tag { min-height: 78px; padding: 15px; border: 1px solid #3d3d38; border-radius: 9px; color: #c8c7c0; display: flex; justify-content: space-between; align-items: flex-end; font-size: 13px; }
.directory-tag b { color: #77776f; font-weight: 500; font-size: 11px; }
.directory-tag:hover, .directory-tag.active { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.directory-tag.active b, .directory-tag:hover b { color: var(--ink); }
.tag-results { padding: 90px max(24px, calc((100vw - 1180px) / 2)); background: #20201d; color: white; }
.empty-state { padding: 60px 0; color: #929189; }
.detail-tags { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags a { padding: 6px 9px; border: 1px solid #44443f; border-radius: 999px; color: #aaa9a1; font-size: 11px; }
.detail-stats { margin-top: 22px; display: flex; gap: 18px; color: #929189; font-size: 12px; }

.reels-body { width: 100%; height: 100dvh; overflow: hidden; background: #080808; color: white; }
.reels-body .brand-mark i { background: white; }
.reels-body .brand-mark i:last-child { background: var(--lime); }
.reels-header { position: fixed; z-index: 20; top: 0; left: 50%; width: min(100% - 32px, 1180px); height: 72px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.reels-header > * { pointer-events: auto; }
.reels-header > span { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.reels-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(10,10,10,.3); backdrop-filter: blur(12px); font-size: 23px; font-weight: 300; }
.reels-feed { width: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reels-feed::-webkit-scrollbar { display: none; }
.reel { width: min(100%, 640px); height: 100dvh; margin: 0 auto; position: relative; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #111; }
.reel video { width: 100%; height: 100%; display: block; object-fit: contain; background: #080808; }
.reel-shade { position: absolute; inset: 38% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.24) 28%, rgba(0,0,0,.84)); }
.reel-info { position: absolute; z-index: 2; left: 25px; right: 92px; bottom: max(30px, env(safe-area-inset-bottom)); }
.reel-kicker { margin-bottom: 10px; color: rgba(255,255,255,.63); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.reel-info h1 { margin: 0 0 14px; font-size: clamp(30px, 6vw, 48px); line-height: 1; letter-spacing: -.055em; }
.reel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.reel-tags a { color: rgba(255,255,255,.72); font-size: 12px; }
.reel-stats { margin-top: 16px; display: flex; gap: 16px; color: rgba(255,255,255,.64); font-size: 12px; }
.reel-actions { position: absolute; z-index: 3; right: 17px; bottom: max(24px, env(safe-area-inset-bottom)); display: grid; gap: 3px; padding: 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 19px; background: rgba(9,9,9,.44); box-shadow: 0 10px 35px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.reel-action { width: 50px; min-height: 49px; padding: 5px 2px 4px; border: 0; border-radius: 14px; background: transparent; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; font: 500 12px/1 "DM Sans", sans-serif; transition: background .18s ease, color .18s ease; }
.reel-action:hover { background: rgba(255,255,255,.1); }
.reel-action small { position: static; color: rgba(255,255,255,.68); font-size: 8px; line-height: 1; letter-spacing: .01em; }
.reel-action-icon { width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reel-action-icon circle { fill: currentColor; stroke: none; }
.reel-action.active { background: rgba(223,255,85,.11); color: var(--lime); }
.reel-action.active small { color: var(--lime); }

footer { width: min(1180px, calc(100% - 48px)); margin: auto; min-height: 150px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
footer > div { display: flex; align-items: center; gap: 16px; }
footer p { margin: 0; }
.footer-mark { color: var(--ink); font: 700 25px/1 Manrope, sans-serif; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; padding: 11px 15px; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.clip-body { min-height: 100vh; background: #171713; color: white; }
.clip-header { border-color: #373732; }
.clip-body .brand-mark i { background: white; }
.clip-body .brand-mark i:last-child { background: var(--blue); }
.back-link { color: #aaa9a1; font-size: 14px; }
.back-link:hover { color: white; }
.clip-page { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 60px 0 90px; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .58fr); gap: 58px; align-items: center; }
.clip-player-shell { position: relative; overflow: hidden; border-radius: 14px; background: #080808; box-shadow: 0 32px 90px rgba(0,0,0,.32); }
.clip-player-shell video { width: 100%; max-height: 72vh; display: block; background: #080808; }
.source-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 9px; border-radius: 6px; background: rgba(20,20,18,.76); color: white; backdrop-filter: blur(8px); font: 600 11px/1 Manrope, sans-serif; letter-spacing: .02em; }
.clip-details .section-kicker { color: #929189; }
.clip-details h1 { margin: 18px 0 22px; font-size: clamp(40px, 4.5vw, 68px); line-height: .98; }
.clip-details > p:not(.section-kicker):not(.origin-note) { color: #aaa9a1; font-size: 17px; line-height: 1.55; }
.share-panel { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.clip-body .primary-button { border: 0; background: var(--lime); color: var(--ink); cursor: pointer; font: 500 14px/1 "DM Sans", sans-serif; }
.social-link { min-height: 44px; padding: 0 16px; border: 1px solid #44443f; border-radius: 999px; background: transparent; color: #dddcd5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: 500 13px/1 "DM Sans", sans-serif; }
.social-link:hover { border-color: #77776e; }
.origin-note { margin: 25px 0 0; color: #77776e; font-size: 12px; }
.origin-note a { color: #aaa9a1; }

@media (max-width: 760px) {
  .site-header, .hero, .community, footer { width: min(100% - 32px, 1180px); }
  .site-header { height: auto; min-height: 110px; padding: 15px 0 11px; flex-wrap: wrap; row-gap: 12px; }
  .share-button { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; }
  .site-nav { order: 3; width: 100%; display: flex; justify-content: space-between; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
  .site-nav a { flex: 1; padding: 6px 4px; text-align: center; border-radius: 7px; }
  .site-nav a.active { background: rgba(56,105,247,.08); color: var(--blue); }
  .site-nav a.active::after { display: none; }
  .nav-pill { padding: 10px 12px; font-size: 12px; }
  .share-button > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .share-arrow { width: 38px; height: 38px; border: 1px solid var(--ink); background: transparent; }
  .hero { padding: 52px 0 72px; }
  h1 { margin-top: 22px; font-size: clamp(49px, 15.4vw, 78px); }
  .hero-copy { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .site-stats { width: 100%; }
  .availability { line-height: 1.4; }
  .editor-preview { margin-top: 54px; border-radius: 13px; }
  .preview-canvas { min-height: 340px; padding: 16px; grid-template-columns: 1fr; }
  .caption-card { min-height: 175px; }
  .meme-card { min-height: 145px; }
  .timeline { padding-left: 52px; }
  .steps { padding-top: 76px; padding-bottom: 76px; grid-template-columns: 1fr; gap: 50px; }
  .step-list li { grid-template-columns: 50px 1fr; }
  .community { padding: 80px 0; grid-template-columns: 1fr; gap: 52px; }
  .community-grid { transform: none; }
  .community-grid span { min-height: 86px; }
  .explore-modes { padding-top: 76px; padding-bottom: 76px; grid-template-columns: 1fr; gap: 48px; }
  .mode-links { grid-template-columns: 1fr; }
  .mode-links > a { min-height: 260px; }
  .tags-hero { width: min(100% - 32px, 1180px); padding: 55px 0 45px; }
  .tag-directory { grid-template-columns: repeat(2, 1fr); }
  .tag-results { padding-top: 72px; }
  .clip-library { padding-top: 76px; padding-bottom: 76px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .catalog-search { margin-bottom: 30px; }
  .clip-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 10px; }
  .clip-card-copy { display: block; }
  .clip-card-copy span { display: block; margin-top: 3px; }
  .library-more { margin-top: 38px; }
  .share-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .share-panel .primary-button { grid-column: 1 / -1; }
  .clip-page { width: min(100% - 32px, 1180px); padding: 32px 0 68px; grid-template-columns: 1fr; gap: 38px; }
  .clip-player-shell { border-radius: 10px; }
  .clip-details h1 { font-size: clamp(42px, 12vw, 62px); }
  footer { padding: 35px 0; min-height: 130px; align-items: flex-start; flex-direction: column; gap: 26px; }
}

@media (max-width: 480px) {
  .site-stats dt { font-size: 23px; }
  .site-stats dd { font-size: 10px; }
  .clip-search { display: grid; }
  .clip-search button { min-height: 42px; }
  .clip-grid { grid-template-columns: 1fr; }
  .reels-header { height: 62px; }
  .reels-hint { position: absolute; top: 68px; left: 50%; padding: 7px 10px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(8,8,8,.42); backdrop-filter: blur(10px); white-space: nowrap; }
  .reel { width: 100%; }
  .reel-info { left: 17px; right: 82px; }
  .reel-actions { right: 10px; bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .reels-header { height: 54px; }
  .reels-header .brand { font-size: 16px; }
  .reels-header .brand-mark { width: 22px; height: 22px; }
  .reel-info { left: 20px; right: 86px; bottom: 15px; }
  .reel-info h1 { margin-bottom: 8px; font-size: clamp(27px, 5vw, 38px); }
  .reel-kicker { margin-bottom: 7px; }
  .reel-stats { margin-top: 9px; }
  .reel-actions { right: 12px; bottom: 12px; }
  .reel-action { width: 46px; min-height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
