/* VixoStream player (shared by the panel overview and /NAME/embed.html) */
.sfp { --pa: #a855f7; --pb: #ec4899; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 14px; font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff; user-select: none; }
.sfp.embed { border-radius: 0; height: 100%; aspect-ratio: auto; }
.sfp video { width: 100%; height: 100%; display: block; background: #000; cursor: pointer; object-fit: contain; }
.sfp.idle video { cursor: none; }
.sfp.idle .sfp-bar, .sfp.idle .sfp-top { opacity: 0; pointer-events: none; }
.sfp.idle .sfp-bar { transform: translateY(8px); }

/* top: the title over a soft shade */
.sfp-top { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px 30px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); transition: opacity .25s ease; pointer-events: none; }
.sfp-top:empty { display: none; }
.sfp-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* bottom: a floating glass bar */
.sfp-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 16px; background: rgba(12, 10, 24, .58); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .25s ease, transform .25s ease; }
.sfp-spacer { flex: 1; }
.sfp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 9px; border: 0; border-radius: 11px; background: transparent; color: #fff; cursor: pointer; transition: background .15s, transform .1s; font: inherit; }
.sfp-btn:hover { background: rgba(255,255,255,.14); }
.sfp-btn:active { transform: scale(.94); }
.sfp-btn.on { background: linear-gradient(135deg, var(--pa), var(--pb)); }
.sfp-btn.wide { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.sfp-live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 800 11px/1 'Inter', system-ui, sans-serif; letter-spacing: .1em; cursor: default; margin: 0 2px; }
.sfp-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 10px #ff3b4e; }
.sfp-live.off { cursor: pointer; color: rgba(255,255,255,.62); }
.sfp-live.off .dot { background: rgba(255,255,255,.42); box-shadow: none; }
.sfp-live.off:hover { background: rgba(255,255,255,.2); color: #fff; }
.sfp-live.ok { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 0 14px rgba(34,197,94,.45); }
.sfp-live.ok .dot { background: #fff; box-shadow: 0 0 10px #fff; animation: sfp-pulse 2s ease-in-out infinite; }
.sfp-live.bad { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 0 14px rgba(239,68,68,.45); }
.sfp-live.bad .dot { background: #fff; box-shadow: 0 0 10px #fff; animation: sfp-blink 1s ease-in-out infinite; }
@keyframes sfp-blink { 50% { opacity: .35; } }
@keyframes sfp-pulse { 50% { box-shadow: 0 0 2px #fff; opacity: .75; } }

/* volume: the slider unfolds, filled up to the level */
.sfp-vol { display: flex; align-items: center; }
.sfp-vol input { --v: 0%; -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 4px; margin: 0; border-radius: 4px; background: linear-gradient(to right, var(--pa), var(--pb) var(--v), rgba(255,255,255,.25) var(--v)); transition: width .2s, opacity .2s, margin .2s; cursor: pointer; }
.sfp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(168,85,247,.35); }
.sfp-vol input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.sfp-vol:hover input, .sfp-vol input:focus-visible { width: 80px; opacity: 1; margin: 0 8px 0 4px; }

/* latency chip, right after the sound */
.sfp-lat { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); font: 700 11.5px/1 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.sfp-lat b { font-weight: 700; }
.sfp-lat.good { color: #4ade80; background: rgba(34,197,94,.14); }
.sfp-lat.mid { color: #fbbf24; background: rgba(245,158,11,.14); }
.sfp-lat.high { color: #fb7185; background: rgba(244,63,94,.15); }

/* quality menu */
.sfp-menu { position: relative; }
.sfp-menu-list { position: absolute; right: 0; bottom: calc(100% + 12px); min-width: 130px; max-height: 230px; overflow-y: auto; padding: 6px; border-radius: 13px; border: 1px solid rgba(255,255,255,.14); background: rgba(14,12,26,.94); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.sfp-menu-list button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.82); font: 600 12.5px 'Inter', system-ui, sans-serif; text-align: left; cursor: pointer; }
.sfp-menu-list button:hover { background: rgba(255,255,255,.1); color: #fff; }
.sfp-menu-list button.on { background: linear-gradient(135deg, var(--pa), var(--pb)); color: #fff; }

/* stats card */
.sfp-stats { position: absolute; top: 14px; right: 14px; min-width: 210px; padding: 10px 12px; border-radius: 13px; background: rgba(10, 8, 22, .78); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); font-size: 12px; display: grid; gap: 4px; }
.sfp-stats div { display: flex; justify-content: space-between; gap: 16px; }
.sfp-stats span { color: rgba(255,255,255,.6); }
.sfp-stats b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; }

/* waiting: a ring in the middle; paused: a big play button */
.sfp-busy { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sfp-ring { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, var(--pa), var(--pb)); -webkit-mask: radial-gradient(circle, transparent 20px, #000 21px); mask: radial-gradient(circle, transparent 20px, #000 21px); animation: sfp-spin .9s linear infinite; filter: drop-shadow(0 0 10px rgba(168,85,247,.6)); }
@keyframes sfp-spin { to { transform: rotate(360deg); } }
.sfp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--pa), var(--pb)); color: #fff; cursor: pointer; box-shadow: 0 12px 40px rgba(168,85,247,.55), 0 0 0 8px rgba(255,255,255,.08); transition: transform .15s; }
.sfp-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.sfp-big svg { margin-left: 4px; }
.sfp-sound { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: 999px; background: rgba(12,10,24,.66); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; font: 600 13px 'Inter', system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.sfp-sound:hover { background: linear-gradient(135deg, var(--pa), var(--pb)); }
.sfp-state { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,4,16,.78); backdrop-filter: blur(4px); text-align: center; padding: 20px; }
.sfp-state .inner { max-width: 360px; }
.sfp-state svg { color: var(--pa); margin-bottom: 8px; }
.sfp-state h3 { margin: 0 0 6px; font-size: 17px; }
.sfp-state p { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: 13px; }
.sfp-retry { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--pa), var(--pb)); color: #fff; font: 600 13px 'Inter', system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(168,85,247,.45); }
@media (max-width: 560px) {
  .sfp-vol input, .sfp-vol:hover input { display: none; }
  .sfp-bar { left: 6px; right: 6px; bottom: 6px; gap: 2px; padding: 4px; border-radius: 13px; }
  .sfp-btn { min-width: 34px; height: 34px; padding: 0 6px; }
  .sfp-btn.wide span { display: none; }
  .sfp-lat { padding: 0 7px; font-size: 10.5px; }
  .sfp-lat svg { display: none; }
  .sfp-big { width: 62px; height: 62px; }
}
