html, body { margin: 0; min-height: 100%; background: #0a0a0a; color: #eee; font-family: Arial, Helvetica, sans-serif; }
h1 { text-align: center; color: #6ee7ff; letter-spacing: 1px; padding: 24px 0 4px; margin: 0; font-size: 22px; }
#status { text-align: center; color: #ff8080; font-size: 13px; padding-bottom: 12px; min-height: 16px; }
.dim { color: #888; font-weight: normal; text-transform: none; letter-spacing: 0; font-size: 12px; }

#layout { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.col { flex: 1; min-width: 340px; display: flex; flex-direction: column; gap: 20px; }
.panel { background: #111; border: 1px solid #2a2a2a; border-radius: 10px; padding: 16px 18px; }
.panelTitle { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #4ade80; border-bottom: 1px solid #2a2a2a; padding-bottom: 8px; margin: 0 0 12px; }

.group { margin-bottom: 18px; }
.group:last-child { margin-bottom: 0; }
.group h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #6ee7ff; margin: 0 0 8px; }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.group li { padding: 10px 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; font-size: 14px; cursor: pointer; }
.group li:hover { border-color: #6ee7ff; background: #17222b; }
.empty { color: #666; font-style: italic; font-size: 13px; padding: 6px 2px; }

.plainList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plainList li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; font-size: 14px; }
.plainList .savedGameName { flex: 1; cursor: pointer; }
.plainList .savedGameName:hover { color: #4ade80; }
.plainList .deleteBtn { flex-shrink: 0; }

.showNameRow { display: flex; gap: 8px; margin-bottom: 8px; }
#showNameInput { flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; }
#saveShowBtn { font-weight: bold; color: #08111f; background: #4ade80; border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 13px; }
#addScoreboardBtn { font-weight: bold; color: #08111f; background: #ffd23f; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
#newShowBtn { color: #eee; background: #222; border: 1px solid #444; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
#saveStatus { font-size: 12px; min-height: 16px; padding-bottom: 6px; }
#saveStatus.ok { color: #4ade80; }
#saveStatus.err { color: #ff6b6b; }

#showList { list-style: none; margin: 0; padding: 0; counter-reset: showItem; display: flex; flex-direction: column; gap: 6px; }
#showList li { counter-increment: showItem; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; }
#showList li::before { content: counter(showItem) "."; color: #6ee7ff; font-weight: bold; min-width: 20px; }
#showList .itemFormat { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #888; background: #0e142b; border-radius: 4px; padding: 2px 6px; }
#showList .itemLabel { flex: 1; font-size: 14px; }
#showList li.scoreboardItem { border-color: #ffd23f; background: #1a1608; }
#showList .itemScoreboardLabel { flex: 1; font-size: 14px; font-weight: bold; color: #ffd23f; letter-spacing: 1px; }
#showList li.videoItem { border-color: #a78bfa; background: #17122b; }
#showList .itemVideoLabel { flex: 1; font-size: 14px; font-weight: bold; color: #a78bfa; }
#showList li.slideshowItem { border-color: #fb923c; background: #2b1a0f; }
#showList .itemBtns { display: flex; gap: 4px; }
#showList button { background: #222; color: #eee; border: 1px solid #444; border-radius: 5px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; line-height: 1; }
#showList button:disabled { opacity: .3; cursor: default; }
#showList button.remove { color: #ff8080; border-color: #5a2a2a; }

#showList .rowCheck { flex-shrink: 0; }
#showList .musicTag { font-size: 11px; color: #6ee7ff; background: #0e1f2b; border: 1px solid #1e3a4a; border-radius: 4px; padding: 2px 6px; display: flex; align-items: center; gap: 6px; }
#showList .musicTagClear { background: transparent; color: #6ee7ff; border: 0; width: auto; height: auto; padding: 0; font-size: 11px; }

.attachMusicRow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#attachMusicBtn { font-weight: bold; color: #08111f; background: #6ee7ff; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
#attachMusicBtn:disabled { opacity: .35; cursor: default; }
#addVideoBtn { font-weight: bold; color: #08111f; background: #a78bfa; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }

/* Music Library panel */
.songRow { padding: 10px 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; margin-bottom: 8px; }
.songRow:last-child { margin-bottom: 0; }
.songHeader { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.songName { flex: 1; font-size: 14px; }
.songName.savedGameName { cursor: pointer; }
.songName.savedGameName:hover { color: #a78bfa; }
.songHeader .dim.ok { color: #4ade80; }
.songHeader .dim.err { color: #888; }
.songSegments { display: flex; gap: 6px; }
.segBadge { position: relative; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: #222; border: 1px solid #444; color: #888; font-size: 12px; cursor: pointer; overflow: hidden; }
.segBadge.present { background: #0e2b1a; border-color: #2a5a3a; color: #4ade80; font-weight: bold; }
.segBadge.uploading { opacity: .5; cursor: default; }
.segFileInput { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.newSongRow { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #2a2a2a; }
#newSongNameInput { flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; }
#newSongBtn { font-weight: bold; color: #08111f; background: #4ade80; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
#newSongStatus { font-size: 12px; min-height: 16px; padding-top: 6px; }
#newSongStatus.ok { color: #4ade80; }
#newSongStatus.err { color: #ff6b6b; }

/* Song picker modal (Attach Music) */
#musicPickerList .savedGameName:hover { color: #6ee7ff; }
#musicPickerStatus { font-size: 12px; min-height: 14px; margin-top: 10px; }
#musicPickerStatus.err { color: #ff6b6b; }
#musicPickerCancelBtn { background: #222; color: #eee; border: 1px solid #444; }

#deleteSongCancelBtn { background: #222; color: #eee; border: 1px solid #444; }
#deleteSongConfirmBtn { background: #ff6b6b; color: #2a0a0a; border: 0; }
#deleteSongConfirmBtn:disabled { opacity: .5; cursor: default; }
#deleteSongModalStatus { font-size: 12px; min-height: 14px; margin-top: 10px; }
#deleteSongModalStatus.err { color: #ff6b6b; }

/* Video Library panel + picker (sized-down mirror of the Music Library
   rules above -- one file per row instead of six segment badges) */
.videoUploadRow { display: flex; }
.videoUploadRow input[type="file"] { font-size: 12px; color: #aaa; }
.videoUploadRow.uploading { opacity: .5; pointer-events: none; }
.newVideoRow { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #2a2a2a; }
#newVideoNameInput { flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; }
#newVideoBtn { font-weight: bold; color: #08111f; background: #a78bfa; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
#newVideoStatus { font-size: 12px; min-height: 16px; padding-top: 6px; }
#newVideoStatus.ok { color: #4ade80; }
#newVideoStatus.err { color: #ff6b6b; }

#videoPickerList .savedGameName:hover { color: #a78bfa; }
#videoPickerCancelBtn { background: #222; color: #eee; border: 1px solid #444; }

#deleteVideoCancelBtn { background: #222; color: #eee; border: 1px solid #444; }
#deleteVideoConfirmBtn { background: #ff6b6b; color: #2a0a0a; border: 0; }
#deleteVideoConfirmBtn:disabled { opacity: .5; cursor: default; }
#deleteVideoModalStatus { font-size: 12px; min-height: 14px; margin-top: 10px; }
#deleteVideoModalStatus.err { color: #ff6b6b; }

.launchShowRow { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #2a2a2a; }
#launchVenueInput { flex: 1; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; }
#launchKickoffInput { width: 90px; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; }
#launchShowBtn { font-weight: bold; color: #08111f; background: #ffd23f; border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 13px; }
#launchStatus { font-size: 12px; min-height: 16px; padding-top: 6px; }
#launchStatus.ok { color: #4ade80; }
#launchStatus.err { color: #ff6b6b; }

/* Library Manager -- deliberately styled to look NOTHING like "Your
   Library" above (different border color, different row layout with a
   Delete button instead of being clickable itself) so it can never be
   mistaken for the add-to-show picker. */
#managerSection { max-width: 1100px; margin: 32px auto 40px; padding: 0 20px; }
.dangerPanel { border-color: #5a2a2a; }
.dangerTitle { color: #ff8080; border-bottom-color: #3a1a1a; }
#librarySearchInput { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 6px; border: 1px solid #333; background: #0e142b; color: #eee; font-size: 14px; margin-bottom: 14px; }
.managerGroup { margin-bottom: 18px; }
.managerGroup:last-child { margin-bottom: 0; }
.managerGroup h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #6ee7ff; margin: 0 0 8px; }
.managerGroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.managerGroup li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; font-size: 14px; }
.managerGroup .managerLabel { flex: 1; }
.deleteBtn { background: #3a1414; color: #ff8080; border: 1px solid #6b2a2a; border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 12px; font-weight: bold; }
.deleteBtn:hover { background: #5a1e1e; }
.previewBtn { border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 12px; font-weight: bold; border: 1px solid; }
.staticBtn { background: #14263a; color: #6ee7ff; border-color: #2a4a6b; }
.staticBtn:hover { background: #1e3a5a; }
.playBtn { background: #143a1e; color: #4ade80; border-color: #2a6b3a; }
.playBtn:hover { background: #1e5a2e; }
.notUploaded { color: #666; font-style: italic; font-size: 12px; }

/* Delete confirmation modal */
.modalOverlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modalOverlay.hidden { display: none; }
.modalBox { background: #141414; border: 1px solid #5a2a2a; border-radius: 10px; padding: 24px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.modalBox h3 { margin: 0 0 12px; color: #ff8080; font-size: 16px; }
.modalLabel { font-size: 15px; color: #eee; margin: 0 0 10px; font-weight: bold; }
.warnText { font-size: 13px; color: #ffd23f; background: #2a2410; border: 1px solid #4a3f15; border-radius: 6px; padding: 8px 10px; margin: 0 0 14px; }
.warnText.hidden { display: none; }
.modalBtnRow { display: flex; gap: 10px; justify-content: flex-end; }
.modalBtnRow button { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: bold; cursor: pointer; }
#deleteCancelBtn { background: #222; color: #eee; border: 1px solid #444; }
#deleteConfirmBtn { background: #ff6b6b; color: #2a0a0a; border: 0; }
#deleteConfirmBtn:disabled { opacity: .5; cursor: default; }
#deleteModalStatus { font-size: 12px; min-height: 14px; margin-top: 10px; }
#deleteModalStatus.err { color: #ff6b6b; }
