* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; }
body { color: #eaf1ff; background: #08101f; }
a { color: #8db9ff; }
.hidden { display: none !important; }
.player-body { overflow: hidden; background: #000; }
.stage { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: #000; }
.stage video {
  position: absolute; display: block; left: 50%; top: 50%;
  width: 100vw; height: 56.25vw; max-width: 100%; max-height: 100%;
  transform: translate(-50%, -50%); object-fit: contain; background: #000;
  aspect-ratio: 16 / 9;
}
@media (min-aspect-ratio: 16/9) {
  .stage video { width: 177.777778vh; height: 100vh; }
}
.player-message { position: absolute; z-index: 5; left: 50%; top: 50%; width: 82%; max-width: 760px; transform: translate(-50%, -50%); text-align: center; padding: 32px; border-radius: 14px; background: rgba(5, 12, 25, .88); }
.player-message h1 { margin: 0 0 18px; font-size: 36px; }
.player-message p { margin: 0 0 20px; font-size: 22px; line-height: 1.45; }
.now-playing { position: absolute; z-index: 4; left: 24px; bottom: 24px; max-width: 70%; padding: 12px 18px; background: rgba(0, 0, 0, .72); border-left: 5px solid #4f91ff; font-size: 20px; }
button, .button { display: inline-block; border: 0; border-radius: 7px; padding: 11px 17px; color: white; background: #276ae3; cursor: pointer; font: inherit; text-decoration: none; }
button:hover, button:focus, .button:hover, .button:focus { background: #3b7df1; outline: 3px solid rgba(111, 164, 255, .35); }
button:disabled { opacity: .45; cursor: not-allowed; }
.button.secondary { background: #344156; }
.danger { background: #b52f3c; padding: 7px 11px; }
.admin-body { min-height: 100vh; padding-bottom: 50px; background: #eef2f7; color: #182234; }
.admin-header { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4vw; background: #0d1b31; color: white; }
.admin-header nav a { margin-left: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: 92%; max-width: 1180px; margin: 28px auto; }
.panel { padding: 24px; border: 1px solid #dce3ed; border-radius: 10px; background: white; box-shadow: 0 5px 18px rgba(29, 44, 70, .07); }
.panel.narrow { width: 92%; max-width: 560px; margin: 50px auto; }
.panel h1, .panel h2 { margin-top: 0; }
.full { grid-column: 1 / -1; }
label { display: block; margin: 14px 0; font-weight: bold; }
input, select { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #bdc8d8; border-radius: 6px; background: white; color: #182234; font: inherit; }
.hint { color: #5b687a; line-height: 1.5; }
.notice { padding: 13px 16px; border-radius: 7px; }
.notice.error { color: #7c1822; background: #ffe1e4; border: 1px solid #f4aeb5; }
.notice.success { color: #12582e; background: #dff7e8; border: 1px solid #a5dfba; }
.checks { padding-left: 20px; line-height: 1.7; }
.checks .pass { color: #18703a; }
.checks .fail { color: #b12836; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 9px; border-bottom: 1px solid #dfe5ed; text-align: left; vertical-align: middle; }
.inline { display: inline; }
.inline button { white-space: nowrap; }
code { font-family: Consolas, Monaco, monospace; }
@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-header { display: block; }
  .admin-header nav { margin-top: 12px; }
  .admin-header nav a { margin: 0 16px 0 0; }
  .player-message h1 { font-size: 27px; }
  .player-message p { font-size: 18px; }
}
