/* Flick (T3, module flick): a dark short-video app. Vertical clips snap one per screen, action rail on the right. */
.fl-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; background: #121212; color: #fff; border-radius: 14px; overflow: hidden; --fl-h: max(520px, min(860px, 100dvh - 230px)); height: var(--fl-h); font-family: "Segoe UI", Roboto, Arial, sans-serif; position: relative; }
.fl-app.with-comments { grid-template-columns: 220px minmax(0, 1fr) 340px; }
.fl-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid #2a2a2a; overflow-y: auto; }
.fl-brand { display: flex; align-items: center; gap: 8px; font-size: 22px; padding: 0 8px 12px; letter-spacing: -.02em; }
.fl-search { display: flex; align-items: center; gap: 6px; background: #2a2a2a; border-radius: 999px; padding: 8px 12px; color: #aaa; margin-bottom: 8px; }
.fl-search input { background: none; border: 0; outline: none; color: #fff; width: 100%; }
.fl-nav > button { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px; font-size: 16px; font-weight: 600; background: none; border: 0; color: #eee; text-align: left; }
.fl-nav > button:hover { background: #1f1f1f; }
.fl-nav > button.is-active { color: #fe2c55; }
.fl-nav-label { color: #999; font-size: 13px; padding: 14px 10px 6px; border-top: 1px solid #2a2a2a; margin-top: 8px; }
.fl-sugg { font-size: 13px !important; font-weight: 400 !important; padding: 6px 10px !important; }
.fl-sugg span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fl-sugg strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-sugg small { color: #999; font-size: 12px; }
.fl-nav-foot { margin-top: auto; color: #777; font-size: 12px; padding: 10px; }
.fl-stage { position: relative; min-width: 0; min-height: 0; display: flex; justify-content: center; background: #000; }
.fl-tabs { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 22px; }
.fl-tabs button { background: none; border: 0; color: rgba(255,255,255,.65); font-size: 17px; font-weight: 700; padding-bottom: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.fl-tabs button.is-active { color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.fl-feed { height: 100%; width: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; }
.fl-feed::-webkit-scrollbar { display: none; }
.fl-card { scroll-snap-align: start; scroll-snap-stop: always; flex: none; height: 100%; display: flex; align-items: flex-end; gap: 14px; padding: 16px 0; }
.fl-video { position: relative; flex: none; height: auto; width: calc((var(--fl-h) - 32px) * 9 / 16); min-width: 0; aspect-ratio: 9 / 16; max-width: calc(100vw - 120px); border-radius: 12px; overflow: hidden; background: #222; }
/* out of flow: the clip's intrinsic size must not widen the 9:16 frame (flex min-width: auto) */
.fl-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-novideo { width: 100%; height: 100%; display: grid; place-items: center; color: #555; }
.fl-shade { position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.fl-info { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 14.5px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.fl-user { margin: 0 0 4px; } .fl-user span { color: rgba(255,255,255,.75); font-size: 13px; }
.fl-verified { display: inline-grid; place-items: center; width: 14px; height: 14px; background: #20d5ec; border-radius: 50%; color: #fff; vertical-align: -2px; }
.fl-cap { margin: 0 0 6px; } .fl-tag { font-weight: 700; }
.fl-sound { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; overflow: hidden; }
.fl-sound-track { overflow: hidden; white-space: nowrap; flex: 1; max-width: 220px; }
.fl-sound-track span { display: inline-block; padding-left: 0; animation: fl-marquee 9s linear infinite; }
@keyframes fl-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-60%); } }
.fl-views { position: absolute; top: 52px; right: 12px; font-size: 12px; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 6px; display: flex; gap: 4px; align-items: center; }
.fl-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 6px; }
.fl-avatar { position: relative; margin-bottom: 10px; }
.fl-avatar .avatar, .fl-avatar img { border: 2px solid #fff; border-radius: 50%; }
.fl-follow { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fe2c55; color: #fff; border: 0; display: grid; place-items: center; }
.fl-act { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: #fff; font-size: 12px; font-weight: 600; }
.fl-act svg, .fl-act > .icon { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: #2a2a2a; box-sizing: border-box; }
.fl-act.is-on svg { color: #fe2c55; }
.fl-act.is-on-save svg { color: #face15; }
.fl-disc { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(#333 40%, #111 41%); display: grid; place-items: center; animation: fl-spin 5s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-none { margin: auto; color: #aaa; }
.fl-comments { background: #1b1b1b; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; min-height: 0; }
.fl-comments header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #2a2a2a; }
.fl-comments header button { background: none; border: 0; color: #fff; }
.fl-clist { flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 14px; }
.fl-c { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
.fl-c small { color: #999; font-size: 12px; } .fl-c p { margin: 2px 0; }
.fl-c-like { background: none; border: 0; color: #999; display: flex; flex-direction: column; align-items: center; font-size: 11px; }
.fl-c-like.is-on { color: #fe2c55; }
.fl-c-empty { color: #999; text-align: center; padding: 20px; }
.fl-cform { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid #2a2a2a; }
.fl-cform input { flex: 1; background: #2a2a2a; border: 0; border-radius: 8px; padding: 10px; color: #fff; outline: none; }
.fl-cform button { background: none; border: 0; color: #fe2c55; }
@media (max-width: 900px) {
  .fl-app, .fl-app.with-comments { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 120px); border-radius: 0; }
  .fl-nav { display: none; }
  .fl-card { padding: 0; width: 100%; position: relative; }
  .fl-video { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .fl-rail { position: absolute; right: 8px; bottom: 90px; z-index: 2; }
  .fl-info { right: 70px; bottom: 16px; }
  .fl-act svg, .fl-act > .icon { background: none; padding: 6px; width: 40px; height: 40px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
  .fl-comments { position: absolute; left: 0; right: 0; bottom: 0; height: 65%; z-index: 5; border-radius: 14px 14px 0 0; border-left: 0; }
}
@media (max-width: 720px) { .fl-app, .fl-app.with-comments { margin: 0 -14px; } }
