:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #070707; }
body { min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
button, input { font: inherit; }
.page-shell { width: 100vw; height: 100vh; background: #000; }
.player { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; user-select: none; }
.player video { width: 100%; height: 100%; display: block; object-fit: contain; }
.ad-layer { position: absolute; z-index: 20; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.ad-badge { position: absolute; left: clamp(18px, 3vw, 42px); bottom: clamp(18px, 3vw, 38px); padding: 5px 9px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 700; }
.skip-ad-button { position: absolute; z-index: 50; top: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 42px); display: none; align-items: center; gap: 9px; min-width: 120px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.95); border-radius: 5px; background: rgba(7,25,54,.9); color: #fff; font-size: 15px; font-weight: 750; cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: background .15s ease, transform .15s ease; }
.skip-ad-button:hover { background: #123f82; transform: scale(1.04); }
.skip-ad-button svg { width: 19px; height: 19px; fill: currentColor; }
.qr-action-button { position: absolute; z-index: 50; left: 50%; bottom: 10%; transform: translateX(-50%); display: none; align-items: center; justify-content: center; gap: 11px; min-width: 180px; padding: 15px 26px; border: 2px solid rgba(255,255,255,.94); border-radius: 8px; background: #0b2a5b; color: #fff; text-decoration: none; font-size: 18px; font-weight: 850; letter-spacing: .01em; box-shadow: 0 10px 34px rgba(3,17,43,.58); transition: background .15s ease, transform .15s ease; }
.qr-action-button:hover { background: #123f82; transform: translateX(-50%) translateY(-3px) scale(1.03); }
.qr-action-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qr-action-button.visible { display: flex; }
.player.ad-playing .ad-layer { opacity: 1; visibility: visible; pointer-events: none; }
.player.ad-playing > .skip-ad-button { display: flex; }
.player.ad-playing .topbar, .player.ad-playing .controls, .player.ad-playing .center-play, .player.ad-playing .shade { opacity: 0; visibility: hidden; pointer-events: none; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.68) 0%, transparent 24%, transparent 62%, rgba(0,0,0,.9) 100%); opacity: 1; transition: opacity .25s ease; }
.topbar, .controls { position: absolute; left: 0; right: 0; z-index: 3; transition: opacity .25s ease, transform .25s ease; }
.topbar { top: 0; display: flex; align-items: center; justify-content: space-between; padding: clamp(18px, 3vw, 42px) clamp(20px, 4vw, 64px); }
.brand-logo { display: block; width: clamp(190px, 23vw, 300px); height: auto; filter: drop-shadow(0 3px 14px rgba(0,0,0,.8)); }
.controls { bottom: 0; padding: 20px clamp(18px, 4vw, 60px) clamp(20px, 3vw, 42px); }
.control-row, .left-controls, .right-controls { display: flex; align-items: center; }
.control-row { justify-content: space-between; gap: 20px; }
.left-controls, .right-controls { gap: clamp(8px, 1.5vw, 18px); }
.icon-button, .text-button, .center-play { border: 0; color: #fff; background: transparent; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; transition: background .15s, transform .15s; }
.icon-button:hover { background: rgba(255,255,255,.14); transform: scale(1.08); }
.icon-button svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.play-shape path, .pause-shape path { fill: currentColor; stroke: none; }
.icon-button .skip-icon { width: 30px; height: 30px; overflow: visible; }
.icon-button .skip-icon path { fill: none; stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .skip-icon text { fill: currentColor; stroke: none; font-size: 10px; font-weight: 800; font-family: inherit; }
.center-play { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: clamp(66px, 8vw, 96px); height: clamp(66px, 8vw, 96px); border-radius: 50%; background: rgba(18,18,18,.62); backdrop-filter: blur(8px); border: 2px solid rgba(255,255,255,.92); transition: opacity .2s, background .2s, transform .2s; }
.center-play:hover { background: rgba(11,42,91,.94); transform: translate(-50%, -50%) scale(1.06); }
.center-play svg { width: 42%; height: 42%; fill: #fff; }
.pause-shape { display: none; }
.playing .play-shape { display: none; }
.playing .pause-shape { display: block; }
.playing .center-play { opacity: 0; pointer-events: none; }
.timeline-wrap { padding: 10px 0 8px; }
.timeline { --progress: 0%; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(to right, #0b2a5b 0 var(--progress), rgba(255,255,255,.42) var(--progress) 100%); transition: height .1s; }
.timeline:hover { height: 7px; }
.timeline::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #0b2a5b; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.timeline::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #0b2a5b; }
.seek-feedback { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92); padding: 12px 18px; border-radius: 999px; background: rgba(5,20,48,.88); border: 1px solid rgba(42,79,139,.85); color: #fff; font-size: 15px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.seek-feedback.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.time { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); min-width: 78px; }
.text-button { min-width: 44px; height: 38px; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; font-weight: 700; }
.player.idle.playing .topbar, .player.idle.playing .controls, .player.idle.playing .shade { opacity: 0; }
.player.idle.playing .topbar { transform: translateY(-12px); }
.player.idle.playing .controls { transform: translateY(12px); }
@media (max-width: 620px) {
  .topbar { padding: 18px; }
  .controls { padding: 10px 12px 18px; }
  .icon-button { width: 38px; height: 38px; }
  .icon-button svg { width: 24px; height: 24px; }
  #pipBtn, .time { display: none; }
}
