:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; }
body { display: flex; flex-direction: column; background: #10131a; color: #f5f6fa; }
.bar { display: flex; align-items: center; gap: 20px; padding: 14px 22px; background: #191e29; border-bottom: 1px solid #303748; }
.brand { color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.address-bar { display: flex; flex: 1; gap: 8px; max-width: 1050px; }
#sj-address { min-width: 0; flex: 1; padding: 12px 15px; border-radius: 9px; border: 1px solid #44506a; background: #0e121a; color: #fff; font: inherit; }
#sj-address:focus { outline: 2px solid #7ba9ff; outline-offset: 1px; }
button { padding: 11px 20px; border: 0; border-radius: 9px; background: #508bff; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #70a0ff; }
button.secondary { background: #323c50; }
button.secondary:hover { background: #44516a; }
#viewer { position: relative; flex: 1; min-height: 0; }
#welcome { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
#welcome .icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; color: #95b9ff; background: #202d47; font-size: 35px; }
h1 { margin: 22px 0 8px; font-size: clamp(24px, 4vw, 36px); }
p { max-width: 530px; color: #b1bbcc; line-height: 1.55; }
.source-link { margin-top: 12px; color: #a9c5ff; font-size: 13px; }
#sj-frame { width: 100%; height: 100%; border: 0; background: #fff; }
#video-view { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; }
#video-title { max-width: 1000px; margin: 0; font-size: 20px; text-align: center; }
#video-player { display: block; width: min(100%, 1100px); max-height: calc(100vh - 190px); background: #000; border-radius: 10px; }
#video-status { margin: 0; text-align: center; }
#sj-error { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: min(650px, calc(100% - 24px)); padding: 13px 18px; border-radius: 9px; background: #812a30; box-shadow: 0 8px 30px #0008; }
@media (max-width: 680px) { .bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; } .address-bar { width: 100%; flex-wrap: wrap; } #sj-address { flex-basis: 100%; } .brand { font-size: 14px; } button { flex: 1; padding: 10px 14px; } }
