:root {
  --fv-blue: #8FC1E3; --fv-blue-deep: #4A90B8; --fv-amber: #F0860C; --fv-red: #C02026;
  --fv-paper: #F6F5F0; --fv-ink: #23302B; --fv-dim: #8E9894;
  --font-display: 'Oldenburg', Georgia, serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #000; overflow: hidden; }
body { font-family: var(--font-body); color: #eee; font-size: 15px; cursor: default; }

#stage { position: absolute; inset: 0; background: #000; overflow: hidden; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#blur-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blur-box {
  position: absolute; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: none;
  background: rgba(0,0,0,.02); border-radius: 2px;
}
.blur-box.fill { backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.blur-box { -webkit-mask-composite: source-in; mask-composite: intersect; }
.blur-box.soften { backdrop-filter: blur(5px) brightness(.62) saturate(.8); -webkit-backdrop-filter: blur(5px) brightness(.62) saturate(.8); background: rgba(0,0,0,.18); border-radius: 0; }
.hidden { display: none !important; }

.fv-badge {
  position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: #ddd; pointer-events: none;
  transition: opacity .5s ease; opacity: 1;
}
.fv-badge.faded { opacity: 0; }
.fv-profile { letter-spacing: .1em; padding: 3px 9px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.45); }
.fv-profile.strict { color: var(--fv-red); border-color: rgba(192,32,38,.5); background: rgba(192,32,38,.2); }
.fv-profile.moderate { color: var(--fv-amber); border-color: rgba(240,134,12,.5); background: rgba(240,134,12,.2); }
.fv-profile.original { color: var(--fv-blue); border-color: rgba(143,193,227,.5); background: rgba(143,193,227,.2); }
.fv-note { background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 4px; color: #bbb; }

.fv-card {
  position: absolute; right: 22px; top: 60px; max-width: 320px; background: rgba(12,16,15,.86);
  border: 1px solid rgba(143,193,227,.4); border-left: 3px solid var(--fv-blue); border-radius: 8px;
  padding: 12px 14px; pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.fv-card-t { font-family: var(--font-display); font-size: 17px; color: #fff; margin-bottom: 6px; }
.fv-card-l { font-size: 14px; color: #ddd; line-height: 1.35; margin-bottom: 4px; }
.fv-card-s { font-size: 11.5px; font-family: var(--mono); color: var(--fv-blue); margin-top: 8px; }

.fv-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; gap: 14px;
  padding: 0 20px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.8) 55%);
  transition: opacity .45s ease; opacity: 0;
}
.fv-bar.show { opacity: 1; }
.fv-bar-label { flex: 1 1 auto; font-size: 13px; color: #9aa; letter-spacing: .02em; }
.fv-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #eee; border-radius: 6px;
  padding: 5px 12px; font-family: inherit; font-size: 13px; cursor: pointer;
}
.fv-btn:hover { background: rgba(255,255,255,.16); }
.fv-vol { width: 130px; accent-color: var(--fv-blue); cursor: pointer; }

.fv-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #16201d 0%, #050807 70%); z-index: 5;
}
.fv-wait-box { max-width: 560px; padding: 34px 40px; text-align: center; }
.fv-logo {
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 12px; color: #fff;
  background: linear-gradient(145deg, #8FC1E3 0%, #4A90B8 100%);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center;
}
.fv-wait h1 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--fv-paper); margin: 0 0 10px; letter-spacing: .02em; }
.fv-why { font-size: 15px; color: var(--fv-blue); margin: 0 0 16px; }
.fv-hint { font-size: 13.5px; color: #93a09b; line-height: 1.5; margin: 0 0 20px; }
.fv-hint b { color: #cfd8d4; font-weight: 600; }
.fv-hint kbd {
  font-family: var(--mono); font-size: 11.5px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px;
  padding: 1px 5px; color: #cfd8d4;
}
.fv-conn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--fv-dim); }
.fv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fv-amber); display: inline-block; animation: fvpulse 1.6s ease-in-out infinite; }
.fv-dot.live { background: #7FA97A; animation: none; }
.fv-dot.down { background: var(--fv-red); }
@keyframes fvpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fv-dot { animation: none; opacity: .8; } }

.fv-tap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.72); z-index: 6; }
.fv-tap-btn {
  background: var(--fv-blue-deep); border: 0; color: #fff; border-radius: 8px; padding: 14px 26px;
  font-family: var(--font-body); font-size: 17px; cursor: pointer;
}
