/* Posts: one per screen, scroll or swipe (reels style). */
.reels-page { overflow: hidden; background: #0d0f11; }
.reels-page .site-footer { display: none; }
.reels { position: relative; height: calc(100dvh - var(--header-h)); display: grid; justify-items: center; }
.reels-top { position: absolute; z-index: 5; top: 14px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.reels-top > * { pointer-events: auto; }
.reels-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #0009; backdrop-filter: blur(12px); border: 1px solid #ffffff1a; }
.reels-tabs button { border: 0; background: none; color: #fffb; font: 600 13.5px/1 var(--font-ui); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.reels-tabs button[aria-selected="true"] { background: var(--teal); color: var(--carbon); }
.reels-new { border: 0; border-radius: 999px; padding: 10px 16px; font: 600 13.5px/1 var(--font-ui); background: #0009; color: #fff; border: 1px solid #ffffff2a; backdrop-filter: blur(12px); cursor: pointer; }
.reels-new:hover { background: var(--teal); color: var(--carbon); }
.reels [hidden] { display: none !important; }

.reels-track { height: 100%; width: min(560px, 100%); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.reels-track::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; border-left: 1px solid #ffffff10; border-right: 1px solid #ffffff10; }
.reel-media { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px) brightness(.45) saturate(1.2); }
.reel-img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.is-model .reel-img { width: 86%; }
.reel-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, #0007 0, transparent 18%, transparent 55%, #000d 100%); pointer-events: none; }
.is-text { background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--teal) 45%, transparent), transparent 55%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--sand) 30%, transparent), transparent 50%), linear-gradient(160deg, #1e2124, #111315); padding: 90px 28px 190px; }
.reel-quote { position: relative; z-index: 1; margin: 0; color: var(--eggshell); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -0.02em; white-space: pre-line; overflow-wrap: anywhere; text-align: left; }
.q-xl { font-size: clamp(30px, 7vw, 44px); font-weight: 700; line-height: 1.1; }
.q-l { font-size: clamp(22px, 5vw, 30px); font-weight: 600; line-height: 1.25; }
.q-m { font-size: clamp(17px, 3.6vw, 20px); font-weight: 400; line-height: 1.5; }

.reel-info { position: absolute; z-index: 2; left: 16px; right: 84px; bottom: 22px; display: grid; gap: 10px; color: #fff; }
.reel-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reel-who { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; min-width: 0; }
.reel-who .avatar { width: 42px; height: 42px; border: 2px solid #fff; }
.reel-who b { font-size: 15.5px; }
.reel-who small { display: block; color: #ffffffb3; font-size: 12.5px; }
.reel-follow { border: 1px solid #fff; background: none; color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 12.5px/1 var(--font-ui); cursor: pointer; }
.reel-follow.on { background: #ffffff26; border-color: transparent; }
.reel-body { margin: 0; font-size: 15px; line-height: 1.45; text-shadow: 0 1px 6px #0009; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; cursor: pointer; white-space: pre-line; }
.reel-body.open { -webkit-line-clamp: unset; }
.reel-model { display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: #0008; backdrop-filter: blur(10px); border: 1px solid #ffffff22; color: #fff; text-decoration: none; max-width: 340px; }
.reel-model img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; }
.reel-model span { display: grid; min-width: 0; flex: 1; }
.reel-model small { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-text); }
.reel-model b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }

.reel-rail { position: absolute; z-index: 2; right: 10px; bottom: 26px; display: grid; gap: 16px; justify-items: center; }
.reel-act { display: grid; justify-items: center; gap: 4px; background: none; border: 0; color: #fff; text-decoration: none; cursor: pointer; font: 600 11.5px/1 var(--font-ui); text-shadow: 0 1px 4px #000a; }
.reel-act .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #0007; backdrop-filter: blur(10px); border: 1px solid #ffffff22; font-size: 20px; transition: transform .15s; }
.reel-act:hover .ic { transform: scale(1.08); }
.reel-act.like.on .ic { color: #ff4d7d; background: #ff4d7d22; border-color: #ff4d7d55; }
.reel-heart { position: absolute; z-index: 3; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(0); font-size: 110px; color: #ff4d7d; text-shadow: 0 6px 30px #0008; opacity: 0; pointer-events: none; }
.reel.burst .reel-heart { animation: reel-heart .8s ease-out; }
@keyframes reel-heart { 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -50%) scale(.95); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .reel.burst .reel-heart { animation: none; } }

.reel-empty { display: grid; place-items: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--teal) 25%, transparent), #0d0f11 60%); color: var(--eggshell); }
.reel-empty h2 { font-size: 26px; margin-bottom: 8px; }
.reel-empty p { color: var(--muted-dark); margin-bottom: 18px; }
.reels-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); margin: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #ffffff80; pointer-events: none; }

.reels-compose { width: min(520px, calc(100vw - 24px)); padding: 0; border-radius: 18px; border: 1px solid var(--line-dark); background: var(--carbon-2); color: var(--text); }
.reels-compose::backdrop { background: #000a; }
.reels-compose form { display: grid; gap: 12px; padding: 18px; }
.reels-compose header { display: flex; justify-content: space-between; align-items: center; }
.reels-compose h2 { font-size: 20px; }
.reels-compose .icon-x { background: none; border: 0; color: var(--muted-dark); font-size: 26px; cursor: pointer; }
.reels-compose textarea { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line-dark); border-radius: 12px; padding: 12px; font: 400 15px/1.5 var(--font-ui); resize: vertical; }
.compose-photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.compose-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.compose-bar select { background: var(--field); color: var(--text); border: 1px solid var(--line-dark); border-radius: 10px; padding: 8px 10px; max-width: 100%; }
.compose-bar [data-send] { margin-left: auto; }
@media (max-width: 600px) { .reel { border: 0; } .reel-info { right: 74px; } .reel-act .ic { width: 44px; height: 44px; } }
