:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101117; color: #f3f3f6; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; padding: 1.5rem clamp(1rem, 5vw, 5rem); border-bottom: 1px solid #30323d; }
header span { color: #b5b7c5; }
.brand { font-weight: 750; font-size: 1.3rem; color: inherit; text-decoration: none; }
main { max-width: 64rem; margin: 0 auto; padding: clamp(2rem, 8vw, 7rem) 1.5rem; }
h1 { max-width: 16ch; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.12; }
p { max-width: 60ch; line-height: 1.6; overflow-wrap: anywhere; }
.eyebrow { color: #b8afff; letter-spacing: .15em; font-size: .8rem; }
.button, button { display: inline-block; padding: .9rem 1.3rem; border: 0; border-radius: .6rem; background: #d1caff; color: #17132d; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
:focus-visible { outline: 3px solid #f9d97b; outline-offset: 5px; }
section { padding: 1.5rem; margin-top: 2rem; background: #1c1e28; border-radius: 1rem; }
[hidden] { display: none !important; }

form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-block: 1rem; }
label { display: grid; gap: .4rem; max-width: 100%; }
input, select { min-width: 0; max-width: 100%; padding: .65rem; font: inherit; color: inherit; background: #101117; border: 1px solid #55586b; border-radius: .3rem; }
input[type=file] { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
.movie { border-top: 1px solid #4a4c60; margin-top: 1.5rem; padding-top: 1rem; }
.movie h3, pre { overflow-wrap: anywhere; white-space: pre-wrap; }
.movie-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
progress { width: 100%; margin-block: 1rem; }
#quota-admin, #history { padding: 0; }

.inspection, .preparation { margin-block: 1rem; padding: 1rem; background: #101117; border-radius: .6rem; }
.inspection li { overflow-wrap: anywhere; margin-block: .5rem; }

#watch-view { padding: 0; background: transparent; }
#watch-stage { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 240px; background: #000; }
#watch-stage video, #watch-stage .plyr { display:block; width:100%; height:100%; object-fit:contain; }
#watch-stage .plyr__video-wrapper { height:100%; }
#watch-stage section { margin:0; }
#watch-stage header { padding:0; gap:.5rem; border:0; }
#watch-stage .plyr { --plyr-color-main:#8070e0; --plyr-font-family:system-ui,sans-serif; }
#cinema-settings { position: absolute; z-index: 5; right: 12px; bottom: 60px; box-sizing: border-box; width: min(320px, calc(100% - 24px)); max-height: calc(100% - 76px); overflow: auto; overscroll-behavior: contain; padding: 12px 16px; border: 1px solid #ffffff40; border-radius: 10px; background: #171b23f5; box-shadow: 0 4px 20px #0008; }
#cinema-settings header { display: flex; align-items: center; justify-content: space-between; }
#cinema-settings-close { min-width: 36px; min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: white; font-size: 24px; cursor: pointer; }
#cinema-settings label { display: block; margin: 12px 0 6px; }
#cinema-settings select { width: 100%; min-height: 40px; padding: 6px; color: #fff; background: #252b36; border: 1px solid #717784; border-radius: 6px; font: inherit; }
#cinema-settings select:disabled { opacity: .6; }
#cinema-settings p:empty, #cinema-play-error:empty { display: none; }
#cinema-settings p { margin: 8px 0; }
#cinema-play-error { position: absolute; z-index: 6; top: 8px; left: 12px; right: 12px; margin: 0; padding: 8px; background: #521f25ee; border-radius: 6px; }
.cinema-settings-open .plyr__controls { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
:focus-visible { outline: 2px solid #80cfff; outline-offset: 2px; }
@media (max-width: 480px) { .plyr__time--duration { display: none; } .plyr__controls { gap: 2px; padding-left: 6px; padding-right: 6px; } }
@media (max-width: 480px) {
  .plyr__volume { min-width: 32px; width: 32px; max-width: 32px; }
  .plyr__volume input[data-plyr="volume"] { display: none; }
}

.access-editor { display: grid; padding: 1rem; border: 1px solid #55586b; border-radius: .6rem; }
.access-selected { min-width: 0; }
.access-users { max-height: 15rem; overflow: auto; margin-block: 1rem; }
.access-users label { display: flex; align-items: center; overflow-wrap: anywhere; margin-block: .5rem; }
.access-editor textarea { width: 100%; min-width: 0; padding: .65rem; font: inherit; color: inherit; background: #101117; border: 1px solid #55586b; border-radius: .3rem; }

#public-movies h3 a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .15em; }
