* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #222; }
.hidden { display: none !important; }
.error { color: #c0392b; font-size: 14px; }

#login-view { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.08); width: 320px; display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 8px; }

input, select, button { font: inherit; padding: 8px 10px; border: 1px solid #ccd; border-radius: 6px; }
button { background: #2f6fed; color: #fff; border: none; cursor: pointer; }
button:hover { background: #245bcc; }
button.link { background: none; color: #2f6fed; padding: 4px; }
button.danger { background: #e74c3c; }
button.danger:hover { background: #c0392b; }
button.small { padding: 4px 10px; font-size: 13px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e3e5e8; }
header h1 { font-size: 18px; }
.header-right { display: flex; align-items: center; gap: 14px; font-size: 14px; }

nav { display: flex; gap: 4px; padding: 0 20px; background: #fff; border-bottom: 1px solid #e3e5e8; }
nav .tab { background: none; color: #555; border-radius: 6px 6px 0 0; padding: 10px 18px; }
nav .tab.active { color: #2f6fed; border-bottom: 2px solid #2f6fed; }

main { padding: 20px; max-width: 900px; margin: 0 auto; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card h2 { font-size: 16px; margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: #888; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; font-size: 14px; }
th { color: #666; font-weight: 600; }

.playlist-items { margin: 10px 0 0 16px; display: flex; flex-direction: column; gap: 6px; }

#toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: #323232; color: #fff; padding: 8px 18px; border-radius: 20px; font-size: 14px; z-index: 10; }