:root { color-scheme: dark; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,"PingFang SC","Microsoft YaHei",sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: #eef2ff; background: radial-gradient(ellipse 60% 35% at 50% -10%,#203b74 0,transparent 100%),#080d18; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 13px; letter-spacing: .16em; font-weight: 750; }
.brand-icon { width: 30px; height: 30px; background: linear-gradient(145deg,#4b9aff,#6355ff); color: white; border-radius: 9px; display: inline-grid; place-items: center; font-size: 12px; padding-left: 2px; box-shadow: 0 5px 25px #335aff33; }
.brand-secondary { color: #7d8ba8; }
.tag { display: inline-block; border: 1px solid #354c70; border-radius: 99px; color: #9bc7ff; letter-spacing: .06em; padding: 5px 11px; font-size: 11px; font-weight: 650; background: #438aff12; }
h1 { letter-spacing: -.035em; line-height: 1.16; font-size: clamp(25px,4vw,35px); margin: 15px 0 10px; }
h2 { font-size: 18px; margin: 0 0 17px; font-weight: 650; }
p { line-height: 1.6; }
.muted { color: #8e9db6; font-size: 13px; }
.watch-layout { width: min(1080px,calc(100% - 32px)); margin: 0 auto; padding: clamp(24px,5vw,70px) 0 24px; }
.watch-layout>.brand { margin-bottom: 28px; }
.watch-card { border: 1px solid #28354b; border-radius: 23px; padding: clamp(15px,2.8vw,31px); background: linear-gradient(140deg,#141d30ec,#101725f2); box-shadow: 0 22px 90px #0005; }
.watch-heading { margin-bottom: 25px; }
.watch-heading p { color: #91a0bb; font-size: 14px; margin: 0; }
.video-shell { width: 100%; aspect-ratio: 16/9; border-radius: 13px; background: #030507; overflow: hidden; position: relative; border: 1px solid #29354b; }
.video-shell video { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: radial-gradient(circle at center,#0f1e36 0%,#030507 76%); text-align: center; padding: 24px; color: #9aa9c2; font-size: 13px; pointer-events: none; }
.placeholder-play { height: 62px; width: 62px; border: 1px solid #3e5682; border-radius: 50%; display: grid; place-items: center; color: #a4c4f3; background: #ffffff0a; padding-left: 3px; }
.watch-bottom { display: flex; align-items: center; gap: 10px; padding-top: 16px; color: #8393ad; font-size: 12px; flex-wrap: wrap; }
.watch-dot { background: #53637b; width: 3px; height: 3px; border-radius: 50%; }
footer { margin-top: 27px; font-size: 12px; color: #667894; text-align: center; }
.admin-layout { width: min(1120px,calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(45px,7vw,80px); gap: 12px; }
.link-subtle,.text-link { color: #9ec1f4; font-size: 13px; }
.link-subtle:hover,.text-link:hover { text-decoration: underline; }
.panel { border: 1px solid #28354b; border-radius: 19px; padding: clamp(21px,3vw,29px); background: #121b2bcc; box-shadow: 0 10px 45px #0002; }
.auth-panel { width: min(440px,100%); margin: 0 auto; }
.auth-panel .muted { margin-bottom: 25px; }
.auth-panel form { display: grid; gap: 12px; }
label { font-size: 13px; color: #c2d0e9; }
input[type=password] { display: block; width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #35465d; border-radius: 10px; outline: none; background: #0c1422; color: #f5f7ff; }
input[type=password]:focus { border-color: #5c9bf7; box-shadow: 0 0 0 3px #559aff22; }
button { border: 1px solid transparent; border-radius: 10px; padding: 12px 18px; min-height: 43px; font-weight: 650; font-size: 13px; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible,a:focus-visible,.file-picker:focus-within { outline: 2px solid #83baff; outline-offset: 3px; }
.primary { background: linear-gradient(110deg,#347ee8,#6558eb); color: white; }
.primary:not(:disabled):hover { filter: brightness(1.13); }
.secondary { border-color: #394863; background: #1c293e; color: #c8d9f6; }
.secondary:not(:disabled):hover { background: #2b3a52; }
.danger { color: #ffb2b5; }
.feedback { min-height: 19px; font-size: 12px; color: #a9c5ed; margin: 12px 0 0; overflow-wrap: anywhere; }
.feedback.error { color: #ff929a; }
.feedback.ok { color: #72dbb1; }
.dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.dashboard-title .muted { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 18px; }
.current-video { background: #0b1422; border: 1px solid #283852; border-radius: 13px; padding: 20px; margin-bottom: 18px; overflow-wrap: anywhere; line-height: 1.55; }
.current-video strong { display: block; font-size: 14px; margin-bottom: 9px; }
.current-video small { color: #93a3bd; font-size: 12px; }
.file-picker { display: grid; place-items: center; gap: 9px; min-height: 164px; padding: 17px; text-align: center; border: 1px dashed #5375a3; background: #0a1728; border-radius: 13px; cursor: pointer; transition: border-color .2s,background .2s; margin: 18px 0; }
.file-picker:hover { border-color: #8ebaff; background: #10223a; }
.file-picker strong { font-weight: 600; font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.file-picker small { font-size: 11px; color: #879ab5; }
.picker-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #223c61; color: #bcdcff; font-size: 21px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.progress-row,.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 12px; color: #abbcd6; }
.progress-row strong { color: #eaf0ff; }
progress { appearance: none; display: block; width: 100%; border: none; height: 8px; border-radius: 10px; overflow: hidden; background: #2c3e58; }
progress::-webkit-progress-bar { background: #2c3e58; }
progress::-webkit-progress-value { background: #679ef9; border-radius: 10px; }
progress::-moz-progress-bar { background: #679ef9; }
.progress-meta { color: #7487a4; margin-bottom: 16px; }
.notice { margin: 23px 0; border-left: 2px solid #3e577a; padding: 5px 15px; color: #8799b6; font-size: 12px; }
code { color: #b9caff; }
@media(max-width:760px) { .admin-grid { grid-template-columns: 1fr; } .dashboard-title { align-items: flex-start; } .watch-card { border-radius: 16px; } .video-shell { border-radius: 9px; } }
@media(max-width:430px) { .admin-header { margin-bottom: 34px; } .brand-secondary { display: none; } .dashboard-title { flex-direction: column; } .dashboard-title>button { align-self: flex-start; } }

.library-panel { margin-top: 20px; }
.library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.library-heading h2 { margin-bottom: 6px; }
.library-heading .muted { margin: 0 0 18px; }
.library-heading > button { flex-shrink: 0; }
.video-list { display: grid; gap: 10px; }
.video-item { border: 1px solid #2e3b52; background: #0d1726; border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.video-meta { min-width: 0; flex: 1; }
.video-title { display: block; font-size: 14px; overflow-wrap: anywhere; }
.video-meta small { display: block; font-size: 12px; color: #8d9db9; margin-top: 7px; overflow-wrap: anywhere; }
.video-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.video-actions button { padding: 9px 12px; min-height: 36px; }
.current-label { color: #87deb2; font-weight: 700; font-size: 12px; display: inline-block; margin: 0 0 7px; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 700px) { .video-item { flex-direction: column; align-items: stretch; } .video-actions { flex-shrink: 1; } .video-actions button { flex: 1; } .library-heading { flex-direction: column; } }

.video-placeholder button { pointer-events: auto; position: relative; z-index: 3; }
