:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; background: #f5f7fb; color: #263449; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 15% 0%, #e8f1ff, transparent 36%), linear-gradient(145deg, #f8fbff, #edf1f7); }
.shell { width: min(100%, 760px); }
.player-card, .admin-card, .message-card { background: rgba(255,255,255,.98); border: 1px solid #e8edf4; border-radius: 28px; padding: clamp(26px, 6vw, 56px); box-shadow: 0 22px 60px rgba(43, 61, 88, .12); text-align: center; }
.admin-card { text-align: left; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #3478d5; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; }
.brand::before { content: '♫'; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: #3478d5; color: #fff; font-size: 1rem; line-height: 1; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.2; margin: 16px 0 8px; overflow-wrap: anywhere; color: #192940; }
.filename, .hint, .subtitle { color: #7a879a; font-size: 1.05rem; }
.subtitle { margin: 0; }
.music-note { font-size: 5rem; color: #5791e5; margin: 22px 0 0; }
audio { width: 100%; margin: 28px 0 18px; }
.player-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.player-actions button { flex: 1; font-size: 1.05rem; }
button, input { font: inherit; }
button { border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
button:hover { transform: translateY(-1px); }
.primary { background: #3478d5; color: white; padding: 14px 22px; box-shadow: 0 8px 18px rgba(52,120,213,.22); }
.giant { width: 100%; font-size: 1.5rem; padding: 22px; }
.secondary { background: #eaf2ff; color: #2867bc; padding: 12px 18px; white-space: nowrap; }
.admin-heading { padding-bottom: 28px; border-bottom: 1px solid #edf0f5; }
.admin-section { padding: 28px 0; border-bottom: 1px solid #edf0f5; }
.admin-section:last-of-type { border-bottom: 0; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.section-heading h2 { font-size: 1.3rem; margin: 1px 0 4px; color: #263449; }
.section-heading p { margin: 0; color: #8a96a7; font-size: .95rem; }
.step { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: #eaf2ff; color: #3478d5; font-weight: 800; }
.inline-form { display: flex; gap: 12px; }
.inline-form input { margin: 0; }
.field-label { display: block; color: #526176; font-weight: 700; margin: 0 0 10px; }
.field-label span { font-size: .85rem; font-weight: 400; color: #9aa5b4; }
input { display: block; width: 100%; border: 1px solid #dce3ed; border-radius: 11px; padding: 13px 14px; margin-top: 8px; background: #fbfcfe; color: #263449; outline: none; }
input:focus { border-color: #6da0e7; box-shadow: 0 0 0 3px rgba(52,120,213,.12); }
.file-picker { display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 17px; border: 1.5px dashed #9dbce7; border-radius: 16px; background: #f7faff; cursor: pointer; }
.file-picker:hover { background: #eef5ff; border-color: #3478d5; }
.file-picker input { display: none; }
.upload-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #dceaff; color: #3478d5; font-size: 1.8rem; font-weight: 300; }
.file-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.file-copy strong { color: #2f4058; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: #8794a7; font-weight: 400; }
.choose-button { color: #3478d5; font-weight: 700; white-space: nowrap; }
.wide-button { width: 100%; margin-top: 17px; }
.status-message { min-height: 25px; padding: 14px 0 0; color: #3478d5; font-size: .95rem; }
.toast { position: fixed; z-index: 20; top: 50%; left: 50%; width: min(420px, calc(100vw - 44px)); padding: 16px 22px; border-radius: 14px; background: #27364d; color: #fff; box-shadow: 0 18px 50px rgba(29, 45, 69, .28); font-size: 1rem; line-height: 1.45; text-align: center; opacity: 0; transform: translate(-50%, -50%) scale(.96); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.error { background: #d94d58; }
.toast.success { background: #218a68; }
.toast.loading { background: #3478d5; }
.audio-section { padding-bottom: 10px; }
.audio-list-items { border: 1px solid #e8edf4; border-radius: 14px; overflow: hidden; }
.audio-row { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 10px 15px; margin: 0; border-bottom: 1px solid #edf0f5; cursor: pointer; transition: background .15s; }
.audio-row:last-child { border-bottom: 0; }
.audio-row:hover { background: #f7faff; }
.audio-select { display: flex; align-items: center; flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.audio-select input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0 12px 0 0; accent-color: #3478d5; }
.track-number { width: 27px; color: #a4afbd; font-size: .82rem; font-variant-numeric: tabular-nums; }
.audio-title { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #35465d; font-weight: 600; }
.delete-audio { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #f4c9ce; background: #fff5f6; color: #d94d58; font-size: .88rem; }
.delete-audio:hover { background: #ffe8eb; }
.expiration-field { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #526176; font-size: .95rem; font-weight: 700; }
.expiration-field select { width: auto; min-width: 112px; margin: 0; padding: 9px 12px; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; color: #35465d; font: inherit; }
.empty-state { padding: 22px; border-radius: 14px; background: #f7f9fc; text-align: center; color: #8996a7; }
.share-section { padding-top: 22px; text-align: center; }
.share-section p { margin: 12px 0 0; color: #8a96a7; font-size: .9rem; }
.share-result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 15px; border: 1px solid #cfe1fb; border-radius: 14px; background: #f5f9ff; text-align: left; }
.share-result-label { flex-basis: 100%; color: #3478d5; font-size: .9rem; font-weight: 700; }
.share-result a { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
a { color: #2867bc; }
.admin-entry { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 22px; border: 1px solid #d8e5f8; border-radius: 14px; background: #f4f8ff; color: #2867bc; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.admin-entry:hover { background: #eaf2ff; box-shadow: 0 8px 20px rgba(52,120,213,.14); transform: translateY(-1px); }
.admin-entry-icon { font-size: 1.45rem; line-height: 1; }
@media (max-width: 540px) { .inline-form { display: grid; } .inline-form button { width: 100%; } .file-picker { align-items: flex-start; } .choose-button { display: none; } .toast { width: calc(100vw - 32px); } .share-result { align-items: stretch; } .share-result .secondary { width: 100%; } .delete-audio { padding: 8px 9px; } .expiration-field { width: 100%; justify-content: space-between; } .expiration-field select { flex: 1; } }
