/* Kafmoments in the full player (kafmoments.js). */
.hub-player-timeline { position: relative; }
.kafmoment-markers { position: absolute; z-index: 1; top: -7px; right: 8px; left: 8px; height: 6px; pointer-events: none; }
.kafmoment-markers > i { position: absolute; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ffd32e; box-shadow: 0 0 6px rgba(255, 211, 46, .7); }
.kafmoment-markers > i.is-keur { background: #ff5fa8; box-shadow: 0 0 6px rgba(255, 95, 168, .7); }
.kafmoment-markers > i.is-ouin { background: #7cc7ff; box-shadow: 0 0 6px rgba(124, 199, 255, .7); }

.kafmoment-open b { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 999px; background: #ffd32e; color: #17100d; font-size: .62rem; }
.kafmoment-open b[hidden] { display: none; }
.kafmoment-open svg { color: #ffd32e; fill: currentColor; stroke: none; }

.kafmoment-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.kafmoment-bubble { position: absolute; left: var(--km-x, 30%); bottom: 22%; display: flex; align-items: center; gap: 7px; max-width: min(240px, 70%); padding: 5px 11px 5px 5px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(12, 13, 17, .78); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: kafmoment-float 3.3s cubic-bezier(.2, .8, .3, 1) both; }
.kafmoment-bubble.is-keur { border-color: rgba(255, 95, 168, .5); }
.kafmoment-bubble.is-ouin { border-color: rgba(124, 199, 255, .5); }
.kafmoment-avatar { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.kafmoment-bubble span { display: grid; min-width: 0; }
.kafmoment-bubble small { overflow: hidden; color: rgba(255, 255, 255, .62); font-size: .58rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.kafmoment-bubble q, .kafmoment-list q { quotes: none; overflow-wrap: anywhere; font-size: .74rem; font-weight: 700; }
.kafmoment-reaction { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; }
@keyframes kafmoment-float {
  0% { opacity: 0; transform: translateY(18px) scale(.7); }
  12% { opacity: 1; transform: translateY(0) scale(1.05); }
  20% { transform: translateY(-6px) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(.96); }
}

.kafmoment-composer { position: absolute; z-index: 6; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; gap: 9px; max-height: min(56dvh, 380px); padding: 12px; overflow: hidden; border: 1px solid rgba(255, 211, 46, .3); border-radius: 18px; background: rgba(13, 14, 18, .97); color: #fff; box-shadow: 0 -10px 44px rgba(0, 0, 0, .55); animation: kafmoment-rise 260ms cubic-bezier(.2, .8, .3, 1) both; }
.kafmoment-composer[hidden] { display: none; }
.kafmoment-composer header { display: flex; align-items: center; justify-content: space-between; }
.kafmoment-composer header strong { font-size: .86rem; }
.kafmoment-composer header em { color: #ffd32e; font-style: normal; font-weight: 800; }
.kafmoment-composer header button, .kafmoment-delete { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; }
.kafmoment-quick { display: grid; grid-template-columns: 46px 46px minmax(0, 1fr); gap: 7px; }
.kafmoment-quick > button { display: grid; height: 40px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.kafmoment-quick > button img { width: 30px; height: 26px; border-radius: 6px; object-fit: cover; }
.kafmoment-quick form { display: flex; min-width: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.kafmoment-quick input { min-width: 0; flex: 1; padding: 0 10px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
.kafmoment-quick form button { width: 38px; border: 0; background: transparent; color: #ffd32e; font-size: 1rem; }
.kafmoment-toggle { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .7); font-size: .68rem; }
.kafmoment-list { display: grid; gap: 6px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.kafmoment-list li { display: grid; grid-template-columns: auto 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: .7rem; }
.kafmoment-list li > img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.kafmoment-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kafmoment-list .kafmoment-reaction { width: 24px; height: 18px; vertical-align: middle; }
.kafmoment-list .kafmoment-empty { display: block; color: rgba(255, 255, 255, .55); }
.kafmoment-seek { padding: 3px 7px; border: 0; border-radius: 999px; background: rgba(255, 211, 46, .14); color: #ffd32e; font: inherit; font-size: .64rem; font-weight: 800; }
@keyframes kafmoment-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .kafmoment-bubble { animation: none; }
  .kafmoment-composer { animation: none; }
}
.kafmoment-composer, .kafmoment-list { touch-action: pan-y; }
