html, body { min-height: 100%; }
body { min-height: 100svh; }
.standalone-player {
  --room-panel: #201c2b;
  --room-panel-soft: #191621;
  --room-border: #bda3fa25;
  --room-highlight: #d5c2ff;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 12% 10%, #9876dc20, transparent 48%), radial-gradient(ellipse at 88% 90%, #7960b825, transparent 45%), var(--bg, #17151e);
  position: relative;
  isolation: isolate;
}
.standalone-player::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#c6b2f338 .6px, transparent .6px);
  background-size: 30px 30px;
  mask-image: linear-gradient(135deg, #0003, transparent 50%, #0002);
}
.standalone-player::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;filter:blur(70px);background:radial-gradient(ellipse 300px 260px at 8% 0%,#8b61d31a,transparent 80%),radial-gradient(ellipse 300px 260px at 96% 100%,#7555c51c,transparent 80%)}
.live-room { --corner-star-size: clamp(72px, 8vw, 108px); width: min(1360px, 100%, calc(max(260px, 100svh - 380px) * 16 / 9 + 320px)); min-width: 0; }
.live-heading { display: flex; align-items: center; gap: 17px; margin: 0 4px 26px; }
.live-heading-star {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid #baa0f640;
  border-radius: 18px;
  color: #c7adfa;
  background: linear-gradient(145deg, #ba9bf522, #8862d90b);
  box-shadow: inset 0 1px 0 #ffffff0b, 0 6px 25px #0000000a;
}
.live-heading-star svg { width: 31px; height: 31px; }
.live-heading-copy { min-width: 0; flex: 1; }
.live-heading .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .23em; margin-bottom: 8px; }
.live-heading .eyebrow b { color: var(--accent); font-weight: 600; }
.live-heading h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--display-font); font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.live-title-face { color: var(--accent); font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: .52em; white-space: nowrap; opacity: .85; }
.live-exit-form { flex: none; margin: 0; }
.live-exit-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 14px; border: 1px solid var(--room-border); border-radius: 999px; background: #a78bfa05; color: var(--muted); font: inherit; font-size: 11px; line-height: 1.5; transition: background .2s, border-color .2s, color .2s; }
.live-exit-button svg { width: 16px; height: 16px; }
.live-exit-button:hover { color: var(--room-highlight); border-color: #baa0f66b; background: #a78bfa12; }
.live-exit-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 767px) { .live-room-exit { align-self: flex-start; margin-top: 2px; } .live-exit-button { min-height: 44px; padding: 8px 12px; } }
.live-stage { position: relative; isolation: isolate; padding: 10px 10px 0; border: 1px solid var(--room-border); border-radius: 26px; background: linear-gradient(145deg, #baa3ff0b, transparent 45%), var(--room-panel); box-shadow: 0 24px 80px #08051130, inset 0 1px 0 #ffffff08; }
.live-shell { z-index: 1; width: 100%; border: 1px solid #ffffff0b; border-radius: 18px; background: #0c0a11; box-shadow: none; }
.live-shell #dplayer { aspect-ratio: auto; }
.is-rtc-player { position: relative; background: #000; color: #f2eff9; }
.live-shell .is-rtc-player, .live-shell .is-rtc-player * { box-sizing: border-box; }
.rtc-stage { position: absolute; inset: 0; }
.rtc-stream { position: absolute; inset: 0; }
.rtc-stream[hidden] { display: none !important; }
.rtc-stream video { width: 100% !important; height: 100% !important; object-fit: contain; }
.live-shell .is-rtc-player .rtc-controls-mask { position: absolute; z-index: 1; inset: auto 0 0; height: 110px; background: linear-gradient(180deg, transparent, #17151ebf); pointer-events: none; transition: opacity .2s; }
.live-shell .is-rtc-player .rtc-controls { position: absolute; z-index: 5; inset: auto 0 0; width: 100%; height: 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 14px; background: transparent; color: #f2eff9; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; transition: opacity .2s, transform .2s; }
.rtc-controls-left, .rtc-controls-right { z-index: 1; display: flex; align-items: center; gap: 4px; height: 40px; flex: none; }
.rtc-controls .rtc-control { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #f2eff9; padding: 8px; font: inherit; cursor: pointer; opacity: 1; transition: color .15s, background .15s; }
.rtc-controls .rtc-control svg { width: 20px; height: 20px; display: block; pointer-events: none; }
.is-rtc-player .rtc-control svg path, .is-rtc-player .rtc-pause-overlay svg path { fill: currentColor; }
.is-rtc-player .rtc-control svg path[fill='none'] { fill: none; }
.rtc-controls .rtc-control:hover, .rtc-controls .rtc-control[aria-pressed='true'] { color: #dbc6ff; background: #a78bfa14; opacity: 1; }
.rtc-controls .rtc-control:focus-visible, .rtc-pause-overlay:focus-visible { outline: 2px solid #c9aeff; outline-offset: 2px; }
.rtc-controls .rtc-control:disabled { opacity: .35; cursor: default; }
.rtc-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: #e8e2f1; font-size: 12px; line-height: 1; white-space: nowrap; }
.rtc-live-badge i { width: 5px; height: 5px; border-radius: 50%; background: #b296f3; box-shadow: 0 0 8px #b296f340; }
.rtc-volume-control { position: relative; }
.rtc-volume-slider { display: inline-flex; align-items: center; width: 0; height: 40px; margin: 0; opacity: 0; overflow: hidden; transition: width .3s ease-in-out, margin .3s, opacity .15s; }
.rtc-volume-control:hover .rtc-volume-slider, .rtc-volume-control:focus-within .rtc-volume-slider { width: 45px; margin: 0 8px 0 4px; opacity: 1; overflow: visible; }
.rtc-volume-slider input { appearance: none; flex: none; width: 45px; min-width: 0; height: 4px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: linear-gradient(to right, var(--accent, #a78bfa) var(--rtc-volume, 100%), #f2eff940 var(--rtc-volume, 100%)); cursor: pointer; }
.rtc-volume-slider input::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent, #a78bfa); }
.rtc-volume-slider input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent, #a78bfa); }
.rtc-volume-slider input:focus-visible { outline: 2px solid var(--accent, #a78bfa); outline-offset: 5px; }
.rtc-pause-overlay { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; padding: 20px; border: 1px solid #ffffff10; border-radius: 50%; background: #080711b3; color: #f2eff9; transform: translate(-50%, -50%); cursor: pointer; }
.rtc-pause-overlay svg { width: 26px; height: 26px; }
.rtc-pause-overlay[hidden] { display: none !important; }
.player-shell.is-mini-player .rtc-pause-overlay { display: none !important; }
.live-shell .is-rtc-player.dplayer-hide-controller .rtc-controls { opacity: 0; transform: translateY(100%); pointer-events: none; }
.live-shell .is-rtc-player.dplayer-hide-controller .rtc-controls-mask { opacity: 0; }
.live-shell .is-rtc-player:has(.player-chat-compose:focus-within) .rtc-controls { opacity: 1; transform: none; pointer-events: auto; }
.is-rtc-player.dplayer-fulled { position: fixed !important; z-index: 100000; inset: 0 !important; width: 100vw !important; height: 100dvh !important; max-width: none; border-radius: 0; aspect-ratio: auto; }
body.rtc-web-fullscreen { overflow: hidden; }
@media (max-width: 700px) {
  .live-shell .is-rtc-player .rtc-controls { height: 94px; padding: 0 14px; }
  .live-shell .is-rtc-player .rtc-controls-mask { height: 130px; }
  .rtc-controls .rtc-control { width: 36px; height: 40px; }
  .rtc-live-badge { font-size: 11px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-shell .is-rtc-player .rtc-controls, .live-shell .is-rtc-player .rtc-controls-mask, .rtc-volume-slider { transition: none; }
}
.live-shell:fullscreen, .live-shell:fullscreen #dplayer { width: 100%; height: 100%; border-radius: 0; }
.live-shell .dplayer-video-wrap, .live-shell .dplayer-video { height: 100%; }
.live-shell .dplayer-fulled, .live-shell .dplayer-fulled .dplayer-video-wrap { border-radius: 0; height: 100%; }
.live-stage:has(.dplayer-fulled) { z-index: 100000; }
.live-shell .dplayer-fulled { background: #0c0a11; }
.live-shell .dplayer-mobile-play { display: none; }
.live-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 14px; }
.live-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; flex: 0 1 auto; }
.live-source-note { flex: 0 0 auto; width: 100%; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.live-lines-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.live-lines-label svg { width: 16px; height: 16px; color: var(--accent); }
.live-line-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.live-line-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 9px 17px; border: 1px solid var(--room-border); border-radius: 12px; background: var(--room-panel-soft); color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.live-line-button::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; opacity: .35; }
.live-line-button:hover { border-color: #baa0f66b; background: #a78bfa12; color: var(--room-highlight); }
.live-line-button[aria-pressed='true'] { color: #f3edff; border-color: #bea0f876; background: linear-gradient(135deg, #9f7bde3d, #8b63d52b); box-shadow: inset 0 1px 0 #ffffff0b, 0 3px 12px #0000000a; }
.live-line-button[aria-pressed='true']::before { background: #d7bcff; opacity: 1; box-shadow: 0 0 7px #d7bcff50; }
.live-online { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--muted); font-size: 11px; white-space: nowrap; line-height: 1.5; padding-left: 20px; border-left: 1px solid var(--room-border); }
.online-dot { width: 6px; height: 6px; margin-right: 3px; flex: none; border-radius: 50%; background: #9bdfb4; box-shadow: 0 0 9px #9bdfb42b; }
.live-online strong { color: var(--room-highlight); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-footer { display: flex; align-items: center; gap: 18px; margin: 8px 6px 0; min-height: calc(var(--corner-star-size) + 16px); color: var(--muted); }
.live-footer-brand { font-size: 9px; letter-spacing: .2em; opacity: .7; }
.live-divider { flex: 1; min-width: 0; height: 1px; background: linear-gradient(90deg, var(--room-border), transparent); pointer-events: none; }
.corner-decoration { position: relative; flex: none; width: calc(var(--corner-star-size) + 16px); height: calc(var(--corner-star-size) + 16px); color: var(--accent); pointer-events: none; }
.corner-decoration::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #a78bfa1c, #7d5fff08 45%, transparent 72%); animation: ornament-glow 6s ease-in-out infinite alternate; }
.corner-star { position: absolute; inset: 8px; width: var(--corner-star-size); height: var(--corner-star-size); opacity: .5; }
.corner-sparkle { position: absolute; width: 10px; height: 10px; opacity: .65; }
.corner-sparkle:nth-of-type(2) { left: -8px; top: 20%; }
.corner-sparkle:last-of-type { right: 0; bottom: 15%; width: 7px; height: 7px; opacity: .45; }
.corner-dot { position: absolute; right: 12%; top: 12%; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); opacity: .6; box-shadow: 0 0 8px #a78bfa66; }
@keyframes ornament-glow { from { opacity: .6; } to { opacity: 1; } }
.start-play-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.start-play-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 15px 27px; border: 1px solid #e2d2ff70; border-radius: 999px; font-family: var(--display-font); font-size: 17px; pointer-events: auto; }
.start-play-button, .playback-status .button { color: #fff; background: linear-gradient(135deg, #9a75df, #7957c5); box-shadow: 0 8px 30px #7350bd35; transition: background .2s, box-shadow .2s; }
.start-play-button:hover, .playback-status .button:hover { background: linear-gradient(135deg, #ac89ed, #8865d2); box-shadow: 0 10px 32px #7d5fff45; }
.start-play-button svg { width: 21px; height: 21px; }
.live-shell .playback-status { position: absolute; z-index: 3; inset: 0 0 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #d6cee4; background: radial-gradient(ellipse at 50% 45%, #2a203dd9, #0d0b14ef 68%); pointer-events: none; }
.status-emblem { display: grid; place-items: center; flex: none; width: 68px; height: 68px; margin-bottom: 5px; border-radius: 22px; border: 1px solid #b69aea27; background: linear-gradient(145deg, #b194eb17, #a78bfa05); box-shadow: 0 0 45px #a78bfa06; }
.status-star { width: 37px; height: 37px; color: #b99bea; animation: airi-star-pulse 3s ease-in-out infinite; }
.playback-status-label { color: #b3a3cb; font-size: 9px; letter-spacing: .24em; }
.playback-status p { font-size: 13px; line-height: 1.8; max-width: 360px; }
.playback-status .button { pointer-events: auto; flex: none; margin-top: 5px; padding: 12px 24px; border-color: #bda0ef60; border-radius: 999px; font-size: 13px; }
.playback-status .button svg { width: 16px; height: 16px; }
@keyframes airi-star-pulse { 50% { opacity: .55; transform: scale(.94); } }
[data-theme='light'] .standalone-player { --room-panel: #ffffff; --room-panel-soft: #f5f2fa; --room-border: #7651d824; --room-highlight: #7651d8; }
[data-theme='light'] .live-heading-star { color: var(--accent); }
[data-theme='light'] .live-stage { box-shadow: 0 24px 65px #49377012, inset 0 1px 0 #fff; }
[data-theme='light'] .live-line-button[aria-pressed='true'] { background: #eee6fc; border-color: #a886e565; color: #7046c7; }
[data-theme='light'] .live-line-button[aria-pressed='true']::before { background: #9165d7; box-shadow: none; }
@media (max-width: 767px) {
  .standalone-player { padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .live-heading { gap: 12px; margin: 0 2px 20px; }
  .live-heading-star { width: 44px; height: 44px; border-radius: 15px; align-self: flex-start; margin-top: 2px; }
  .live-heading-star svg { width: 25px; height: 25px; }
  .live-heading .eyebrow { font-size: 8px; letter-spacing: .16em; margin-bottom: 6px; }
  .live-heading h1 { font-size: 22px; gap: 4px 8px; }
  .live-stage { padding: 6px 6px 0; border-radius: 20px; }
  .live-shell { border-radius: 14px; }
  .live-toolbar { flex-wrap: wrap; gap: 10px 16px; padding: 12px 9px; }
  .live-lines { flex-basis: 100%; align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
  .live-lines-label { font-size: 11px; min-height: 44px; }
  .live-line-options { flex: 1; }
  .live-line-button { min-height: 44px; padding: 10px 14px; font-size: 11px; border-radius: 11px; }
  .live-online { border-left: 0; padding: 13px 0 0; width: 100%; border-top: 1px solid var(--room-border); font-size: 10px; }
  .live-online strong { font-size: 13px; }
  .live-footer { margin-top: 12px; gap: 12px; }
  .live-footer-brand { font-size: 8px; letter-spacing: .14em; }
  .start-play-button { gap: 9px; padding: 12px 21px; font-size: 14px; }
  .start-play-button svg { width: 18px; height: 18px; }
  .live-shell .playback-status { bottom: 40px; gap: 6px; padding: 8px; }
  .status-emblem { width: 32px; height: 32px; border-radius: 11px; margin-bottom: 0; }
  .status-star { width: 22px; height: 22px; }
  .playback-status-label { font-size: 8px; }
  .playback-status p { font-size: 11px; line-height: 1.6; max-width: 260px; }
  .playback-status .button { padding: 8px 18px; font-size: 12px; margin-top: 0; }
}
@media (max-width: 767px) and (orientation: portrait) {
  .live-shell { aspect-ratio: 4 / 3; min-height: 220px; }
}
@media (max-width: 360px) {
  .live-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 12px; }
  .live-heading-star { grid-column: 1; grid-row: 1; margin-top: 0; }
  .live-heading-copy { display: contents; }
  .live-heading .eyebrow { grid-column: 2; grid-row: 1; align-self: center; margin-bottom: 0; }
  .live-heading h1 { grid-column: 1 / -1; grid-row: 2; }
  .live-room-exit { grid-column: 3; grid-row: 1; align-self: center; margin-top: 0; }
  .live-shell .playback-status { padding: 6px; }
  .playback-status-label { display: none; }
  .status-emblem { width: 24px; height: 24px; border-radius: 8px; }
  .status-star { width: 18px; height: 18px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .standalone-player { padding-top: 16px; padding-bottom: 16px; }
  .live-room { --corner-star-size: 48px; width: min(1160px, 100%, calc(max(180px, 100svh - 190px) * 16 / 9 + 202px)); }
  .live-heading { margin-bottom: 14px; }
  .live-heading-star { width: 40px; height: 40px; border-radius: 13px; }
  .live-heading h1 { font-size: 20px; }
  .live-heading .eyebrow { margin-bottom: 3px; }
  .live-stage { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; padding: 10px; }
  .live-shell { align-self: center; }
  .live-toolbar { flex-direction: column; align-items: stretch; justify-content: center; padding: 10px 6px; gap: 10px; }
  .live-lines { flex: 0 1 auto; flex-direction: column; align-items: stretch; gap: 6px; }
  .live-lines-label { min-height: 0; }
  .live-line-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-line-button { padding: 9px 8px; min-height: 40px; }
  .live-online { width: 100%; padding: 12px 0 0; border-top: 1px solid var(--room-border); border-left: 0; }
  .live-footer { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .status-star, .corner-decoration::before { animation: none; } .live-line-button, .start-play-button, .playback-status .button { transition: none; } }

.live-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.live-chat { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--room-border); border-radius: 26px; background: linear-gradient(160deg, #baa3ff0b, transparent 50%), var(--room-panel); }
.live-chat-body { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.live-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 18px 16px; border-bottom: 1px solid var(--room-border); }
.live-chat-heading .eyebrow { color: var(--accent); font-size: 8px; letter-spacing: .18em; margin-bottom: 5px; }
.live-chat-heading h2 { font-family: var(--display-font); font-size: 19px; font-weight: 400; }
.chat-toggle { flex: none; padding: 7px 9px; border: 1px solid var(--room-border); border-radius: 9px; background: var(--room-panel-soft); color: var(--muted); font-size: 10px; }
.chat-toggle[aria-pressed='true'] { color: var(--room-highlight); background: #a78bfa14; border-color: #a78bfa50; }
.chat-messages { flex: 1 1 0px; height: 0; min-height: 0; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 6px 12px 14px 18px; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: var(--room-panel-soft); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.live-chat-heading, .chat-compose, .chat-latest { flex-shrink: 0; }
.chat-identity { flex-shrink: 0; padding: 12px 16px; border-bottom: 1px solid var(--room-border); }
.chat-identity label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.chat-identity .chat-input-row :is(input,textarea) { min-height: 34px; padding: 7px 10px; }
.chat-name-save { flex: none; padding: 7px 10px; border: 1px solid var(--room-border); border-radius: 9px; background: var(--room-panel-soft); color: var(--room-highlight); font-size: 11px; }
.chat-name-save:disabled { opacity: .5; }
.chat-identity p { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-identity p:empty { display: none; }
.chat-empty { display: grid; place-items: center; min-height: 150px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
.chat-message { padding: 13px 0; border-bottom: 1px solid var(--room-border); }
.chat-message:last-child { border-bottom: 0; }
.chat-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.chat-message-meta time { font-size: 9px; opacity: .7; font-variant-numeric: tabular-nums; }
.chat-message-author { color: var(--text); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.chat-owner-badge { display: inline-flex; align-items: center; flex: none; padding: 1px 5px; border: 1px solid #bda0ef80; border-radius: 5px; background: #a78bfa20; color: #cbb7fa; justify-content: center; box-sizing: border-box; min-height: 18px; font-family: system-ui, 'Microsoft YaHei', sans-serif; font-size: 9px; font-style: normal; font-weight: 500; line-height: 1; white-space: nowrap; text-shadow: none; vertical-align: middle; }
.chat-message p { white-space: pre-wrap; margin-top: 6px; color: var(--text); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.chat-message.is-mine .chat-message-author { color: var(--accent); }
.chat-message-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.chat-reply-button { min-height: 28px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--room-highlight); font-size: 10px; }
.chat-reply-button:hover { background: #a78bfa18; }
.chat-reply-quote { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 7px 9px; border: 0; border-left: 2px solid #a78bfa60; border-radius: 0 7px 7px 0; background: #a78bfa0b; color: var(--muted); text-align: left; font: inherit; font-size: 10px; line-height: 1.6; }
.chat-reply-quote:hover:not(:disabled) { background: #a78bfa18; }
.chat-reply-quote:disabled { cursor: default; }
.chat-reply-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); }
.chat-reply-time { flex: none; margin-left: auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.chat-reply-time[hidden] { display: none !important; }
.chat-reply-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-top: 2px; }
.chat-message.is-reply-to-me .chat-reply-quote { background: #a78bfa18; border-left-color: var(--accent); }
.chat-message.is-reply-highlight { background: #a78bfa20; border-radius: 8px; }
.chat-reply-compose { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 9px; padding: 7px 9px; border-left: 2px solid var(--accent); border-radius: 0 7px 7px 0; background: #a78bfa12; }
.chat-reply-compose[hidden] { display: none !important; }
.chat-reply-copy { flex: 1; min-width: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.chat-reply-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-reply-compose-meta { display: flex; align-items: center; gap: 8px; }
.chat-reply-compose-meta [data-chat-reply-author] { min-width: 0; }
.chat-reply-copy [data-chat-reply-author] { color: var(--room-highlight); }
.chat-reply-compose button { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 20px; }
.chat-reply-compose button:hover { background: #a78bfa20; }
.chat-reply-compose button:disabled { opacity: .5; }
.chat-reply-button:focus-visible, .chat-reply-quote:focus-visible, .chat-reply-compose button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-latest { align-self: center; padding: 6px 12px; margin: 0 0 8px; border: 1px solid var(--room-border); border-radius: 999px; color: var(--room-highlight); background: var(--room-panel-soft); font-size: 10px; }
.chat-compose { padding: 15px 16px 17px; border-top: 1px solid var(--room-border); background: #a78bfa05; }
.live-shell .player-chat-compose { position: absolute; z-index: 1; left: 50%; bottom: 7px; transform: translateX(-50%); width: min(360px, calc(100% - 390px)); padding: 0; border: 0; background: none; }
.live-shell .dplayer .dplayer-controller { z-index: 5; }
.live-shell .player-chat-compose .chat-input-row { align-items: center; gap: 6px; }
.live-shell .player-chat-compose :is(input,textarea) { box-sizing: border-box; min-height: 32px; height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 12px; background: #17151ebd; color: #f2eff9; }
.live-shell .player-chat-compose :is(input,textarea)::placeholder { color: #b8aecb; }
.live-shell .player-chat-compose .chat-send { box-sizing: border-box; min-height: 32px; height: 32px; padding: 6px 10px; border-radius: 8px; }
.live-shell .player-chat-compose [data-chat-length] { color: #b8aecb; font-size: 9px; }
.live-shell .player-chat-compose .chat-reply-compose { position: absolute; bottom: 40px; left: 0; right: 0; margin: 0; background: #211e2aeb; border-left-color: #c9aeff; }
.live-shell .player-chat-compose .chat-reply-copy, .live-shell .player-chat-compose .chat-reply-compose button { color: #b8aecb; }
.live-shell .player-chat-compose .chat-reply-time { color: #b8aecb; }
.live-shell .player-chat-compose [data-chat-reply-author] { color: #e2d1ff; }
.player-chat-compose:has(.chat-reply-compose:not([hidden])) .player-chat-feedback { bottom: 103px; }
.player-chat-feedback { position: absolute; bottom: 40px; left: 0; max-width: 100%; padding: 5px 9px; border-radius: 7px; color: #e8def8; background: #211e2aeb; font-size: 10px; line-height: 1.6; pointer-events: none; opacity: 0; }
.player-chat-compose:focus-within .player-chat-feedback { opacity: 1; }
.live-shell .dplayer:has(.player-chat-compose:focus-within) .dplayer-controller { opacity: 1 !important; transform: translateY(0) !important; }
.live-shell .dplayer:has(.player-chat-compose:focus-within) .dplayer-controller-mask { opacity: 1 !important; }
.live-shell .player-chat-compose.is-native { width: min(360px, calc(100% - 24px)); bottom: 58px; }
.chat-input-label { display: block; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row :is(input,textarea) { flex: 1; width: 0; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid var(--room-border); border-radius: 11px; background: var(--room-panel-soft); color: var(--text); font: inherit; font-size: 12px; }
.chat-input-row :is(input,textarea)::placeholder { color: var(--muted); opacity: .75; }
.chat-input-row :is(input,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-send { flex: none; border: 1px solid #bda0ef60; border-radius: 11px; padding: 10px 13px; color: #fff; background: linear-gradient(135deg, #9a75df, #7957c5); font-size: 12px; }
.chat-send:disabled { cursor: default; opacity: .5; }
.chat-compose-meta { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 15px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.live-chat .chat-compose { padding: 10px 16px; }
.live-chat .chat-input-label { margin-bottom: 5px; }
.live-chat .chat-compose .chat-input-row :is(input,textarea) { padding-top: 8px; padding-bottom: 8px; }
.live-chat .chat-compose-meta { margin-top: 6px; }
[data-chat-length] { flex: none; font-variant-numeric: tabular-nums; }
.airi-danmaku-layer { position: absolute; z-index: 4; inset: 0 0 60px; overflow: hidden; pointer-events: none; user-select: none; }
.airi-danmaku-item { display: inline-flex; align-items: center; position: absolute; left: 100%; white-space: nowrap; padding: 2px 4px; color: #fff; font-size: clamp(15px, 1.6vw, 21px); line-height: 26px; font-weight: 500; text-shadow: 0 1px 3px #000, 1px 0 2px #000, -1px 0 2px #000; }
.airi-danmaku-item.is-mine { color: #e2d1ff; border-bottom: 1px solid #d5baff99; }
.airi-danmaku-item .chat-owner-badge { margin-right: 7px; padding: 2px 6px; background: #342342e6; color: #d9c3ff; border-color: #ba94f099; font-size: 11px; line-height: 1; min-height: 22px; }
.airi-danmaku-reply-to { color: #d5baff; }
.live-chat [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .live-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .live-room { width: min(860px, 100%); }
  .live-chat-body { position: static; }
  .chat-messages { flex: 0 0 210px; height: 210px; min-height: 0; }
  .live-chat-heading { padding: 16px 18px 13px; }
}
@media (max-width: 767px) {
  .live-chat { border-radius: 20px; }
  .chat-input-row :is(input,textarea) { font-size: 16px; min-height: 44px; }
  .chat-send, .chat-toggle { min-height: 44px; }
  .chat-identity .chat-input-row :is(input,textarea), .chat-name-save { min-height: 44px; }
  .chat-reply-button { min-height: 36px; padding: 6px 8px; }
  .chat-reply-compose button { min-width: 36px; min-height: 36px; }
  .chat-messages { flex-basis: 350px; height: 350px; }
  .airi-danmaku-layer { bottom: 48px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .live-content { grid-template-columns: minmax(0, 1fr); }
  .live-room { width: min(1160px, 100%); }
  .live-chat-body { position: static; }
  .chat-messages { flex: 0 0 170px; height: 170px; min-height: 0; }
}
@media (max-width: 700px) {
  .live-shell .playback-status { bottom: 94px; }
  .live-shell .dplayer .dplayer-controller { height: 64px; }
  .live-shell .player-chat-compose { left: 12px; right: 12px; bottom: 50px; width: auto; transform: none; }
  .live-shell .player-chat-compose :is(input,textarea) { min-height: 36px; height: 36px; font-size: 16px; }
  .live-shell .player-chat-compose .chat-send { min-height: 36px; height: 36px; }
  .live-shell .dplayer .dplayer-controller-mask { height: 110px; }
  .live-shell .airi-danmaku-layer { bottom: 96px; }
}

html[data-theme=light] .chat-message-author .chat-owner-badge{color:#7550a5;background:#9b71cc1a;border-color:#9165c34d}
