* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #0f1115; color: #e8eaf0; }
header { padding: 32px 20px 8px; max-width: 1080px; margin: 0 auto; }
h1 { margin: 0; font-size: 32px; }
h2 { margin-top: 0; font-size: 19px; }
.subtitle { color: #9aa3b2; }
main { max-width: 1080px; margin: 0 auto; padding: 12px 20px 40px; }
footer { max-width: 1080px; margin: 0 auto; padding: 0 20px 32px; }
.card { background: #171a21; border: 1px solid #262b36; border-radius: 12px; padding: 18px; margin: 16px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="password"], input[type="file"] { flex: 1; min-width: 220px; padding: 10px 12px; border-radius: 8px; border: 1px solid #333a48; background: #0f1115; color: #fff; }
button { padding: 10px 16px; border-radius: 8px; border: 0; background: #2f81f7; color: #fff; cursor: pointer; font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; border: 1px solid #333a48; color: #e8eaf0; }
.muted { color: #9aa3b2; font-size: 14px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.video-card { background: #171a21; border: 1px solid #262b36; border-radius: 12px; overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.video-card .body { padding: 12px 14px; }
.video-card h3 { margin: 0 0 6px; font-size: 15px; word-break: break-word; }
.video-card .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.video-card .actions a { color: #7aa7ff; font-size: 13px; }
.delete-btn { background: #a33; padding: 6px 10px; font-size: 13px; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.login-card input { width: 100%; }
.small { font-size: 13px; }
.progress { height: 10px; background: #262b36; border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0%; background: #2f81f7; transition: width .2s; }
