.player-dialog { --dialog-gutter: clamp(14px, 3vw, 22px); --dialog-edge: 16px; position: fixed; inset: 0; margin: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none; padding: max(var(--dialog-edge), env(safe-area-inset-top)) max(var(--dialog-edge), env(safe-area-inset-right)) max(var(--dialog-edge), env(safe-area-inset-bottom)) max(var(--dialog-edge), env(safe-area-inset-left)); border: 0; background: rgb(0 0 0 / .65); color: var(--text-primary); color-scheme: dark; } .player-dialog::backdrop { background: transparent; } .player-dialog[open] { display: grid; place-items: center; } .player-dialog-surface { width: min(var(--dialog-width, 760px), 100%); min-width: 0; max-height: 100%; box-sizing: border-box; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--bg-active); border-radius: 14px; background: var(--bg-secondary); box-shadow: 0 16px 60px #0007; scrollbar-width: thin; } .player-dialog-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px var(--dialog-gutter); border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); } .player-dialog-head h2 { min-width: 0; margin: 0; font-size: 21px; line-height: 1.25; } .player-dialog-head h2:focus { outline: none; } .player-dialog-icon, .player-dialog-close svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .player-dialog-icon { color: var(--accent); } .player-dialog-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 50%; background: var(--bg-elevated); color: var(--text-secondary); cursor: pointer; } .player-dialog-close svg { width: 17px; height: 17px; } .player-dialog-close:hover { color: var(--text-primary); background: var(--bg-active); } .player-dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } @media (max-width: 600px) { .player-dialog { --dialog-edge: 6px; } .player-dialog-head { gap: 8px; padding-block: 6px; } .player-dialog-head h2 { font-size: 19px; } .player-dialog-close { width: 40px; height: 40px; } } @media (prefers-reduced-motion: no-preference) { .player-dialog[open] .player-dialog-surface { animation: player-dialog-in 140ms ease-out; } .player-dialog-close { transition: color 120ms, background-color 120ms; } @keyframes player-dialog-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } }