.dmp-only { display: none; }
@media (min-width:701px) {
    body.dmp-active { --bg:var(--brand-ink); --card:var(--brand-surface); --card-hover:var(--brand-raised); --text:var(--brand-text); --text2:var(--brand-muted); --border:var(--brand-edge); --gold:var(--brand-gold); background:var(--bg); color:var(--text); --chat-bg:var(--brand-surface); --chat-header-bg:var(--brand-surface); --chat-messages-bg:var(--brand-surface); --chat-input-area-bg:var(--brand-surface); --chat-input-bg:var(--brand-ink); --chat-input-text:var(--brand-text); --chat-placeholder:var(--brand-muted); --chat-border:var(--brand-edge); --chat-shadow:none; }
    body.dmp-active .dmp-only { display:block; }
    body.dmp-active > .header-desktop, body.dmp-active .match-info-bar, body.dmp-active .match-info-card, body.dmp-active .player-bottom { display:none!important; }
    body.dmp-active .main-container { display:grid!important; grid-template-columns:minmax(0,1fr) 340px; gap:24px; max-width:1400px; width:100%; margin:0 auto!important; padding:18px 24px 48px!important; align-items:start; }
    body.dmp-active .left-col, body.dmp-active .right-col { width:100%!important; min-width:0; max-width:none; flex:none; }
    body.dmp-active .right-col { display:flex; flex-direction:column; gap:20px; position:static; }
    body.dmp-active .right-col > :not(#chatSection):not(.dmp-others):not(.dmp-banner):not(.dmp-live-panel) { display:none!important; }
    body.dmp-active .dmp-topbar { display:flex; align-items:center; justify-content:space-between; gap:24px; position:sticky; top:0; z-index:100; min-height:76px; padding:12px max(24px,calc((100vw - 1352px)/2)); background:color-mix(in srgb, var(--brand-ink) 96%, transparent); border-bottom:1px solid var(--border); }
    body.dmp-active .player-section { overflow:hidden; border:1px solid var(--border); border-radius:14px; margin-bottom:20px; background:#000; }
    body.dmp-active .player-container { position:relative; width:100%; aspect-ratio:16/9; height:auto!important; padding:0!important; min-height:0; }
    body.dmp-active #streamPlayer { position:absolute; inset:0; width:100%; height:100%; }
    body.dmp-active #streamPlayer :is(video,iframe) { width:100%!important; height:100%!important; object-fit:contain; }
    body.dmp-active .dmp-controls { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; background:var(--card); }
    body.dmp-active #chatSection { display:flex; flex-direction:column; height:560px!important; max-height:calc(100vh - 110px); min-height:420px; border:1px solid var(--border); border-radius:14px; background:var(--card); overflow:hidden; margin:0; }
    body.dmp-active #chatSection .chat-title { color:var(--text)!important; }
    body.dmp-active #chatMessages { flex:1 1 0; height:auto; min-height:0; max-height:none; overflow-y:auto; background:transparent; }
    body.dmp-active #chatSection .chat-header { flex:0 0 auto; }
    body.dmp-active #chatMessages .chat-message { flex-shrink:0; }
    body.dmp-active #chatSection :is(#chatMessages,.chat-input-area) { font-family:var(--reading-font); }
    body.dmp-active #chatSection .chat-input-area { flex:none; }
    body.dmp-active :is(.dmp-only button,.dmp-only a):focus-visible { outline:2px solid var(--gold); outline-offset:-3px; }
    body.dmp-active.theater-mode .main-container { grid-template-columns:minmax(0,1fr); }
}
@media (min-width:701px) {
    body.dmp-active .dmp-banner { display:grid; }
    body.dmp-active .right-col #chatSection { height:clamp(340px,calc(100vh - 330px),560px)!important; max-height:none; min-height:340px; }
}
@media (prefers-reduced-motion:reduce) {
    .dmp-banner-track, .dmp-banner .dmp-poll button { transition:none; }
}

@media (min-width:701px) and (hover:none) {
    .dmp-banner :is(.dmp-banner-prev,.dmp-banner-next) { opacity:1; pointer-events:auto; }
}

@media (min-width:701px) {
    body.dmp-active .dmp-live-panel { display:flex; flex-direction:column; min-width:0; height:clamp(560px,calc(100dvh - 120px),820px); overflow:hidden; border:1px solid var(--brand-edge); border-radius:28px; background:var(--brand-surface); box-shadow:0 8px 24px #0002; }
    body.dmp-active .dmp-live-panel .dmp-banner { flex:0 0 auto; width:100%; border:0; border-radius:0; background:transparent; box-shadow:none; }
    body.dmp-active .dmp-live-panel #chatSection { flex:1 1 0; height:auto!important; min-height:0; max-height:none; border:0!important; border-radius:0; box-shadow:none!important; --chat-bg:var(--brand-surface); --chat-header-bg:var(--brand-surface); --chat-messages-bg:var(--brand-surface); --chat-input-area-bg:var(--brand-surface); --chat-input-bg:var(--brand-raised); }
    body.dmp-active .dmp-live-panel .chat-header { display:none; }
    body.dmp-active .dmp-live-panel .chat-title { font-family:var(--reading-font); font-size:.76rem; font-weight:600; letter-spacing:0; }
    body.dmp-active .dmp-live-panel #chatMessages { padding:36px 16px 16px; gap:16px; border-top:0; -webkit-mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.25) 14px,#000 48px); mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.25) 14px,#000 48px); }
    body.dmp-active .dmp-live-panel .chat-avatar { width:26px; height:26px; box-shadow:none; border:0; }
    body.dmp-active .dmp-live-panel .chat-username { color:var(--brand-muted); font-weight:600; }
    body.dmp-active .dmp-live-panel .chat-text { line-height:1.55; }
    body.dmp-active .dmp-live-panel .chat-input-area { padding:12px; border-top:0; }
    body.dmp-active .dmp-live-panel .chat-input-row { align-items:center; gap:8px; }
    body.dmp-active .dmp-live-panel .chat-input { min-height:40px; border-radius:24px; padding:9px 14px; border-color:transparent!important; }
    body.dmp-active .dmp-live-panel :is(.emoji-picker-btn,.chat-send) { width:38px; height:38px; border-radius:50%; flex-shrink:0; box-shadow:none; }
    body.dmp-active .dmp-live-panel .emoji-picker-btn { border:0; background:#ffffff08; }
    body.dmp-active .dmp-live-panel .emoji-picker-panel { max-width:calc(340px - 40px); }
}

/* Desktop playback occupies the page; chat stays in view while details scroll. */
@media (min-width:701px) {
    body.dmp-active .dmp-topbar { display:none; }
    body.dmp-active .main-container { max-width:none; grid-template-columns:minmax(0,1fr) clamp(340px,25vw,400px); gap:20px; padding:16px 18px 32px!important; }
    body.dmp-active .right-col { position:fixed; top:16px; right:18px; bottom:16px; width:clamp(340px,25vw,400px)!important; height:calc(100dvh - 32px); z-index:30; gap:0; }
    body.dmp-active .dmp-live-panel { height:100%; max-height:none; flex:1; }
    body.dmp-active .player-section { position:relative; }
    body.dmp-active :is(.dmp-room-back,.dmp-room-share) { position:absolute; top:12px; z-index:20; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff30; border-radius:50%; background:#111b; color:#fff; cursor:pointer; }
    body.dmp-active .dmp-room-back { left:12px; }
    body.dmp-active .dmp-room-share { right:12px; }
    body.dmp-active .left-col > .dmp-others { margin-top:20px; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
    body.dmp-active .dmp-live-panel .emoji-picker-panel { max-width:min(280px,calc(100vw - 60px)); }
    body.dmp-active.theater-mode .main-container { grid-template-columns:minmax(0,1fr) clamp(340px,25vw,400px); }
}

@media (min-width:701px) {
    body.dmp-active > :is(.match-bottom-banner,footer) { display:none!important; }
}

@media (min-width:701px) {
    body.dmp-active .dmp-live-panel .chat-input-area { padding:10px 12px 12px; }
    body.dmp-active .dmp-live-panel .chat-input-row { position:relative; gap:10px; }
    body.dmp-active .dmp-live-panel .chat-input { height:46px; min-height:46px; padding:10px 48px 10px 16px; border:0; border-radius:28px; background:var(--brand-raised)!important; font-size:.86rem; }
    body.dmp-active .dmp-live-panel .emoji-picker-wrap { position:absolute; right:62px; top:0; height:46px; display:flex; align-items:center; z-index:2; }
    body.dmp-active .dmp-live-panel .emoji-picker-btn { display:grid; place-items:center; padding:3px; width:32px; height:32px; background:transparent; color:#c5c5c5; border:0; box-shadow:none; }
    body.dmp-active .dmp-live-panel .emoji-picker-btn svg { width:28px; height:28px; }
    body.dmp-active .dmp-live-panel .emoji-picker-btn:hover { color:#fff; background:transparent; }
    body.dmp-active .dmp-live-panel .emoji-picker-panel { left:auto; right:-8px; bottom:calc(100% + 8px); }
    body.dmp-active .dmp-live-panel .chat-send { width:46px; height:46px; padding:10px; border:0; border-radius:50%; background:var(--brand-raised); color:#ff2f5e; box-shadow:none; }
    body.dmp-active .dmp-live-panel .chat-send svg { width:27px; height:27px; }
    body.dmp-active .dmp-live-panel .chat-send:hover { color:#ff587b; background:#444; box-shadow:none; transform:none; }
    body.dmp-active .dmp-live-panel .chat-send:disabled { opacity:.5; background:var(--brand-raised); }
}

.dmp-mini-placeholder,.dmp-mini-tools { display:none; }
@media (min-width:701px) {
    body.dmp-active .dmp-is-mini .dmp-mini-placeholder { display:block; aspect-ratio:16/9; background:var(--brand-ink); }
    body.dmp-active .dmp-is-mini .player-container { position:fixed; inset:18px 18px auto auto; width:clamp(300px,26vw,420px); z-index:80; border:1px solid #ffffff30; border-radius:14px; overflow:hidden; background:#000; box-shadow:0 10px 40px #0009; }
    body.dmp-active .dmp-is-mini .dmp-mini-tools { display:flex; position:absolute; top:8px; right:8px; gap:6px; z-index:25; }
}
