.pv-root {
  --pv-a: #d4af37;
  --pv-b: #f6e29e;
  --pv-bg: #06070b;
  --pv-text: #f4f6fa;
  --pv-muted: #9aa4b2;
  --pv-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pv-ease: cubic-bezier(.16, 1, .3, 1);
  --pv-bar: clamp(26px, 7vh, 64px);
  position: fixed; inset: 0; z-index: 10080;
  background: var(--pv-bg); color: var(--pv-text);
  font-family: var(--pv-font); -webkit-font-smoothing: antialiased;
  overflow: hidden; isolation: isolate;
  clip-path: circle(0% at var(--pv-ox, 50%) var(--pv-oy, 50%));
  transition: clip-path .9s var(--pv-ease), opacity .8s ease;
}
.pv-root.is-in { clip-path: circle(150% at var(--pv-ox, 50%) var(--pv-oy, 50%)); }
.pv-root.is-closing { clip-path: circle(0% at 50% 50%); transition-duration: .55s; }
.pv-root.is-out { opacity: 0; transition-delay: .45s; pointer-events: none; }
.pv-root *, .pv-root *::before, .pv-root *::after { box-sizing: border-box; }
.pv-root button { font-family: inherit; color: inherit; cursor: pointer; }
.pv-root svg { display: inline-block; flex-shrink: 0; }
.pv-root :focus-visible { outline: 2px solid var(--pv-b); outline-offset: 3px; }
html.pv-lock, html.pv-lock body { overflow: hidden !important; }
html.pv-lock .ecn-chat-launcher { display: none !important; }

.pv-bg { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 50% 48%, color-mix(in srgb, var(--pv-a) 28%, transparent), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, color-mix(in srgb, var(--pv-b) 14%, transparent), transparent 70%),
    radial-gradient(28% 26% at 82% 18%, color-mix(in srgb, var(--pv-a) 12%, transparent), transparent 70%);
  animation: pv-drift 14s ease-in-out infinite alternate; }
.pv-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg at 50% 120%, transparent 0deg 7deg, color-mix(in srgb, var(--pv-a) 9%, transparent) 8deg 9deg, transparent 10deg 18deg);
  mask-image: radial-gradient(70% 70% at 50% 60%, #000, transparent 75%);
  animation: pv-sweep 18s linear infinite; }
.pv-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.pv-bars span { position: absolute; left: 0; right: 0; height: var(--pv-bar); background: #000; z-index: 3; transition: transform .8s var(--pv-ease) .15s; }
.pv-bars span:first-child { top: 0; transform: translateY(-100%); }
.pv-bars span:last-child { bottom: 0; transform: translateY(100%); }
.pv-root.is-in .pv-bars span { transform: none; }
.pv-root.is-out .pv-bars span:first-child { transform: translateY(-100%); transition-delay: 0s; }
.pv-root.is-out .pv-bars span:last-child { transform: translateY(100%); transition-delay: 0s; }

.pv-top { position: absolute; top: 0; left: 0; right: 0; height: var(--pv-bar); z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 34px); opacity: 0; transition: opacity .6s ease .9s; }
.pv-root.is-in .pv-top { opacity: 1; }
.pv-brand { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--pv-muted); }
.pv-brand img { height: 22px; width: auto; }
.pv-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, transform .2s; }
.pv-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }

.pv-title { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; pointer-events: none; transition: transform 1s var(--pv-ease), opacity .7s ease; }
.pv-mark { position: relative; display: grid; place-items: center; }
.pv-glow { position: absolute; left: 50%; top: 50%; width: 240%; aspect-ratio: 1; margin: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--pv-a) 42%, transparent) 0%, transparent 62%);
  opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity 1.2s ease .5s, transform 1.4s var(--pv-ease) .5s; }
.pv-root.is-in .pv-glow { opacity: 1; transform: translate(-50%, -50%); }
.pv-logo { position: relative; width: clamp(84px, 13vw, 150px); height: auto; opacity: 0; transform: scale(.6) translateY(16px); transition: transform 1.2s var(--pv-ease) .35s, opacity .8s ease .35s; }
.pv-root.is-in .pv-logo { opacity: 1; transform: none; }
.pv-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--pv-b); opacity: 0; transform: translateY(10px); transition: all .8s var(--pv-ease) .7s; }
.pv-name { font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.pv-name span { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-70deg); transform-origin: 50% 100%; transition: transform .9s var(--pv-ease), opacity .6s ease; transition-delay: calc(.8s + var(--i) * .045s); }
.pv-root.is-in .pv-kicker, .pv-root.is-in .pv-name span { opacity: 1; transform: none; }
.pv-name span.pv-sp { width: .28em; }
.pv-rule { width: min(260px, 50vw); height: 1px; background: linear-gradient(90deg, transparent, var(--pv-a), var(--pv-b), var(--pv-a), transparent); transform: scaleX(0); transition: transform 1.1s var(--pv-ease) 1.05s; }
.pv-root.is-in .pv-rule { transform: scaleX(1); }
.pv-root.is-play .pv-title { transform: translateY(-14vh) scale(.6); opacity: 0; transition-delay: 0s; }

.pv-stage { position: absolute; inset: var(--pv-bar) 0; z-index: 4; display: grid; place-items: center; padding: clamp(10px, 2.4vw, 28px); pointer-events: none; }
.pv-frame { position: relative; width: min(1180px, 100%); max-height: 100%; aspect-ratio: var(--pv-ratio, 16 / 9); border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid color-mix(in srgb, var(--pv-a) 30%, transparent);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px color-mix(in srgb, var(--pv-a) 18%, transparent);
  opacity: 0; transform: perspective(1400px) translateY(40px) rotateX(14deg) scale(.86); filter: blur(10px);
  transition: transform 1.2s var(--pv-ease), opacity .8s ease, filter .9s ease; }
@supports not (aspect-ratio: 1) { .pv-frame { height: 56vw; } }
.pv-frame.is-portrait { width: auto; height: 100%; max-width: 100%; }
.pv-root.is-play .pv-stage { pointer-events: auto; }
.pv-root.is-play .pv-frame { opacity: 1; transform: none; filter: none; }
.pv-root.is-out .pv-frame { transform: scale(1.12); filter: blur(14px) brightness(1.6); opacity: 0; transition-duration: .9s, .7s, .7s; }
.pv-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }

.pv-spinner { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--pv-b); animation: pv-spin .9s linear infinite; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pv-frame.is-waiting .pv-spinner { opacity: 1; }
.pv-bigplay { position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #0b0d12;
  background: linear-gradient(135deg, var(--pv-b), var(--pv-a)); box-shadow: 0 0 0 10px color-mix(in srgb, var(--pv-a) 18%, transparent), 0 14px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--pv-ease); pointer-events: none; }
.pv-bigplay svg { margin-left: 5px; }
.pv-frame.is-paused .pv-bigplay { opacity: 1; transform: none; pointer-events: auto; }
.pv-error { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: rgba(0, 0, 0, .82); }
.pv-frame.is-error .pv-error { display: flex; }
.pv-error p { margin: 0; color: var(--pv-muted); font-size: .92rem; max-width: 380px; }

.pv-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); transition: opacity .35s, transform .35s var(--pv-ease); }
.pv-frame.is-idle:not(.is-paused) .pv-controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.pv-frame.is-idle:not(.is-paused) .pv-video { cursor: none; }
.pv-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; transition: background .2s; }
.pv-btn:hover { background: rgba(255, 255, 255, .12); }
.pv-time { font-size: .78rem; font-variant-numeric: tabular-nums; color: #dfe4ea; white-space: nowrap; min-width: 86px; text-align: center; }
.pv-seek { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.pv-seek-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; transition: height .2s; }
.pv-seek:hover .pv-seek-track { height: 6px; }
.pv-seek-buf, .pv-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.pv-seek-buf { background: rgba(255, 255, 255, .28); }
.pv-seek-fill { background: linear-gradient(90deg, var(--pv-b), var(--pv-a)); box-shadow: 0 0 12px var(--pv-a); }
.pv-seek input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pv-vol { display: flex; align-items: center; }
.pv-vol-slider { position: relative; width: 84px; height: 26px; display: flex; align-items: center; margin-right: 6px; }
.pv-vol-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; transition: height .2s; }
.pv-vol-slider:hover .pv-vol-track { height: 6px; }
.pv-vol-slider:focus-within .pv-vol-track { box-shadow: 0 0 0 2px var(--pv-a); }
.pv-vol-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, var(--pv-b), var(--pv-a)); }
.pv-vol-slider input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: none) and (pointer: coarse) { .pv-vol-slider { display: none; } }
.pv-unmute { position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .6); font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.pv-frame.is-muted-auto .pv-unmute { display: inline-flex; animation: pv-pulse 2s ease-in-out infinite; }

.pv-skip { position: absolute; right: clamp(14px, 3vw, 34px); bottom: 0; height: var(--pv-bar); z-index: 6; display: flex; align-items: center; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--pv-ease); }
.pv-root.is-play .pv-skip { opacity: 1; transform: none; transition-delay: .8s; }
.pv-root.is-out .pv-skip { opacity: 0; transition-delay: 0s; }
.pv-skip-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: var(--pv-muted); transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .2s; }
.pv-skip-btn:disabled { cursor: default; }
.pv-skip-ring { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.pv-skip-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pv-skip-ring circle { fill: none; stroke-width: 2.4; }
.pv-skip-ring .pv-ring-bg { stroke: rgba(255, 255, 255, .16); }
.pv-skip-ring .pv-ring-fg { stroke: var(--pv-b); stroke-dasharray: 69.1; stroke-dashoffset: 69.1; stroke-linecap: round; }
.pv-root.is-play .pv-ring-fg { animation: pv-ring 3s linear forwards; }
.pv-skip-arrow { opacity: 0; transform: translateX(-6px) scale(.6); transition: all .35s var(--pv-ease); }
.pv-skip-btn.is-ready { color: #0b0d12; border-color: transparent; background: linear-gradient(135deg, var(--pv-b), var(--pv-a)); box-shadow: 0 10px 30px color-mix(in srgb, var(--pv-a) 40%, transparent); }
.pv-skip-btn.is-ready:hover { transform: translateY(-2px); }
.pv-skip-btn.is-ready .pv-skip-ring circle { opacity: 0; }
.pv-skip-btn.is-ready .pv-skip-arrow { opacity: 1; transform: none; }

.pv-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pv-b) 85%, #fff), color-mix(in srgb, var(--pv-a) 40%, transparent) 35%, transparent 70%); }
.pv-root.is-out .pv-flash { animation: pv-flash .9s ease-out forwards; }

@keyframes pv-drift { to { transform: translate(3%, -2%) scale(1.06); } }
@keyframes pv-sweep { to { transform: rotate(360deg); } }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@keyframes pv-ring { to { stroke-dashoffset: 0; } }
@keyframes pv-flash { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pv-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); } }

@media (max-width: 640px) {
  .pv-root { --pv-bar: 58px; }
  .pv-frame { border-radius: 12px; }
  .pv-controls { gap: 4px; padding: 26px 6px 6px; }
  .pv-time { min-width: 0; font-size: .7rem; }
  .pv-vol-slider { width: 56px; margin-right: 2px; }
  .pv-brand span { display: none; }
  .pv-skip { left: 14px; right: 14px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-root, .pv-root *, .pv-root *::before, .pv-root *::after { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
  .pv-root.is-in { clip-path: none; }
  .pv-skip-ring { display: none; }
}

.pv-frame.is-yt .pv-video, .pv-frame.is-yt .pv-controls, .pv-frame.is-yt .pv-bigplay, .pv-frame.is-yt .pv-unmute, .pv-frame.is-yt .pv-spinner { display: none !important; }
.pv-yt { position: absolute; inset: 0; background: #000; }
.pv-yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.pv-ytgate { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .86)), var(--pv-poster, none) center / cover no-repeat, #05070a; }
.pv-frame.is-gate .pv-ytgate { display: flex; }
.pv-ytgate strong { color: #fff; font-family: var(--pv-font); font-size: clamp(1rem, 2.2vw, 1.3rem); }
.pv-ytgate p { margin: 0 0 4px; max-width: 460px; color: rgba(255, 255, 255, .78); font-size: .86rem; line-height: 1.5; }
.pv-ytgate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pv-ytgate .pv-skip-btn { padding: 10px 18px; }
.pv-ytgate .pv-skip-btn.pv-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; box-shadow: none; }
@media (max-width: 520px) { .pv-ytgate p { font-size: .76rem; } .pv-ytgate .pv-skip-btn { font-size: .8rem; padding: 9px 14px; } }
