:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #0b1721; color: #fff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; overflow: hidden; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
button:focus-visible, main:focus-visible { outline: 2px solid #c7ead2; outline-offset: -3px; }
[hidden] { display: none !important; }
#feed { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; background: #0b1721; }
#feed::-webkit-scrollbar { display: none; }
.scene { width: 100%; height: 100%; position: relative; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #0b1721; }
.scene video { display: block; width: 100%; height: 100%; object-fit: cover; }
#loading, #error { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; pointer-events: none; font-size: 13px; letter-spacing: .08em; text-align: center; padding: 28px; background: #0b172133; }
#error { background: #0b1721c7; }
#error button { pointer-events: auto; border: 1px solid #ffffff55; padding: 10px 25px; border-radius: 24px; background: transparent; }
.spinner { width: 23px; height: 23px; border: 1px solid #ffffff33; border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#play { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: #132f30a8; backdrop-filter: blur(8px); display: grid; place-items: center; }
#play svg { width: 38px; height: 38px; }
.glass { background: #0b17216b; border: 1px solid #ffffff33; backdrop-filter: blur(12px); border-radius: 24px; }
#sound { position: fixed; right: 18px; top: calc(env(safe-area-inset-top) + 18px); padding: 10px 16px; font-size: 12px; }
#download { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 15px 18px calc(env(safe-area-inset-bottom) + 15px); background: #0b1721a3; backdrop-filter: blur(18px); border-top: 1px solid #ffffff12; }
#download img { border-radius: 11px; flex: none; }
.download-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.download-copy strong { font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.download-copy span { font-size: 10px; line-height: 1.5; color: #ffffffb3; }
#downloadButton { flex: none; font-size: 12px; padding: 11px 14px; border-radius: 24px; color: #17382d; background: #c0ddc8; }
#downloadButton span { margin-left: 3px; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 110px); transform: translateX(-50%); margin: 0; width: max-content; max-width: 85vw; padding: 12px 18px; border-radius: 10px; background: #0b1721e6; font-size: 12px; text-align: center; line-height: 1.6; }
#browserPrompt { width: min(340px, calc(100vw - 40px)); padding: 26px 24px 20px; border: 1px solid #ffffff20; border-radius: 20px; background: #142a30; color: #fff; box-shadow: 0 18px 60px #0006; }
#browserPrompt::backdrop { background: #0009; }
#browserPrompt h2 { margin: 0 0 14px; font-size: 17px; font-weight: 500; }
#browserPrompt p { margin: 0; color: #ffffffba; font-size: 14px; line-height: 1.8; }
#browserPrompt form { margin-top: 24px; text-align: right; }
#browserPrompt button { padding: 10px 22px; border-radius: 24px; background: #c0ddc8; color: #17382d; font-size: 14px; }
@media (min-width: 700px) { #feed { width: min(100%, 500px); margin: auto; } #download { max-width: 500px; margin: auto; } #sound { right: max(18px, calc((100vw - 500px) / 2 + 18px)); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
