:root{--bg: #0e0e12;--surface: #17171d;--surface-2: #202029;--surface-hover: #2a2a35;--border: #2c2c38;--text: #ececf1;--text-muted: #9a9aab;--accent: #9b6bff;--accent-strong: #b691ff;--accent-soft: rgba(155, 107, 255, .16);--live: #ff4d5e;--warning: #f2b544;--overlay: rgba(6, 6, 10, .82);--shadow: 0 10px 30px rgba(0, 0, 0, .35);--radius: 12px;--radius-sm: 8px;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:var(--text);background-color:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme: light){:root{--bg: #f6f6f9;--surface: #ffffff;--surface-2: #eeeef3;--surface-hover: #e4e4ec;--border: #dcdce5;--text: #17171d;--text-muted: #5f5f70;--accent: #7a45f0;--accent-strong: #6331d6;--accent-soft: rgba(122, 69, 240, .12);--overlay: rgba(20, 20, 28, .7);--shadow: 0 10px 30px rgba(20, 20, 40, .12);color-scheme:light}}*,*:before,*:after{box-sizing:border-box;margin:0}body{min-height:100vh;background:var(--bg)}body.no-scroll{overflow:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:none;padding:0}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit;text-decoration:none}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.topbar{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 85%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.topbar-inner{max-width:1600px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.15rem;letter-spacing:-.01em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0}.search{flex:1;max-width:560px;margin:0 auto}.search input{width:100%;padding:9px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);outline:none;transition:border-color .15s,box-shadow .15s}.search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.live-indicator{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:var(--live);white-space:nowrap}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--live);animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)}}.page{max-width:1600px;margin:0 auto;padding:20px 24px 48px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}.chip{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:var(--surface-2);font-size:.875rem;font-weight:500;white-space:nowrap;transition:background .15s,color .15s}.chip:hover{background:var(--surface-hover)}.chip.is-active{background:var(--text);color:var(--bg)}.chip-count{font-size:.75rem;opacity:.6}.chips.is-unneeded{visibility:hidden}.toolbar-controls{display:flex;align-items:center;gap:16px}.storage{margin:-8px 0 20px}.storage-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--surface-2)}.storage-bar>span{transition:width .3s ease}.storage-shown{background:var(--accent)}.storage-other{background:var(--text-muted);opacity:.55}.storage-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px;font-size:.8125rem;color:var(--text-muted)}.storage-legend>span{display:flex;align-items:center;gap:6px}.storage-swatch{width:10px;height:10px;border-radius:3px;background:var(--surface-2);border:1px solid var(--border)}.storage-swatch.storage-shown,.storage-swatch.storage-other{border:none}.storage-total{margin-left:auto;font-variant-numeric:tabular-nums}.select select{padding:7px 12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);font-size:.875rem;cursor:pointer}.vod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px 20px}.vod-card{display:flex;flex-direction:column;gap:12px;min-width:0}.vod-thumb{position:relative;display:block;width:100%;aspect-ratio:16 / 9;border-radius:var(--radius);overflow:hidden;background:var(--surface-2);transition:transform .2s ease,box-shadow .2s ease}.vod-thumb img{width:100%;height:100%;object-fit:cover;display:block}.vod-card:not(.is-disabled) .vod-thumb:hover{transform:translateY(-3px);box-shadow:var(--shadow),0 0 0 2px var(--accent)}.vod-card.is-disabled .vod-thumb img,.vod-card.is-disabled .thumb-fallback{filter:grayscale(.6) brightness(.7)}.thumb-fallback{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,var(--accent-soft),transparent 60%),linear-gradient(135deg,var(--surface-2),var(--surface))}.play-icon{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:56px;height:56px;display:grid;place-items:center;padding-left:4px;border-radius:50%;background:#0009;color:#fff;font-size:1.2rem;opacity:0;transform:scale(.85);transition:opacity .2s,transform .2s}.vod-thumb:hover .play-icon,.vod-thumb:focus-visible .play-icon{opacity:1;transform:scale(1)}.badge{position:absolute;padding:2px 8px;border-radius:6px;font-size:.75rem;font-weight:600;line-height:1.5;color:#fff;background:#000000bf}.badge-duration{right:8px;bottom:8px;font-variant-numeric:tabular-nums}.badge-live,.badge-recording,.badge-processing,.badge-unprocessed{left:8px;top:8px}.badge-live,.badge-recording{background:var(--live)}.badge-live{letter-spacing:.04em}.badge-live:before,.badge-recording:before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#fff;vertical-align:middle;animation:pulse 1.6s ease-in-out infinite}.badge-processing{background:var(--warning);color:#1a1300}.badge-hidden{right:8px;top:8px}.watch-progress{position:absolute;left:0;bottom:0;height:4px;background:var(--accent)}.vod-info{display:flex;gap:12px;min-width:0}.vod-text{display:flex;flex-direction:column;gap:2px;min-width:0}.vod-title{font-size:.975rem;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.vod-meta{font-size:.85rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip-inline{display:inline-block;margin-right:8px;padding:0 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.75rem;font-weight:600;line-height:1.6}.avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--surface-2)}.avatar-fallback{display:grid;place-items:center;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--accent),#5b8cff)}.skeleton .vod-thumb,.skeleton .avatar,.skeleton .line{background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-hover) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}.skeleton .line{display:block;height:12px;width:90%;border-radius:6px;margin-top:4px}.skeleton .line.short{width:55%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.state-message{display:flex;flex-direction:column;align-items:center;gap:8px;padding:80px 24px;text-align:center;color:var(--text-muted)}.state-message h2{color:var(--text);font-size:1.25rem}.button{margin-top:12px;padding:9px 20px;border-radius:999px;background:var(--accent);color:#fff;font-weight:600}.button:hover{background:var(--accent-strong)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:24px;background:var(--overlay);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:fade-in .15s ease-out}.modal{display:grid;grid-template-columns:minmax(0,1fr) 340px;width:min(1500px,100%);max-height:100%;border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow);animation:pop-in .18s ease-out}.modal-player{background:#000;aspect-ratio:16 / 9;min-height:0}.player-frame,.player-frame .video-js{width:100%;height:100%}.player-frame .video-js .vjs-play-progress,.player-frame .video-js .vjs-volume-level{background-color:var(--accent)}.player-frame .video-js .vjs-big-play-button{border:none;border-radius:50%;width:72px;height:72px;line-height:72px;margin-left:-36px;margin-top:-36px;background-color:#0009}.player-frame .video-js .vjs-seek-flash{position:absolute;top:50%;right:12%;transform:translateY(-50%);padding:8px 14px;border-radius:999px;background:#0009;color:#fff;font-size:16px;font-weight:600;pointer-events:none;opacity:0}.player-frame .video-js .vjs-seek-flash.left{right:auto;left:12%}.player-frame .video-js .vjs-seek-flash.show{animation:seek-flash .7s ease-out}@keyframes seek-flash{0%{opacity:1}60%{opacity:1}to{opacity:0}}.modal-side{display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--border)}.modal-header{display:flex;align-items:flex-start;gap:12px;padding:16px;border-bottom:1px solid var(--border)}.modal-header>div{flex:1;min-width:0}.modal-header .vod-meta{white-space:normal}.modal-title{font-size:1.05rem;line-height:1.35}.icon-button{flex-shrink:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--text-muted)}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.modal-compact-button{display:none}.chapters{flex:1;overflow-y:auto;padding:12px 8px}.section-label{padding:0 8px 8px;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.chapters ol{list-style:none;padding:0}.chapter{display:flex;gap:12px;width:100%;padding:10px 8px;border-radius:var(--radius-sm);text-align:left}.chapter:hover{background:var(--surface-2)}.chapter.is-active{background:var(--accent-soft)}.chapter-time{flex-shrink:0;min-width:56px;font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--accent-strong);padding-top:1px}.chapter-text{display:flex;flex-direction:column;min-width:0}.chapter-title{font-size:.9rem;font-weight:500}.side-tabs{display:flex;gap:4px;padding:8px 8px 0;border-bottom:1px solid var(--border)}.side-tab{padding:8px 12px;border-bottom:2px solid transparent;font-size:.85rem;font-weight:600;color:var(--text-muted)}.side-tab:hover{color:var(--text)}.side-tab.is-active{color:var(--text);border-bottom-color:var(--accent)}.side-tab-count{margin-left:4px;font-weight:500;color:var(--text-muted)}.chat-panel{flex:1;display:flex;flex-direction:column;min-height:0}.chat-panel[hidden]{display:none}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px}.chat-settings-button{padding:3px 10px;border-radius:999px;border:1px solid var(--border);font-size:.75rem;color:var(--text-muted)}.chat-settings-button:hover:not(:disabled),.chat-settings-button.is-active{color:var(--text);background:var(--surface-2)}.chat-settings-button:disabled{opacity:.5}.chat-settings{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:0 12px 8px;font-size:.8rem;color:var(--text-muted)}.chat-settings label{flex-basis:100%}.chat-settings input[type=range]{flex:1;accent-color:var(--accent)}.chat-body{position:relative;flex:1;min-height:0;border-top:1px solid var(--border)}.chat-list{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;list-style:none;padding:8px 0;font-size:.85rem;line-height:1.45;overflow-wrap:anywhere}.chat-line{padding:3px 12px}.chat-line:hover{background:var(--surface-2)}.chat-name{font-weight:700}.chat-badge{width:18px;height:18px;margin-right:3px;vertical-align:-4px}.chat-emote{height:28px;margin:-6px 0;vertical-align:middle}.chat-emote-stack{display:inline-grid;vertical-align:middle;margin:-6px 0}.chat-emote-stack>.chat-emote{grid-area:1 / 1;justify-self:center;align-self:center;margin:0}.chat-action{font-style:italic}.chat-reply{font-size:.75rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-bits{margin-right:6px;font-size:.75rem;font-weight:700;color:var(--accent-strong)}.chat-notice{margin:4px 0;padding:6px 12px 6px 10px;border-left:2px solid var(--accent);background:var(--accent-soft)}.chat-notice.notice-raid{border-left-color:var(--warning)}.chat-system{font-size:.8rem;font-weight:600}.chat-placeholder{padding:6px 12px;font-size:.8rem;font-style:italic;color:var(--text-muted)}.chat-resume{position:absolute;left:50%;bottom:10px;transform:translate(-50%);padding:5px 14px;border-radius:999px;font-size:.8rem;font-weight:600;color:#fff;background:var(--accent);box-shadow:var(--shadow)}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:scale(.97)}}@media (max-width: 1000px){.modal{display:flex;flex-direction:column;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto}.modal-player{flex:none}.modal-side{flex:1 0 auto;border-left:none}.chapters{overflow:visible}.modal.with-chat{height:calc(100vh - 48px);height:calc(100dvh - 48px)}.modal.with-chat .chat-panel{min-height:180px}.modal-compact-button{display:grid}.modal-header{padding:12px 8px 12px 16px;gap:8px}.modal.is-compact .modal-header{align-items:center;padding:4px 8px 4px 12px}.modal.is-compact .modal-header .avatar,.modal.is-compact .modal-header .vod-meta,.modal.is-compact .side-tabs{display:none}.modal.is-compact .modal-title{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 640px){.topbar-inner{padding:10px 16px;gap:10px 12px;flex-wrap:wrap}.live-indicator{margin-left:auto;font-size:.8rem}.search{order:3;flex-basis:100%;max-width:none}.page{padding:16px 16px 40px}.toolbar-controls{width:100%;justify-content:space-between}.user-menu{flex-wrap:wrap;gap:6px 12px}.modal-overlay{padding:0}.modal,.modal.with-chat{max-height:100vh;max-height:100dvh;border-radius:0}.modal.with-chat{height:100vh;height:100dvh}}@media (max-width: 1000px) and (max-height: 540px) and (orientation: landscape){.modal-overlay{padding:0}.modal,.modal.with-chat{display:grid;grid-template-columns:minmax(0,1fr) min(300px,40vw);height:100vh;height:100dvh;max-height:none;border-radius:0;overflow:hidden}.modal-player{aspect-ratio:auto}.modal-side{border-left:1px solid var(--border);overflow-y:auto}.modal.with-chat .modal-side{overflow:hidden}.chapters{overflow-y:auto}.modal.with-chat .chat-panel{min-height:0}}.modal.video-hidden,.modal.video-hidden.with-chat{display:flex;flex-direction:column;width:min(640px,100%);height:auto;min-height:min(260px,100%);max-height:100%;overflow:hidden}.modal.video-hidden.with-chat{height:100%}.modal.video-hidden .modal-player{order:1;flex:none;height:3em;aspect-ratio:auto;font-size:10px}.modal.video-hidden .modal-side{flex:1 1 auto;border-left:none;overflow-y:auto}.modal.video-hidden.with-chat .modal-side{overflow:hidden}.modal.video-hidden .chat-panel{min-height:0}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,var(--accent-soft),transparent 50%),var(--bg)}.login-card{width:min(420px,100%);display:flex;flex-direction:column;align-items:center;gap:14px;padding:40px 32px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);text-align:center}.login-card h1{font-size:1.5rem;letter-spacing:-.01em}.login-card p{color:var(--text-muted)}.login-mark{width:56px;height:56px}.login-error{width:100%;padding:10px 14px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--live) 14%,transparent);color:var(--text)!important;font-size:.9rem}.twitch-button{margin-top:8px;background:#9146ff}.twitch-button:hover{background:#772ce8}.user-menu{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:.875rem}.user-name{font-weight:600}.dvr-link,.logout-link{color:var(--text-muted)}.dvr-link:hover,.logout-link:hover,.viewers-link:hover{color:var(--text)}.viewers-link{padding:0;border:0;background:none;font:inherit;color:var(--text-muted);cursor:pointer}.sign-in-link{padding:6px 14px;border-radius:999px;background:#9146ff;color:#fff;font-weight:600}.sign-in-link:hover{background:#772ce8}.guest-login-error{margin-bottom:16px}.viewers-panel{width:min(480px,100%);max-height:100%;overflow-y:auto;padding:20px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);animation:pop-in .18s ease-out}.viewers-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.viewers-header h2{margin:0;font-size:1.15rem}.viewers-close{border:0;background:none;color:var(--text-muted);font-size:1.1rem;cursor:pointer}.viewers-close:hover{color:var(--text)}.viewers-field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;font-size:.85rem;color:var(--text-muted)}.viewers-streamer{margin:0 0 12px;font-weight:600}.viewers-field select,.viewers-add input{padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font:inherit}.viewers-add{display:flex;gap:8px}.viewers-add input{flex:1;min-width:0}.viewers-add button{padding:8px 14px;border:0;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font:inherit;font-weight:600;cursor:pointer}.viewers-add button:disabled{opacity:.5;cursor:default}.viewers-hint,.viewers-empty{margin:6px 0 12px;font-size:.8rem;color:var(--text-muted)}.viewers-message{margin:0 0 12px;font-size:.85rem}.viewers-message.error{color:var(--live)}.viewers-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--border)}.viewers-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.viewer-name{display:block;font-weight:600}.viewer-permissions{display:block;font-size:.8rem;color:var(--text-muted)}.viewer-remove{padding:4px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:none;color:var(--text-muted);font:inherit;font-size:.8rem;cursor:pointer}.viewer-remove:hover:not(:disabled){color:var(--live);border-color:var(--live)}.site-footer{padding:0 24px 24px;text-align:center;font-size:.8rem;color:var(--text-muted)}.login-version{font-size:.75rem;color:var(--text-muted)}.site-footer a,.login-version a{text-decoration:underline;text-underline-offset:2px}.site-footer a:hover,.login-version a:hover{color:var(--text)}.legal-page{max-width:760px;margin:0 auto;padding:32px 24px 48px;line-height:1.65}.legal-page h1{font-size:1.9rem;letter-spacing:-.01em;margin-bottom:4px}.legal-page h2{font-size:1.2rem;margin:32px 0 10px}.legal-page h3{font-size:1rem;margin:20px 0 6px}.legal-page p,.legal-page ul{margin:0 0 12px}.legal-page ul{padding-left:22px}.legal-page li{margin-bottom:6px}.legal-page a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:2px}.legal-date{color:var(--text-muted);margin-bottom:24px!important}
