.artwork-player { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); }
.player-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--art-bg); }
.player-poster, .player-frame-host, .player-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-poster { margin: 0; }
.player-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.player-frame { display: block; border: 0; background: var(--art-canvas); color-scheme: light; }
.player-frame[data-loading="true"], .player-frame[data-retiring] { visibility: hidden; pointer-events: none; }
.player-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.player-controls button { min-height: 44px; }
.player-controls button:disabled { color: var(--muted); background: var(--panel-raised); border-color: var(--line); cursor: default; }
.player-status, .player-verification { margin: 12px 16px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.player-notice { margin: 12px 16px 0; font-size: 12px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.player-preview-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 16px 6px; color: var(--accent); font-size: 12px; }
.artwork-player noscript p { margin: 12px 16px; font-size: 13px; line-height: 1.5; }
.artwork-player[data-state="unavailable"] .player-status { color: var(--text); }
/* Only failures are shown; other playback states reach screen readers only. */
.artwork-player:not([data-state="unavailable"]) .player-status, .player-verification { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edition-panel > .artwork-player { border: 0; border-bottom: 1px solid var(--line-soft); }
.full-artwork { margin: 0; overflow: hidden; }
.full-artwork main { width: 100%; max-width: none; margin: 0; padding: 0; }
.full-artwork .artwork-player { border: 0; border-radius: 0; }
.full-artwork .player-stage { height: 100vh; height: 100dvh; aspect-ratio: auto; }
.full-artwork .player-controls { position: fixed; z-index: 2; left: 12px; bottom: 12px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.full-artwork .artwork-player[data-state="loaded"] .player-controls { opacity: 0; }
.full-artwork .artwork-player .player-controls:hover, .full-artwork .artwork-player .player-controls:focus-within { opacity: 1; }
.full-artwork .artwork-player[data-state="unavailable"] .player-status, .full-artwork noscript { position: fixed; top: 12px; left: 12px; right: 12px; margin: 0; padding: 12px; background: var(--panel); }
.full-artwork .player-notice { position: fixed; z-index: 2; left: 12px; right: 12px; bottom: 84px; margin: 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
@media (hover: none) { .full-artwork .artwork-player[data-state="loaded"] .player-controls { opacity: 1; } }
@media (max-width: 540px) { .player-controls { padding: 10px 12px; } .player-status, .player-verification, .player-notice { margin: 10px 12px 0; } .player-preview-link { margin-left: 12px; } }
