@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Sora:wght@300;400;600;700;800&family=Roboto+Mono:wght@400;500&family=Caveat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&display=swap');

:root {
  --np-font-body: 'DM Sans', sans-serif;
  --np-font-heading: 'Sora', sans-serif;
  --np-font-mono: 'Roboto Mono', monospace;
  --np-font-hand: 'Caveat', cursive;

  --kmr-bg: #f7f4f0;
  --kmr-bg2: #ede9e3;
  --kmr-surface: #ffffff;
  --kmr-surface2: #faf8f5;
  --kmr-border: rgba(0, 0, 0, 0.07);
  --kmr-border2: rgba(0, 0, 0, 0.05);
  --kmr-text: #1c1917;
  --kmr-text2: #6b6560;
  --kmr-text3: #a09890;
  --kmr-accent: #c96a52;
  --kmr-warm: #e8d5c0;
  --kmr-warm2: #f2e8dc;
  --kmr-shadow: 0 1px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04);
  --kmr-shadow2: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
  --kmr-r: 14px;
  --kmr-r-sm: 10px;
  --kmr-player-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--np-font-body);
  background: var(--kmr-bg);
  color: var(--kmr-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ─── Page ─────────────────────────────────────────── */
.kmr-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--kmr-bg);
  padding-bottom: calc(var(--kmr-player-h) + 16px);
}

/* ─── Nav ──────────────────────────────────────────── */
.kmr-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(247, 244, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--kmr-border2);
}

.kmr-nav-title {
  font-family: var(--np-font-hand);
  font-size: 20px;
  color: var(--kmr-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.kmr-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kmr-surface);
  box-shadow: var(--kmr-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.kmr-nav-btn:hover {
  transform: scale(1.07);
  box-shadow: var(--kmr-shadow2);
}

.kmr-nav-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-nav-btn svg.fill {
  stroke: none;
  fill: var(--kmr-text2);
}

/* ─── Hero ─────────────────────────────────────────── */
.kmr-hero {
  padding: 26px 24px 0;
  text-align: center;
  position: relative;
}

.kmr-hero-blob {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 220px;
  background: radial-gradient(ellipse at 50% 40%, var(--kmr-warm) 0%, transparent 65%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.kmr-avatar-wrap {
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-bottom: 12px;
}

.kmr-avatar {
  /* width: 108px;
  height: 108px; */
  width: 143px;
  height: 143px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--kmr-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
}

.kmr-avatar-heart {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: var(--kmr-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.kmr-avatar-heart svg {
  width: 13px;
  height: 13px;
  fill: var(--kmr-accent);
  stroke: none;
}

.kmr-hero-hb {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--kmr-text2);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.kmr-hero-name {
  font-family: var(--np-font-heading);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--kmr-text);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.kmr-hero-tagline {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--kmr-text2);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* ─── Info Strip ───────────────────────────────────── */
/* .kmr-info-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 18px;
} */

.kmr-info-strip {
  display: flex;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border);
  border-radius: var(--kmr-r);
  overflow: hidden;
  margin: 0 20px 18px;
  box-shadow: var(--kmr-shadow);
}

/* Vertical divider between columns */
.kmr-info-col+.kmr-info-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--kmr-border);
}


.kmr-info-col {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.kmr-info-strip::-webkit-scrollbar {
  display: none;
}

.kmr-info-card {
  flex-shrink: 0;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border);
  border-radius: var(--kmr-r-sm);
  padding: 10px 12px;
  text-align: center;
  min-width: 76px;
  box-shadow: var(--kmr-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kmr-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kmr-shadow2);
}

/* .kmr-info-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  background: var(--kmr-bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmr-info-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-info-icon svg.fill {
  stroke: none;
  fill: var(--kmr-text2);
}

.kmr-info-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--kmr-text);
  line-height: 1.2;
  margin-bottom: 2px;
}

.kmr-info-lbl {
  font-size: 9.5px;
  color: var(--kmr-text3);
} */

.kmr-info-icon {
  width: 32px;
  height: 32px;
  background: var(--kmr-bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmr-info-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-info-icon svg.fill {
  stroke: none;
  fill: var(--kmr-text2);
}

.kmr-info-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--kmr-text);
  line-height: 1.2;
}

.kmr-info-lbl {
  font-size: 9.5px;
  color: var(--kmr-text3);
}

/* ─── Quote Card ───────────────────────────────────── */
.kmr-quote {
  margin: 0 20px 8px;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border2);
  border-radius: var(--kmr-r);
  padding: 18px 20px 14px;
  position: relative;
  box-shadow: var(--kmr-shadow);
}

.kmr-quote-qo {
  display: none;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--kmr-warm);
  position: absolute;
  top: 8px;
  left: 12px;
}

.kmr-quote-qc {
  display: none;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--kmr-warm);
  position: absolute;
  bottom: 6px;
  right: 12px;
}

.kmr-quote-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--kmr-text2);
  /* text-align: center; */
  /* padding: 6px 14px 4px; */
  padding: 4px;
}

.kmr-quote-sign {
  font-family: var(--np-font-hand);
  font-size: 17px;
  color: var(--kmr-accent);
  /* text-align: center;  */
  margin-top: 8px;
  margin-bottom: 12px;
}

.kavya-mohana-repati__wish-signature {
  margin-top: 14px;
  font-family: var(--np-font-hand);
  font-size: 18px;
  color: var(--kmr-accent);
  font-weight: 600;
}

/* ─── Countdown Bar ────────────────────────────────── */
.kmr-cd-bar {
  margin: 0 20px 20px;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border2);
  border-radius: var(--kmr-r-sm);
  padding: 10px 14px;
  /* display: flex; */
  align-items: center;
  gap: 10px;
  box-shadow: var(--kmr-shadow);
}

.kmr-cd-lbl-main {
  font-size: 11.5px;
  color: var(--kmr-text2);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kmr-cd-nums {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.kmr-cd-unit {
  text-align: center;
  min-width: 34px;
}

.kmr-cd-n {
  font-family: var(--np-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--kmr-accent);
  display: block;
  line-height: 1;
}

.kmr-cd-u {
  font-size: 8.5px;
  color: var(--kmr-text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kmr-cd-dot {
  font-size: 13px;
  font-weight: 700;
  color: var(--kmr-text3);
  margin-top: -5px;
}

.kmr-cd-bday {
  font-family: var(--np-font-hand);
  font-size: 18px;
  color: var(--kmr-accent);
  text-align: center;
  width: 100%;
  padding: 4px 0;
}

/* ─── Moments Section ──────────────────────────────── */
.kmr-moments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
}

.kmr-moments-title {
  /* font-family: var(--np-font-hand); */
  font-family: var(--np-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--kmr-text);
}

.kmr-little-moments-tite {
  font-family: var(--np-font-hand);
  text-align: center !important;
  font-size: 18px;
  color: var(--kmr-text);
}

.kmr-filter-pills {
  display: flex;
  gap: 4px;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border);
  border-radius: 10px;
  padding: 3px;
}

.kmr-pill {
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--kmr-text2);
  transition: all 0.2s;
  cursor: pointer;
}

.kmr-pill.active {
  background: var(--kmr-text);
  color: var(--kmr-surface);
}

/* ─── Media Grid ───────────────────────────────────── */
.kmr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 20px;
}

.kmr-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--kmr-warm2);
}

.kmr-cell img,
.kmr-cell .kmr-cell-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.kmr-cell:hover img,
.kmr-cell:hover .kmr-cell-thumb {
  transform: scale(1.05);
}

/* ─── Hamburger Hint Tooltip ───────────────────────────── */
.kmr-menu-hint {
  position: fixed;
  top: 58px;
  left: calc(50% - 215px + 14px);
  background: #1c1917;
  color: #fff;
  font-family: var(--np-font-body);
  font-size: 12px;
  padding: 7px 12px 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.kmr-menu-hint::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 19px;
  width: 9px;
  height: 9px;
  background: #1c1917;
  transform: rotate(45deg);
  border-radius: 1px;
}

.kmr-menu-hint svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.kmr-menu-hint.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 430px) {
  .kmr-menu-hint {
    left: 14px;
  }
}

/* play overlay for videos */
.kmr-cell-play-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.kmr-cell:hover .kmr-cell-play-ico {
  background: rgba(0, 0, 0, 0.2);
}

.kmr-cell-play-ico svg {
  width: 26px;
  height: 26px;
  fill: rgba(255, 255, 255, 0.95);
  stroke: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

/* type badge */
.kmr-cell-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmr-cell-badge svg {
  width: 10px;
  height: 10px;
  fill: #fff;
  stroke: none;
}

/* duration */
.kmr-cell-dur {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-family: var(--np-font-mono);
  font-size: 9.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ─── Wish Card ────────────────────────────────────── */
.kmr-wish {
  margin: 0 20px 28px;
  background: linear-gradient(135deg, var(--kmr-surface) 0%, var(--kmr-warm2) 100%);
  border: 1px solid var(--kmr-border2);
  border-radius: var(--kmr-r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--kmr-shadow);
}

.kmr-wish-left {
  flex: 1;
}

.kmr-wish-text {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--kmr-text2);
  line-height: 1.6;
  margin-bottom: 4px;
}

.kmr-wish-sign {
  font-family: var(--np-font-hand);
  font-size: 20px;
  color: var(--kmr-accent);
  font-weight: 600;
}

.kmr-wish-emoji {
  font-size: 34px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── Footer ───────────────────────────────────────── */
.kmr-footer {
  padding: 8px 20px 20px;
  text-align: center;
  font-family: var(--np-font-hand);
  font-size: 14px;
  color: var(--kmr-text3);
}

.kmr-footer span {
  color: var(--kmr-accent);
}

/* ─── Bottom Player ────────────────────────────────── */
.kmr-player {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: var(--kmr-surface);
  border-top: 1px solid var(--kmr-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 16px 14px;
  border-radius: 10px 10px 0 0;
  transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.kmr-player.hidden {
  transform: translateX(-50%) translateY(100%);
}

.kmr-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.kmr-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1c1917;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: kmr-spin 4s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}

.kmr-disc.playing {
  animation-play-state: running;
}

.kmr-disc svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.8);
  stroke: none;
}

.kmr-track-info {
  flex: 1;
  min-width: 0;
}

.kmr-track-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kmr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kmr-track-sub {
  font-size: 10.5px;
  color: var(--kmr-text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kmr-ctrl-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kmr-c-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.kmr-c-btn:hover {
  background: var(--kmr-bg2);
}

.kmr-c-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-c-btn.fill svg {
  stroke: none;
  fill: var(--kmr-text2);
}

.kmr-c-btn.main-play {
  width: 38px;
  height: 38px;
  background: var(--kmr-text);
}

.kmr-c-btn.main-play svg {
  stroke: none;
  fill: #fff;
  width: 16px;
  height: 16px;
}

.kmr-c-btn.main-play:hover {
  background: var(--kmr-accent);
}

.kmr-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kmr-time {
  font-family: var(--np-font-mono);
  font-size: 10px;
  color: var(--kmr-text3);
  flex-shrink: 0;
  min-width: 26px;
}

.kmr-track {
  flex: 1;
  height: 3px;
  background: var(--kmr-bg2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.kmr-fill {
  height: 100%;
  background: var(--kmr-text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
  pointer-events: none;
}

.kmr-track:hover .kmr-fill {
  background: var(--kmr-accent);
}

/* ─── Lightbox ─────────────────────────────────────────── */
.kmr-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.kmr-lb.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Top bar ── */
.kmr-lb-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.kmr-lb-counter {
  font-family: var(--np-font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.kmr-lb-nav {
  display: flex;
  gap: 6px;
}

.kmr-lb-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  flex-shrink: 0;
}

.kmr-lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.kmr-lb-btn:active {
  transform: scale(0.94);
}

.kmr-lb-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Frame — contains the media ── */
.kmr-lb-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.kmr-lb-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image inside frame */
.kmr-lb-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmr-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Video inside frame */
.kmr-lb-vwrap {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmr-lb-vid {
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 10px;
}

.kmr-lb-voverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}

.kmr-lb-vcenter {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 0;
}

/* Paused — always show the pause icon */
.kmr-lb-vwrap.paused .kmr-lb-vcenter {
  opacity: 1;
}


.kmr-lb-vcenter svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none;
}

/* Hide play icon when playing, show on hover */
.kmr-lb-vwrap.playing .kmr-lb-vcenter {
  opacity: 0;
  /* transition: opacity 0.2s; */
}

/* .kmr-lb-vwrap.playing:hover .kmr-lb-vcenter {
  opacity: 1;
} */

.kmr-lb-vwrap.playing:hover .kmr-lb-vcenter {
  opacity: 0;
}

/* Bottom controls row */
.kmr-lb-vctrl {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
}

.kmr-lb-vvol {
  width: 36px;
  height: 36px;
  background: transparent !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50%;
}

.kmr-lb-vvol:hover {
  background: rgba(255, 255, 255, 0.15);
}

.kmr-lb-vvol svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Muted state toggle */
.kmr-lb-vvol .icon-muted {
  display: none;
}

.kmr-lb-vvol.muted .icon-sound {
  display: none;
}

.kmr-lb-vvol.muted .icon-muted {
  display: block;
}

/* ─── Skeleton ─────────────────────────────────────── */
.kmr-skel {
  background: linear-gradient(90deg, var(--kmr-warm2) 25%, var(--kmr-warm) 50%, var(--kmr-warm2) 75%);
  background-size: 200% 100%;
  animation: kmr-shim 1.4s infinite;
}

@keyframes kmr-shim {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.kmr-empty-msg {
  grid-column: 1/-1;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--kmr-text3);
}

/* ─── Confetti ─────────────────────────────────────── */
.kmr-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ─── Animations ───────────────────────────────────── */
@keyframes kmr-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes kmr-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kmr-hero {
  animation: kmr-up 0.5s ease 0.05s both;
}

.kmr-info-strip {
  animation: kmr-up 0.5s ease 0.12s both;
}

.kmr-quote {
  animation: kmr-up 0.5s ease 0.18s both;
}

.kmr-cd-bar {
  animation: kmr-up 0.5s ease 0.23s both;
}

.kmr-moments-head {
  animation: kmr-up 0.5s ease 0.28s both;
}

.kmr-grid {
  animation: kmr-up 0.5s ease 0.33s both;
}

.kmr-wish {
  animation: kmr-up 0.5s ease 0.38s both;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 360px) {
  .kmr-hero-name {
    font-size: 21px;
  }

  .kmr-info-card {
    min-width: 68px;
    padding: 8px 10px;
  }

  .kmr-cd-n {
    font-size: 13px;
  }
}

@media (min-width: 431px) {
  .kmr-page {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.08);
  }
}

/* ═══════════════════════════════════════════════
   LETTER PANEL — Cinematic Poster Style
   ═══════════════════════════════════════════════ */

.kmr-letter-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.35s ease;
}

.kmr-letter-overlay.open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
}

.kmr-letter-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
  background-color: #100612;
  overscroll-behavior: contain;
}

/* ── Content bottom padding bump on mobile ── */
@media (max-width: 430px) {
  .kmr-letter-content {
    padding-bottom: 140px;
    /* more breathing room above fold */
  }
}

.kmr-letter-panel::-webkit-scrollbar {
  display: none;
}

.kmr-letter-overlay.open .kmr-letter-panel {
  transform: translateX(-50%) translateY(0);
}

/* ── Photo — bleeds into background ── */
.kmr-letter-photo {
  position: relative;
  width: 100%;
  height: 55vh;
  /* desktop default */
  overflow: hidden;
  flex-shrink: 0;
}


.kmr-letter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Multi-layer gradient masks that blend photo → text section */
.kmr-letter-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 30%, rgba(10, 4, 8, 0.45) 100%),
    linear-gradient(to bottom,
      rgba(12, 4, 6, 0.0) 0%,
      rgba(12, 4, 6, 0.05) 20%,
      rgba(14, 6, 8, 0.30) 45%,
      rgba(14, 6, 10, 0.65) 62%,
      rgba(14, 6, 12, 0.88) 75%,
      rgba(16, 6, 18, 0.97) 86%,
      #100612 100%);
  /* exact match to panel bg */
}

/* ── Close button ── */
.kmr-letter-close {
  position: fixed;
  top: 16px;
  right: calc(50% - 215px + 16px);
  z-index: 20;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.kmr-letter-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.kmr-letter-close svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 430px) {
  .kmr-letter-close {
    right: 16px;
  }
}

/* Mobile: reduce photo height so content has room */
@media (max-width: 430px) {
  .kmr-letter-photo {
    height: 52vh;
  }
}

/* Small mobile (SE, mini) */
@media (max-width: 375px) {
  .kmr-letter-photo {
    height: 45vh;
  }

  .kmr-letter-content {
    padding-bottom: 160px;
  }
}

@media (max-width: 360px) {
  .kmr-letter-photo {
    height: 42vh;
  }

  .kmr-letter-content {
    padding-bottom: 180px;
  }
}

/* ── Letter content — overlaps photo bottom ── */
.kmr-letter-content {
  /* margin-top: -80px; */
  margin-top: 24px;
  position: relative;
  z-index: 2;
  padding: 0 26px 140px;
  /* background: removed entirely — panel bg shows through */
}

/* Decorative stars row */
.kmr-letter-stars {
  font-size: 13px;
  letter-spacing: 10px;
  color: rgba(220, 160, 100, 0.4);
  text-align: center;
  display: none;
  margin-bottom: 22px;
  font-family: var(--np-font-hand);
}

/* .kmr-letter-greeting {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
} */

.kmr-letter-title-wrap {
  position: relative;
  margin-bottom: 28px;
  line-height: 1;
}

.kmr-letter-greeting {
  /* font-family: 'Sacramento', cursive;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 210, 120, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  line-height: 1;
  padding-left: 6px;
  white-space: nowrap; */
  font-family: 'Sacramento', cursive;
  /* font-size: 30px; */
  font-size: 27px;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: -43px;
  z-index: 1;
  margin-top: 4px;
  line-height: 1;
  padding-left: 6px;
  white-space: nowrap;
}

/* .kmr-letter-bday {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 195, 110, 0.95);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
} */

.kmr-letter-bday {
  /* font-family: var(--np-font-heading);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 4px 24px rgba(0, 0, 0, 0.6);
  line-height: 0.92;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  white-space: nowrap; */
  font-family: var(--np-font-heading);
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 210, 120, 0.92);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), 0 4px 24px rgba(0, 0, 0, 0.6);
  line-height: 0.92;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* ─── Letter Poem / Quote Block ────────────────────────── */
.kmr-letter-poem {
  margin: 0 0 28px;
  position: relative;
  padding: 22px 22px 22px 28px;
  border-left: 1.5px solid rgba(220, 150, 80, 0.35);
}

.kmr-letter-poem::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(220, 140, 60, 0.18);
  position: absolute;
  top: -6px;
  left: 8px;
  pointer-events: none;
}

.kmr-letter-poem-title {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 200, 110, 0.85);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.kmr-letter-poem-lines {
  /* font-family: 'Roboto Mono', monospace; */
  /* font-family: "Annie Use Your Telescope", cursive; */
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  color: rgba(240, 215, 185, 0.72);
  letter-spacing: 0.01em;
}

.kmr-letter-poem-lines .kmr-poem-break {
  display: block;
  height: 10px;
}

.kmr-letter-poem-author {
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: rgba(220, 150, 80, 0.55);
  font-style: italic;
}

/* Thin decorative rule */
.kmr-letter-rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 140, 80, 0.5), transparent);
  margin: 0 0 26px 0;
}

.kmr-letter-paras {
  font-family: 'Caveat', cursive;
  /* font-family: var(--np-font-mono); */
  /* font-family: "Annie Use Your Telescope", cursive; */
  font-size: 18px;
  line-height: 1.85;
  color: rgba(250, 230, 210, 0.88);
}

.kmr-letter-paras p {
  margin-bottom: 20px;
}

.kmr-letter-paras p:last-child {
  margin-bottom: 0;
}

/* Italicise the song mention */
.kmr-letter-paras em {
  color: rgba(255, 200, 120, 1);
  font-style: italic;
}

/* Closing line */
.kmr-letter-closing {
  margin-top: 30px;
  font-family: 'Caveat', cursive;
  /* font-family: var(--np-font-mono); */
  /* font-family: "Annie Use Your Telescope", cursive; */
  font-size: 18px;
  color: rgba(255, 200, 130, 0.95);
  font-weight: 300;
}

/* Bottom gradient so text fades out beautifully at scroll end */
.kmr-letter-panel::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 80px;
  display: none;
  background: linear-gradient(to top, #100612, transparent);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.kmr-letter-overlay.open .kmr-letter-panel::after {
  opacity: 1;
  display: none;
}

/* ═══════════════════════════════════
   PIN BOTTOM SHEET — full height, no scroll
═══════════════════════════════════ */

.kmr-pin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.3s ease;
}

.kmr-pin-backdrop.open {
  background: rgba(0, 0, 0, 0.38);
  pointer-events: all;
}

/* Sheet — full viewport height, flex column */
.kmr-pin-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;

  /* KEY: full screen height, no scroll */
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;

  z-index: 360;
  background: var(--kmr-bg);
  border-top: 1px solid var(--kmr-border);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
}

.kmr-pin-sheet.open {
  transform: translateX(-50%) translateY(0);
}

/* ── Fixed header ── */
.kmr-pin-hdr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 14px 18px 12px;
  background: var(--kmr-bg);
  border-bottom: 1px solid var(--kmr-border2);
  /* sticky within the flex column */
  position: sticky;
  top: 0;
  z-index: 2;
}

.kmr-pin-hdr-sp {
  width: 34px;
}

.kmr-pin-hdr-title {
  flex: 1;
  text-align: center;
  /* font-family: var(--np-font-heading); */
  font-family: var(--np-font-hand);
  font-size: 15px;
  font-weight: 700;
  color: var(--kmr-text);
  letter-spacing: -0.01em;
}

.kmr-pin-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kmr-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--kmr-shadow);
  transition: all 0.18s;
}

.kmr-pin-back:hover {
  background: var(--kmr-warm2);
}

.kmr-pin-back:active {
  transform: scale(0.92);
}

.kmr-pin-back svg {
  width: 15px;
  height: 15px;
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Body — fills remaining height, distributes space evenly ── */
.kmr-pin-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 12px 24px 20px;
  overflow: hidden;
  /* overflow: scroll; */
}

/* ── Top block: icon + clue ── */
.kmr-pin-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.kmr-pin-lock {
  width: clamp(42px, 11vw, 52px);
  height: clamp(42px, 11vw, 52px);
  border-radius: 50%;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--kmr-shadow);
}

.kmr-pin-lock svg {
  width: clamp(18px, 5vw, 22px);
  height: clamp(18px, 5vw, 22px);
  stroke: var(--kmr-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-pin-clue {
  font-family: var(--np-font-heading);
  font-size: clamp(14px, 4.5vw, 16px);
  color: var(--kmr-text2);
  font-weight: 600;
  line-height: 1.5;
}

.kmr-pin-clue em {
  color: var(--kmr-accent);
  font-style: normal;
}

.kmr-pin-clue-sub {
  display: inline-block;
  font-family: var(--np-font-mono);
  font-size: clamp(9px, 2.2vw, 11px);
  color: var(--kmr-text3);
  letter-spacing: 0.04em;
  /* background: var(--kmr-surface); */
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12%;
  /* border: 1px solid var(--kmr-border2); */
}

/* ── Mid block: dots + error ── */
.kmr-pin-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.kmr-pin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.kmr-pin-dot {
  width: clamp(10px, 2.8vw, 13px);
  height: clamp(10px, 2.8vw, 13px);
  border-radius: 50%;
  border: 2px solid var(--kmr-border);
  background: transparent;
  transition: all 0.15s ease;
  display: block;
}

.kmr-pin-dot.filled {
  background: var(--kmr-accent);
  border-color: var(--kmr-accent);
  transform: scale(1.22);
  box-shadow: 0 0 0 3px rgba(201, 106, 82, 0.12);
}

.kmr-pin-dot.error {
  background: #e05252;
  border-color: #e05252;
  transform: scale(1.22);
}

.kmr-pin-error {
  font-family: var(--np-font-hand);
  font-size: clamp(14px, 2.5vw, 14px);
  color: #e05252;
  min-height: 20px;
  text-align: center;
  margin-bottom: 4%;
}

/* ── Keypad — fills available width, keys scale with viewport ── */
.kmr-pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(7px, 2vw, 10px);
  width: 100%;
  max-width: 280px;
}

.kmr-pin-key {
  /* aspect ratio keeps keys proportional on any screen height */
  aspect-ratio: 1.65 / 1;
  border-radius: 12px;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border2);
  font-family: var(--np-font-heading);
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 700;
  color: var(--kmr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.13s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: var(--kmr-shadow);
}

.kmr-pin-key:active {
  transform: scale(0.89);
  background: var(--kmr-warm);
  border-color: rgba(201, 106, 82, 0.35);
  color: var(--kmr-accent);
  box-shadow: none;
}

.kmr-pin-key--star {
  font-size: clamp(14px, 4vw, 20px);
  color: var(--kmr-text3);
}

.kmr-pin-key--star:active {
  background: var(--kmr-warm2);
  color: var(--kmr-text2);
  border-color: var(--kmr-border);
}

.kmr-pin-key--del svg {
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  stroke: var(--kmr-text2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kmr-pin-key--del:active {
  background: #fde8e8;
  border-color: rgba(224, 82, 82, 0.3);
}

.kmr-pin-key--del:active svg {
  stroke: #e05252;
}

/* Shake animation */
@keyframes kmr-pin-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.kmr-pin-dots.shake {
  animation: kmr-pin-shake 0.38s ease;
}

/* ─── AI Voice Surprise Card ───────────────────────────── */
.kmr-voice-card {
  margin: 0 20px 0;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border2);
  border-radius: var(--kmr-r);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* box-shadow: var(--kmr-shadow); */
  animation: kmr-up 0.5s ease 0.21s both;
  transition: border-radius 0.25s ease;
}

.kmr-voice-card.expanded {
  border-radius: var(--kmr-r) var(--kmr-r) 0 0;
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.kmr-voice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.kmr-voice-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--kmr-warm2);
  flex-shrink: 0;
  border: 2px solid var(--kmr-warm);
}

.kmr-voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: center top; */
  display: block;
}

.kmr-voice-info {
  min-width: 0;
}

.kmr-voice-from {
  font-size: 9px;
  color: var(--kmr-text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.kmr-voice-name {
  font-family: var(--np-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--kmr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kmr-voice-sub {
  font-family: var(--np-font-hand);
  font-size: 12px;
  color: var(--kmr-accent);
  margin-top: 1px;
}

.kmr-voice-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kmr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(201, 106, 82, 0.35);
  transition: all 0.2s;
  cursor: pointer;
}

.kmr-voice-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(201, 106, 82, 0.45);
}

.kmr-voice-play-btn:active {
  transform: scale(0.93);
}

.kmr-voice-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: none;
}

/* ─── Voice Progress (attached below card) ─────────────── */
.kmr-voice-progress-wrap {
  margin: 0 20px 8px;
  background: var(--kmr-surface);
  border: 1px solid var(--kmr-border2);
  border-top: none;
  border-radius: 0 0 var(--kmr-r) var(--kmr-r);
  padding: 0 16px 14px;
  box-shadow: var(--kmr-shadow);

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.kmr-voice-progress-wrap.visible {
  max-height: 100px;
  opacity: 1;
  padding: 0 16px 14px;
}

.kmr-voice-divider {
  height: 0.2px !important;
  background: var(--kmr-border);
  margin-bottom: 12px;
}

/* ─── Animated wave bars ───────────────────────────────── */
.kmr-voice-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 24px;
  margin-bottom: 10px;
}

.kmr-voice-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--kmr-accent);
  opacity: 0.35;
  height: 4px;
  transition: height 0.2s, opacity 0.2s;
}

.kmr-voice-wave.playing span {
  opacity: 0.8;
  animation: kmr-wave-bar 0.9s ease-in-out infinite;
}

.kmr-voice-wave.playing span:nth-child(1) {
  animation-delay: 0.00s;
}

.kmr-voice-wave.playing span:nth-child(2) {
  animation-delay: 0.10s;
}

.kmr-voice-wave.playing span:nth-child(3) {
  animation-delay: 0.20s;
}

.kmr-voice-wave.playing span:nth-child(4) {
  animation-delay: 0.30s;
}

.kmr-voice-wave.playing span:nth-child(5) {
  animation-delay: 0.15s;
}

.kmr-voice-wave.playing span:nth-child(6) {
  animation-delay: 0.25s;
}

.kmr-voice-wave.playing span:nth-child(7) {
  animation-delay: 0.05s;
}

.kmr-voice-wave.playing span:nth-child(8) {
  animation-delay: 0.35s;
}

.kmr-voice-wave.playing span:nth-child(9) {
  animation-delay: 0.18s;
}

.kmr-voice-wave.playing span:nth-child(10) {
  animation-delay: 0.28s;
}

@keyframes kmr-wave-bar {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 20px;
  }
}

.kmr-voice-pbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kmr-voice-time {
  font-family: var(--np-font-mono);
  font-size: 10px;
  color: var(--kmr-text3);
  flex-shrink: 0;
  min-width: 26px;
}

.kmr-voice-track {
  flex: 1;
  height: 3px;
  background: var(--kmr-bg2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.kmr-voice-fill {
  height: 100%;
  background: var(--kmr-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s linear;
  pointer-events: none;
}

/* ─── Lazy Load Spinner ────────────────────────────────── */
.kmr-load-sentinel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}

.kmr-ios-spinner {
  position: relative;
  width: 20px;
  height: 20px;
}

.kmr-ios-spinner span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.2px;
  height: 7px;
  margin-left: -1.1px;
  margin-top: -13px;
  border-radius: 1.5px;
  background: var(--kmr-text3);
  transform-origin: 1.1px 13px;
  opacity: 0;
  animation: kmr-ios-fade 1.0s linear infinite;
}

.kmr-ios-spinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -0.916s;
}

.kmr-ios-spinner span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.833s;
}

.kmr-ios-spinner span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.750s;
}

.kmr-ios-spinner span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.666s;
}

.kmr-ios-spinner span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.583s;
}

.kmr-ios-spinner span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.500s;
}

.kmr-ios-spinner span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.416s;
}

.kmr-ios-spinner span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.333s;
}

.kmr-ios-spinner span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.250s;
}

.kmr-ios-spinner span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.166s;
}

.kmr-ios-spinner span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.083s;
}

.kmr-ios-spinner span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

@keyframes kmr-ios-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.08;
  }
}

/* ─── Network Banner ───────────────────────────────────── */
.kmr-net-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 600;
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: height;
}

.kmr-net-banner.offline {
  height: 36px;
}

.kmr-net-banner.online-flash {
  height: 36px;
}

.kmr-net-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  font-family: var(--np-font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, color 0.3s ease;
}

.kmr-net-banner.offline .kmr-net-banner-inner {
  background: #c0392b;
  color: #fff;
}

.kmr-net-banner.online-flash .kmr-net-banner-inner {
  background: #1e7e4a;
  color: #fff;
}

.kmr-net-banner-inner svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── Body push-down when banner is visible ────────────── */
.kmr-page {
  transition: padding-top 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.kmr-page.net-pushed {
  padding-top: 36px;
}

.kmr-nav {
  transition: top 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.kmr-nav.net-pushed {
  top: 36px;
}