:root {
    --bg: #070b0c;
    --panel: #101718;
    --panel-2: #151e1e;
    --line: rgba(226, 245, 237, .12);
    --line-strong: rgba(226, 245, 237, .24);
    --text: #eff7f1;
    --muted: #91a59d;
    --dim: #5f716b;
    --lime: #d9ff73;
    --mint: #7ce4c4;
    --coral: #ff8062;
    --serif: "Songti SC", "STSong", "SimSun", serif;
    --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.message-actions { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.message-action { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 4px; color: inherit; background: rgba(255,255,255,.12); cursor: pointer; }
.message-action:disabled { opacity: .45; cursor: default; }
* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*::-webkit-scrollbar { width: 8px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb, *:not(.is-scrolling)::-webkit-scrollbar-thumb { border: 1px solid transparent; background: transparent; }
.is-scrolling { scrollbar-color: var(--mint) rgba(255,255,255,.08); }
.is-scrolling::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
.is-scrolling::-webkit-scrollbar-thumb { border-color: #101718; background: var(--mint); }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
html.modal-scroll-locked, body.modal-scroll-locked { overflow: hidden; overscroll-behavior: none; }
body.modal-scroll-locked { position: fixed; inset-inline: 0; width: 100%; }
[role="dialog"][aria-modal="true"] { overscroll-behavior: contain; }
.site-dialog-overlay { position: fixed; z-index: 12000; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(3,7,8,.78); backdrop-filter: blur(5px); }
.site-dialog-overlay-contained { position: absolute; z-index: 25000; }
.site-dialog { display: flex; width: min(460px, 100%); max-height: min(620px, calc(100dvh - 40px)); flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.site-dialog > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.site-dialog > header h2 { margin: 0; font: 600 18px/1.3 var(--serif); }
.site-dialog > header .icon-btn { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.site-dialog > header .icon-btn:hover { color: var(--text); border-color: var(--lime); }
.site-dialog-body { display: grid; gap: 12px; padding: 18px 16px 4px; }
.site-dialog-message { margin: 0; color: var(--text); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-dialog-input { width: 100%; min-height: 42px; padding: 9px 10px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; color: var(--text); background: #090e0f; }
textarea.site-dialog-input { min-height: 112px; }
.site-dialog-input:focus { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(217,255,115,.12); }
.site-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px; }
.site-dialog-actions button { min-height: 38px; }
.site-dialog-confirm.danger { color: #210f0b; background: var(--coral); }
.site-dialog-confirm.danger:hover { background: #ff9d88; }
.site-dialog-cancel { border-color: var(--line-strong); }
@media (max-width:760px) { .site-dialog-overlay { align-items: end; padding: 0; } .site-dialog { width: 100%; max-height: calc(100dvh - 62px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; } }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
input[type="range"] { --range-position: 50%; width: 100%; height: 16px; margin: 0; appearance: none; border: 0; outline: 0; background: linear-gradient(to right, var(--lime) 0 var(--range-position), rgba(255,255,255,.2) var(--range-position) 100%) center / 100% 3px no-repeat; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 2px 7px rgba(0,0,0,.5); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 2px 7px rgba(0,0,0,.5); }
.global-loader { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--text); background: rgba(7,11,12,.52); backdrop-filter: blur(5px); transition: opacity .32s ease, visibility .32s ease; }
.watch-gesture-feedback { position: absolute; z-index: 8; top: 50%; left: 50%; display: grid; width: 76px; height: 76px; place-items: center; align-content: center; gap: 3px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(6,10,10,.72); pointer-events: none; font-size: 12px; font-weight: 700; }
.watch-gesture-feedback i { font-size: 24px; }
.watch-gesture-feedback[hidden] { display: none; }
.global-loader.done { visibility: hidden; opacity: 0; pointer-events: none; }
.global-loader[hidden] { display: none !important; }
.tip-mobile { display: none; }
.loader-surface { display: grid; grid-template-columns: 38px minmax(0, 280px) 42px; width: min(430px, 100%); align-items: center; gap: 11px 13px; padding: 14px 16px; border: 1px solid rgba(226,245,237,.22); background: rgba(10,16,17,.9); box-shadow: 0 18px 52px rgba(0,0,0,.3); }
.loader-logo { display: grid; grid-row: 1 / span 2; width: 38px; height: 38px; place-items: center; color: var(--bg); background: var(--lime); font-size: 20px; font-weight: 800; transform: rotate(-4deg); }
.loader-copy { display: grid; min-width: 0; gap: 2px; }
.loader-copy b { font-size: 12px; }
.loader-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.loader-progress { grid-column: 2; height: 3px; overflow: hidden; background: rgba(255,255,255,.12); }
.loader-progress span { display: block; width: 8%; height: 100%; background: linear-gradient(90deg,var(--lime),var(--mint)); transition: width .22s ease; }
.loader-surface output { grid-column: 3; grid-row: 1 / span 2; justify-self: end; color: var(--lime); font-size: 11px; font-weight: 800; }
.loader-pulse-bars { display: flex; align-items: flex-end; gap: 3px; height: 11px; margin-top: 4px; }.loader-copy .loader-pulse-bars { overflow: visible; }.loader-pulse-bars i { width: 3px; height: 5px; background: var(--lime); animation: loaderBar .85s ease-in-out infinite alternate; }.loader-pulse-bars i:nth-child(2) { animation-delay: .16s; }.loader-pulse-bars i:nth-child(3) { animation-delay: .32s; }@keyframes loaderBar { to { height: 11px; opacity: .45; } }
.search-history { margin: -4px 0 24px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }.search-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.search-history-head strong { font-size: 11px; }.search-history-head button { border: 0; color: var(--muted); background: transparent; font-size: 10px; }.search-history > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }.search-history-chip { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 10px; }.search-history-chip:hover { color: var(--text); border-color: var(--line-strong); }
.search-history-entry { display: inline-flex; align-items: stretch; }.search-history-entry .search-history-chip { border-right: 0; }.search-history-remove { display: grid; width: 28px; min-height: 30px; place-items: center; border: 1px solid var(--line); color: var(--dim); background: transparent; cursor: pointer; }.search-history-remove:hover { color: var(--coral); border-color: var(--coral); }
button, select { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.app-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(7, 11, 12, .92); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; gap: 28px; width: min(1440px, calc(100% - 48px)); min-height: 72px; margin: auto; }
.logo { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.logo-mark { display: grid; width: 34px; height: 34px; place-items: center; color: var(--bg); background: var(--lime); font-size: 20px; font-weight: 800; transform: rotate(-6deg); }
.logo b { display: block; font-size: 15px; letter-spacing: .12em; line-height: 1; }
.logo small { display: block; margin-top: 3px; color: var(--dim); font-size: 8px; letter-spacing: .15em; }
.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 25px; margin-left: 12px; }
.desktop-nav a { position: relative; display: inline-flex; height: 100%; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--lime); content: ""; transform: scaleX(0); transition: transform .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a.active::after { transform: scaleX(1); }
.header-search { display: flex; min-width: 0; flex: 0 1 280px; height: 36px; align-items: center; margin-left: auto; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.035); }
.header-search:hover, .header-search:focus-visible { border-color: var(--lime); color: var(--text); }
.header-search span { min-width: 0; flex: 1; overflow: hidden; padding: 0 12px; font-size: 12px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.header-search > i { display: grid; width: 38px; flex: 0 0 38px; place-items: center; color: var(--lime); font-size: 20px; }
.header-message-link { position: relative; display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; color: var(--text); font-size: 20px; text-decoration: none; }
.message-unread-badge { position: absolute; top: -6px; right: -10px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid var(--bg); border-radius: 9px; background: #e5484d; color: #fff; font-size: 9px; font-weight: 800; line-height: 1; }
.message-unread-badge[hidden] { display: none; }
.header-avatar { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; overflow: hidden; border-radius: 50%; color: var(--bg); background: var(--lime); font-size: 11px; font-weight: 800; }
.header-avatar img, .my-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.app-main { width: min(1440px, calc(100% - 48px)); margin: auto; padding: 24px 0 24px; }
.home-carousel { position: relative; overflow: hidden; }
.home-feed-state { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; }
.home-feed-state button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: transparent; cursor: pointer; }
.home-feed-skeleton .home-hero { min-height: 390px; }
.home-skeleton-copy { position: relative; z-index: 2; display: grid; width: min(520px, 70%); gap: 14px; }
.home-skeleton-copy span, .home-skeleton-copy strong, .home-skeleton-copy p, .home-skeleton-copy i, .home-card-skeleton { display: block; background: #202829; animation: home-skeleton-pulse 1.2s ease-in-out infinite alternate; }
.home-skeleton-copy span { width: 34%; height: 12px; }.home-skeleton-copy strong { width: 72%; height: 44px; }.home-skeleton-copy p { width: 90%; height: 42px; }.home-skeleton-copy i { width: 120px; height: 42px; }
.home-card-skeleton { flex: 0 0 calc((100% - 55px) / 6); aspect-ratio: 2 / 3; min-width: 120px; }
@keyframes home-skeleton-pulse { from { opacity: .48; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .home-skeleton-copy span, .home-skeleton-copy strong, .home-skeleton-copy p, .home-skeleton-copy i, .home-card-skeleton, .player-skeleton-nav span, .player-skeleton-nav i, .player-skeleton-stage-copy span, .player-skeleton-stage-copy strong, .player-skeleton-stage-copy i, .player-skeleton-progress, .player-skeleton-controls i, .player-skeleton-controls span, .player-skeleton-status > span, .player-skeleton-status i, .player-skeleton-tips span, .player-skeleton-sidebar header strong, .player-skeleton-sidebar header span, .player-skeleton-routes i, .player-skeleton-episodes i { animation: none; } }
.hero-track { display: flex; min-height: 390px; transition: transform .48s cubic-bezier(.22, .7, .2, 1); will-change: transform; touch-action: pan-y; }
.hero-slide { position: relative; flex: 0 0 100%; }
.hero-slide.active { z-index: 1; }
.carousel-controls { position: absolute; z-index: 3; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 9px; }
.carousel-controls > button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: rgba(7, 11, 12, .72); cursor: pointer; font-size: 18px; }
.carousel-controls > button:hover { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .42); cursor: pointer; transition: width .2s ease, border-radius .2s ease, background .2s ease; }
.carousel-dots button.active { width: 22px; border-radius: 4px; background: var(--lime); }
.home-hero { position: relative; display: flex; min-height: 390px; align-items: flex-end; justify-content: space-between; overflow: hidden; padding: 42px 48px; border: 1px solid var(--line); background: #0b1112; }
.home-hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(7,11,12,.98) 0%, rgba(7,11,12,.76) 42%, rgba(7,11,12,.18) 100%); content: ""; }
.hero-image { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-copy, .hero-meta { position: relative; z-index: 2; }
.hero-copy { max-width: 570px; }
.hero-kicker, .section-kicker { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 560px; margin: 13px 0 10px; font: 600 46px/1.15 var(--serif); }
.hero-copy p { max-width: 510px; margin: 0; color: #c3d1c9; line-height: 1.8; }
.hero-actions, .detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.primary-btn, .ghost-btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; cursor: pointer; font-weight: 800; }
.primary-btn { color: var(--bg); background: var(--lime); }
.primary-btn:hover { background: #efffa8; }
.ghost-btn { border-color: var(--line-strong); color: var(--text); background: rgba(7,11,12,.35); }
.ghost-btn:hover { border-color: var(--lime); }
.hero-meta { display: flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--muted); font-size: 11px; }
.hero-meta span { padding: 5px 8px; border: 1px solid var(--line); background: rgba(7,11,12,.45); }
.hero-meta span:first-child { color: var(--bg); border-color: var(--lime); background: var(--lime); font-weight: 800; }
.quick-cats { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 10px; margin: 17px 0 46px; }
.home-watch-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0 20px; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); }
.home-watch-entry h2 { margin: 4px 0; font: 600 25px var(--serif); }
.home-watch-entry p { margin: 0; color: var(--muted); font-size: 11px; }
.home-watch-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; overscroll-behavior: contain; background: rgba(0,0,0,.68); }
.home-watch-overlay[hidden] { display: none; }
.home-watch-dialog { display: flex; width: min(680px,100%); max-height: calc(100dvh - 40px); flex-direction: column; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 8px; background: #101718; box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.home-watch-dialog > header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.home-watch-dialog > header h2 { margin: 3px 0 0; font: 600 22px var(--serif); }
.home-watch-dialog > header .icon-btn { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.home-watch-dialog > header .icon-btn:hover { color: var(--text); border-color: var(--lime); background: rgba(217,255,115,.08); }
.home-watch-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.home-watch-tabs button { min-height: 44px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.home-watch-tabs button.active { color: var(--text); box-shadow: inset 0 -2px var(--lime); }
.home-watch-pane { display: grid; min-height: 0; flex: 0 1 auto; gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.home-watch-pane[hidden] { display: none; }
.home-watch-pane > label, .home-watch-create-options label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.home-watch-pane input, .home-watch-pane select { width: 100%; height: 40px; min-width: 0; padding: 0 10px; border: 1px solid var(--line-strong); color: var(--text); background: #090e0f; }
.home-watch-search { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line-strong); background: #090e0f; }
.home-watch-search > i { justify-self: end; color: var(--muted); }
.home-watch-search input { border: 0; }
.home-watch-search button { height: 32px; margin-right: 4px; padding: 0 12px; border: 0; color: #07100d; background: var(--lime); cursor: pointer; font-size: 10px; font-weight: 800; }
.home-watch-results { display: grid; max-height: 230px; overflow-y: auto; overscroll-behavior: auto; border-top: 1px solid var(--line); }
.home-watch-results[hidden] { display: none; }
.home-watch-pane.is-searching .home-watch-selection,
.home-watch-pane.is-searching .home-watch-create-options,
.home-watch-pane.is-searching .watch-default-rules,
.home-watch-pane.is-searching #homeWatchCreateButton { display: none; }
.home-watch-results > p { margin: 0; padding: 18px 4px; color: var(--muted); font-size: 11px; }
.home-watch-results button { display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 10px; min-height: 58px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.home-watch-results button:hover { background: rgba(255,255,255,.04); }
.home-watch-results img { width: 42px; height: 42px; border-radius: 3px; object-fit: cover; }
.home-watch-results button span { display: grid; min-width: 0; gap: 3px; }
.home-watch-results strong, .home-watch-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-watch-results small { color: var(--muted); font-size: 9px; }
.home-watch-selection { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-watch-selection[hidden] { display: none; }
.home-watch-selection img { width: 52px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; }
.home-watch-selection div { display: grid; gap: 4px; }
.home-watch-selection span { color: var(--muted); font-size: 10px; }
.home-watch-create-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.watch-default-rules { min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.watch-default-rules legend { padding: 0; color: var(--text); font-size: 12px; font-weight: 700; }
.watch-default-rules > p { margin: 5px 0 12px; color: var(--muted); font-size: 10px; }
.watch-default-rule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; }
.watch-default-rule-grid label { display: flex; min-width: 0; min-height: 34px; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 11px; }
.watch-default-rule-grid input { width: 34px; height: 18px; flex: 0 0 auto; accent-color: var(--lime); }
.watch-create-overlay { position: fixed; z-index: 12000; inset: 0; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: rgba(3,7,8,.78); backdrop-filter: blur(5px); }
.watch-create-overlay[hidden] { display: none; }
.watch-create-dialog { display: flex; width: min(580px,100%); max-height: min(720px,calc(100dvh - 40px)); flex-direction: column; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.52); }
.watch-create-dialog > header { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.watch-create-dialog > header h2 { margin: 2px 0 0; font: 600 20px/1.25 var(--serif); }
.watch-create-dialog > header .icon-btn { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.watch-create-dialog > header .icon-btn:hover { color: var(--text); border-color: var(--lime); background: rgba(217,255,115,.08); }
.watch-create-dialog > form { display: grid; min-height: 0; gap: 16px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.watch-create-media { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.watch-create-media img { width: 64px; height: 84px; border-radius: 4px; object-fit: cover; background: #080d0e; }
.watch-create-media > div { display: grid; min-width: 0; gap: 7px; }
.watch-create-media strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.watch-create-media span { color: var(--muted); font-size: 11px; }
.watch-create-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.watch-create-grid label { display: grid; min-width: 0; align-content: start; gap: 6px; color: var(--muted); font-size: 11px; }
.watch-create-grid input, .watch-create-grid select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; color: var(--text); background: #090e0f; }
.watch-create-grid input:focus, .watch-create-grid select:focus { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(217,255,115,.1); }
.watch-create-grid small { color: var(--muted); font-size: 9px; }
.watch-create-dialog [data-watch-create-status] { min-height: 20px; color: var(--coral); font-size: 11px; }
.watch-create-dialog [data-watch-create-submit] { min-height: 44px; }
@media (max-width:760px) {
    .watch-create-overlay { align-items: end; padding: 0; }
    .watch-create-dialog { width: 100%; max-height: calc(100dvh - 48px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; }
    .watch-create-dialog > header { min-height: 60px; padding: 10px 14px; }
    .watch-create-dialog > form { padding: 14px; }
    .watch-create-grid { grid-template-columns: 1fr; gap: 11px; }
    .watch-create-media img { width: 56px; height: 74px; }
}
@media (max-width:460px) { .watch-default-rule-grid { grid-template-columns: minmax(0,1fr); } }
#homeWatchStatus { min-height: 20px; padding: 0 18px 14px; color: var(--muted); font-size: 10px; }
.quick-cats > a, .quick-title { min-height: 92px; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.quick-cats > a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-content: center; transition: border-color .2s, background .2s; }
.quick-cats > a:hover { border-color: var(--lime); background: var(--panel-2); }
.quick-title { display: flex; flex-direction: column; justify-content: center; background: transparent; }
.quick-title span { font: 600 25px var(--serif); }
.quick-title small, .quick-cats a small { color: var(--muted); font-size: 11px; }
.cat-icon { grid-row: 1 / span 2; align-self: center; color: var(--lime); font-size: 23px; }
.quick-cats a b { font-size: 14px; }
.content-section { margin: 0 0 47px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 5px 0 0; font: 600 26px var(--serif); }
.section-head > a { color: var(--muted); font-size: 12px; }
.section-head > a:hover { color: var(--lime); }
.section-head > a span { color: var(--lime); }
.card-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.media-card { min-width: 0; }
.media-poster { position: relative; overflow: hidden; aspect-ratio: 2 / 2.85; border: 1px solid var(--line); background: #182121; }
.media-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.media-poster img.is-placeholder, .detail-poster img.is-placeholder, .watch-cover img.is-placeholder, .hero-image.is-placeholder { object-fit: contain; background: #f1f1f3; filter: none; }
.media-card:hover .media-poster img { transform: scale(1.05); }
.media-card:hover .media-poster img.is-placeholder { transform: none; }
.poster-shade { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.poster-badge { position: absolute; top: 9px; left: 9px; max-width: calc(100% - 18px); padding: 3px 6px; overflow: hidden; color: var(--bg); background: var(--lime); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.poster-play { position: absolute; right: 10px; bottom: 9px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: white; background: rgba(0,0,0,.45); font-size: 10px; opacity: 0; transition: opacity .2s; }
.media-card:hover .poster-play { opacity: 1; }
.media-card strong { display: block; overflow: hidden; margin-top: 9px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-card small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.page-heading { padding: 37px 0 25px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 7px 0; font: 600 38px var(--serif); }
.page-heading p { margin: 0; color: var(--muted); }
.catalog-switch { display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 3px; white-space: nowrap; }
.catalog-switch a { flex: 0 0 auto; min-width: 74px; padding: 8px 14px; border: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; font-weight: 700; }
.catalog-switch a:hover, .catalog-switch a.active { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.catalog-filter-panel { margin-top: 14px; border: 1px solid var(--line); background: var(--panel); }
.catalog-filter-head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.catalog-filter-head > div { display: flex; align-items: center; gap: 8px; }
.catalog-filter-head i { color: var(--lime); font-size: 17px; }
.catalog-filter-head b { font-size: 13px; }
.catalog-filter-head span { color: var(--dim); font-size: 10px; }
.catalog-filter-head > a { color: var(--muted); font-size: 11px; }
.catalog-filter-head > a:hover { color: var(--coral); }
.catalog-filter-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); min-height: 45px; align-items: start; border-bottom: 1px solid var(--line); }
.catalog-filter-row:last-child { border-bottom: 0; }
.catalog-filter-row > strong { padding: 14px 16px; color: var(--dim); font-size: 11px; }
.catalog-filter-options { display: flex; flex-wrap: wrap; gap: 2px 5px; padding: 8px 10px 8px 0; }
.catalog-filter-options a { min-height: 28px; padding: 6px 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.catalog-filter-options a:hover { color: var(--text); background: var(--panel-strong); }
.catalog-filter-options a.selected { color: var(--bg); background: var(--lime); font-weight: 800; }
.catalog-sort-row { background: color-mix(in srgb, var(--lime) 3%, transparent); }
.catalog-sort-row .catalog-filter-options { gap: 7px; }
.catalog-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 27px 16px; padding-top: 28px; }
.catalog-sentinel { display: flex; min-height: 74px; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; color: var(--muted); cursor: pointer; font-size: 12px; }
.catalog-sentinel i { color: var(--lime); font-size: 18px; }
.catalog-sentinel.loading i { animation: toast-spin .8s linear infinite; }
.catalog-sentinel.failed { color: var(--coral); }
.catalog-sentinel.failed i { color: var(--coral); }
.catalog-sentinel.done { cursor: default; color: var(--dim); }
.catalog-sentinel.done i { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; color: var(--muted); }
.pager a { padding: 8px 13px; border: 1px solid var(--line); }
.pager a:hover { color: var(--lime); border-color: var(--lime); }
.large-search { display: flex; max-width: 700px; height: 48px; margin: 26px 0 5px; border: 1px solid var(--line-strong); background: var(--panel); }
.large-search:focus-within { border-color: var(--lime); }
.large-search input { flex: 1; min-width: 0; padding: 0 15px; border: 0; outline: 0; color: var(--text); background: transparent; }
.large-search button { width: 90px; border: 0; color: var(--bg); background: var(--lime); cursor: pointer; font-weight: 800; }
.search-result-section { padding-top: 30px; }
.search-result-section[hidden] { display: none; }
.search-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.search-result-head h2 { margin: 0; font: 600 23px var(--serif); }
.search-result-head span { color: var(--dim); font-size: 10px; }
.search-user-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.search-user-card { display: grid; min-width: 0; min-height: 72px; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); background: var(--panel); }
.search-user-card:hover { border-color: var(--line-strong); background: var(--panel-2); }
.search-user-card > i { color: var(--dim); font-size: 18px; }
.search-user-avatar { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; color: var(--bg); background: var(--lime); font-size: 17px; font-weight: 800; }
.search-user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-user-copy { display: grid; min-width: 0; gap: 2px; }
.search-user-copy strong, .search-user-copy small, .search-user-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-user-copy strong { font-size: 13px; }
.search-user-copy small { color: var(--lime); font-size: 10px; }
.search-user-copy > span { color: var(--muted); font-size: 10px; }
.search-user-empty { grid-column: 1 / -1; margin: 0; padding: 17px 0; color: var(--dim); font-size: 11px; }
.search-grid { padding-top: 25px; }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0 0 10px; color: var(--text); font-family: var(--serif); }
.empty-state p { margin: 0 0 20px; }
.my-overview { display: flex; align-items: center; gap: 16px; margin: 18px 0 42px; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); }
.my-avatar { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; overflow: hidden; border-radius: 50%; color: var(--bg); background: var(--lime); font-size: 20px; font-weight: 800; }
.my-overview > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.my-overview > div:nth-child(2) strong { font-size: 16px; }
.my-overview > div:nth-child(2) span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.my-stats { display: flex; gap: 22px; margin-left: auto; }
.my-account-actions { display: flex; gap: 8px; margin-left: auto; }
.my-account-actions + .my-stats { margin-left: 0; }
.my-stats span { color: var(--muted); font-size: 11px; }
.my-stats b { margin-right: 4px; color: var(--lime); font-size: 19px; }
.my-social-stats { display: flex; gap: 14px; }
.my-social-stats a { color: var(--muted); font-size: 10px; text-align: center; }
.my-social-stats b { display: block; color: var(--text); font-size: 16px; }
.my-social-stats a:hover { color: var(--lime); }
.social-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.social-list-item { display: grid; min-height: 72px; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; background: var(--panel); }
.social-list-avatar { display: grid; width: 46px; height: 46px; place-items: center; overflow: hidden; border-radius: 50%; color: var(--bg); background: var(--mint); font-weight: 800; }
.social-list-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-list-copy { display: grid; min-width: 0; gap: 3px; }
.social-list-copy strong, .social-list-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-list-copy span { color: var(--muted); font-size: 10px; }
.social-list-item > i { color: var(--muted); font-size: 20px; }
.my-section { padding-top: 4px; }
.my-grid .empty-state { padding: 45px 20px; }
.favorite-entry { position: relative; min-width: 0; }
.favorite-entry .media-card { display: block; }
.favorite-remove { position: absolute; z-index: 2; top: 7px; right: 7px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(7,11,12,.82); cursor: pointer; font-size: 17px; }
.favorite-remove:hover { color: var(--bg); border-color: var(--coral); background: var(--coral); }
.history-list { display: grid; gap: 8px; }
.history-status { display: block; min-height: 18px; margin: -4px 0 8px; color: var(--muted); font-size: 10px; }
.history-status[data-tone="success"] { color: var(--mint); }
.history-status[data-tone="error"] { color: #f08b80; }
.my-watch-rooms { display: grid; gap: 8px; }
.my-watch-rooms-more { justify-self: start; margin-top: 4px; }
.my-watch-room { display: grid; min-height: 72px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); }
.my-watch-room:hover { border-color: var(--mint); background: var(--panel-2); }
.my-watch-room-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--mint); background: rgba(124,228,196,.1); font-size: 19px; }
.my-watch-room > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.my-watch-room strong, .my-watch-room small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-watch-room small { color: var(--muted); font-size: 10px; }
.my-watch-room em { color: var(--mint); font-size: 10px; font-style: normal; text-align: right; }
.my-watch-room em.ended { color: var(--muted); }
.history-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 36px; min-height: 74px; align-items: center; gap: 14px; padding: 9px; border: 1px solid var(--line); background: var(--panel); }
.history-item > img { display: block; width: 96px; height: 56px; object-fit: cover; background: #171d1e; }
.history-item > img.is-placeholder { object-fit: contain; background: #f1f1f3; }
.history-copy { display: flex; min-width: 0; flex-direction: column; }
.history-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-copy span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.history-item .primary-btn { min-height: 34px; padding: 0 12px; font-size: 11px; }
.history-remove, .text-action { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.history-remove { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; font-size: 16px; }
.history-remove:hover, .text-action:hover { color: var(--coral); }
.text-action { font-size: 11px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 520px); gap: clamp(38px, 8vw, 120px); max-width: 1080px; align-items: start; margin: 54px auto 80px; }
.auth-intro { padding-top: 22px; }
.auth-intro h1 { margin: 9px 0 13px; font: 600 42px/1.2 var(--serif); }
.auth-intro p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.auth-form label { display: grid; gap: 7px; }
.auth-form label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); outline: 0; color: var(--text); background: rgba(255,255,255,.035); }
.auth-form input:focus { border-color: var(--lime); }
.auth-form .primary-btn, .auth-form .ghost-btn { width: 100%; border-radius: 0; }
.auth-form button:disabled { cursor: not-allowed; opacity: .48; }
.auth-form button.is-submitting { opacity: .76; }
.auth-security-actions { display: grid; gap: 10px; min-width: 0; }
.first-login-expiry { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.first-login-expiry strong { color: var(--text); font-variant-numeric: tabular-nums; }
.auth-code-field { display: grid; gap: 7px; }
.auth-code-field > label { color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-code-input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.auth-code-input-row input { min-width: 0; }
.auth-code-input-row .ghost-btn { min-height: 42px; padding: 0 13px; white-space: nowrap; }
.auth-code-status { margin: 1px 0 0; }
.submit-spinner { display: inline-block; animation: submit-spin .7s linear infinite; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.auth-links { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.auth-links a { color: var(--lime); }
.form-alert { padding: 11px 13px; border: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.form-alert.error { color: #ffd3ca; border-color: rgba(255,128,98,.45); background: rgba(255,128,98,.09); }
.form-alert.success { color: #c9f8e9; border-color: rgba(124,228,196,.4); background: rgba(124,228,196,.08); }
.code-input { letter-spacing: 8px; text-align: center; font-size: 20px; font-weight: 800; }
.profile-summary { display: flex; align-items: center; gap: 16px; margin: 22px 0 44px; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); }
.profile-summary > div:nth-child(2) { display: grid; gap: 2px; }
.profile-summary > div:nth-child(2) span { color: var(--muted); font-size: 11px; }
.profile-summary form { margin-left: auto; }
.device-list { display: grid; gap: 8px; }
.device-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 78px; padding: 13px 16px; border: 1px solid var(--line); background: var(--panel); }
.device-item > i { color: var(--lime); font-size: 25px; }
.device-item > div { display: grid; min-width: 0; gap: 2px; }
.device-item span, .device-item small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.device-item > b { color: var(--mint); font-size: 10px; }
.favorite-toggle.active { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.favorite-folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.favorite-folder-card { display: flex; min-width: 0; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); }
.favorite-folder-card > a { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; padding: 13px; }
.favorite-folder-card > a:hover { background: var(--panel-2); }
.favorite-folder-card > a > span:last-child { display: grid; min-width: 0; gap: 3px; }
.favorite-folder-card strong, .favorite-folder-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-folder-card small { color: var(--muted); font-size: 10px; }
.favorite-folder-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--lime); background: rgba(217,255,115,.08); font-size: 18px; }
.favorite-folder-edit { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; margin-right: 7px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.favorite-folder-edit span { display: none; }
.favorite-dialog-open { overflow: hidden; }
.favorite-dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 7, 8, .78); }
.favorite-dialog { display: flex; width: min(520px, 100%); max-height: min(720px, calc(100vh - 40px)); flex-direction: column; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.favorite-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.favorite-dialog-head h2 { margin: 6px 0 0; font: 600 24px/1.2 var(--serif); }
.favorite-dialog-head .icon-btn { position: relative; display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.favorite-dialog-head .icon-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.favorite-dialog-content { overflow: auto; display: grid; gap: 14px; overscroll-behavior: contain; padding: 20px 22px 8px; }
.favorite-dialog-status { margin: 0; padding: 0 22px; color: #ffd3ca; font-size: 12px; line-height: 1.6; }
.favorite-dialog-status[hidden] { display: none; }
.favorite-dialog-empty { margin: 8px 0; color: var(--muted); text-align: center; }
.favorite-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 22px 20px; }
.favorite-dialog-actions .text-action { margin-right: auto; }
.favorite-field { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.favorite-field input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); }
.favorite-field input:focus { border-color: var(--lime); outline: 0; }
.favorite-field-label { color: var(--muted); font-size: 11px; }
.favorite-visibility-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.favorite-visibility-choice { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.favorite-visibility-choice:has(input:checked) { border-color: var(--lime); background: rgba(217,255,115,.08); }
.favorite-visibility-choice input { width: 16px; height: 16px; accent-color: var(--lime); }
.favorite-visibility-choice span { display: grid; min-width: 0; gap: 3px; }
.favorite-visibility-choice strong { font-size: 12px; }
.favorite-visibility-choice small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-folder-choices { display: grid; gap: 8px; }
.favorite-folder-choice { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.favorite-folder-choice:has(input:checked) { border-color: var(--mint); background: rgba(124,228,196,.06); }
.favorite-folder-choice input { width: 17px; height: 17px; accent-color: var(--mint); }
.favorite-folder-choice span { display: grid; min-width: 0; gap: 3px; }
.favorite-folder-choice strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-folder-choice small { color: var(--muted); font-size: 10px; }
.detail-wrap { max-width: 1120px; margin: auto; }
.detail-back { display: flex; align-items: center; gap: 17px; padding: 10px 0 22px; color: var(--muted); font-size: 12px; }
.detail-back a:hover { color: var(--lime); }
.detail-hero { display: grid; grid-template-columns: 220px 1fr; gap: 35px; padding: 34px; border: 1px solid var(--line); background: var(--panel); }
.detail-poster { aspect-ratio: 2 / 2.85; overflow: hidden; border: 1px solid var(--line); background: #182121; }
.detail-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-copy { align-self: center; max-width: 720px; }
.detail-copy h1 { margin: 9px 0 15px; font: 600 41px/1.2 var(--serif); }
.detail-copy p { max-width: 680px; color: #c3d1c9; line-height: 1.85; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 4px 8px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; }
.detail-tags span:first-child { color: var(--bg); border-color: var(--lime); background: var(--lime); font-weight: 800; }
.detail-panel, .episode-panel { margin-top: 16px; padding: 23px 25px; border: 1px solid var(--line); background: var(--panel); }
.detail-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.detail-panel-head h2 { margin: 0; font: 600 23px var(--serif); }
.detail-panel-head small, .detail-panel-head > span { color: var(--muted); font: 11px var(--sans); }
.detail-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-source { display: flex; min-height: 76px; flex-direction: column; justify-content: center; padding: 11px 13px; border: 1px solid var(--line); background: var(--panel-2); }
.detail-source:hover { border-color: var(--lime); }
.detail-source b { font-size: 13px; }
.detail-source small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.detail-source span { margin-top: 5px; color: var(--lime); font-size: 11px; }
.episode-source { display: grid; grid-template-columns: 100px 1fr; gap: 15px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.episode-source strong { color: var(--mint); font-size: 12px; }
.episode-source > div { display: flex; flex-wrap: wrap; gap: 7px; }
.episode-source a { display: grid; width: 43px; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.episode-source a:hover { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.detail-recommend { max-width: 1120px; margin: 42px auto 0; }
.player-page { width: min(1320px, 100%); margin: auto; }
.player-page.is-bootstrap-loading > .player-nav, .player-page.is-bootstrap-loading > .watch-layout, .player-page.is-bootstrap-loading > .download-panel { display: none; }
.player-bootstrap-skeleton { width: 100%; }
.player-bootstrap-skeleton[hidden] { display: none; }
.player-skeleton-nav { display: flex; min-height: 42px; align-items: center; gap: 18px; }
.player-skeleton-nav span { width: min(240px, 32%); height: 12px; }
.player-skeleton-nav i { width: 130px; height: 10px; }
.player-skeleton-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.player-skeleton-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); background: #0d1213; }
.player-skeleton-stage::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.5)); }
.player-skeleton-stage-copy { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: min(300px, 46%); gap: 11px; transform: translate(-50%, -50%); }
.player-skeleton-stage-copy span { width: 42%; height: 9px; justify-self: center; }
.player-skeleton-stage-copy strong { width: 100%; height: 18px; }
.player-skeleton-stage-copy i { width: 64%; height: 10px; justify-self: center; }
.player-skeleton-progress { position: absolute; z-index: 2; right: 17px; bottom: 51px; left: 17px; height: 3px; }
.player-skeleton-controls { position: absolute; z-index: 2; right: 17px; bottom: 14px; left: 17px; display: flex; height: 26px; align-items: center; gap: 10px; }
.player-skeleton-controls i { width: 25px; height: 25px; flex: 0 0 25px; }
.player-skeleton-controls span { width: 100px; height: 9px; }
.player-skeleton-controls b { flex: 1; }
.player-skeleton-status { display: flex; min-height: 45px; align-items: center; justify-content: space-between; }
.player-skeleton-status > span { width: 150px; height: 10px; }
.player-skeleton-status > div { display: flex; gap: 7px; }
.player-skeleton-status i { width: 68px; height: 30px; }
.player-skeleton-tips { display: flex; min-height: 34px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.player-skeleton-tips span { width: 150px; height: 8px; }
.player-skeleton-tips span:nth-child(2) { width: 190px; }
.player-skeleton-tips span:nth-child(3) { width: 120px; }
.player-skeleton-sidebar { min-width: 0; min-height: 575px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.player-skeleton-sidebar header { display: flex; align-items: center; justify-content: space-between; }
.player-skeleton-sidebar header strong { width: 72px; height: 24px; }
.player-skeleton-sidebar header span { width: 44px; height: 9px; }
.player-skeleton-routes { display: flex; gap: 5px; padding: 15px 0 10px; border-bottom: 1px solid var(--line); }
.player-skeleton-routes i { width: 58px; height: 27px; }
.player-skeleton-episodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 15px 0; }
.player-skeleton-episodes i { height: 34px; }
.player-skeleton-nav span, .player-skeleton-nav i, .player-skeleton-stage-copy span, .player-skeleton-stage-copy strong, .player-skeleton-stage-copy i, .player-skeleton-progress, .player-skeleton-controls i, .player-skeleton-controls span, .player-skeleton-status > span, .player-skeleton-status i, .player-skeleton-tips span, .player-skeleton-sidebar header strong, .player-skeleton-sidebar header span, .player-skeleton-routes i, .player-skeleton-episodes i { display: block; background: #202829; animation: home-skeleton-pulse 1.2s ease-in-out infinite alternate; }
.player-nav { display: flex; align-items: center; gap: 18px; min-height: 42px; color: var(--muted); font-size: 12px; }
.player-nav a:hover { color: var(--lime); }
.player-nav span { color: var(--text); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.watch-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); background: #000; touch-action: none; user-select: none; }
.watch-stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; }
.watch-stage:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; }
.player-fullscreen-open { overflow: hidden; }
.watch-stage.pseudo-fullscreen { position: fixed; z-index: 20000; inset: 0; width: var(--landscape-width); height: var(--landscape-height); aspect-ratio: auto; border: 0; }
.watch-stage video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-fullscreen-title { position: absolute; z-index: 5; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top, 0px)) 16px 26px; color: #fff; background: linear-gradient(rgba(0,0,0,.88), rgba(0,0,0,0)); font-size: 14px; font-weight: 700; letter-spacing: .02em; pointer-events: none; text-shadow: 0 1px 5px rgba(0,0,0,.75); transition: opacity .22s ease; }
.watch-fullscreen-title span { display: block; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-fullscreen-title .watch-fullscreen-back { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: white; background: rgba(0,0,0,.34); cursor: pointer; font-size: 17px; pointer-events: auto; }
.watch-fullscreen-title .watch-fullscreen-back:hover { color: var(--lime); border-color: rgba(124,228,196,.5); }
.watch-fullscreen-title[hidden] { display: none; }
.watch-stage:fullscreen .watch-fullscreen-title,
.watch-stage:-webkit-full-screen .watch-fullscreen-title,
.watch-stage.pseudo-fullscreen .watch-fullscreen-title { display: flex; }
.watch-stage.controls-hidden .watch-fullscreen-title { opacity: 0; }
.watch-stage.watch-fullscreen-chat-open:fullscreen > .watch-fullscreen-title,
.watch-stage.watch-fullscreen-chat-open:-webkit-full-screen > .watch-fullscreen-title,
.watch-stage.watch-fullscreen-chat-open.pseudo-fullscreen > .watch-fullscreen-title { right: var(--watch-fullscreen-chat-space, 0px); }
.watch-cover { position: absolute; z-index: 2; inset: 0; overflow: hidden; background: #111; opacity: .33; filter: saturate(.65); transition: opacity .4s; pointer-events: none; }
.watch-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch-stage.ready .watch-cover { opacity: 0; pointer-events: none; }
.watch-controls, .watch-loading, .watch-center, .long-press-hint { z-index: 4; }
.player-toast { position: absolute; z-index: 7; top: 22%; left: 50%; display: flex; width: min(430px, calc(100% - 32px)); min-height: 82px; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; color: white; background: rgba(10, 16, 17, .94); box-shadow: 0 18px 55px rgba(0,0,0,.42); opacity: 0; pointer-events: none; transform: translate(-50%, -18px) scale(.96); transition: opacity .2s ease, transform .24s ease; }
.player-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.player-toast > i { flex: 0 0 auto; color: var(--lime); font-size: 30px; }
.player-toast strong, .player-toast span { display: block; }
.player-toast strong { font-size: 16px; }
.player-toast span { margin-top: 3px; color: #bdcbc4; font-size: 12px; }
.player-toast.error { border-color: rgba(255,128,98,.68); }
.player-toast.error > i { color: var(--coral); }
.player-toast.success { border-color: rgba(124,228,196,.58); }
.player-toast.success > i { color: var(--mint); }
.player-toast.switching > i { animation: toast-spin 1s linear infinite; }
@keyframes toast-spin { to { transform: rotate(360deg); } }
.watch-controls { position: absolute; right: 0; bottom: 0; left: 0; padding: 0 17px 13px; background: linear-gradient(transparent, rgba(0,0,0,.88)); opacity: 1; transform: translateY(0); transition: opacity .22s ease, transform .22s ease; }
.watch-stage.controls-hidden { cursor: none; }
.watch-stage.controls-hidden .watch-controls { opacity: 0; pointer-events: none; transform: translateY(10px); }
.watch-progress { position: relative; height: 16px; margin: 0 0 3px; }
.watch-progress::before { position: absolute; top: 50%; right: 0; left: 0; height: 2px; content: ""; background: rgba(255,255,255,.25); transform: translateY(-50%); pointer-events: none; }
.watch-buffered { --buffered-position: 0%; position: absolute; z-index: 1; top: 50%; left: 0; width: var(--buffered-position); height: 2px; background: rgba(255,255,255,.62); transform: translateY(-50%); transition: width .12s linear; pointer-events: none; }
.watch-progress input { --seek-position: 0%; position: absolute; z-index: 2; inset: 0; width: 100%; height: 16px; margin: 0; appearance: none; border: 0; outline: 0; background: linear-gradient(to right, var(--lime) 0 var(--seek-position), transparent var(--seek-position) 100%); background-position: center; background-size: 100% 2px; background-repeat: no-repeat; cursor: pointer; touch-action: none; }
.watch-progress input::-webkit-slider-thumb { width: 12px; height: 12px; appearance: none; border: 2px solid white; border-radius: 50%; background: var(--lime); box-shadow: 0 1px 6px rgba(0,0,0,.55); transform: scale(.72); transition: transform .15s ease; }
.watch-progress input::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--lime); box-shadow: 0 1px 6px rgba(0,0,0,.55); transition: transform .15s ease; }
.watch-progress:hover input::-webkit-slider-thumb, .watch-progress.seeking input::-webkit-slider-thumb { transform: scale(1); }
.watch-progress:hover input::-moz-range-thumb, .watch-progress.seeking input::-moz-range-thumb { transform: scale(1); }
.watch-progress input:disabled { opacity: .45; cursor: not-allowed; }
.watch-seek-preview { --seek-position: 0%; position: absolute; bottom: 19px; left: clamp(28px, var(--seek-position), calc(100% - 28px)); min-width: 48px; padding: 5px 7px; border-radius: 4px; color: white; background: rgba(8,12,13,.88); font-size: 10px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .12s ease, transform .12s ease; }
.watch-progress.seeking .watch-seek-preview { opacity: 1; transform: translate(-50%, 0); }
.watch-media-info { display: none; min-height: 20px; align-items: center; gap: 9px; overflow: hidden; color: rgba(232,240,236,.78); font-size: 9px; white-space: nowrap; }
.watch-media-info span { display: inline-flex; align-items: center; gap: 3px; }
.watch-media-info b { color: white; font-weight: 700; }
.watch-media-info i { color: var(--lime); font-size: 12px; }
.watch-stage:fullscreen .watch-media-info, .watch-stage:-webkit-full-screen .watch-media-info, .watch-stage.pseudo-fullscreen .watch-media-info { display: flex; }
.watch-control-row { display: flex; align-items: center; gap: 9px; min-height: 25px; }
.watch-icon { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 0; color: white; background: transparent; cursor: pointer; font-size: 14px; }
.watch-icon[hidden] { display: none !important; }
.watch-icon:hover, .watch-icon.active { color: var(--lime); }
.danmaku-toggle.active { color: #00aeec; }
.danmaku-compose-toggle, .force-landscape-toggle { display: none; }
.force-landscape-toggle.active { color: #00aeec; }
.force-landscape-toggle i { transform: rotate(90deg); }
.watch-time { color: #c1cbc5; font-size: 11px; }
.watch-time b { color: white; }
.watch-spacer { flex: 1; }
.watch-speed-button { width: auto; min-width: 44px; padding: 0 8px; color: white; font-size: 10px; font-weight: 800; letter-spacing: .01em; }
.watch-speed-button span { font-variant-numeric: tabular-nums; }
.speed-popup { position: absolute; z-index: 9; right: 76px; bottom: calc(100% + 10px); display: grid; width: min(300px, calc(100% - 28px)); gap: 10px; padding: 13px 14px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: white; background: rgba(8,12,13,.96); box-shadow: 0 12px 38px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.speed-popup[hidden] { display: none; }
.speed-popup header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.speed-popup header button { display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 0; border-radius: 5px; color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.speed-popup-current { color: var(--lime); font-size: 20px; font-weight: 800; text-align: center; }
.speed-popup > input[type="range"] { width: 100%; }
.speed-popup-number { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #c1cbc5; font-size: 10px; }
.speed-popup-number input { width: 100%; min-width: 0; min-height: 32px; padding: 0 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; color: white; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700; text-align: center; outline: 0; }
.speed-popup-number input:focus { border-color: var(--mint); }
.speed-popup-number input::-webkit-outer-spin-button,
.speed-popup-number input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.speed-popup-number input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.volume-control { display: flex; width: 72px; align-items: center; }
.volume-control input { height: 16px; }
.watch-center { position: absolute; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: white; background: rgba(0,0,0,.58); backdrop-filter: blur(7px); cursor: pointer; font-size: 20px; transform: translate(-50%, -50%); transition: opacity .18s, background .18s, transform .18s; }
.watch-center:hover { background: rgba(0,0,0,.76); }
.watch-stage.playing .watch-center { opacity: 0; pointer-events: none; }
.watch-loading { position: absolute; z-index: 8; top: 14px; left: 14px; display: inline-flex; min-height: 29px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(124,228,196,.28); border-radius: 999px; color: var(--mint); background: rgba(5,10,10,.72); box-shadow: 0 8px 24px rgba(0,0,0,.2); backdrop-filter: blur(9px); font-size: 11px; transition: opacity .18s, border-color .18s, color .18s; }
.watch-loading[hidden] { display: none; }
.watch-loading[data-state="error"] { color: #ff9b92; border-color: rgba(255,116,109,.4); }
.watch-loading-spinner { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: watch-loading-spin .7s linear infinite; }
.watch-loading[data-state="error"] .watch-loading-spinner { animation-play-state: paused; }
@keyframes watch-loading-spin { to { transform: rotate(360deg); } }
.long-press-hint { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; padding: 7px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: white; background: rgba(0,0,0,.56); backdrop-filter: blur(8px); font-size: 13px; font-weight: 800; opacity: 0; transform: translate(-50%, -8px); transition: opacity .15s, transform .15s; }
.long-press-hint.show { opacity: 1; transform: translate(-50%, 0); }
.danmaku-layer { position: absolute; z-index: 3; inset: 10px 0 95px; overflow: hidden; pointer-events: none; transition: bottom .22s ease; }
.watch-stage.controls-hidden .danmaku-layer { bottom: 18px; }
.danmaku-layer[hidden] { display: none; }
.danmaku-item { position: absolute; max-width: 90%; overflow: hidden; color: white; font-size: var(--danmaku-font-size, 16px); font-weight: 700; line-height: 1.2; text-overflow: ellipsis; text-shadow: 1px 1px 2px #000, -1px -1px 2px #000; white-space: nowrap; opacity: var(--danmaku-opacity, .85); animation-timing-function: linear; animation-fill-mode: forwards; }
.danmaku-layer.paused .danmaku-item { animation-play-state: paused; }
.danmaku-right { left: 100%; }
.danmaku-top, .danmaku-bottom { left: 50%; transform: translateX(-50%); }
.watch-info { display: flex; align-items: center; justify-content: space-between; min-height: 45px; color: var(--muted); font-size: 11px; }
.watch-info > div { display: flex; align-items: center; gap: 7px; }
.watch-info > div:first-child { min-width: 0; flex: 1; }
#watchStatus { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(124,228,196,.1); }
.watch-copy { border: 0; color: var(--lime); background: transparent; cursor: pointer; font-size: 11px; }
.watch-actions { display: flex; flex: none; flex-wrap: nowrap; align-items: center; gap: 10px; }
.watch-download { border: 0; color: var(--mint); background: transparent; cursor: pointer; font-size: 11px; }
.watch-room-open { border: 0; color: #8fd3ff; background: transparent; cursor: pointer; font-size: 11px; }
.watch-room-panel { position: fixed; z-index: 140; inset: 0; }
.watch-room-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.watch-room-drawer { position: absolute; top: 0; right: 0; display: flex; width: min(430px, 100%); height: 100%; flex-direction: column; overflow: hidden; overscroll-behavior: contain; color: #f6f8fb; background: #11151b; box-shadow: -18px 0 50px rgba(0,0,0,.42); }
.watch-room-head { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.watch-room-head h2 { margin: 3px 0 0; font-size: 20px; }
.watch-room-head button, .watch-room-summary button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 6px; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 18px; }
.watch-room-notice { margin: 0; padding: 10px 18px; color: #aeb8c5; background: #171d25; font-size: 12px; }
.watch-room-notice[data-tone="error"] { color: #ffb5b5; background: #28191c; }
.watch-room-notice[data-tone="success"] { color: #a7ead2; background: #14231e; }
.watch-room-lobby, .watch-room-active { min-height: 0; padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.watch-room-lobby { display: grid; align-content: start; gap: 20px; }
.watch-room-lobby form { display: grid; gap: 12px; }
.watch-room-lobby label { display: grid; gap: 6px; color: #aeb8c5; font-size: 12px; }
.watch-room-ttl { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.watch-room-ttl small { grid-column: 1 / -1; color: #7f8b99; font-size: 10px; }
.watch-room-ttl select { min-height: 36px; padding: 0 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; color: white; background: #0c1015; }
.watch-room-lobby input, .watch-room-chat input, .watch-room-permission-grid select { min-width: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; color: white; background: #0c1015; outline: 0; }
.watch-room-lobby input { height: 42px; padding: 0 12px; }
.watch-room-active { display: flex; flex: 1; flex-direction: column; gap: 18px; }
.watch-room-summary { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.watch-room-summary div { display: grid; gap: 3px; }
.watch-room-summary small { color: #8793a2; font-size: 11px; }
.watch-room-summary strong { color: #8fd3ff; font-size: 24px; letter-spacing: 2px; }
.watch-room-section { display: grid; gap: 10px; }
.watch-room-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.watch-room-section-head h3 { margin: 0; font-size: 14px; }
.watch-room-section-head span, .watch-room-section-head small { color: #8793a2; font-size: 11px; }
.watch-room-members { display: grid; gap: 8px; }
.watch-room-member { border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 0 10px; }
.watch-room-member-line { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px; }
.watch-room-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #07131a; background: #8fd3ff; font-size: 13px; font-weight: 800; }
.watch-room-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.watch-room-member-line div { display: grid; gap: 2px; min-width: 0; }
.watch-room-member-line strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.watch-room-member-line small { color: #8793a2; font-size: 10px; }
.watch-room-member details { margin: 8px 0 0 44px; }
.watch-room-audio-controls { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; margin: 8px 0 0 44px; }
.watch-room-audio-controls button { display: grid; width: 30px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; color: #8fd3ff; background: #0c1015; cursor: pointer; }
.watch-room-audio-controls input { width: 100%; accent-color: #67d8b1; }
.watch-room-member summary { color: #8fd3ff; cursor: pointer; font-size: 11px; }
.watch-room-permission-grid { display: grid; gap: 7px; margin-top: 9px; }
.watch-room-permission-grid label { display: grid; grid-template-columns: 1fr 116px; align-items: center; gap: 8px; color: #aeb8c5; font-size: 11px; }
.watch-room-permission-grid select { height: 30px; padding: 0 7px; font-size: 11px; }
.watch-room-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.watch-room-rule-grid label { display: flex; align-items: center; justify-content: space-between; min-height: 34px; color: #c5ccd5; font-size: 11px; }
.watch-room-rule-grid input { width: 34px; height: 18px; accent-color: #67d8b1; }
.watch-room-chat { min-height: 210px; }
.watch-room-messages { min-height: 160px; max-height: 260px; overflow-y: auto; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.watch-room-message { display: grid; gap: 2px; padding: 6px 0; }
.watch-room-message strong { color: #8fd3ff; font-size: 11px; }
.watch-room-message span { overflow-wrap: anywhere; color: #e2e7ed; font-size: 12px; line-height: 1.55; }
.watch-room-chat form { display: grid; grid-template-columns: 1fr 38px; gap: 8px; }
.watch-room-chat input { height: 38px; padding: 0 11px; }
.watch-room-chat button { border: 0; border-radius: 5px; color: #07131a; background: #67d8b1; cursor: pointer; }
.watch-room-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: auto; }
.watch-room-actions button { min-height: 40px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; color: white; background: #1a222c; cursor: pointer; }
.watch-room-mic.active { color: #07131a; background: #67d8b1; }
.watch-room-leave { padding: 0 14px; color: #ffb5b5 !important; }
.watch-room-disband { padding: 0 12px; color: #ff8f8f !important; }
.watch-room-transfer, .watch-room-chat-mute { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; margin: 8px 0 0 44px; padding: 0 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 4px; color: #b8dfff; background: #0c1015; cursor: pointer; font-size: 11px; }
.watch-room-transfer:disabled { cursor: not-allowed; opacity: .45; }
.watch-room-audio { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.room-control-disabled { opacity: .42; }
.download-panel { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.download-panel[hidden] { display: none; }
.download-dialog { width: min(620px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px; border: 1px solid var(--line-strong); background: var(--panel); }
.download-head { display: flex; align-items: flex-start; justify-content: space-between; }
.download-head h2 { margin: 5px 0 0; font: 600 25px var(--serif); }
.download-head button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; }
.download-dialog > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.download-method { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: 5px 10px; padding: 11px; border: 1px solid var(--line); }
.download-method > span { grid-row: 1 / span 2; color: var(--text); font-size: 10px; font-weight: 700; }
.download-method select { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); color: var(--text); background: #0d1415; }
.download-method small { color: var(--muted); font-size: 9px; }
.download-episodes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 0; }
.download-episodes label { position: relative; }
.download-episodes input { position: absolute; opacity: 0; }
.download-episodes span { display: grid; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 10px; }
.download-episodes input:checked + span { color: var(--bg); border-color: var(--lime); background: var(--lime); font-weight: 800; }
.download-progress { min-height: 38px; padding: 9px 11px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 11px; }
.download-meter { height: 3px; overflow: hidden; background: rgba(255,255,255,.1); }
.download-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--lime),var(--mint)); transition: width .2s ease; }
.download-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.watch-tip { display: flex; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: 10px; }
.watch-tip span::before { margin-right: 5px; color: var(--lime); content: '•'; }
.danmaku-form { display: flex; gap: 7px; margin-top: 10px; }
.danmaku-form input { min-width: 0; flex: 1; height: 32px; padding: 0 9px; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.08); outline: 0; font-size: 11px; }
.danmaku-form button { height: 32px; padding: 0 12px; border: 0; color: var(--bg); background: var(--lime); cursor: pointer; font-size: 11px; font-weight: 800; }
.danmaku-form button:disabled { cursor: wait; opacity: .55; }
.danmaku-settings-panel { position: absolute; z-index: 5; right: 10px; bottom: 54px; display: grid; width: min(360px, calc(100% - 20px)); gap: 13px; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: white; background: rgba(12,16,18,.97); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.danmaku-settings-panel[hidden] { display: none; }
.watch-episode-panel { position: absolute; z-index: 7; right: 10px; bottom: 54px; display: grid; width: min(430px, calc(100% - 20px)); max-height: min(68%, 480px); grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: white; background: rgba(12,16,18,.97); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.watch-episode-panel[hidden] { display: none; }
.watch-episode-panel > header { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.watch-episode-panel > header > div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.watch-episode-panel > header strong { font-size: 13px; }
.watch-episode-panel > header span { color: var(--muted); font-size: 10px; }
.watch-episode-panel > header button { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; color: white; background: transparent; cursor: pointer; font-size: 17px; }
.watch-episode-source-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.watch-episode-source-tabs a { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #aeb9c4; font-size: 10px; }
.watch-episode-source-tabs a.active { color: #07100d; border-color: var(--lime); background: var(--lime); }
.watch-episode-grid { display: grid; min-height: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; overflow-y: auto; padding: 12px; overscroll-behavior: contain; }
.watch-episode-grid a { display: grid; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #aeb9c4; font-size: 10px; }
.watch-episode-grid a.active { color: #07100d; border-color: var(--lime); background: var(--lime); font-weight: 800; }
.watch-episode-grid a[aria-disabled="true"], .watch-episode-source-tabs a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.danmaku-settings-head { display: flex; align-items: center; justify-content: space-between; }
.danmaku-settings-head strong { font-size: 13px; }
.danmaku-settings-actions { display: flex; align-items: center; gap: 4px; }
.danmaku-settings-head button { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 16px; }
.danmaku-settings-head button:hover { color: #00aeec; }
.danmaku-settings-close { display: none !important; }
.danmaku-setting-row { display: grid; gap: 8px; margin: 0; }
.danmaku-setting-row > span { display: flex; justify-content: space-between; color: #d9e0dc; font-size: 11px; }
.danmaku-setting-row output { color: #00aeec; }
.danmaku-setting-row input[type="range"] { width: 100%; height: 3px; margin: 4px 0; accent-color: #00aeec; cursor: pointer; }
.setting-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: rgba(255,255,255,.1); }
.setting-segments button { min-height: 28px; padding: 0 8px; border: 0; color: var(--muted); background: #171c1e; cursor: pointer; font-size: 10px; }
.setting-segments button.active { color: white; background: #008ac5; }
.danmaku-swatches { display: flex; gap: 12px; }
.danmaku-swatches button { position: relative; width: 22px; height: 22px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.danmaku-swatches button::after { position: absolute; inset: -5px; border: 1px solid transparent; border-radius: 50%; content: ""; }
.danmaku-swatches button.active::after { border-color: #00aeec; }
.watch-sidebar { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.watch-side-head { display: flex; align-items: baseline; justify-content: space-between; }
.watch-side-head h2 { margin: 0; font: 600 22px var(--serif); }
.watch-side-head span { color: var(--muted); font-size: 11px; }
.watch-source-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 15px 0 10px; border-bottom: 1px solid var(--line); }
.watch-source-tabs, .watch-episode-source-tabs { overscroll-behavior-x: contain; scrollbar-color: rgba(124,228,196,.75) rgba(255,255,255,.06); scrollbar-gutter: stable; }
.watch-source-tabs::-webkit-scrollbar-track, .watch-episode-source-tabs::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
.watch-source-tabs::-webkit-scrollbar-thumb, .watch-source-tabs:not(.is-scrolling)::-webkit-scrollbar-thumb, .watch-episode-source-tabs::-webkit-scrollbar-thumb, .watch-episode-source-tabs:not(.is-scrolling)::-webkit-scrollbar-thumb { border-color: var(--panel); background: rgba(124,228,196,.75); }
.watch-source-tabs a { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.watch-source-tabs a.active, .watch-source-tabs a:hover { color: var(--bg); border-color: var(--lime); background: var(--lime); }
.watch-episodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; max-height: 440px; overflow-y: auto; padding: 15px 0; }
.watch-episodes a { display: grid; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.watch-episodes a:hover, .watch-episodes a.active { color: var(--bg); border-color: var(--lime); background: var(--lime); font-weight: 800; }
.watch-episodes a.watched-episode:not(.active), .episode-source a.watched-episode { color: var(--mint); border-color: rgba(124,228,196,.45); background: rgba(124,228,196,.08); }
.watch-next { padding-top: 14px; border-top: 1px solid var(--line); }
.watch-next small { display: block; color: var(--dim); font-size: 10px; }
.watch-next code { display: block; margin-top: 4px; overflow: hidden; color: var(--mint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.app-footer { display: flex; width: min(1440px, calc(100% - 48px)); align-items: center; justify-content: center; margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; letter-spacing: .1em; text-align: center; }
.mobile-nav { display: none; }
.report-progress-page { width: min(760px, 100%); margin: 0 auto; padding: 24px 0 56px; }
.report-progress-page > header { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.report-progress-page > header a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.report-progress-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 32px 0 26px; border-bottom: 1px solid var(--line); }
.report-progress-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--lime); font-size: 24px; }
.report-progress-summary small, .report-progress-details dt { color: var(--muted); font-size: 10px; }
.report-progress-summary h1 { margin: 3px 0 8px; font: 600 29px var(--serif); }
.report-progress-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.report-progress-details { margin: 0; }
.report-progress-details > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.report-progress-details dd { margin: 0; font-size: 12px; line-height: 1.65; }
@media (max-width: 1100px) { .desktop-nav { gap: 15px; } .card-row, .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .quick-cats { grid-template-columns: repeat(3, 1fr); } .quick-title { grid-column: 1 / -1; min-height: auto; padding: 8px 0; border: 0; } .watch-layout { grid-template-columns: minmax(0, 1fr) 250px; } }
@media (max-width: 760px) {
    .tip-mobile { display: inline; } .tip-desktop { display: none; }
    .app-header { position: relative; }
    .header-inner { width: calc(100% - 28px); min-height: 62px; gap: 12px; }
    .desktop-nav { display: none; }
    .header-search { flex: 1; order: 2; height: 34px; margin-left: auto; }
    .logo { order: 1; gap: 7px; } .logo-mark { width: 30px; height: 30px; font-size: 17px; } .logo b { font-size: 13px; } .logo small { display: none; }
    .header-message-link { display: none; } .header-avatar { order: 4; }
    .app-main { width: calc(100% - 24px); padding: 15px 0 20px; }
    .report-progress-page { padding-top: 5px; }
    .report-progress-summary { grid-template-columns: 40px minmax(0, 1fr); padding-top: 24px; }
    .report-progress-icon { width: 40px; height: 40px; font-size: 20px; }
    .report-progress-summary h1 { font-size: 25px; }
    .report-progress-details > div { grid-template-columns: 84px minmax(0, 1fr); }
    .favorite-folder-grid { grid-template-columns: 1fr; }
    .favorite-dialog-backdrop { align-items: end; padding: 0; }
    .favorite-dialog { width: 100%; max-height: calc(100vh - 62px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; }
    .favorite-dialog-content { padding-right: 16px; padding-left: 16px; }
    .favorite-dialog-head, .favorite-dialog-actions { padding-right: 16px; padding-left: 16px; }
    .favorite-dialog-status { padding-right: 16px; padding-left: 16px; }
    .favorite-visibility-options { grid-template-columns: 1fr; }
    .hero-track { min-height: 405px; }
    .home-hero { min-height: 405px; align-items: flex-end; padding: 25px 20px; }
    .hero-image { object-position: 68% center; }
    .carousel-controls { top: 18px; right: auto; bottom: auto; left: 18px; }
    .carousel-controls > button { width: 28px; height: 28px; font-size: 16px; }
    .home-hero::before { background: linear-gradient(0deg, rgba(7,11,12,.98) 0%, rgba(7,11,12,.72) 54%, rgba(7,11,12,.15) 100%); }
    .hero-copy h1 { margin-top: 9px; font-size: 31px; } .hero-copy p { font-size: 12px; line-height: 1.7; }
    .hero-meta { position: absolute; top: 18px; right: 18px; }
    .hero-actions { margin-top: 17px; } .primary-btn, .ghost-btn { min-height: 39px; padding: 0 14px; font-size: 12px; }
    .quick-cats { display: flex; gap: 8px; margin: 14px -12px 35px; overflow-x: auto; padding: 0 12px 3px; }
    .home-watch-entry { align-items: flex-start; flex-direction: column; margin: 14px 0 26px; padding: 16px; }
    .home-watch-entry h2 { font-size: 22px; }
    .quick-title { display: none; } .quick-cats > a { flex: 0 0 92px; min-height: 79px; padding: 12px; } .cat-icon { font-size: 19px; } .quick-cats a b { font-size: 12px; } .quick-cats a small { font-size: 9px; }
    .content-section { margin-bottom: 35px; } .section-head { margin-bottom: 12px; } .section-head h2 { font-size: 22px; }
    .card-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 5px; scroll-snap-type: x proximity; }
    .media-card { flex: 0 0 128px; scroll-snap-align: start; } .media-card strong { margin-top: 7px; font-size: 12px; } .media-card small { font-size: 10px; }
    .page-heading { padding: 23px 0 18px; } .page-heading h1 { font-size: 29px; } .page-heading p { font-size: 12px; }
    .catalog-switch { margin: 0 -12px; padding: 14px 12px 2px; } .catalog-switch a { min-width: 66px; padding: 7px 11px; font-size: 11px; }
    .catalog-filter-panel { margin: 13px -12px 0; border-right: 0; border-left: 0; }
    .catalog-filter-head { min-height: 44px; padding: 0 12px; }
    .catalog-filter-row { grid-template-columns: 52px minmax(0, 1fr); min-height: 42px; }
    .catalog-filter-row > strong { padding: 13px 10px 0 12px; font-size: 10px; }
    .catalog-filter-options { flex-wrap: nowrap; overflow-x: auto; padding: 7px 12px 7px 0; scrollbar-width: none; }
    .catalog-filter-options::-webkit-scrollbar { display: none; }
    .catalog-filter-options a { flex: 0 0 auto; min-height: 27px; padding: 6px 8px; font-size: 10px; }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 9px; padding-top: 19px; } .catalog-grid .media-card { flex: initial; }
    .catalog-grid .media-card strong { font-size: 11px; } .catalog-grid .media-card small { font-size: 9px; }
    .catalog-sentinel { min-height: 62px; margin-top: 8px; }
    .my-overview { gap: 11px; margin-bottom: 32px; padding: 15px 13px; } .my-avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: 17px; } .my-overview > div:nth-child(2) span { max-width: 150px; font-size: 9px; } .my-stats { gap: 10px; } .my-stats span { font-size: 9px; } .my-stats b { display: block; margin: 0; font-size: 16px; }
    .my-account-actions { order: 3; width: 100%; margin-left: 0; } .my-account-actions .primary-btn, .my-account-actions .ghost-btn { flex: 1; min-height: 34px; }
    .my-overview { flex-wrap: wrap; } .my-overview .my-stats { margin-left: auto; }
    .auth-shell { display: block; margin: 20px 0 55px; } .auth-intro { padding: 4px 0 22px; } .auth-intro h1 { font-size: 31px; } .auth-intro p { font-size: 12px; } .auth-form { padding: 19px 15px; }
    .profile-summary { flex-wrap: wrap; padding: 16px 14px; } .profile-summary form { width: 100%; margin-left: 0; } .profile-summary form .ghost-btn { width: 100%; }
    .device-item { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; } .device-item > b { grid-column: 2; }
    .my-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .my-watch-room { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .my-watch-room-icon { width: 34px; height: 34px; }
    .my-watch-room em { grid-column: 2; justify-self: start; text-align: left; }
    .history-item { grid-template-columns: 80px minmax(0, 1fr) 32px; gap: 9px; } .history-item > img { width: 80px; height: 48px; } .history-item .primary-btn { grid-column: 2; grid-row: 2; justify-self: start; min-height: 28px; padding: 0 9px; } .history-remove { grid-column: 3; grid-row: 1 / span 2; } .history-copy span { font-size: 9px; }
    .large-search { height: 43px; margin-top: 18px; } .large-search button { width: 74px; }
    .search-result-section { padding-top: 23px; }
    .search-result-head h2 { font-size: 20px; }
    .search-user-results { grid-template-columns: 1fr; gap: 8px; }
    .search-user-card { min-height: 66px; grid-template-columns: 42px minmax(0, 1fr) 18px; padding: 10px; }
    .search-user-avatar { width: 42px; height: 42px; font-size: 15px; }
    .detail-hero { grid-template-columns: 106px 1fr; gap: 15px; padding: 17px; } .detail-copy h1 { margin: 5px 0 9px; font-size: 25px; } .detail-copy p { max-height: 83px; overflow: hidden; font-size: 11px; line-height: 1.65; }
    .detail-tags { gap: 4px; } .detail-tags span { padding: 3px 5px; font-size: 9px; } .detail-actions { flex-wrap: wrap; gap: 7px; margin-top: 12px; } .detail-actions .primary-btn, .detail-actions .ghost-btn { min-height: 34px; padding: 0 9px; font-size: 10px; }
    .detail-panel, .episode-panel { padding: 17px 14px; } .detail-sources { grid-template-columns: repeat(2, 1fr); gap: 7px; } .detail-source { min-height: 68px; padding: 8px 9px; } .detail-source b { font-size: 11px; } .detail-source small, .detail-source span { font-size: 9px; }
    .episode-source { grid-template-columns: 55px 1fr; gap: 7px; } .episode-source > div { gap: 5px; } .episode-source a { width: 34px; height: 30px; font-size: 10px; }
    .player-page { width: calc(100% + 24px); margin-left: -12px; } .player-nav, .player-skeleton-nav { padding: 0 12px; min-height: 38px; font-size: 10px; }
    .player-skeleton-layout { display: block; } .player-skeleton-stage { border-right: 0; border-left: 0; } .player-skeleton-status, .player-skeleton-tips { padding-right: 12px; padding-left: 12px; } .player-skeleton-tips { overflow: hidden; }
    .player-skeleton-sidebar { min-height: 240px; padding: 15px 12px; border-right: 0; border-left: 0; } .player-skeleton-episodes { grid-template-columns: repeat(6, 1fr); }
    .watch-layout { display: block; } .watch-stage { border-right: 0; border-left: 0; } .watch-info, .watch-tip { padding: 0 12px; } .watch-tip { padding-bottom: 10px; }
    .watch-sidebar { border-right: 0; border-left: 0; padding: 15px 12px; } .watch-episodes { grid-template-columns: repeat(6, 1fr); max-height: none; } .watch-source-tabs a { font-size: 9px; }
    .volume-control { width: 52px; } .download-dialog { padding: 17px 13px; } .download-episodes { grid-template-columns: repeat(6, 1fr); }
    .watch-room-drawer { top: auto; bottom: 0; width: 100%; height: min(88dvh, 760px); border-top: 1px solid rgba(255,255,255,.14); }
    .watch-room-head { min-height: 62px; padding: 12px 14px; }
    .watch-room-lobby, .watch-room-active { padding: 14px; }
    .watch-room-rule-grid { grid-template-columns: 1fr; }
    .watch-room-summary strong { font-size: 21px; }
    .watch-room-actions { position: sticky; bottom: 0; padding-top: 8px; background: #11151b; }
    .watch-controls { padding-right: 10px; padding-left: 10px; } .watch-control-row { gap: 3px; } .watch-icon { width: 26px; height: 27px; font-size: 15px; } .danmaku-compose-toggle, .force-landscape-toggle { display: grid; } .watch-speed-button { min-width: 40px; padding: 0 6px; font-size: 9px; } .speed-popup { right: 8px; left: 8px; width: auto; bottom: calc(100% + 8px); } .speed-popup-number input { font-size: 16px; } .danmaku-form { display: none; padding: 0; } .watch-stage.danmaku-compose-open .danmaku-form { display: flex; } .danmaku-layer { inset: 7px 0 66px; } .watch-stage.danmaku-compose-open .danmaku-layer { bottom: 104px; } .watch-center { width: 42px; height: 42px; font-size: 18px; }
    .watch-episode-panel { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: none; padding-bottom: env(safe-area-inset-bottom); }
    .watch-episode-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .danmaku-settings-panel { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; overflow-y: auto; padding: 7px 10px; }
    .danmaku-settings-head { grid-column: 1 / -1; }
    .player-toast { top: 16%; min-height: 72px; padding: 13px 14px; } .player-toast > i { font-size: 26px; } .player-toast strong { font-size: 14px; } .player-toast span { font-size: 11px; }
    .app-footer { width: calc(100% - 24px); padding-bottom: 84px; font-size: 8px; } .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 61px; border-top: 1px solid var(--line); background: rgba(9,14,15,.96); backdrop-filter: blur(16px); } .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 18px; } .mobile-nav a.active, .mobile-nav a:hover { color: var(--lime); } .mobile-nav-icon { position: relative; display: grid; place-items: center; } .mobile-nav small { font-size: 10px; }
}
.watch-stage.pseudo-fullscreen.force-landscape { top: 50%; left: 50%; right: auto; bottom: auto; width: var(--landscape-width); height: var(--landscape-height); transform: translate(-50%, -50%) rotate(90deg); }
.watch-stage.force-landscape:fullscreen, .watch-stage.force-landscape:-webkit-full-screen { position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important; width: var(--landscape-width) !important; height: var(--landscape-height) !important; transform: translate(-50%, -50%) rotate(90deg); }
@media (pointer: coarse) {
    .danmaku-compose-toggle, .force-landscape-toggle { display: grid; }
    .danmaku-form { display: none; }
    .watch-stage.danmaku-compose-open .danmaku-form { display: flex; }
    .danmaku-settings-panel { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; overflow-y: auto; padding: 7px 10px; }
    .danmaku-settings-head { grid-column: 1 / -1; }
}
@media (max-width: 760px), (pointer: coarse) { .danmaku-settings-close { display: grid !important; color: #fff; border: 1px solid rgba(255,255,255,.24) !important; background: rgba(255,255,255,.08) !important; } }
@media (max-width: 420px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .media-card .poster-badge { top: 5px; left: 5px; padding: 2px 4px; font-size: 8px; } .detail-hero { grid-template-columns: 92px 1fr; } .detail-copy h1 { font-size: 22px; } .watch-episodes { gap: 5px; } .watch-time { font-size: 9px; } .danmaku-form input { font-size: 10px; } .danmaku-form button { padding: 0 9px; } }
@media (max-width: 420px) { .auth-code-input-row { grid-template-columns: 1fr; } .auth-code-input-row .ghost-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.admin-body { min-height: 100vh; background: #080d0e; }
.admin-header { display: flex; min-height: 64px; align-items: stretch; gap: 32px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #0d1314; }
.admin-header .logo { align-self: center; }
.admin-header nav { display: flex; gap: 4px; }
.admin-header nav { min-width: 0; overflow-x: auto; }
.admin-header nav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-header nav a:hover, .admin-header nav a.active { color: var(--text); border-bottom-color: var(--lime); }
.admin-identity { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: 11px; }
.admin-identity a { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); color: var(--lime); }
.admin-main { width: min(1280px, calc(100% - 48px)); min-height: calc(100vh - 122px); margin: auto; padding: 32px 0 60px; }
.admin-footer { width: min(1280px, calc(100% - 48px)); margin: auto; padding: 18px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; letter-spacing: .12em; }
.admin-login { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 480px); gap: 80px; max-width: 960px; margin: 70px auto; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.admin-title h1 { margin: 6px 0 3px; font: 600 34px var(--serif); }
.admin-title p { margin: 0; color: var(--muted); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.metric-grid article { display: grid; min-height: 130px; align-content: space-between; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.metric-grid i { color: var(--mint); font-size: 22px; }
.metric-grid span { align-self: end; color: var(--muted); font-size: 10px; }
.metric-grid strong { font-size: 27px; }
.admin-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--line); }
.admin-panel h2 { margin: 5px 0; font: 600 24px var(--serif); }
.admin-panel p { margin: 0; color: var(--muted); font-size: 11px; }
.settings-form { display: grid; gap: 12px; }
.settings-form > section { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(420px, 1.35fr); gap: 40px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.settings-form h2 { margin: 0 0 5px; font: 600 21px var(--serif); }
.settings-form section > div > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.settings-fields { display: grid; gap: 13px; }
.settings-fields label:not(.switch-row) { display: grid; gap: 6px; }
.settings-fields label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.settings-fields input[type="number"], .settings-fields input[type="text"], .settings-fields input[type="password"], .settings-fields textarea { width: 100%; border: 1px solid var(--line-strong); outline: 0; color: var(--text); background: #0d1415; }
.settings-fields input[type="number"] { height: 39px; padding: 0 10px; }
.settings-fields input[type="text"], .settings-fields input[type="password"] { height: 39px; padding: 0 10px; }
.settings-fields textarea { min-height: 78px; resize: vertical; padding: 10px; }
.settings-fields input:focus, .settings-fields textarea:focus { border-color: var(--lime); }
.settings-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switch-row { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 12px; border: 1px solid var(--line); }
.switch-row > span { display: grid; gap: 2px; }
.switch-row b { color: var(--text); font-size: 12px; }
.switch-row small { color: var(--muted); font-size: 9px; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--lime); }
.settings-actions { position: sticky; z-index: 5; bottom: 0; display: flex; justify-content: flex-end; padding: 13px; border: 1px solid var(--line); background: rgba(13,19,20,.95); backdrop-filter: blur(12px); }
.provider-form input, .provider-form select { height: 39px; padding: 0 10px; border: 1px solid var(--line-strong); color: var(--text); background: #0d1415; }
.provider-list { display: grid; gap: 8px; margin-top: 16px; }
.provider-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid var(--line); background: var(--panel); }
.provider-list article > div { display: grid; min-width: 0; gap: 2px; }
.provider-list span, .provider-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.provider-list article > b { color: var(--dim); font-size: 10px; }
.provider-list article > b.enabled { color: var(--mint); }
.admin-filter { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-filter input, .admin-filter select { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.admin-table { overflow: auto; border: 1px solid var(--line); }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-table th { color: var(--muted); background: #0d1415; font-size: 9px; text-transform: uppercase; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { max-width: 380px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.admin-table code { color: var(--mint); font-size: 9px; }
.admin-table input[type="number"] { width: 100px; height: 32px; border: 1px solid var(--line); color: var(--text); background: #0d1415; }
.admin-group-identity { display: flex; min-width: 220px; align-items: center; gap: 10px; }
.admin-group-identity > span:last-child { display: grid; min-width: 0; gap: 2px; }
.admin-group-identity.large > span:last-child { gap: 4px; }
.admin-group-identity.large h2 { margin: 0; font-size: 20px; }
.admin-group-avatar { display: flex; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border-radius: 6px; background: #252b38; }
.admin-group-identity.large .admin-group-avatar { width: 58px; height: 58px; flex-basis: 58px; }
.admin-group-image { position: relative; display: grid; place-items: center; }
.admin-group-image > img { width: 100%; height: 100%; object-fit: cover; }
.admin-group-image > span { position: absolute; inset: 0; display: none; place-items: center; color: #f3f7f5; background: #252b38; font-size: 12px; font-weight: 800; }
.admin-group-image.avatar-load-failed > img { display: none; }
.admin-group-image.avatar-load-failed > span { display: grid; }
.admin-image-avatar { position: relative; }
.admin-image-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-image-avatar b { display: none; position: absolute; inset: 0; place-items: center; color: #17352d; background: #a8dcca; }
.admin-image-avatar.avatar-load-failed img { display: none; }
.admin-image-avatar.avatar-load-failed b { display: grid; }
.admin-group-detail { display: grid; gap: 16px; margin-top: 24px; }
.admin-group-detail > header { padding: 16px 0; border-bottom: 1px solid var(--line); }
.admin-group-members { display: grid; padding: 4px 16px 14px; }
.admin-group-members article { display: flex; min-height: 52px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.admin-group-members article > span:last-child { display: grid; min-width: 0; gap: 2px; }
.admin-group-members small { color: var(--muted); font-size: 10px; }
.admin-person-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; overflow: hidden; border-radius: 50%; color: #17352d; background: #a8dcca; font-size: 10px; font-weight: 800; }
.admin-group-messages { display: grid; max-height: 480px; overflow: auto; padding: 4px 16px 14px; }
.admin-group-messages article { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-group-messages time { color: var(--muted); font-size: 9px; }
.admin-group-messages p { margin: 3px 0 0; color: var(--muted); font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
.admin-group-moderation > div { display: grid; gap: 10px; padding: 16px; }
.admin-group-moderation form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; }
.admin-group-moderation input { min-width: 0; height: 38px; border: 1px solid var(--line); color: var(--text); background: #0d1415; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; color: var(--muted); font-size: 10px; }
.table-action { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-size: 10px; font-weight: 700; }
.admin-drawer-shell { position: fixed; z-index: 10000; inset: 0; display: flex; justify-content: flex-end; }
.admin-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.admin-user-drawer { position: relative; width: min(520px, 94vw); height: 100%; overflow-y: auto; padding: 24px; border-left: 1px solid var(--line-strong); background: #0d1415; box-shadow: -24px 0 70px rgba(0,0,0,.35); }
.admin-user-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-user-drawer > header h2 { margin: 4px 0 2px; font: 600 27px var(--serif); }
.admin-user-drawer > header p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-user-drawer > header > a { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 20px; }
.user-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0; background: var(--line); }
.user-detail-grid > div { min-width: 0; padding: 12px; background: var(--panel); }
.user-detail-grid dt { color: var(--muted); font-size: 9px; }
.user-detail-grid dd { overflow: hidden; margin: 3px 0 0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-admin-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.user-admin-actions button { min-width: 0; padding: 0 8px; }
.user-session-list { margin-top: 26px; }
.drawer-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-section-head h3 { margin: 0; font-size: 14px; }
.drawer-section-head span { color: var(--muted); font-size: 9px; }
.user-session-list article { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.user-session-list article > i { display: grid; width: 32px; height: 32px; place-items: center; color: var(--lime); background: rgba(217,255,115,.08); font-size: 17px; }
.user-session-list article > div { display: grid; min-width: 0; gap: 2px; }
.user-session-list article strong { font-size: 11px; }
.user-session-list article span, .user-session-list article small, .drawer-empty { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ghost-btn.danger, .icon-danger { color: var(--coral); }.icon-danger { border: 0; background: transparent; cursor: pointer; font-size: 17px; }
@media (max-width: 800px) {
    .admin-header { min-height: 58px; gap: 10px; padding: 0 12px; } .admin-header nav { margin-left: auto; } .admin-header nav a { width: 42px; justify-content: center; padding: 0; font-size: 0; } .admin-header nav a i { font-size: 19px; } .admin-identity span { display: none; }
    .admin-main { width: calc(100% - 24px); padding-top: 22px; } .admin-login { display: block; margin: 20px auto 50px; } .admin-login .auth-intro { margin-bottom: 20px; }
    .admin-title { align-items: flex-start; gap: 15px; } .admin-title h1 { font-size: 28px; } .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric-grid article { min-height: 105px; }
    .admin-panel { align-items: flex-start; flex-direction: column; } .settings-form > section { grid-template-columns: 1fr; gap: 18px; padding: 16px 13px; } .settings-number-grid { grid-template-columns: 1fr 1fr; }
    .admin-user-drawer { width: min(500px,100%); padding: 19px 14px; } .user-admin-actions { grid-template-columns: 1fr; } .loader-surface { grid-template-columns: 34px minmax(0,1fr) 38px; padding: 12px; } .loader-logo { width: 34px; height: 34px; }
    .admin-group-messages article { grid-template-columns: 1fr; gap: 3px; } .admin-group-moderation form { grid-template-columns: 1fr; }
}
