/* ktv-extras.css — fullscreen host, inner danmaku, fs button, now-playing bar */

.fs-host { position: relative; width: 100%; height: 100%; }
.fs-host:fullscreen {
  background: #000;
  width: 100vw; height: 100vh;
  display: grid; place-items: center;
}
.fs-host:fullscreen .player-wrap,
.fs-host:fullscreen .player-empty { position: absolute; inset: 0; }
.fs-host:fullscreen .player-frame > iframe {
  width: 100% !important; height: 100% !important;
}
.fs-host:fullscreen .fs-btn { bottom: 18px; right: 18px; }

.fs-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.55);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 4;
  transition: all 0.15s;
  opacity: 0;
}
.fs-host:hover .fs-btn,
.fs-host:fullscreen .fs-btn { opacity: 1; }
.fs-btn:hover {
  background: rgba(255, 46, 166, 0.6);
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255,46,166,0.5);
}

.dm-inner {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 3;
  display: none;
}
.fs-host:fullscreen .dm-inner { display: block; }
.dm-inner-item {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-weight: 700;
  font-size: 30px;
  color: white;
  -webkit-text-stroke: 2.5px black;
  paint-order: stroke fill;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  animation: dm-fly linear forwards;
  animation-duration: 11s;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

body[data-density="comfy"] {
  --gap-y: 14px; --pad: 18px; --radius: 16px;
}
body[data-font="display"] {
  --font-body: "Orbitron", "Noto Sans SC", system-ui, sans-serif;
}

/* Now-Playing bar (replaces old controls bar) */
.np-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(34, 12, 50, 0.9), rgba(20, 6, 40, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  box-shadow: 0 0 22px rgba(255, 46, 166, 0.12), inset 0 0 22px rgba(0, 220, 255, 0.05);
  min-width: 0;
}
@media (max-width: 480px) {
  .np-bar { gap: 8px; padding: 10px 12px; }
  .np-title { font-size: 17px; }
  .np-title-wrap {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent);
  }
  .np-meta { font-size: 10px; gap: 2px; }
  .np-by { font-size: 10px; }
}
.np-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 36px), transparent);
}
.np-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 220, 255, 0.55), 0 0 22px rgba(0, 220, 255, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.np-title.is-dim {
  color: var(--ink-mute);
  text-shadow: none;
  font-style: italic;
}
.np-title-text { display: inline-block; padding-right: 4px; }
.np-title.is-marquee {
  animation: np-marquee 18s linear infinite;
  will-change: transform;
}
.np-title.is-marquee:hover { animation-play-state: paused; }
@keyframes np-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.np-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.np-by {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 11px;
}
.np-dim { opacity: 0.6; }

/* Floating QR button (bottom-left) */
.fab-qr {
  position: fixed;
  left: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0,220,255,0.18), rgba(255,46,166,0.16));
  color: var(--neon-cyan);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 0 18px rgba(0,220,255,0.45), 0 0 38px rgba(255,46,166,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.fab-qr:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0,220,255,0.65), 0 0 48px rgba(255,46,166,0.35);
}
.fab-qr-pop {
  position: fixed; inset: 0;
  background: rgba(2, 0, 12, 0.55);
  backdrop-filter: blur(6px);
  z-index: 70;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 22px 22px 88px 22px;
  box-sizing: border-box;
}
.fab-qr-card {
  background: linear-gradient(160deg, rgba(20, 4, 36, 0.96), rgba(8, 2, 22, 0.96));
  border: 1px solid var(--neon-cyan);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 30px rgba(0,220,255,0.35), 0 0 60px rgba(255,46,166,0.15);
  width: min(300px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.fab-qr-body img { max-width: 100%; height: auto; }
.fab-qr-body .qr-url { width: 100%; box-sizing: border-box; word-break: break-all; }
@media (max-width: 480px) {
  .fab-qr-pop { padding: 16px 16px 80px 16px; }
}
.fab-qr-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 12px;
}
.fab-qr-body {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
