#player-dialog {
  width: min(430px, calc(100vw - 28px));
  padding: 24px 26px;
  max-height: calc(100dvh - 36px);
  color: #172950;
  background: linear-gradient(160deg, #fff, #eef5ff);
  border: 2px solid #c9dbfb;
  border-radius: 20px;
  box-shadow: 0 7px 0 #304778, 0 22px 65px #09164570;
}
#player-dialog::backdrop { background: #0b1b3ca1; backdrop-filter: blur(4px); }
.player-top, .player-brand, .player-links { display: flex; align-items: center; }
.player-top, .player-links { justify-content: space-between; }
.player-top { margin-bottom: 18px; }
.player-brand { gap: 8px; font-size: 13px; font-weight: 730; }
.player-brand i { width: 21px; height: 21px; border-radius: 6px; background: conic-gradient(#16b360 0 25%, #f7c933 25% 50%, #3286eb 50% 75%, #ee4657 75%); box-shadow: inset 0 2px 0 #ffffff99, 0 2px 0 #193c6c; }
#player-close { border: 1px solid #b7c9e4; background: #f7fbff; border-radius: 50%; min-width: 32px; height: 32px; line-height: 22px; font-size: 22px; color: #304778; }
#player-dialog h2 { font: 750 27px/1.2 var(--sans, system-ui); margin-bottom: 8px; letter-spacing: -.5px; }
#player-dialog p { font-size: 13px; color: #425576; line-height: 1.6; }
#player-dialog form { display: grid; gap: 7px; margin-top: 21px; }
#player-dialog label { font-size: 13px; font-weight: 650; }
#public-name-note { color: #40577b; font-size: 11px; line-height: 1.5; margin: -2px 0 6px; }
#player-dialog input { width: 100%; background: #fff; border: 1px solid #b4c6e0; color: #172950; font: inherit; padding: 11px 12px; border-radius: 8px; margin: 0 0 5px; }
#player-dialog input:focus-visible { outline: 3px solid #8bbaff; outline-offset: 1px; }
#player-dialog .player-submit, #player-dialog .player-guest { display: block; width: 100%; padding: 12px 16px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 700; }
#player-dialog .player-submit { background: linear-gradient(#418efd, #2261c8); color: white; border: 1px solid #1f59b7; box-shadow: 0 3px 0 #17417e, inset 0 1px 0 #ffffff9c; margin-top: 4px; }
#player-dialog .player-guest { margin-top: 13px; background: #fff; color: #224475; border: 1px solid #b8cce6; box-shadow: 0 2px 0 #c2cfe1; }
#player-dialog .player-guest span { margin-left: 8px; }
.player-links { margin-top: 14px; gap: 10px; }
.player-links button { font-size: 12px; color: #245793; padding: 4px 0; text-decoration: underline; }
#player-message:not(:empty) { border-left: 3px solid #b57c15; background: #fff3cb; margin-top: 15px; padding: 8px 11px; color: #553f1b; }
#player-code { letter-spacing: .25em; font-size: 22px!important; }
.account-detail { border: 1px solid #c4d5ec; border-radius: 10px; background: #fff; padding: 12px; display: grid; margin: 16px 0; overflow-wrap: anywhere; }
.account-detail span { color: #51637e; }
.header-actions .account-button { min-height: 32px; max-width: 115px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; padding: 4px 10px; font-weight: 650; }
.download-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 18px; padding: 12px 15px; border-radius: 12px; border: 1px solid #b7cae4; box-shadow: 0 3px 0 #6c86ac33; background: #f7fbff; color: #1c375c; }
.download-strip strong, .player-downloads strong { font-size: 13px; line-height: 1.5; }
.download-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.download-buttons a { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 7px 13px; color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.download-android { background: linear-gradient(#19845a,#136844); box-shadow: inset 0 1px #ffffff55, 0 2px #0a4a31; }
.download-windows { background: linear-gradient(#357ce2,#235caa); box-shadow: inset 0 1px #ffffff55, 0 2px #173f7c; }
.download-buttons a:hover { filter: brightness(1.08); }
.player-downloads { border-top: 1px solid #c3d3e9; margin-top: 16px; padding-top: 12px; }
.player-downloads .download-buttons { margin-top: 6px; }
.iphone-install { font-size: 11px; color: #38516e; }
.iphone-install summary { cursor: pointer; }
.iphone-install p { max-width: 340px; margin: 6px 0 0; }
.download-hi, html[lang="hi"] .download-en { display: none; }
html[lang="hi"] .download-hi { display: inline; }
body[data-theme="dark"] .download-strip { background: #192f50; color: #f4f8ff; border-color: #375578; }
body[data-theme="dark"] .iphone-install { color: #c2d6ed; }
@media(max-width: 450px) { .header-actions .account-button { max-width: 70px; padding: 4px 6px; font-size: 11px; } #player-dialog { padding: 19px; } }
