:root { --bg: #0a0a0a; --panel: #151515; --orange: #ff7a00; --white: #f2f2f2; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: system-ui, sans-serif; }
body.center { display: grid; place-items: center; min-height: 100vh; }
body.center p { color: var(--orange); letter-spacing: .05em; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 32px 16px; }
h1 { color: var(--orange); font-size: 1.3rem; margin: 0 0 24px; }

input, button { font: inherit; border-radius: 6px; border: 1px solid #333; background: var(--panel); color: var(--white); padding: 8px 12px; }
input:focus { outline: none; border-color: var(--orange); }
button { cursor: pointer; }
button:hover { border-color: var(--orange); color: var(--orange); }
button.main { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 600; }
button.main:hover { background: #ff9a33; color: #000; }
button.del:hover { border-color: #e5484d; color: #e5484d; }

#login { display: flex; gap: 8px; max-width: 400px; }
#login input { flex: 1; }

#drop { position: relative; display: grid; place-items: center; height: 180px; border: 2px dashed #3a3a3a; border-radius: 12px; color: #888; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s, color .15s; margin-bottom: 12px; text-align: center; padding: 0 16px; }
#drop:hover, #drop.over { border-color: var(--orange); color: var(--orange); background: rgba(255, 122, 0, .06); }
#drop.over { border-style: solid; }
#drop .fill { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--orange); }
#msg { min-height: 1.2em; color: #e5484d; font-size: .9rem; margin-bottom: 12px; }

#list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.card { background: var(--panel); border-radius: 10px; overflow: hidden; }
.card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.card .info { padding: 10px 12px; }
.card .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .size { color: #888; font-size: .8rem; margin: 2px 0 10px; }
.card .btns { display: flex; gap: 8px; }
.card .btns .copy { flex: 1; }
#ask { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); padding: 16px; z-index: 10; }
#ask .box { background: var(--panel); border: 1px solid #2a2a2a; border-top: 3px solid var(--orange); border-radius: 10px; padding: 20px; width: 100%; max-width: 360px; }
#ask .box p { margin: 0 0 18px; word-break: break-word; }
#ask .btns { display: flex; justify-content: flex-end; gap: 8px; }
#ask #ask-ok { background: #e5484d; border-color: #e5484d; color: #fff; font-weight: 600; }
#ask #ask-ok:hover { background: #ee6a6e; }
.hidden { display: none !important; }