/* Poster shelves retain the existing blue palette; artwork is the visual focus. */
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 24px; border: 0; }
.video-list, .episode-list { scroll-margin-top: 16px; }
.video-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "poster poster" "title title" "volume size" "watch watch" "actions actions"; gap: 8px; align-content: start; align-items: start; border: 0; padding: 0; min-height: 0; }
.video-list > li h2 { grid-area: title; font-size: 16px; line-height: 1.4; height: 2.8em; margin: 4px 0 0; }
.library-shell .video-list .video-open { align-items: flex-start; width: 100%; height: 100%; min-height: 0; max-height: 2.8em; padding: 0; overflow: hidden; line-height: 1.4; }
.video-list .video-open::before { margin-top: 1px; }
.video-list .video-volume { grid-area: volume; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-list .video-size { grid-area: size; font-size: 12px; white-space: nowrap; }
.library-shell .movie-artwork { grid-area: poster; display: block; position: relative; aspect-ratio: 2 / 3; padding: 0; width: 100%; min-height: 0; overflow: hidden; background: #192838; border: 1px solid #34475b; border-radius: 6px; }
.movie-artwork:hover { border-color: #87b7d8; }
.movie-artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.movie-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #718ba3; font: 400 74px/1 Georgia, serif; }
img[data-artwork-state] { opacity: 0; transition: opacity .15s ease; }
img[data-artwork-state="loading"], img[data-artwork-state="loaded"] { opacity: 1; }
.movie-card-actions { grid-area: actions; display: flex; justify-content: space-between; gap: 10px; }
.library-shell .movie-text-button, .movie-text-button { min-height: 32px; width: auto; background: transparent; color: #b9cbde; border: 0; padding: 4px 0; font-size: 12px; font-weight: 400; text-align: left; margin: 0; }
.movie-text-button:hover { color: #edf1f5; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.movie-dialog { position: fixed; width: min(920px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 40px; overflow: auto; color: #edf1f5; background: #14202e; border: 1px solid #53657a; border-radius: 12px; }
.movie-dialog::backdrop { background: #060c14cc; }
.movie-close { position: absolute; right: 14px; top: 12px; width: 36px; min-height: 36px; margin: 0; background: transparent; color: #b9cbde; font: 28px/1 sans-serif; padding: 0; }
.movie-close:hover { background: #1c2c3f; }
.movie-detail-layout { display: grid; grid-template-columns: minmax(140px, 245px) minmax(0, 1fr); gap: 35px; align-items: start; }
.movie-detail-cover { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: #192838; border: 1px solid #34475b; border-radius: 5px; }
.movie-detail-cover > span { position: absolute; inset: 0; display: grid; place-items: center; color: #718ba3; font: 74px Georgia, serif; }
.movie-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.movie-detail-year { font-size: 14px; color: #b9cbde; margin: 0 0 9px; min-height: 20px; }
.movie-detail-body h2 { font: 400 clamp(28px, 4vw, 36px)/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0 25px 22px 0; overflow-wrap: anywhere; }
.movie-detail-overview { font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 22px; }
#movie-origin { font-size: 12px; margin-bottom: 22px; overflow-wrap: anywhere; }
.movie-detail-actions, .movie-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.movie-dialog button:not(.movie-close):not(.movie-text-button) { width: auto; min-height: 42px; padding: 0 18px; margin: 0; }
.movie-status { font-size: 14px; line-height: 1.6; margin: 18px 0 0; }
.movie-status:empty { display: none; }
.movie-status.is-error { color: #f1b4a8; }
.movie-edit-form { margin-top: 28px; }
.movie-edit-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.movie-edit-form legend { font-size: 18px; margin-bottom: 20px; }
.movie-edit-form label, .movie-artwork-editor label { display: block; }
.movie-edit-form input { height: 44px; margin-bottom: 18px; }
.movie-edit-form textarea { width: 100%; min-height: 130px; resize: vertical; border: 1px solid #53657a; border-radius: 6px; padding: 12px; background: #1c2c3f; color: #edf1f5; font: inherit; line-height: 1.6; }
.movie-edit-form textarea:focus-visible { outline: 2px solid #87b7d8; outline-offset: 3px; }
.movie-artwork-editor { margin-top: 28px; padding-top: 22px; border-top: 1px solid #34475b; }
.movie-artwork-editor h3 { font-size: 18px; font-weight: 500; margin: 0 0 18px; }
.movie-artwork-editor input[type="file"] { height: auto; min-height: 42px; padding: 8px; margin: 0; font-size: 13px; }
.movie-help { font-size: 12px; line-height: 1.65; margin: 10px 0 16px; }
#movie-reset { margin-top: 24px; font-size: 13px; }
@media (max-width: 740px) { .video-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 24px 16px; } .video-list > li h2 { font-size: 14px; } }
@media (max-width: 600px) {
  .movie-dialog { padding: 28px 22px; max-height: calc(100svh - 24px); }
  .movie-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .movie-detail-cover { width: 132px; }
  .movie-detail-body h2 { margin-right: 0; }
}
