:root {
    --bg: #030612;
    --panel: rgba(5, 10, 27, .92);
    --panel-strong: #09122b;
    --line: rgba(159, 184, 255, .14);
    --line-strong: rgba(52, 119, 255, .40);
    --text: #f5f7ff;
    --muted: #8795b3;
    --accent: #3d82ff;
    --accent-soft: rgba(61, 130, 255, .14);
    --lime: #ff315c;
    --live: #ff315c;
    --cyan: #62d8ff;
    --radius: 20px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(180deg, rgba(2, 5, 18, .30), rgba(2, 5, 18, .82)),
        url("/assets/t1-stadium-bg-v1.webp") center center / cover fixed no-repeat,
        #030612;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ambient { position: fixed; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(120px); opacity: .10; pointer-events: none; }
.ambient-one { background: #e8234f; top: -19rem; left: -13rem; }
.ambient-two { background: #176dff; right: -19rem; bottom: -19rem; }

.live-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 12px;
    width: min(1640px, 100%);
    height: 100dvh;
    min-height: 640px;
    margin: 0 auto;
    padding: 12px;
}
.stage-panel, .chat-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 26px 90px rgba(0, 0, 12, .58), 0 0 48px rgba(30, 84, 210, .08), inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(22px);
    overflow: hidden;
}
.stage-panel { display: grid; grid-template-rows: 76px 40px minmax(0, 1fr) 72px; }
.stage-panel.has-banner { grid-template-rows: 76px auto 40px minmax(0, 1fr) 72px; }
.stage-panel.external-stage, .stage-panel.own-player-stage { align-self: start; grid-template-rows: 76px 40px auto 72px; }
.stage-panel.external-stage.has-banner, .stage-panel.own-player-stage.has-banner { grid-template-rows: 76px auto 40px auto 72px; }
.topbar, .stage-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.topbar { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(229,35,78,.14), rgba(10,17,43,.28) 42%, rgba(32,104,255,.13)); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
    width: 48px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(107,157,255,.45);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(120deg, #e82750 0 48%, #176cff 52% 100%);
    box-shadow: 0 10px 30px rgba(30, 91, 235, .24), inset 0 1px rgba(255,255,255,.24);
}
.brand-mark b { font-size: 18px; font-style: italic; font-weight: 950; letter-spacing: -.09em; transform: skewX(-8deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: #73a8ff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.room-state { display: flex; align-items: center; gap: 13px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-pill.is-offline { color: #a6b4aa; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.live-pill.is-live { color: #fff; background: var(--live); box-shadow: 0 8px 25px rgba(255,56,88,.28); }
.live-pill.is-live i { animation: pulse 1.4s infinite; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.connection-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f0a934; box-shadow: 0 0 0 3px rgba(240,169,52,.11); }
.connection-state[data-state="connected"] { color: #9fcfb2; }
.connection-state[data-state="connected"]::before { background: #39c875; box-shadow: 0 0 0 3px rgba(57,200,117,.11); }
.connection-state[data-state="error"]::before { background: #ff526f; box-shadow: 0 0 0 3px rgba(255,82,111,.11); }

.stream-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 15 / 2;
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    color: #8291b2;
    background:
        linear-gradient(110deg, rgba(235,42,82,.11), transparent 34%, rgba(40,111,255,.12) 72%, transparent),
        repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 12px),
        #070d21;
}
.stream-banner::before, .stream-banner::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(72,132,255,.13); border-radius: 50%; }
.stream-banner::before { left: -92px; }
.stream-banner::after { right: -92px; }
.stream-banner.has-image::before, .stream-banner.has-image::after { display: none; }
.stream-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stream-banner.has-image img { filter: hue-rotate(128deg) saturate(1.15) brightness(.91); }
.stream-banner.has-image::after { display: block; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(90deg, rgba(227,35,76,.22), transparent 43%, rgba(42,103,242,.18)); mix-blend-mode: screen; pointer-events: none; }
.stream-banner-label { padding: 6px 9px; border: 1px solid rgba(61,130,255,.32); border-radius: 6px; color: #79aaff; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.stream-banner strong { color: #c8d2ea; font-size: 17px; letter-spacing: .04em; }
.stream-banner small { color: #7583a3; font-size: 12px; }
.stream-banner.has-carousel { display: block; aspect-ratio: 4 / 1; max-height: none; }
.stream-banner.has-carousel::before, .stream-banner.has-carousel::after { display: none; }
.banner-carousel { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(110deg, rgba(224,34,75,.18), rgba(4,10,28,.96) 42%, rgba(34,98,237,.20)); touch-action: pan-y; }
.banner-carousel::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 12px), radial-gradient(circle at 10% 30%, rgba(255,48,89,.13), transparent 22%), radial-gradient(circle at 88% 70%, rgba(50,116,255,.14), transparent 28%); }
.banner-track { position: relative; z-index: 1; height: 100%; display: flex; transition: transform .55s cubic-bezier(.22,.75,.24,1); will-change: transform; }
.banner-slide { flex: 0 0 100%; min-width: 0; display: block; }
.banner-slide picture, .banner-slide img { display: block; width: 100%; height: 100%; }
.banner-slide img { object-fit: cover; }
.banner-arrow { position: absolute; z-index: 4; top: 50%; width: 30px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(114,158,255,.32); border-radius: 8px; color: #fff; background: rgba(4,10,27,.72); box-shadow: 0 5px 16px rgba(0,0,0,.28); font-size: 25px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: border-color .2s, background .2s, transform .2s; }
.banner-arrow:hover { border-color: rgba(255,211,107,.72); background: rgba(39,70,142,.90); transform: translateY(-50%) scale(1.04); }
.banner-prev { left: 8px; }
.banner-next { right: 8px; }
.banner-dots { position: absolute; z-index: 4; left: 50%; bottom: 6px; display: flex; gap: 6px; transform: translateX(-50%); }
.banner-dots button { width: 17px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .2s, background .2s; }
.banner-dots button.is-active { width: 28px; background: linear-gradient(90deg, #ff315c, #4b83ff); }

.ticker-bar { position: relative; display: flex; align-items: center; min-width: 0; height: 40px; overflow: hidden; border-bottom: 1px solid rgba(66,128,255,.30); color: #fff; background: linear-gradient(90deg, rgba(220,31,71,.22), rgba(5,12,34,.98) 38%, rgba(39,101,232,.22)); box-shadow: inset 4px 0 #ff315c, inset -4px 0 #3777ff; }
.ticker-bar::before { content: "📢"; position: relative; z-index: 2; flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 100%; background: linear-gradient(90deg, #111a36 74%, transparent); font-size: 16px; }
.ticker-track { position: relative; z-index: 1; flex: 0 0 auto; min-width: max-content; padding-left: 100%; padding-right: 48px; white-space: nowrap; color: #f7f9ff; font-size: 14px; font-weight: 800; letter-spacing: .02em; animation: ticker-scroll 22s linear infinite; will-change: transform; }
.ticker-bar:hover .ticker-track, .ticker-bar:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #7eb2ff; font-weight: 950; text-decoration: underline; text-decoration-color: rgba(126,178,255,.55); text-underline-offset: 3px; }
.ticker-track a:hover { color: #fff; }

.player-frame { position: relative; display: grid; place-items: center; min-height: 300px; background: #01030b; overflow: hidden; isolation: isolate; }
.player-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, transparent 49.85%, rgba(112,151,255,.12) 50%, transparent 50.15%),
        repeating-linear-gradient(90deg, rgba(39,78,166,.11) 0 9%, rgba(28,42,91,.08) 9% 18%),
        radial-gradient(ellipse at 50% 116%, rgba(40,103,255,.22), transparent 47%),
        linear-gradient(180deg, #070c20, #01030b 72%);
}
.player-frame::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(31vw, 360px);
    aspect-ratio: 1;
    border: 1px solid rgba(111,151,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 90px rgba(48,110,255,.07), inset 0 0 70px rgba(220,39,79,.035);
}
#live-player, #live-embed { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.player-frame.has-external-embed { place-items: start stretch; }
.player-frame.has-own-player { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
#live-embed.external-player-page { width: 1200px; max-width: none; height: 675px; justify-self: start; transform-origin: left top; opacity: 0; transition: opacity .24s ease; }
.player-frame.is-player-ready #live-embed.external-player-page { opacity: 1; }
.player-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 13px;
    color: #9aa7c5;
    background: radial-gradient(circle at 50% 58%, rgba(61,130,255,.13), transparent 26%), #01030b;
    font-size: 13px;
    letter-spacing: .08em;
    transition: opacity .24s ease, visibility .24s ease;
}
.player-loading i { width: 30px; height: 30px; border: 2px solid rgba(61,130,255,.20); border-top-color: var(--live); border-radius: 50%; animation: player-spin .8s linear infinite; }
.player-loading small { color: #667695; font-size: 11px; letter-spacing: .04em; }
.player-frame.is-player-ready .player-loading { opacity: 0; visibility: hidden; pointer-events: none; }
.player-watermarks { position: absolute; z-index: 4; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
.player-watermark { position: absolute; left: var(--watermark-x, 90%); top: var(--watermark-y, 10%); transform: translate(-50%, -50%); display: block; width: var(--watermark-width, 12%); max-width: 40%; height: auto; max-height: 40%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.62)); user-select: none; }
.player-frame:fullscreen, .player-frame.is-css-fullscreen { background: #000; }
.player-frame:fullscreen #live-embed.external-player-page, .player-frame.is-css-fullscreen #live-embed.external-player-page { position: absolute; left: 50%; top: 50%; transform-origin: center; }
body.has-css-player-fullscreen { overflow: hidden; }
.offline-card { position: relative; z-index: 1; text-align: center; padding: 32px; }
.signal-orbit {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 27px;
    border: 1px solid rgba(61,130,255,.30);
    border-radius: 50%;
    color: #76a9ff;
    background: rgba(61,130,255,.07);
    box-shadow: 0 0 0 16px rgba(61,130,255,.035), 0 0 0 32px rgba(232,39,79,.018), 0 0 55px rgba(42,100,235,.18);
}
.signal-orbit svg { width: 55px; height: 55px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.offline-card h1 { margin: 0; font-size: clamp(28px, 4vw, 50px); letter-spacing: -.045em; }
.offline-card > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.stage-footer { border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(228,35,77,.07), rgba(3,7,21,.56), rgba(37,101,236,.07)); }
.stage-footer > div:first-child { display: grid; gap: 5px; }
.footer-label { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .10em; }
.stage-footer strong { font-size: 14px; }
.clock-wrap { display: flex; align-items: center; gap: 10px; color: #7d8cad; font-size: 12px; font-weight: 800; letter-spacing: .10em; }
.system-clock { color: #aab6d0; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .08em; }

.chat-panel { display: grid; grid-template-rows: 76px auto auto minmax(0, 1fr) auto; background: rgba(4, 9, 25, .96); }
.chat-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, rgba(229,39,80,.11), transparent 48%, rgba(47,115,255,.08)); }
.chat-header::before { content: ""; position: absolute; top: 0; left: 19px; width: 72px; height: 2px; background: linear-gradient(90deg, var(--lime), var(--accent)); box-shadow: 0 0 15px rgba(55,119,255,.55); }
.chat-header h2 { margin: 0; font-size: 20px; }
.chat-header .eyebrow { margin-bottom: 4px; }
.online-count { display: flex; align-items: center; gap: 7px; color: #aab6ce; font-size: 14px; }
.online-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px rgba(95,226,171,.65); }
.identity-bar { min-height: 70px; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.avatar { position: relative; flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(61,130,255,.27); border-radius: 50%; color: #a9c7ff; background: var(--accent-soft); font-size: 14px; font-weight: 900; }
.avatar img, .message-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.identity-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.identity-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 750; }
.identity-copy small { color: var(--muted); font-size: 13px; }
.text-button { border: 0; border-bottom: 1px solid rgba(61,130,255,.34); background: transparent; padding: 6px 0 4px; color: #74a6ff; font-size: 13px; cursor: pointer; }
.announcement { position: relative; margin: 10px 13px 0; padding: 11px 13px 11px 16px; border: 1px solid rgba(255,75,109,.48); border-radius: 10px; background: linear-gradient(115deg, rgba(210,25,66,.18), rgba(8,20,54,.94) 55%, rgba(42,103,235,.16)); box-shadow: 0 7px 22px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.04); }
.announcement::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 11px 0 0 11px; background: linear-gradient(var(--lime), #3777ff); box-shadow: 0 0 13px rgba(255,49,92,.70); }
.announcement p { margin: 0; min-width: 0; color: #edf2ff; font-size: 13px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; text-shadow: 0 1px 6px rgba(0,0,0,.38); }
.announcement a, .message-body a { color: #79adff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(121,173,255,.48); text-underline-offset: 3px; }
.announcement a:hover, .message-body a:hover { color: #fff; }
.message-list { min-height: 0; margin: 0; padding: 10px 14px 18px; list-style: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #25365e transparent; }
.message { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px 2px; }
.message-avatar { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.055); color: #aab5cd; font-size: 12px; font-weight: 850; }
.message[data-role="member"] .message-avatar { color: #a9c8ff; background: rgba(61,130,255,.13); }
.message[data-role="moderator"] .message-avatar, .message[data-role="admin"] .message-avatar { color: #ff879f; background: rgba(255,49,92,.13); }
.message[data-role="admin"] { position: relative; margin: 2px 0; padding: 9px 8px; border: 1px solid rgba(255,211,107,.22); border-radius: 10px; background: linear-gradient(105deg, rgba(208,25,62,.13), rgba(25,12,32,.48) 52%, rgba(47,106,235,.08)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.message[data-role="admin"]::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 2px; border-radius: 0 3px 3px 0; background: linear-gradient(#ffd36b, #ff315c); box-shadow: 0 0 8px rgba(255,65,91,.42); }
.message[data-role="admin"] .message-avatar { border: 1px solid rgba(255,211,107,.70); color: #fff4c9; background: linear-gradient(145deg, #d7224b, #771631); box-shadow: 0 0 17px rgba(255,49,92,.34); }
.avatar[data-role="admin"],
.message[data-role="admin"] .message-avatar { isolation: isolate; padding: 2px; border: 2px solid transparent; background: linear-gradient(#080f26, #080f26) padding-box, conic-gradient(from 215deg, #286eff, #77a8ff 18%, #ffe49a 34%, #ffb541 48%, #ef2b55 68%, #8f245f 82%, #286eff) border-box; box-shadow: 0 0 0 1px rgba(255,229,158,.24), 0 0 15px rgba(46,111,255,.36), 0 0 20px rgba(239,43,85,.26); }
.avatar[data-role="admin"]::before,
.message[data-role="admin"] .message-avatar::before { content: ""; position: absolute; inset: -5px; z-index: 0; border: 1px solid rgba(255,215,113,.62); border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(68,126,255,.25), 0 0 8px rgba(255,192,71,.18); }
.avatar[data-role="admin"] img,
.message[data-role="admin"] .message-avatar img { position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.30); box-shadow: inset 0 0 8px rgba(0,0,0,.48); }
.avatar[data-role="admin"]::after,
.message[data-role="admin"] .message-avatar::after { content: "T1"; position: absolute; right: -7px; bottom: -5px; z-index: 3; min-width: 23px; height: 16px; padding: 0 4px; display: grid; place-items: center; border: 1px solid #ffe18a; border-radius: 6px 6px 6px 2px; color: #fff; background: linear-gradient(125deg, #f32b52 0 43%, #b01e68 44% 55%, #286eff 57% 100%); box-shadow: 0 3px 9px rgba(0,0,0,.70), 0 0 0 1px rgba(255,255,255,.14), 0 0 10px rgba(63,124,255,.42); font-size: 9px; font-style: italic; font-weight: 950; line-height: 1; letter-spacing: -.03em; text-shadow: 0 1px 2px rgba(0,0,0,.85); transform: rotate(-4deg); }
.message[data-role="admin"] .message-name { color: #ffe39a; font-weight: 950; }
.message[data-role="admin"] .message-body { color: #f6f7ff; font-size: 15px; font-weight: 720; text-shadow: 0 1px 5px rgba(0,0,0,.42); }
.message-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.message-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b5bfd5; font-size: 14px; font-weight: 750; }
.role-badge { padding: 2px 6px; border-radius: 4px; color: #ff9bb0; background: rgba(255,49,92,.11); font-size: 12px; }
.external-source-badge { color: #83e8ff; border: 1px solid rgba(68,211,255,.42); border-radius: 999px; background: rgba(20,122,172,.18); }
.message[data-role="admin"] .role-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border: 1px solid rgba(255,225,138,.88); border-radius: 999px; color: #fff9e2; background: linear-gradient(110deg, #c61f47, #8d205f 47%, #265fdd); box-shadow: inset 0 1px rgba(255,255,255,.19), 0 2px 8px rgba(0,0,0,.34), 0 0 8px rgba(255,53,92,.18); font-size: 12px; font-weight: 950; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.65); }
.message[data-role="admin"] .role-badge::before { content: "✦"; color: #ffe18a; font-size: 11px; line-height: 1; }
.message-time { margin-left: auto; color: #7383a4; font-size: 12px; font-variant-numeric: tabular-nums; }
.message-body { margin: 5px 0 0; color: #f0f3fb; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty-chat { padding: 44px 20px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }

.composer-wrap { position: relative; padding: 10px 13px 13px; border-top: 1px solid var(--line); background: rgba(2,6,19,.68); }
.reward-invite { display: flex; align-items: center; gap: 9px; margin: 0 1px 8px; padding: 8px 10px; border: 1px solid rgba(255,211,107,.28); border-radius: 11px; color: #fff2bd; background: linear-gradient(105deg,rgba(255,49,92,.13),rgba(255,184,54,.09) 52%,rgba(42,103,235,.11)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.reward-invite > span { flex: 0 0 auto; font-size: 22px; filter: drop-shadow(0 2px 6px rgba(255,174,44,.3)); }
.reward-invite p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; margin: 0; line-height: 1.35; }
.reward-invite strong { color: #ffe784; font-size: 13px; }
.reward-invite small { color: #e7eaf5; font-size: 12px; }
.composer-status { min-height: 19px; margin: 0 2px 8px; color: var(--muted); font-size: 13px; }
.composer-status.is-error { color: #ff7d93; }
.quick-danmaku { display: flex; gap: 7px; margin: 0 1px 8px; overflow-x: auto; scrollbar-width: none; }
.quick-danmaku::-webkit-scrollbar { display: none; }
.quick-danmaku button { flex: 0 0 auto; min-width: 64px; padding: 6px 11px; border: 1px solid rgba(103,150,255,.24); border-radius: 999px; color: #cdd9f5; background: linear-gradient(110deg,rgba(255,49,92,.10),rgba(42,103,235,.12)); font-size: 12px; font-weight: 800; cursor: pointer; transition: border-color .16s,background .16s,color .16s,transform .16s; }
.quick-danmaku button:hover:not(:disabled), .quick-danmaku button:focus-visible { border-color: rgba(117,165,255,.62); color: #fff; background: linear-gradient(110deg,rgba(255,49,92,.23),rgba(42,103,235,.27)); outline: none; transform: translateY(-1px); }
.quick-danmaku button:disabled { opacity: .34; cursor: not-allowed; }
.composer { display: grid; grid-template-columns: 34px minmax(0, 1fr) 38px; align-items: end; gap: 7px; padding: 7px; border: 1px solid rgba(157,184,255,.14); border-radius: 12px; background: rgba(255,255,255,.038); transition: border-color .2s, box-shadow .2s, background .2s; }
.composer:focus-within { border-color: rgba(61,130,255,.50); background: rgba(61,130,255,.035); box-shadow: 0 0 0 3px rgba(61,130,255,.08); }
.composer textarea { width: 100%; max-height: 104px; min-height: 26px; resize: none; border: 0; outline: 0; padding: 3px 0; color: var(--text); background: transparent; font-size: 15px; line-height: 20px; }
.composer textarea::placeholder { color: #62708c; }
.composer textarea:disabled { cursor: not-allowed; }
.composer button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(145deg, var(--lime), var(--accent)); box-shadow: 0 8px 22px rgba(42,91,220,.24); cursor: pointer; transition: transform .15s, opacity .15s, filter .15s; }
.composer .emoji-toggle { width: 34px; color: #98a6c2; background: rgba(255,255,255,.055); box-shadow: none; font-size: 20px; }
.composer .emoji-toggle[aria-expanded="true"] { color: #fff; background: rgba(61,130,255,.22); }
.composer button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.composer button:disabled { opacity: .24; cursor: not-allowed; }
.composer svg { width: 17px; fill: currentColor; }
.composer-meta { display: flex; justify-content: space-between; margin: 7px 3px 0; color: #7583a1; font-size: 12px; }

.emoji-panel { position: static; z-index: 12; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 8px; padding: 10px; border: 1px solid rgba(77,138,255,.30); border-radius: 13px; background: rgba(7,13,34,.98); box-shadow: 0 12px 34px rgba(0,0,15,.42); }
.emoji-choice { min-width: 0; height: 34px; border: 0; border-radius: 8px; color: #f5f7ff; background: rgba(255,255,255,.055); cursor: pointer; font-size: 17px; }
.emoji-choice:hover { background: rgba(61,130,255,.18); }
.emoji-choice:nth-last-child(-n+5) { font-size: 12px; font-weight: 800; }

.danmaku-layer { position: absolute; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.danmaku-item { position: absolute; top: var(--danmaku-top); left: 100%; width: max-content; max-width: 72%; padding: 7px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: linear-gradient(90deg, rgba(224,34,76,.86), rgba(34,99,226,.86)); box-shadow: 0 5px 18px rgba(0,0,0,.42); text-shadow: 0 1px 3px rgba(0,0,0,.85); font-size: clamp(13px, 1.25vw, 17px); font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: danmaku-flight var(--danmaku-duration) linear forwards; }
.danmaku-item[data-role="member"] { background: rgba(35, 103, 226, .88); }
.danmaku-item[data-role="moderator"], .danmaku-item[data-role="admin"] { z-index: 2; padding: 9px 17px; border: 2px solid #ffd36b; color: #fff; background: linear-gradient(90deg, rgba(255,32,76,.97), rgba(190,23,74,.96)); box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 0 26px rgba(255,40,82,.72), 0 7px 22px rgba(0,0,0,.52); text-shadow: 0 1px 4px rgba(0,0,0,.95); font-size: clamp(16px, 1.55vw, 21px); font-weight: 950; }

.official-profile-trigger { cursor: pointer; }
.official-profile-trigger:focus-visible { outline: 2px solid #ffe08a; outline-offset: 6px; }
.official-profile-popover {
    position: fixed;
    z-index: 200;
    width: min(320px, calc(100vw - 24px));
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255,218,123,.78);
    border-radius: 17px;
    color: #f8f9ff;
    background:
        linear-gradient(125deg, rgba(219,31,72,.28), transparent 46%),
        linear-gradient(305deg, rgba(45,107,247,.30), transparent 52%),
        rgba(5,10,28,.97);
    box-shadow: 0 22px 60px rgba(0,0,10,.68), 0 0 0 3px rgba(255,49,92,.08), inset 0 1px rgba(255,255,255,.09);
    backdrop-filter: blur(20px);
}
.official-profile-popover::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #ff315c, #ffd36b 48%, #3777ff); box-shadow: 0 0 17px rgba(255,66,96,.60); }
.official-profile-top { display: flex; align-items: center; gap: 14px; }
.official-profile-avatar { position: relative; flex: 0 0 auto; width: 58px; height: 58px; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(#080f26, #080f26) padding-box, conic-gradient(from 215deg, #286eff, #78a8ff 18%, #ffe49a 34%, #ffb541 48%, #ef2b55 68%, #8f245f 82%, #286eff) border-box; box-shadow: 0 0 0 2px rgba(255,229,158,.18), 0 0 25px rgba(46,111,255,.33), 0 0 28px rgba(239,43,85,.26); }
.official-profile-avatar img { display: block; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; object-fit: cover; }
.official-profile-avatar::after { content: "T1"; position: absolute; right: -7px; bottom: -4px; min-width: 28px; height: 18px; display: grid; place-items: center; border: 1px solid #ffe18a; border-radius: 7px 7px 7px 2px; color: #fff; background: linear-gradient(125deg, #f32b52 0 43%, #9e205e 44% 56%, #286eff 57%); box-shadow: 0 4px 12px rgba(0,0,0,.65), 0 0 13px rgba(63,124,255,.45); font-size: 10px; font-style: italic; font-weight: 950; }
.official-profile-copy { min-width: 0; display: grid; gap: 4px; }
.official-profile-copy span { color: #ff7894; font-size: 12px; font-weight: 950; letter-spacing: .10em; }
.official-profile-copy strong { overflow: hidden; color: #fff0bd; font-size: 19px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 14px rgba(255,187,72,.28); }
.official-profile-copy small { color: #9eb3dd; font-size: 13px; }
.official-profile-popover > p { display: flex; align-items: center; gap: 8px; margin: 17px 0 9px; color: #fff; font-size: 14px; font-weight: 900; }
.official-profile-popover > p i { width: 8px; height: 8px; border-radius: 50%; background: #57e8bd; box-shadow: 0 0 13px rgba(87,232,189,.80); }
.official-profile-note { padding-top: 11px; border-top: 1px solid rgba(146,176,238,.16); color: #aab8d5; font-size: 13px; line-height: 1.65; }

.promo-float { position: fixed; z-index: 180; top: 52%; width: clamp(88px, 7.2vw, 122px); overflow: visible; border: 1px solid rgba(255,211,107,.36); border-radius: 12px; background: #050a1b; box-shadow: 0 13px 38px rgba(0,0,10,.50), 0 0 17px rgba(45,109,255,.13); opacity: .72; filter: saturate(.72) brightness(.78); transform: translateY(-50%); transition: opacity .22s ease, filter .22s ease, transform .22s ease, box-shadow .22s ease; }
.promo-float:hover, .promo-float:focus-within { opacity: 1; filter: none; transform: translateY(-50%) scale(1.025); box-shadow: 0 18px 52px rgba(0,0,10,.64), 0 0 24px rgba(45,109,255,.22); }
.promo-float-left { left: 10px; }
.promo-float-right { right: 10px; }
.promo-link { display: block; width: 100%; color: inherit; text-decoration: none; cursor: pointer; }
.promo-float img { display: block; width: 100%; height: auto; max-height: min(52vh, 390px); border-radius: 12px; object-fit: cover; }
.promo-float button { position: absolute; z-index: 2; top: -11px; right: -10px; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; color: #fff; background: rgba(5,10,27,.94); box-shadow: 0 5px 16px rgba(0,0,0,.55); cursor: pointer; font-size: 20px; line-height: 23px; }
.promo-dialog { width: min(450px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: visible; border: 1px solid rgba(255,211,107,.76); border-radius: 18px; color: #fff; background: #040817; box-shadow: 0 28px 100px rgba(0,0,8,.82), 0 0 42px rgba(42,105,245,.22); }
.promo-dialog::backdrop { background: rgba(1,3,12,.82); backdrop-filter: blur(9px); }
.promo-dialog-card { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 17px; }
.promo-dialog-card .promo-link { display: grid; place-items: center; }
.promo-dialog-card img { display: block; width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.promo-dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: rgba(2,7,22,.84); box-shadow: 0 5px 18px rgba(0,0,0,.52); cursor: pointer; font-size: 25px; line-height: 30px; }

.reward-dialog { width: min(390px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(255,211,107,.65); border-radius: 22px; color: #fff; background: #070d24; box-shadow: 0 30px 110px rgba(0,0,8,.84),0 0 52px rgba(255,177,47,.18); }
.reward-dialog::backdrop { background: rgba(1,3,12,.84); backdrop-filter: blur(9px); }
.reward-dialog-card { position: relative; padding: 31px 24px 25px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% -15%,rgba(255,206,91,.24),transparent 48%),linear-gradient(145deg,rgba(255,49,92,.08),transparent 45%); }
.reward-dialog-icon { margin-bottom: 8px; font-size: 56px; filter: drop-shadow(0 8px 18px rgba(255,182,48,.28)); }
.reward-dialog h2 { margin: 7px 0 8px; color: #ffe88b; font-size: 25px; }
.reward-dialog p:not(.eyebrow) { margin: 0 0 20px; color: #cfd7ec; font-size: 14px; line-height: 1.7; }
.reward-dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(2,7,22,.72); cursor: pointer; font-size: 24px; line-height: 29px; }
.reward-contact-button { display: block; padding: 12px 18px; border-radius: 12px; color: #fff; background: linear-gradient(100deg,#ff315c,#ff8b35); box-shadow: 0 12px 30px rgba(255,49,92,.28); font-size: 15px; font-weight: 900; text-decoration: none; }

.auth-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--text); background: #080f28; box-shadow: 0 32px 100px rgba(0,0,12,.72); }
.auth-dialog::backdrop { background: rgba(1,3,12,.82); backdrop-filter: blur(8px); }
.dialog-card { position: relative; padding: 30px; }
.dialog-card::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--lime), transparent); }
.dialog-card h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.dialog-intro { margin: 10px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-close { position: absolute; top: 14px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 22px; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 10px; background: rgba(255,255,255,.04); }
.auth-tabs button { border: 0; border-radius: 7px; padding: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.auth-tabs button.is-active { color: #fff; background: linear-gradient(110deg, var(--lime), var(--accent)); font-weight: 800; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #c7d4ca; font-size: 13px; }
.auth-form input { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 11px 12px; color: #fff; background: rgba(255,255,255,.04); font-size: 13px; }
.auth-form input:focus { border-color: rgba(61,130,255,.52); box-shadow: 0 0 0 3px rgba(61,130,255,.08); }
.auth-form small { color: #7e8ba8; font-size: 12px; }
.primary-button { margin-top: 4px; border: 0; border-radius: 10px; padding: 12px; color: #fff; background: linear-gradient(100deg, var(--lime), var(--accent)); font-weight: 850; cursor: pointer; }
.primary-button:disabled { opacity: .5; cursor: wait; }
.form-error { min-height: 18px; margin: 12px 0 0; color: #ff7d93; font-size: 12px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 25px; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #101a37; box-shadow: 0 12px 40px rgba(0,0,0,.55); font-size: 12px; }
.mobile-install-prompt { display: none; }

@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 50% { opacity: .75; box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
@keyframes player-spin { to { transform: rotate(360deg); } }
@keyframes danmaku-flight { to { transform: translateX(calc(-100vw - 100%)); } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes message-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.message:last-child { animation: message-arrive .2s ease-out; }

@media (min-width: 2200px) {
    .live-shell { width: min(1960px, 100%); grid-template-columns: minmax(0, 1fr) 560px; }
}

@media (max-width: 900px) {
    body { background-attachment: scroll; }
    .live-shell { grid-template-columns: 1fr; grid-template-rows: minmax(310px, 46dvh) minmax(520px, 1fr); height: auto; min-height: 100dvh; padding: 8px; gap: 8px; }
    .live-shell.has-stream { grid-template-rows: auto minmax(520px, 1fr); }
    .live-shell.has-external-stream { grid-template-rows: auto minmax(520px, 1fr); }
    .stage-panel { align-self: stretch; grid-template-rows: 58px 38px minmax(0, 1fr) 54px; border-radius: 17px; }
    .stage-panel.has-banner { grid-template-rows: 58px auto 38px minmax(0, 1fr) 54px; }
    .stage-panel.external-stage, .stage-panel.own-player-stage { align-self: start; grid-template-rows: 58px 38px auto 54px; }
    .stage-panel.external-stage.has-banner, .stage-panel.own-player-stage.has-banner { grid-template-rows: 58px auto 38px auto 54px; }
    .chat-panel { min-height: 560px; height: 72dvh; border-radius: 17px; }
    .topbar, .stage-footer { padding: 0 15px; }
    .connection-state { display: none; }
    .brand-mark { width: 40px; height: 34px; border-radius: 9px; }
    .brand-mark b { font-size: 16px; }
    .offline-card { padding: 20px; }
    .offline-card h1 { font-size: 27px; }
    .signal-orbit { width: 64px; height: 64px; margin-bottom: 21px; box-shadow: 0 0 0 12px rgba(61,130,255,.035), 0 0 0 24px rgba(232,39,79,.018); }
    .signal-orbit svg { width: 42px; height: 42px; }
    .player-frame.has-external-embed { min-height: 0; }
    .player-frame.has-own-player { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .player-frame:fullscreen, .player-frame.is-css-fullscreen { width: 100vw; height: 100vh !important; min-height: 100vh; }
    .stream-banner { min-height: 64px; gap: 8px; }
    .stream-banner.has-carousel { min-height: 0; aspect-ratio: 4 / 1; }
    .stream-banner strong { font-size: 14px; }
    .stream-banner-label { padding: 4px 7px; font-size: 12px; }
    .stream-banner small { display: none; }
    .banner-arrow { width: 23px; height: 34px; border-radius: 6px; font-size: 20px; }
    .banner-prev { left: 3px; }
    .banner-next { right: 3px; }
    .banner-dots { bottom: 5px; gap: 4px; }
    .banner-dots button { width: 12px; height: 2px; }
    .banner-dots button.is-active { width: 21px; }
    body { background-attachment: scroll; background-position: center top; }
    .danmaku-item { max-width: 82%; font-size: 13px; }
    .ticker-bar { height: 38px; }
    .ticker-track { font-size: 13px; animation-duration: 18s; }
    .promo-float-left { display: none !important; }
    .promo-float-right { top: auto; right: 8px; bottom: 88px; width: 102px; transform: none; }
}

@media (max-width: 600px) {
    body {
        background-color: #020612;
        background-image:
            radial-gradient(circle at 8% 0, rgba(255,42,85,.22), transparent 30%),
            radial-gradient(circle at 94% 18%, rgba(40,108,255,.24), transparent 34%),
            linear-gradient(180deg, #080d23 0, #030718 46%, #020611 100%);
    }
    .live-shell, .live-shell.has-stream, .live-shell.has-external-stream { width: 100%; height: auto; min-height: 0; grid-template-rows: auto auto; padding: 0; gap: 0; }
    .stage-panel, .chat-panel { width: 100%; min-width: 0; max-width: 100%; border-left: 0; border-right: 0; box-shadow: none; backdrop-filter: none; }
    .topbar, .ticker-bar, .player-frame, .chat-header, .identity-bar, .announcement, .message-list, .composer-wrap { min-width: 0; max-width: 100%; }
    .stage-panel { border: 0; border-radius: 0; background: transparent; overflow: visible; }
    .stage-footer { display: none; }
    .stage-panel { grid-template-rows: 54px 36px minmax(0, 1fr); }
    .stage-panel.has-banner { grid-template-rows: 54px auto 36px minmax(0, 1fr); }
    .stage-panel.external-stage, .stage-panel.own-player-stage { grid-template-rows: 54px 36px auto; }
    .stage-panel.external-stage.has-banner, .stage-panel.own-player-stage.has-banner { grid-template-rows: 54px auto 36px auto; }
    .topbar { margin: 6px 7px 0; padding: 0 10px; border: 1px solid rgba(121,158,255,.18); border-bottom-color: rgba(255,69,103,.24); border-radius: 15px 15px 7px 7px; background: linear-gradient(105deg, rgba(218,30,72,.25), rgba(7,14,38,.92) 43%, rgba(39,104,239,.24)); box-shadow: 0 8px 22px rgba(0,0,12,.26), inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(14px); }
    .brand { gap: 9px; }
    .brand-mark { width: 37px; height: 33px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.19), 0 0 18px rgba(55,114,255,.26); }
    .brand-mark b { font-size: 15px; }
    .brand strong { font-size: 14px; }
    .brand small { margin-top: 1px; font-size: 10px; letter-spacing: .10em; }
    .live-pill { padding: 6px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; box-shadow: 0 4px 14px rgba(255,49,92,.26), inset 0 1px rgba(255,255,255,.18); }
    .ticker-bar { height: 32px; margin: 4px 7px 0; border: 1px solid rgba(89,135,255,.18); border-radius: 7px; background: linear-gradient(90deg, rgba(215,29,70,.18), rgba(5,12,32,.92) 40%, rgba(42,103,235,.17)); box-shadow: inset 2px 0 #ff315c, inset -2px 0 #3777ff, 0 5px 16px rgba(0,0,0,.18); }
    .ticker-bar::before { width: 31px; font-size: 12px; background: linear-gradient(90deg, rgba(16,24,51,.95) 72%, transparent); }
    .ticker-track { padding-right: 28px; font-size: 12px; animation-duration: 20s; }
    .player-frame.has-own-player { width: calc(100% - 12px); margin: 4px 6px 8px; border: 1px solid rgba(118,155,255,.28); border-radius: 14px; box-shadow: 0 13px 34px rgba(0,0,12,.48), 0 0 0 1px rgba(255,49,92,.07), 0 0 24px rgba(44,105,242,.12); }
    #live-embed { border-radius: 13px; }
    .chat-panel { grid-template-rows: 58px auto auto minmax(0, 1fr) auto; height: max(500px, calc(100dvh - 93px - 56.25vw)); min-height: 500px; overflow: hidden; border: 1px solid rgba(88,132,245,.22); border-bottom: 0; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, rgba(10,17,42,.99), rgba(3,8,23,.99) 30%); box-shadow: 0 -11px 34px rgba(0,0,12,.45), 0 -1px 20px rgba(47,108,247,.10); }
    .chat-header { min-height: 58px; padding: 0 13px; background: linear-gradient(100deg, rgba(231,36,78,.17), rgba(8,15,39,.93) 52%, rgba(43,108,247,.16)); }
    .chat-header::before { left: 18px; width: 72px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #ff315c, #ffd36b 48%, #3777ff); }
    .chat-header h2 { font-size: 18px; }
    .chat-header .eyebrow { margin-bottom: 2px; font-size: 10px; }
    .online-count { gap: 5px; padding: 6px 9px; border: 1px solid rgba(93,230,185,.18); border-radius: 999px; color: #b9c7e6; background: rgba(39,105,238,.08); font-size: 12px; }
    .identity-bar { min-height: 54px; margin: 7px 8px 0; padding: 7px 10px; gap: 9px; border: 1px solid rgba(114,150,239,.14); border-radius: 12px; background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(37,95,218,.045)); }
    .identity-bar .avatar { width: 34px; height: 34px; }
    .identity-copy span { font-size: 13px; }
    .identity-copy small { font-size: 11px; }
    .text-button { padding: 5px 0 3px; font-size: 12px; }
    .announcement { max-height: 72px; margin: 7px 9px 3px; padding: 8px 9px 8px 13px; overflow-y: auto; border-color: rgba(255,75,109,.40); border-radius: 11px; background: linear-gradient(115deg, rgba(205,26,67,.20), rgba(8,19,49,.96) 55%, rgba(40,99,226,.17)); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 7px 18px rgba(0,0,0,.18); }
    .announcement p { font-size: 12px; line-height: 1.45; text-shadow: none; }
    .message-list { padding: 7px 9px 11px; background: radial-gradient(circle at 100% 0, rgba(46,105,237,.06), transparent 34%); }
    .message { grid-template-columns: 31px minmax(0, 1fr); gap: 7px; padding: 5px 1px; }
    .message-avatar { width: 30px; height: 30px; border: 1px solid rgba(124,158,238,.26); font-size: 10px; box-shadow: 0 5px 13px rgba(0,0,0,.24); }
    .message-content { min-width: 0; padding: 6px 8px 7px; border: 1px solid rgba(111,146,226,.12); border-radius: 4px 12px 12px; background: linear-gradient(110deg, rgba(255,255,255,.035), rgba(35,85,190,.035)); }
    .message[data-role="admin"] { margin: 1px 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .message[data-role="admin"]::before { display: none; }
    .message[data-role="admin"] .message-content { border-color: rgba(255,208,101,.29); background: linear-gradient(110deg, rgba(201,27,65,.20), rgba(47,24,55,.64) 55%, rgba(42,94,213,.12)); box-shadow: inset 3px 0 rgba(255,49,92,.78), 0 6px 16px rgba(0,0,0,.16); }
    .message[data-role="admin"] .message-body, .message-body { margin-top: 3px; font-size: 14px; line-height: 1.48; }
    .message-name { max-width: 145px; font-size: 13px; }
    .message-time, .role-badge, .message[data-role="admin"] .role-badge { font-size: 10px; }
    .message[data-role="admin"] .role-badge { padding: 2px 6px; }
    .composer-wrap { padding: 7px 9px calc(7px + env(safe-area-inset-bottom)); border-top-color: rgba(85,127,232,.20); background: linear-gradient(180deg, rgba(7,14,35,.97), rgba(2,6,19,.99)); box-shadow: 0 -8px 22px rgba(0,0,0,.20); }
    .reward-invite { gap: 7px; margin-bottom: 6px; padding: 6px 8px; }
    .reward-invite > span { font-size: 18px; }
    .reward-invite strong, .reward-invite small { font-size: 11px; }
    .composer-status { min-height: 16px; margin: 0 2px 5px; font-size: 11px; }
    .quick-danmaku { gap: 5px; margin-bottom: 6px; padding: 0 1px; }
    .quick-danmaku button { min-width: 58px; padding: 5px 9px; font-size: 11px; }
    .composer { grid-template-columns: 32px minmax(0, 1fr) 36px; gap: 5px; padding: 6px; border-color: rgba(117,154,247,.25); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px rgba(255,255,255,.035); }
    .composer textarea { font-size: 14px; }
    .composer button { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 7px 18px rgba(45,99,224,.34), 0 0 15px rgba(255,49,92,.13); }
    .composer .emoji-toggle { width: 32px; }
    .composer-meta { display: none; }
    .emoji-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .banner-arrow { display: none; }
    .stream-banner.has-carousel { min-height: 0; aspect-ratio: 25 / 9; }
    .official-profile-popover { width: calc(100vw - 20px); padding: 16px; border-radius: 15px; }
    .promo-float-left, .promo-float-right { display: none !important; }
    .promo-dialog { width: min(380px, calc(100vw - 18px)); }
    .danmaku-item { max-width: 72%; padding: 5px 9px; font-size: 12px; }
    .mobile-install-prompt:not([hidden]) {
        position: fixed;
        z-index: 230;
        left: 10px;
        right: 10px;
        bottom: max(126px, calc(116px + env(safe-area-inset-bottom)));
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(255,218,124,.54);
        border-radius: 17px;
        color: #fff;
        background: linear-gradient(110deg, rgba(207,28,68,.96), rgba(12,20,48,.98) 44%, rgba(37,91,211,.97));
        box-shadow: 0 18px 54px rgba(0,0,10,.72), 0 0 0 3px rgba(255,49,92,.08), inset 0 1px rgba(255,255,255,.13);
        backdrop-filter: blur(18px);
        animation: install-prompt-in .32s cubic-bezier(.2,.8,.2,1);
    }
    .mobile-install-prompt > img { display: block; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.34); border-radius: 13px; box-shadow: 0 7px 18px rgba(0,0,0,.36); }
    .mobile-install-copy { min-width: 0; display: grid; gap: 4px; }
    .mobile-install-copy strong { font-size: 14px; font-weight: 950; }
    .mobile-install-copy span { color: #c9d5f1; font-size: 11px; line-height: 1.45; }
    .mobile-install-action { min-width: 76px; border: 1px solid rgba(255,255,255,.30); border-radius: 10px; padding: 9px 10px; color: #071027; background: linear-gradient(135deg, #fff2c2, #8fbeff); box-shadow: 0 6px 16px rgba(0,0,0,.24); font-size: 12px; font-weight: 950; }
    .mobile-install-close { position: absolute; top: -8px; right: -6px; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: #09122c; box-shadow: 0 5px 14px rgba(0,0,0,.44); font-size: 18px; line-height: 20px; }
}

@keyframes install-prompt-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ticker-track { padding-left: 14px; transform: none; animation: none; }
}

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

.stage-panel.has-player-css-fullscreen {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    backdrop-filter: none !important;
}
.stage-panel.has-player-css-fullscreen > :not(.player-frame) { display: none !important; }
.stage-panel.has-player-css-fullscreen > .player-frame.is-css-fullscreen {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    .player-frame:fullscreen,
    .stage-panel.has-player-css-fullscreen > .player-frame.is-css-fullscreen {
        position: fixed !important;
        z-index: 2147483001 !important;
        left: 50% !important;
        top: 50% !important;
        width: 100vh !important;
        width: 100dvh !important;
        height: 100vw !important;
        min-height: 100vw !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .player-frame:fullscreen,
    .stage-panel.has-player-css-fullscreen > .player-frame.is-css-fullscreen {
        position: fixed !important;
        z-index: 2147483001 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        transform: none !important;
    }
}
