/* Recording controls share the existing player's layout and stay out of TV mode. */
#player-record{color:#ff626d;border-color:#a239454f;background:#ce35460c;position:relative}
#player-record svg{fill:currentColor;stroke:none;width:15px;height:15px}
#player-record:hover:not(:disabled){color:#ff8e96;border-color:#ed6370;background:#e9475520}
#player-record.is-recording{color:#fff!important;background:#d72c3e!important;border-color:#ff8792!important}
#player-record.is-recording svg circle{display:none}
#player-record.is-recording svg rect{display:block}
#player-record:not(.is-recording) svg rect{display:none}
#player-record.has-recording:after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;background:#8ae8c2;border-radius:50%}
#player-record:disabled{opacity:.45}
#player-record[hidden]{display:none!important}
body.tv-mode #player-record{display:none!important}
.didan-record-badge{position:absolute;right:14px;top:14px;z-index:32;display:flex;align-items:center;gap:7px;border:1px solid #f1758066;background:#26090de8;color:#fff;border-radius:7px;padding:9px 11px;font:600 12px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 3px 12px #0004}
.didan-record-badge[hidden]{display:none!important}
.didan-record-badge>span{width:8px;height:8px;border-radius:50%;background:#ff5968}
.didan-record-badge time{font-variant-numeric:tabular-nums;font-weight:400}
.didan-record-badge i{font-style:normal;color:#ff8691;margin-left:3px}
.didan-record-notice{position:fixed;left:50%;bottom:max(84px,env(safe-area-inset-bottom));transform:translate(-50%,10px);max-width:calc(100% - 32px);width:max-content;padding:12px 16px;border:1px solid #6b4550;border-radius:8px;background:#211820f5;color:#fff;box-shadow:0 5px 25px #0004;font:13px/1.6 Arial,sans-serif;opacity:0;pointer-events:none;z-index:2000;transition:opacity .15s,transform .15s}
.didan-record-notice.is-visible{opacity:1;transform:translate(-50%,0)}
.didan-record-dialog{box-sizing:border-box;width:480px;max-width:calc(100% - 24px);max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);margin:auto;padding:0;border:1px solid #4d3c45;border-radius:12px;background:#121b24;color:#edf3f7;box-shadow:0 15px 90px #000b;overflow:auto;color-scheme:dark;font:14px/1.65 Arial,sans-serif}
.didan-record-dialog:not([open]){display:none}
.didan-record-dialog::backdrop{background:#03080dcc;backdrop-filter:blur(5px)}
.didan-record-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #35414b}
.didan-record-dialog h2{font-size:17px;line-height:1.4;margin:0;font-weight:700}
.didan-record-dialog h3{font-size:14px;margin:18px 0 8px}
.didan-record-dialog .record-close{padding:0;width:36px;height:36px;border:1px solid #43515c;border-radius:7px;background:transparent;color:#d4e0e9;font:26px/1 Arial,sans-serif;cursor:pointer;flex-shrink:0}
.record-body{padding:18px}
.record-body p{margin:0 0 14px}
.record-body .record-muted{color:#b0c0cd;font-size:12px;line-height:1.75}
.record-channel{font-weight:700}
.record-body .record-preview{display:block;position:static;width:100%;height:auto;max-height:220px;object-fit:contain;margin:0 0 16px;background:#000;border-radius:7px}
.record-body .record-action{box-sizing:border-box;display:block;width:100%;min-height:44px;padding:11px 14px;margin:10px 0;border:1px solid #445563;border-radius:7px;background:#1b2936;color:#e5edf4;text-align:center;text-decoration:none;font:600 13px/1.6 Arial,sans-serif;cursor:pointer}
.record-body .record-action.is-primary{background:#cc293d;color:#fff;border-color:#ed6073}
.didan-record-dialog button:focus-visible,.record-action:focus-visible,.didan-record-badge:focus-visible,#player-record:focus-visible{outline:3px solid #a5f1dc;outline-offset:3px}
#actions #player-record{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#actions #player-record svg{width:14px;height:14px}
@media(max-width:480px){body:not(.tv-mode) .player-controls{gap:4px}body:not(.tv-mode) .player-details{gap:6px}body:not(.tv-mode) .player-identity{flex:1;overflow:hidden}.didan-record-badge{top:8px;right:8px;padding:8px;font-size:11px}.record-body{padding:14px}.didan-record-dialog header{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){.didan-record-notice{transition:none}}
