.admin-body { min-height: 100vh; background: #0b0c0a; }
.admin-header { position: relative; }
.admin-main { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 74px 0 90px; }
.admin-title { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid #4a4d45; padding-bottom: 34px; }
.admin-title p { grid-column: 1 / -1; margin: 0 0 16px; color: #9ea395; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.admin-title h1 { margin: 0; color: #e4e2d7; font: 500 clamp(64px, 10vw, 130px)/.78 "Arial Narrow", Impact, sans-serif; letter-spacing: -.055em; }
.admin-title span { max-width: 360px; color: #aaa99f; font-size: 14px; line-height: 1.8; }
.login-panel { width: min(690px, 100%); margin: 72px auto 0; padding: 28px; border: 1px solid #50534a; background: #171916; box-shadow: 12px 14px 0 rgba(0,0,0,.28); }
.login-panel label, .tape-picker label { display: block; margin-bottom: 12px; color: #c9ccbd; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.login-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.login-panel input, .tape-picker select { width: 100%; min-height: 46px; border: 1px solid #55594f; border-radius: 0; background: #090a09; color: #eceadf; padding: 0 13px; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.login-panel input:focus, .tape-picker select:focus, .timeline-row input:focus { outline: 2px solid #929c79; outline-offset: 2px; }
.login-panel p, .save-status { margin: 13px 0 0; color: #858a7e; font-size: 12px; }
.login-panel p[data-error="true"], .save-status[data-error="true"] { color: #ba6a62; }
.admin-button { min-height: 44px; border: 1px solid #65695d; border-radius: 0; background: #22241f; color: #dad8cd; padding: 0 18px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; cursor: pointer; }
.admin-button:hover { background: #30342b; border-color: #8a907d; }
.admin-button:disabled { cursor: not-allowed; opacity: .4; }
.admin-button-primary { background: #4d5841; border-color: #7b866b; color: #f0eee3; }
.admin-button-primary:hover { background: #5a664c; }
.cover-editor { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(420px, 1.45fr) minmax(270px, .8fr); gap: 28px; margin-top: 48px; align-items: start; }
.tape-picker, .cover-preview-panel { border: 1px solid #464940; background: #151714; padding: 20px; }
.tape-picker dl { margin: 24px 0; border-top: 1px solid #3c3e38; }
.tape-picker dl div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #30322d; padding: 12px 0; }
.tape-picker dt { color: #777c70; font-size: 11px; }
.tape-picker dd { margin: 0; color: #d3d1c7; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.admin-text-button { padding: 0; border: 0; background: none; color: #8f9487; text-decoration: underline; cursor: pointer; }
.editor-video-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #595c53; background: #030403; box-shadow: 11px 13px 0 rgba(0,0,0,.3); }
.editor-video-wrap::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.15) 4px); }
.editor-video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; }
.editor-rec { position: absolute; z-index: 2; top: 14px; left: 15px; color: #e4e2d7; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-shadow: 1px 1px #000; }
.editor-rec i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #a73932; }
.timeline-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; margin-top: 22px; color: #9fa397; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline-row span:last-child { text-align: right; }
.timeline-row input { width: 100%; accent-color: #7b866b; }
.capture-button { width: 100%; margin-top: 14px; }
.cover-preview-panel > p:first-child { margin: 0 0 13px; color: #8f9487; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.cover-preview-frame { aspect-ratio: 4 / 3; overflow: hidden; background: #030403; border: 8px solid #090a09; outline: 1px solid #4b4e45; }
.cover-preview-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-actions { display: grid; gap: 9px; margin-top: 18px; }

.upload-panel { margin-top: 48px; padding: 24px; border: 1px solid #52564c; background: #141613; box-shadow: 12px 14px 0 rgba(0,0,0,.28); }
.upload-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #3d4039; }
.upload-heading p { margin: 0 0 9px; color: #8d9385; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.upload-heading h2 { margin: 0; color: #e0ded3; font: 500 34px/1 "Arial Narrow", Impact, sans-serif; letter-spacing: .02em; }
.upload-heading > span { color: #888d80; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.upload-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(380px, 1.35fr) minmax(190px, .55fr); gap: 24px; align-items: center; padding-top: 24px; }
.choose-video-button { width: 100%; }
.upload-file-name { min-height: 34px; margin: 12px 0 20px; color: #aaa99f; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.upload-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-date-row label { color: #8f9487; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.upload-date-row input { display: block; width: 100%; min-height: 42px; margin-top: 8px; padding: 0 10px; border: 1px solid #55594f; border-radius: 0; background: #090a09; color: #eceadf; color-scheme: dark; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.upload-help { margin: 16px 0 0; color: #777c70; font-size: 11px; line-height: 1.7; }
.upload-preview-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #595c53; background: #030403; }
.upload-preview-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; }
.upload-submit { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.upload-submit .admin-button { width: 100%; }
.upload-progress { height: 4px; margin-top: 15px; overflow: hidden; background: #292c27; }
.upload-progress i { display: block; width: 0; height: 100%; background: #8c9a78; transition: width .2s ease; }
.upload-status { line-height: 1.65; }

@media (max-width: 980px) {
  .cover-editor { grid-template-columns: 1fr 1fr; }
  .tape-picker { grid-column: 1 / -1; }
  .upload-layout { grid-template-columns: 1fr 1.35fr; }
  .upload-submit { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .admin-main { width: min(100% - 24px, 1500px); padding-top: 44px; }
  .admin-title { display: block; }
  .admin-title span { display: block; margin-top: 25px; }
  .login-row, .cover-editor { grid-template-columns: 1fr; }
  .cover-editor > * { grid-column: auto; }
  .login-row .admin-button { width: 100%; }
  .upload-panel { padding: 16px; }
  .upload-heading { display: block; }
  .upload-heading > span { display: block; margin-top: 12px; }
  .upload-layout, .upload-date-row { grid-template-columns: 1fr; }
  .upload-submit { grid-column: auto; }
}
