.reels-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; }
.reel-card[hidden], .reels-more[hidden] { display: none; }
.reels-more { display: block; margin: 1.5rem auto 0; min-height: 48px; padding: .75rem 2rem; border: 1px solid #ffffff40; border-radius: 999px; background: #ffffff05; color: #fff; font: 500 .875rem var(--body); cursor: pointer; }
.reels-more:hover { background: #ffffff12; border-color: #fff; }
.reels-more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.reel-card { position: relative; display: block; width: 100%; aspect-ratio: 3/4; padding: 0; border: 0; overflow: hidden; background: #151515; cursor: pointer; }
.reel-card img, .reels-grid .reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; pointer-events: none; }
.reel-card video { opacity: 0; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) { .reel-card video { transition: none; } }
.reel-card.previewing video { opacity: 1; }
.reel-card:focus-visible { outline: 3px solid white; outline-offset: -3px; }
.reel-badge { position: absolute; right: 12px; top: 12px; width: 21px; height: 21px; color: white; filter: drop-shadow(0 1px 3px #0009); pointer-events: none; }
.reel-badge svg { display: block; width: 100%; height: 100%; }
.reel-open { overflow: hidden; }
.reel-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: white; }
.reel-viewer[open] { display: flex; align-items: center; justify-content: center; }
.reel-viewer::backdrop { background: #000e; backdrop-filter: blur(12px); }
.reel-stage { position: relative; height: calc(100dvh - 48px); width: min(calc((100dvh - 48px)*9/16),calc(100vw - 120px)); background: #080808; overflow: hidden; border-radius: 8px; touch-action: none; }
.reel-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.reel-viewer button { font: inherit; border: 0; color: white; cursor: pointer; min-width: 44px; min-height: 44px; background: #181818b3; border-radius: 50%; }
.reel-viewer button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.reel-top { position: absolute; top: 0; left: 0; right: 0; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#0009,transparent); }
.reel-top span { font: 600 13px var(--display); letter-spacing: .13em; }
.reel-viewer .reel-close { font-size: 30px; background: transparent; }
.reel-viewer .reel-sound { position: absolute; right: 14px; bottom: 50px; font-size: 12px; padding: 0 14px; border-radius: 24px; }
.reel-bottom { position: absolute; bottom: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 12px; text-shadow: 0 1px 3px #000; }
.reel-hint { display: none; }
.reel-prev, .reel-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px !important; }
.reel-prev { left: max(20px,calc(50% - 100dvh * .28125 - 55px)); }
.reel-next { right: max(20px,calc(50% - 100dvh * .28125 - 55px)); }
.reel-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #ffffff30; }
.reel-progress span { display: block; height: 100%; background: white; }
.reel-error { position: absolute; top: 45%; left: 10%; right: 10%; padding: 1rem; text-align: center; background: #111d; }
@media(max-width:900px) { .reels-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) {
  .reels-grid { gap: 2px; margin-inline: calc(-1 * var(--pad)); }
  .reel-badge { width: 16px; height: 16px; top: 7px; right: 7px; }
  .reel-stage { width: 100%; height: 100dvh; border-radius: 0; }
  .reel-top { padding-top: max(12px,env(safe-area-inset-top)); }
  .reel-bottom { bottom: max(16px,env(safe-area-inset-bottom)); }
  .reel-viewer .reel-sound { bottom: max(54px,calc(env(safe-area-inset-bottom) + 44px)); }
  .reel-hint { display: inline; }
  .reel-prev, .reel-next { top: auto; bottom: 90px; transform: none; }
  .reel-prev { left: 12px; }
  .reel-next { right: 12px; }
}
.home-reels .instagram-heading, .instagram-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.home-reels .instagram-heading #reels-title, .instagram-heading h1 { margin: 0; color: #fff; }
.instagram-heading h1 { font: 700 clamp(2.25rem, 4.5vw, 4.5rem)/1.08 var(--display); letter-spacing: -.045em; }
.instagram-profile { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; color: #c4cbd0; text-decoration: none; font-size: .95rem; padding: .65rem 0; min-height: 44px; transition: color .2s; }
.instagram-profile svg { width: 23px; height: 23px; }
.instagram-profile:hover { color: #fff; }
.instagram-followers { margin: 0; color: #b9c0c5; font-size: .85rem; letter-spacing: .025em; }
.instagram-profile:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 3px; }
@media (max-width: 700px) { .home-reels .instagram-heading, .instagram-heading { flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: 1.25rem; } .instagram-profile { font-size: .85rem; } }
.home-reels .instagram-heading, .instagram-heading { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; text-align: center; gap: .65rem 1rem; margin-bottom: 1.75rem; }
.home-reels .instagram-heading #reels-title, .instagram-heading h1 { grid-column: 1 / -1; text-transform: none; font: 600 clamp(1.75rem, 3.3vw, 3rem)/1.15 var(--display); letter-spacing: -.035em; }
.instagram-heading .instagram-profile { justify-self: end; gap: .5rem; padding: .4rem 0; font-size: .9rem; }
.instagram-heading .instagram-profile svg { width: 19px; height: 19px; flex-shrink: 0; }
.instagram-heading .instagram-followers { justify-self: start; max-width: none; margin: 0; padding-left: 1rem; border-left: 1px solid #ffffff30; color: #c4cbd0; font-size: .85rem; line-height: 1.4; letter-spacing: 0; }
@media (max-width: 700px) {
  .home-reels .instagram-heading, .instagram-heading { gap: .4rem .65rem; margin-bottom: 1.25rem; }
  .instagram-heading .instagram-profile { font-size: .78rem; gap: .35rem; }
  .instagram-heading .instagram-followers { font-size: .75rem; padding-left: .65rem; }
}
