* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { height: 100dvh; background: #0b0f17; color: #f3f4f6; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden; cursor: pointer; }
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; z-index: 0; pointer-events: none; transition: opacity 0.35s ease; }
.bg-video.fading { opacity: 0; }
.overlay { position: fixed; inset: 0; background: radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 40%, rgba(11, 15, 23, 0.42) 100%); z-index: 1; pointer-events: none; }
.ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hud { position: fixed; top: 24px; left: 24px; z-index: 3; display: inline-flex; align-items: center; background: rgba(15, 23, 42, 0.52); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 9px 14px 9px 15px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.hud:hover, .hud.open { border-color: rgba(56, 189, 248, 0.5); background: rgba(15, 23, 42, 0.72); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #e0f2fe; white-space: nowrap; user-select: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; flex-shrink: 0; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px #38bdf8; opacity: 1; } 50% { box-shadow: 0 0 14px #38bdf8, 0 0 22px rgba(56, 189, 248, 0.45); opacity: 0.75; } }
.chev { width: 14px; height: 14px; margin-left: 2px; color: #7dd3fc; opacity: 0.85; flex-shrink: 0; transition: transform 0.25s ease, opacity 0.2s ease; }
.hud.open .chev, .tz-trigger.open .chev, .track-trigger.open .chev { transform: rotate(180deg); opacity: 1; }
.status-pop { position: fixed; top: 70px; left: 24px; z-index: 3; max-width: 320px; width: calc(100vw - 48px); background: rgba(15, 23, 42, 0.74); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 15px 17px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; cursor: default; }
.status-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.story-text { font-size: 12.5px; line-height: 1.62; color: #cbd5e1; }
#storyText, #storyQuote { white-space: pre-line; }
.story-quote { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-style: italic; font-weight: 500; color: #e0f2fe; }
.story-quote.no-sep { margin-top: 0; padding-top: 0; border-top: 0; }
.top-right { position: fixed; top: 24px; right: 24px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; }
.audio-ctrl { display: inline-flex; align-items: center; gap: 5px; background: rgba(15, 23, 42, 0.52); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 11px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); cursor: default; transition: border-color 0.2s, background 0.2s; }
.audio-ctrl:hover, .audio-ctrl.open { border-color: rgba(56, 189, 248, 0.45); background: rgba(15, 23, 42, 0.72); }
.mute-btn, .m-btn { background: none; border: none; color: #e2e8f0; font-size: 15px; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 2px; border-radius: 50%; transition: color 0.15s, transform 0.15s; }
.m-btn svg { width: 14px; height: 14px; }
.mute-btn:hover, .m-btn:hover { color: #7dd3fc; transform: scale(1.08); }
.track-trigger { display: inline-flex; align-items: center; gap: 3px; background: none; border: none; color: #e0f2fe; font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 1px 2px 1px 4px; max-width: 165px; }
.track-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-trigger .chev { width: 13px; height: 13px; margin-left: 1px; }
.vol-slider { width: 72px; min-width: 72px; flex-shrink: 0; height: 20px; margin-left: 6px; opacity: 0.92; accent-color: #38bdf8; cursor: pointer; transition: opacity 0.2s ease; }
.audio-ctrl:hover .vol-slider, .audio-ctrl.open .vol-slider { opacity: 1; }
.music-pop { position: fixed; top: 70px; right: 24px; z-index: 4; width: min(320px, calc(100vw - 48px)); background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; cursor: default; }
.music-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mp-title { font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #7dd3fc; }
.mp-count { font-size: 11px; color: #94a3b8; }
.mp-now { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.mp-now-info { min-width: 0; flex: 1; }
.mp-now-title { font-size: 13.5px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-now-artist { font-size: 11.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.mp-controls { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mp-ctrl-btn { width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #e2e8f0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: background 0.15s, border-color 0.15s; }
.mp-ctrl-btn svg { width: 13px; height: 13px; }
.mp-ctrl-btn:hover { background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.5); color: #fff; }
.mp-ctrl-btn.mp-play { width: 32px; height: 32px; background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.mp-seek-wrap { margin-bottom: 10px; }
.mp-seek { width: 100%; height: 4px; accent-color: #38bdf8; cursor: pointer; display: block; }
.mp-times { display: flex; justify-content: space-between; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: #94a3b8; margin-top: 4px; }
.mp-list { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; padding-right: 2px; }
.mp-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; border-radius: 10px; padding: 7px 10px; color: #cbd5e1; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.mp-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mp-item.active { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.35); color: #e0f2fe; }
.mp-item-idx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #64748b; width: 16px; flex-shrink: 0; text-align: center; }
.mp-item.active .mp-item-idx { color: #38bdf8; }
.mp-item-meta { min-width: 0; flex: 1; }
.mp-item-t { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-item-a { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-vol-row { display: none; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.mp-vol { flex: 1; height: 4px; accent-color: #38bdf8; }
.hidden { display: none !important; }
.clock { position: fixed; bottom: 24px; left: 24px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: 0.6px; color: rgba(226, 232, 240, 0.9); background: rgba(15, 23, 42, 0.52); border: 1px solid rgba(255, 255, 255, 0.16); padding: 4px 13px 4px 5px; border-radius: 999px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); user-select: none; cursor: default; }
.wx-sep { color: rgba(148, 163, 184, 0.45); }
.wx-info { display: inline-flex; align-items: center; gap: 5px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 12px; font-weight: 500; color: #e0f2fe; letter-spacing: 0; white-space: nowrap; }
.wx-trigger { background: none; border: none; padding: 2px 5px; margin: -2px -5px -2px 0; border-radius: 999px; cursor: pointer; transition: background 0.18s; }
.wx-trigger:hover, .wx-trigger.open { background: rgba(56, 189, 248, 0.18); }
.wx-city { color: rgba(186, 230, 253, 0.85); max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.wx-pop { position: fixed; bottom: 64px; left: 24px; z-index: 4; width: min(300px, calc(100vw - 48px)); background: rgba(15, 23, 42, 0.86); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; padding: 12px 13px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; cursor: default; }
.wx-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wx-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 9px; }
.wx-pop-title { font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #7dd3fc; }
.wx-head-btns { display: inline-flex; align-items: center; gap: 5px; }
.wx-auto-btn { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.3); color: #bae6fd; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.wx-auto-btn:hover { background: rgba(56, 189, 248, 0.28); color: #fff; }
.wx-auto-btn:disabled { opacity: 0.55; cursor: wait; }
.wx-gps-btn { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.wx-gps-btn:hover { background: rgba(52, 211, 153, 0.28); color: #fff; }
.wx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.wx-tab { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 9px; padding: 6px 8px; color: #cbd5e1; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.wx-tab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wx-tab.active { background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.55); color: #e0f2fe; }
.wx-search { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(2, 6, 23, 0.55); color: #f1f5f9; font-size: 12.5px; outline: none; }
.wx-search:focus { border-color: rgba(56, 189, 248, 0.55); }
.wx-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wx-chip { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 4px 10px; color: #e2e8f0; font-size: 11.5px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.wx-chip:hover { background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.45); color: #fff; }
.wx-results { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; max-height: 175px; overflow-y: auto; }
.wx-res-item { width: 100%; text-align: left; background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; border-radius: 9px; padding: 7px 9px; color: #e2e8f0; font-size: 12.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: background 0.15s, border-color 0.15s; }
.wx-res-item:hover { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.35); color: #fff; }
.wx-res-sub { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-hint { font-size: 11.5px; color: #94a3b8; padding: 4px 2px; }
.tz-trigger { display: inline-flex; align-items: center; gap: 3px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.32); border-radius: 999px; padding: 4px 7px 4px 9px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.tz-trigger:hover, .tz-trigger.open { background: rgba(56, 189, 248, 0.26); border-color: rgba(56, 189, 248, 0.6); }
.tz-trigger .chev { width: 11px; height: 11px; margin-left: 0; }
.tz-lbl { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; color: #7dd3fc; letter-spacing: 0.8px; }
.bottom-right { position: fixed; bottom: 24px; right: 24px; z-index: 3; display: inline-flex; align-items: flex-end; gap: 8px; }
.br-stack { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 96px; }
.br-stats { display: flex; align-items: center; gap: 5px; }
.dont-press { width: 100%; height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.counter { flex: 1; height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.online-pill { height: 28px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: rgba(167, 243, 208, 0.9); background: rgba(15, 23, 42, 0.36); border: 1px solid rgba(52, 211, 153, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); user-select: none; white-space: nowrap; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: onlinePulse 2.4s ease-in-out infinite; }
@keyframes onlinePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }
.dont-press { background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(248, 113, 113, 0.45); color: #fecaca; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); cursor: pointer; transition: all 0.2s; }
.dont-press:hover { background: rgba(239, 68, 68, 0.28); border-color: rgba(248, 113, 113, 0.8); color: #fff; }
.counter { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.8px; color: rgba(226, 232, 240, 0.38); background: rgba(15, 23, 42, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); user-select: none; pointer-events: none; }
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; cursor: pointer; }
.modal.open { display: flex; }
.modal-box { position: relative; max-width: 360px; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); background: #000; cursor: default; }
.modal-box video { width: 100%; display: block; max-height: 78dvh; object-fit: contain; }
.close-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(15, 23, 42, 0.8); color: #fff; font-size: 16px; cursor: pointer; z-index: 2; }
@media (max-width: 640px) { .hud { top: 16px; left: 16px; padding: 7px 11px 7px 12px; max-width: calc(100vw - 88px); } .badge { font-size: 11.5px; gap: 6px; overflow: hidden; } #statusText { overflow: hidden; text-overflow: ellipsis; } .chev { width: 12px; height: 12px; } .status-pop { top: 56px; left: 16px; width: calc(100vw - 32px); padding: 13px 15px; } .story-text { font-size: 12px; } .top-right { top: 16px; right: 16px; gap: 6px; } .audio-ctrl { padding: 6px 9px; gap: 3px; } .audio-ctrl .m-btn, .audio-ctrl .track-name { display: none !important; } .track-trigger { padding: 1px 0; } .vol-slider { display: none !important; } .music-pop { top: 56px; right: 16px; width: calc(100vw - 32px); } .mp-vol-row { display: flex; } .clock { bottom: 22px; left: 16px; font-size: 11px; gap: 6px; padding: 3px 10px 3px 4px; } .wx-info { font-size: 10.5px; gap: 4px; } .wx-city { display: none; } .tz-trigger { padding: 3px 6px 3px 8px; gap: 2px; } .tz-trigger .chev { width: 10px; height: 10px; } .tz-lbl { font-size: 10px; } .tz-pop { bottom: 54px; left: 16px; } .wx-pop { bottom: 54px; left: 16px; width: calc(100vw - 32px); } .tz-opt { font-size: 10.5px; padding: 4px 12px; } .bottom-right { bottom: 22px; right: 16px; gap: 6px; } .br-stack { min-width: 82px; gap: 5px; } .dont-press, .counter, .online-pill { height: 24px; } .dont-press { padding: 0 10px; font-size: 10.5px; } .counter { padding: 0 8px; font-size: 10px; } .online-pill { padding: 0 7px; font-size: 10px; gap: 4px; } .online-dot { width: 5px; height: 5px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
