.page-programs { padding-bottom: 24px; }
.pg-followers { display: flex; align-items: baseline; gap: 6px; padding: 6px 2px 10px; }
.pg-followers strong { font-family: var(--font-display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }

.pg-card { padding: 12px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }

.pg-card.on { border-color: rgba(47,216,164,.4); background: rgba(47,216,164,.05); }
.pg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pg-card-head strong { display: block; font-size: .95rem; }

.pg-bar { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin: 10px 0 6px; }
.pg-bar-fill { height: 100%; border-radius: 999px; background: var(--grad); transition: width var(--dur-slow); }
.pg-card.on .pg-bar-fill { background: var(--ok); }
.pg-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pg-reason { font-size: .72rem; color: var(--danger); }
.pg-foot { padding-top: 14px; }

.page-safety { padding-bottom: 24px; }
.page-safety .mk-reasons { margin-bottom: 6px; }

.gift-confirm { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.gsend-mid { flex: 1; min-width: 0; }
.gsend-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsend-total { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--amber); font-weight: 700;
  font-variant-numeric: tabular-nums; }
.gsend-total .icon { width: 13px; height: 13px; }
.gsend-step { display: flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px; flex: 0 0 auto; }
.gsend-step .icon-btn { width: 28px; height: 28px; font-size: 1rem; line-height: 1; }
.gsend-qty { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.gsend-go { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.reel-gift-ticker { position: absolute; left: 12px; bottom: 148px; z-index: 3;
  display: grid; gap: 4px; pointer-events: none; max-width: 62%; }
.rgt-row { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px); border-radius: 999px;
  animation: rgt-in .3s ease-out both; }
.rgt-ico { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; }
.rgt-text { font-size: .72rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rgt-in { from { opacity: 0; transform: translateX(-12px) } to { opacity: 1; transform: none } }

.rgt-row.rgt-bump { animation: rgt-bump .32s ease-out; }
@keyframes rgt-bump {
  0%   { transform: scale(1); background: rgba(0,0,0,.42); }
  35%  { transform: scale(1.12); background: rgba(124,92,255,.55); }
  100% { transform: scale(1); background: rgba(0,0,0,.42); }
}

@media (prefers-reduced-motion: reduce) {
  .rgt-row { animation-duration: .01ms !important; }
  .rgt-row.rgt-bump { animation-duration: .01ms !important; }
  .pg-bar-fill { transition: none; }
}

.composer-asai { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .82rem; cursor: pointer; }
.composer-asai input { width: 17px; height: 17px; flex: 0 0 auto; }
.composer-asai-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.composer-asai:has(input:checked) { border-color: var(--accent-a); background: var(--accent-soft); }

.live-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; text-align: left; width: 100%; cursor: pointer; }
.live-card-badge { position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 800;
  letter-spacing: .02em; color: var(--danger); background: rgba(255,93,115,.14); padding: 3px 8px; border-radius: 999px; }
.group-card-name { font-weight: 700; font-family: var(--font-display); }
.live-cred-row { display: flex; gap: 8px; align-items: center; }
.live-cred-row .field-input { flex: 1; min-width: 0; }
.live-viewer-overlay { align-items: stretch; padding: 0; }
.live-viewer { position: relative; width: 100%; height: 100%; background: #000;
  display: flex; flex-direction: column; justify-content: flex-end; }
.live-viewer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-viewer-close { position: absolute; top: calc(14px + var(--safe-top)); right: 14px; z-index: 2;
  background: rgba(0,0,0,.5); }
.live-viewer-meta { position: relative; z-index: 1; padding: 18px 16px calc(20px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff; font-weight: 700; }

.live-preview { padding: 4px 12px calc(24px + var(--safe-bottom)); overflow-y: auto; flex: 1; }
.live-hero { position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 28px 16px 22px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.live-hero-glow { position: absolute; inset: -40% -20% auto -20%; height: 160px; background: var(--aurora);
  pointer-events: none; }
.live-hero-ico { position: relative; color: var(--danger); }
.live-hero-ico .icon { width: 34px; height: 34px; }
.live-hero h2 { position: relative; margin: 0; font-family: var(--font-display); }
.live-hero p { position: relative; margin: 0; max-width: 34ch; }
.live-section { padding: 16px 2px 6px; }
.live-section h3 { margin: 0; font-size: .95rem; font-family: var(--font-display); }
.live-gift-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.live-gift-strip::-webkit-scrollbar { display: none; }
.live-gift-strip .gift-cell { flex: 0 0 84px; }
.live-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.mp-badge.open { background: rgba(47,216,164,.16); color: var(--ok); }

@media (hover: hover) and (pointer: fine) {
  .live-card {
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
  }
  .live-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .live-card:hover { transform: none; }
}

:root { --live-red: #ff2d55; --live-red-2: #ff5f6d; }

.cs-sheet { padding: 22px 18px calc(22px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.cs-badge { align-self: center; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-a); }
.cs-title { margin: 2px 0 0; font-family: var(--font-display); }
.cs-sheet p { margin: 0 0 6px; }

.lh { padding: 6px 12px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; }
.lh-golive { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 14px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, var(--live-red) 0%, #ff7a3d 55%, var(--accent-b) 120%);
  box-shadow: 0 10px 28px rgba(255,45,85,.28); }
.lh-golive:active { transform: scale(.985); }
.lh-golive-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.2); color: #fff; }
.lh-golive-ico .icon { width: 22px; height: 22px; }
.lh-golive-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.lh-golive-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.lh-golive-text span { font-size: .8rem; opacity: .9; }
.lh-golive-chev { opacity: .85; display: grid; }
.lh-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.lh-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 1rem; }
.lh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live-red); box-shadow: 0 0 0 0 rgba(255,45,85,.6);
  animation: lh-pulse 1.6s infinite; }
@keyframes lh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,85,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,45,85,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); } }

.lh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lh-card { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--panel-2); color: #fff; text-align: left; isolation: isolate; }
.lh-card:active { transform: scale(.98); }
.lh-card-bg { position: absolute; inset: 0; background: var(--panel-3) center/cover no-repeat; transform: scale(1.04);
  transition: transform .4s ease; z-index: -2; }
.lh-card:hover .lh-card-bg { transform: scale(1.09); }
.lh-card-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.78) 100%); }
.lh-card-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lh-live { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 6px; background: var(--live-red); }
.lh-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.lh-bars i { display: block; width: 2px; background: #fff; border-radius: 1px; animation: lh-eq 0.9s ease-in-out infinite; }
.lh-bars i:nth-child(2) { animation-delay: .15s; } .lh-bars i:nth-child(3) { animation-delay: .3s; }
@keyframes lh-eq { 0%,100% { height: 3px; } 50% { height: 9px; } }
.lh-viewers { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700;
  padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.lh-viewers .icon { width: 13px; height: 13px; }
.lh-card-bottom { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 5px; }
.lh-card-title { font-weight: 700; font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.lh-card-host { display: flex; align-items: center; gap: 6px; font-size: .76rem; opacity: .95; min-width: 0; }
.lh-card-host img, .lh-card-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 1.5px solid rgba(255,255,255,.8); background: var(--panel-3); }
.lh-card-host span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-skel { background: linear-gradient(100deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%);
  background-size: 220% 100%; animation: lh-shimmer 1.3s linear infinite; cursor: default; }
@keyframes lh-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.lh-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 34px 16px; border: 1px dashed var(--line-2); border-radius: 18px; }
.lh-empty-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,45,85,.12); color: var(--live-red); margin-bottom: 4px; }
.lh-empty-ico .icon { width: 26px; height: 26px; }

.lh-sheet { padding: 18px 16px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px;
  max-height: 88dvh; overflow-y: auto; }
.lh-sheet-head { display: flex; align-items: center; gap: 10px; }
.lh-sheet-head h3 { margin: 0; font-family: var(--font-display); }
.lh-sheet .lh-golive-ico { background: var(--live-red); }
.lh-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .9rem; }
.lh-conn { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
  padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.lh-conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); animation: lh-blink 1.2s infinite; }
.lh-conn.on { color: var(--live-red); background: rgba(255,45,85,.1); }
.lh-conn.on .lh-conn-dot { background: var(--live-red); animation: lh-pulse 1.6s infinite; }
@keyframes lh-blink { 50% { opacity: .3; } }

.live-now-avatar { background-size: cover; background-position: center; }

html.lr-open, html.lr-open body { overscroll-behavior: none; }
.lr-room { position: fixed; inset: 0; z-index: 78; background: #000; color: #fff; overflow: hidden;
  animation: lr-fade .18s ease-out; touch-action: none; }
.lr-room.lr-closing { animation: lr-fade-out .18s ease-in forwards; }
@keyframes lr-fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes lr-fade-out { to { opacity: 0; transform: scale(1.02); } }

.lr-stage { position: absolute; inset: 0; margin: 0 auto; max-width: 560px; overflow: hidden; background: #000; }
.lr-in-up { animation: lr-in-up .26s cubic-bezier(.2,.8,.2,1); }
.lr-in-down { animation: lr-in-down .26s cubic-bezier(.2,.8,.2,1); }
.lr-out-up { animation: lr-out-up .26s cubic-bezier(.4,0,.6,1) forwards; }
.lr-out-down { animation: lr-out-down .26s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes lr-in-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes lr-in-down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes lr-out-up { to { transform: translateY(-100%); } }
@keyframes lr-out-down { to { transform: translateY(100%); } }

.lr-backdrop { position: absolute; inset: -40px; background: #111 center/cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.2); }
.lr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
@media (max-aspect-ratio: 3/4) { .lr-video { object-fit: cover; } }

.lr-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px; font-weight: 600; color: rgba(255,255,255,.9); pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lr-status.hidden { display: none; }
.lr-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.22); border-top-color: #fff;
  animation: lr-spin .8s linear infinite; }
@keyframes lr-spin { to { transform: rotate(360deg); } }

.lr-sound { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; border: 0; color: #fff; font-weight: 700; font-size: .9rem;
  padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.lr-sound .icon { width: 18px; height: 18px; }
.lr-sound.hidden { display: none; }

.lr-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px; padding: calc(10px + var(--safe-top)) 10px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.lr-host { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 60%; cursor: pointer;
  padding: 3px 4px 3px 3px; border-radius: 999px; background: rgba(0,0,0,.38); backdrop-filter: blur(10px); }
.lr-host-av { flex: 0 0 auto; display: grid; }
.lr-host-av .avatar, .lr-host-av img { border-radius: 50%; }
.lr-host-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lr-host-name { font-weight: 800; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-host-sub { font-size: .7rem; opacity: .8; white-space: nowrap; }
.lr-host-sub:empty { display: none; }
.lr-follow { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #fff; background: var(--live-red); margin-left: 2px; }
.lr-follow .icon { width: 16px; height: 16px; }
.lr-follow.hidden { display: none; }
.lr-top-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.lr-gifters { display: flex; align-items: center; }
.lr-gifter { position: relative; margin-left: -6px; border-radius: 50%; }
.lr-gifter:first-child { margin-left: 0; }
.lr-gifter .avatar, .lr-gifter img { border-radius: 50%; border: 2px solid #ffd166; }
.lr-gifter-2 .avatar, .lr-gifter-2 img { border-color: #d9d9d9; }
.lr-gifter-3 .avatar, .lr-gifter-3 img { border-color: #e0a36b; }
.lr-viewers { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700;
  padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.38); backdrop-filter: blur(10px); }
.lr-viewers .icon { width: 14px; height: 14px; }
.lr-viewers.hidden { display: none; }
.lr-close, .lr-end-btn { border: 0; color: #fff; display: grid; place-items: center; background: rgba(0,0,0,.38); backdrop-filter: blur(10px); }
.lr-close { width: 34px; height: 34px; border-radius: 50%; }
.lr-close .icon { width: 18px; height: 18px; }
.lr-end-btn { height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--live-red); }

.lr-sub { position: absolute; z-index: 5; top: calc(58px + var(--safe-top)); left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.lr-badge { font-size: .64rem; font-weight: 900; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--live-red); }
.lr-title { font-size: .82rem; font-weight: 600; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.lr-banners { position: absolute; z-index: 6; left: 10px; top: calc(96px + var(--safe-top)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.lr-banner { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; max-width: 78vw;
  background: linear-gradient(90deg, rgba(217,119,6,.85), rgba(255,45,85,.55) 70%, rgba(255,45,85,0));
  animation: lr-banner-in .35s cubic-bezier(.2,.8,.2,1); }
.lr-banner.out { animation: lr-banner-out .3s ease-in forwards; }
@keyframes lr-banner-in { from { transform: translateX(-110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lr-banner-out { to { transform: translateX(-30%); opacity: 0; } }
.lr-banner .avatar, .lr-banner img { border-radius: 50%; }
.lr-banner-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.lr-banner-meta strong { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-banner-meta span { font-size: .72rem; opacity: .9; }
.lr-banner-gift { display: grid; }
.lr-banner-qty { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 1.25rem;
  color: #ffd166; text-shadow: 0 2px 0 rgba(0,0,0,.35); animation: lr-pop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes lr-pop { from { transform: scale(.3); } to { transform: none; } }

.lr-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 40px 10px calc(10px + var(--safe-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%); }
.lr-chat { max-height: 34vh; width: min(78%, 360px); overflow-y: auto; display: flex; flex-direction: column; gap: 5px;
  padding: 16px 0 8px; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); }
.lr-chat::-webkit-scrollbar { display: none; }
.lr-msg { align-self: flex-start; max-width: 100%; font-size: .84rem; line-height: 1.3; padding: 5px 10px; border-radius: 14px;
  background: rgba(0,0,0,.32); overflow-wrap: anywhere; animation: lr-msg-in .2s ease-out; }
@keyframes lr-msg-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.lr-msg-name { font-weight: 800; color: #ffd9a8; margin-right: 6px; }
.lr-msg-host .lr-msg-name { color: var(--accent-b); }
.lr-msg-host .lr-msg-name::after { content: "Host"; margin-left: 5px; font-size: .6rem; font-weight: 900; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 4px; background: var(--live-red); color: #fff; vertical-align: 1px; }
.lr-msg-own { cursor: pointer; }
.lr-msg-system { color: rgba(255,255,255,.72); font-size: .78rem; background: rgba(0,0,0,.22); }
.lr-msg-gift { color: #ffd166; font-weight: 700; background: rgba(217,119,6,.28); }

.lr-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lr-pill { flex: 1; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 4px 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.lr-pill:focus-within { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.lr-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: .9rem; }
.lr-input::placeholder { color: rgba(255,255,255,.65); }
.lr-send { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--accent-a); }
.lr-send .icon { width: 16px; height: 16px; }
.lr-send.hidden { display: none; }
.lr-act { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.lr-act .icon { width: 21px; height: 21px; }
.lr-act:active { transform: scale(.9); }
.lr-act-gift { background: linear-gradient(135deg, #ff7a3d, var(--live-red)); box-shadow: 0 4px 16px rgba(255,45,85,.45); }
.lr-act-heart { color: #ff4d6d; }

.lr-hearts { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.lr-heart { position: absolute; right: 22px; bottom: calc(70px + var(--safe-bottom)); display: grid;
  animation: lr-float 2.3s cubic-bezier(.3,.6,.5,1) forwards; }
.lr-heart .icon { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.lr-heart.mine .icon { width: 34px; height: 34px; }
@keyframes lr-float {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; }
  12% { transform: translate(0, -20px) scale(1.1) rotate(var(--rot)); opacity: 1; }
  100% { transform: translate(var(--drift), -300px) scale(.9) rotate(var(--rot)); opacity: 0; } }
.lr-heart.at-point { right: auto; bottom: auto; margin: -40px 0 0 -40px; animation: lr-tap 1s ease-out forwards; }
.lr-heart.at-point .icon { width: 80px; height: 80px; }
@keyframes lr-tap { 0% { transform: scale(.3) rotate(var(--rot)); opacity: 0; } 20% { transform: scale(1.15) rotate(var(--rot)); opacity: 1; }
  40% { transform: scale(1) rotate(var(--rot)); } 100% { transform: translateY(-90px) scale(1.2) rotate(var(--rot)); opacity: 0; } }

.lr-gift-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }

.lr-ended { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(14px); }
.lr-ended.hidden { display: none; }
.lr-ended-card { width: min(320px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lr-ended-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.2rem; }
.lr-ended-sub { margin: 0 0 8px; opacity: .75; }
.lr-ended-card .avatar, .lr-ended-card img { border-radius: 50%; }
.lr-ended-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }

.lr-nav { position: absolute; right: 18px; z-index: 10; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: none; place-items: center; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); cursor: pointer; }
.lr-nav .icon { width: 22px; height: 22px; }
.lr-nav-up { top: calc(50% - 52px); } .lr-nav-up .icon { transform: rotate(180deg); }
.lr-nav-down { top: calc(50% + 8px); }
.lr-nav:hover { background: rgba(255,255,255,.24); }
.lr-nav[hidden] { display: none !important; }
@media (min-width: 720px) {
  .lr-nav { display: grid; }
  .lr-stage { border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06); }
  .lr-room::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #1a1a22, #000 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .lr-in-up, .lr-in-down, .lr-out-up, .lr-out-down, .lr-room, .lr-banner, .lr-msg { animation: none !important; }
  .lh-bars i, .lh-dot, .lh-skel { animation: none; }
}

.lr-host { flex: 0 1 auto; max-width: none; min-width: 0; }
.lr-top-right { flex: 0 0 auto; gap: 5px; }
.lr-host-meta { flex: 1 1 auto; min-width: 0; }
.lr-host-name { max-width: 150px; }
.lr-host-sub { overflow: hidden; text-overflow: ellipsis; }
.lr-close { width: 32px; height: 32px; }
.lr-viewers { padding: 5px 8px; }
@media (max-width: 420px) { .lr-gifter-3 { display: none; } .lr-host-name { max-width: 110px; } }
.lr-report { pointer-events: auto; margin-left: auto; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: rgba(255,255,255,.85); background: rgba(0,0,0,.3); }
.lr-report .icon { width: 14px; height: 14px; }

.lr-ended-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.lr-ended-card .btn-ghost:hover { background: rgba(255,255,255,.2); }

.lr-input:focus, .lr-input:focus-visible { outline: none !important; box-shadow: none !important; }

@media (min-width: 600px) { .lh-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } }
