.drive-player-dialog { box-sizing: border-box; width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #ffffff29; background: #101113; color: #f1efe7; overflow: auto; overscroll-behavior: contain; margin: auto; }
.drive-player-dialog::backdrop { background: #030405e8; }
.drive-player-shell { padding: clamp(12px, 2.5vw, 24px); }
.drive-player-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.drive-player-header h2 { margin: 0; font-family: inherit; font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.drive-player-dialog button, .drive-player-dialog a { font-family: inherit; font-size: 14px; line-height: 1.5; color: inherit; -webkit-tap-highlight-color: transparent; }
.drive-player-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid #ffffff40; background: transparent; cursor: pointer; }
.drive-player-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.drive-player-screen { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.drive-player-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.drive-player-choose { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.drive-player-choose[hidden] { display: none; }
.drive-player-choose select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #ffffff40; background: #17191c; color: #f1efe7; font: inherit; }
.drive-player-instruction { margin: 14px 0 0; color: #bbbdbf; font-size: 13px; line-height: 1.7; }
.drive-player-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ffffff24; font-size: 13px; }
.drive-player-retry { min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff40; background: transparent; cursor: pointer; }
.drive-player-direct { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; text-decoration: underline; }
.drive-player-dialog :is(button, a):focus-visible { outline: 2px solid #87a8ff; outline-offset: 4px; }
@media (max-width: 600px) {
  .drive-player-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .drive-player-screen { aspect-ratio: 4 / 3; }
  .drive-player-header { margin-bottom: 12px; }
  .drive-player-header h2 { font-size: 18px; }
  .drive-player-footer > span { width: 100%; }
}
