/* Featured video and compact archive, using the existing four video slots. */
#movies { --movie-line: #acbfd06b; --movie-ink: #24364d; }
#movies .movie-featured {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
.movie-featured-art {
  position: relative; align-self: start; min-width: 0; padding: 0 12px 12px;
  border: 2px solid transparent; border-radius: 16px 16px 8px 8px;
  background: linear-gradient(145deg, #f4fcff, #eef2ff 60%, #f7faff) padding-box,
    linear-gradient(120deg, #68dcf0, #5591ef 52%, #ac9bea 82%, #80ddec) border-box;
  box-shadow: 0 12px 36px #4e8cc618;
}
.movie-featured-art::before {
  content: ''; position: absolute; bottom: -2px; left: 7%; width: 18%; height: 3px;
  background: #368bd9; border-radius: 3px; pointer-events: none;
}
.movie-window-bar { height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #416c9b; font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.movie-window-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.movie-window-bar > span:first-child i { width: 5px; height: 5px; background: #368bd9; box-shadow: 3px -3px 0 #8be6ed; }
.movie-window-dots i { width: 5px; height: 5px; border: 1px solid #87acd7; }
#movies .video { min-width: 0; border: 1px solid #c6d3e0; box-shadow: none; }
#movies .movie-featured .video { border-color: #87b2de; border-radius: 5px; background: #142847; overflow: hidden; }
#movies .video img { display: block; width: 100%; height: 100%; object-fit: cover; }
#movies .video img[hidden] { display: none; }
#movies .movie-play-trigger { padding: 0; border: 0; background: transparent; color: inherit; border-radius: 4px; }
#movies .movie-inline-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.movie-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 24px 8px 8px;
  border: 1px solid #b9f5ff; border-radius: 40px;
  background: linear-gradient(115deg, #1356a2ed, #202f67ed); color: #fff;
  font: 600 11px ui-monospace, monospace; letter-spacing: .15em;
  box-shadow: 0 5px 28px #16264e38, inset 0 0 0 3px #c9faff12;
  transition: transform .2s, box-shadow .2s;
}
.movie-play-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #7ce4ff; border-radius: 50%; background: linear-gradient(135deg, #d8ffff, #8fc6ff); }
.movie-play-icon svg { width: 24px; fill: #21599d; }
.movie-thumbnail:hover .movie-play, .movie-thumbnail:focus-visible .movie-play { transform: translate(-50%, -50%) scale(1.045); box-shadow: 0 5px 28px #16264e38, 0 0 0 5px #c9faff25; }
#movies .movie-featured .movie-caption { display: flex; flex-direction: column; min-width: 0; margin: 15px 0; color: var(--movie-ink); }
.movie-counter { display: flex; align-items: center; gap: 14px; margin: 0; font: 11px/1.5 ui-monospace, monospace; letter-spacing: .18em; color: #526a80; }
.movie-counter i { width: 20px; height: 1px; background: #8da6ba; }
.movie-counter .movie-latest-label, .movie-back-latest { padding: 5px 9px; border: 1px solid #93b8e1; border-radius: 5px; background: #f5fbff; color: #326bb0; font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.movie-back-latest { min-height: 36px; }
.movie-featured-info { margin: auto 0; padding-block: 24px; }
#movies .movie-featured h3 { margin: 0 0 14px; font: 800 clamp(26px, 2.8vw, 42px)/1.15 'Barlow Condensed', 'Noto Sans JP', sans-serif; overflow-wrap: anywhere; background: linear-gradient(115deg, #286bd0, #408ed1 65%, #5a76ce); background-clip: text; color: transparent; }
#movies .movie-format { margin: 0; font-size: 11px; line-height: 1.6; letter-spacing: .06em; color: #586e83; }
#movies time { display: block; font: 11px/1.6 ui-monospace, monospace; letter-spacing: .14em; color: #526a80; }
.movie-featured-info time { margin-top: 20px; }
.movie-release { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 18px; font: 11px/1.6 ui-monospace, monospace; color: #426387; }
#movies .movie-release time { margin: 0; font-size: 12px; color: #426387; }
.movie-credits { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.movie-credits li { position: relative; display: flex; gap: 5px; padding-left: 11px; font-size: 11px; line-height: 1.6; color: #456381; }
.movie-credits li::before { content: ''; width: 3px; height: 3px; position: absolute; left: 0; top: .7em; background: #4d9bdd; }
.movie-credits strong { font-weight: 500; color: #273e5b; overflow-wrap: anywhere; }
.movie-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.movie-text-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid #869fb5;
  border-radius: 0; background: transparent; color: #316fae;
  font: 11px/1.6 ui-monospace, monospace; letter-spacing: .16em; text-align: left;
  transition: color .2s, border-color .2s;
}
.movie-text-link > span { font-size: 18px; }
.movie-text-link:hover { color: #1766aa; border-color: #3195dc; }
.movie-share-status { margin: 0; color: #496479; font-size: 11px; line-height: 1.6; }
.movie-share-url { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid #9bb8d2; background: #fff; color: #24364d; }
.movie-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 64px 0 20px; }
#movies .movie-list-heading h3, .movie-list-heading > span { margin: 0; font: 11px/1.5 ui-monospace, monospace; letter-spacing: .2em; color: #526a80; }
#movies .movie-archive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
#movies .movie-row {
  margin: 0; border: 1px solid #b8cfe46b; border-left: 3px solid #86b9e7; border-radius: 6px;
  display: grid; grid-template-columns: 42px clamp(140px, 14vw, 190px) minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 2.3vw, 36px); padding: 18px 20px;
  background: linear-gradient(105deg, #ffffffb8, #ecf7ff80); color: var(--movie-ink); transition: background .2s;
}
.movie-row-number { font: 700 34px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; background: linear-gradient(135deg, #3470d4, #4aabd6); background-clip: text; color: transparent; }
#movies .movie-row h3 { margin: 0 0 8px; font-size: clamp(15px, 1.6vw, 23px); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.movie-row-meta { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); }
.movie-row-action { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid #85b7e6; border-radius: 24px; background: linear-gradient(120deg, #f6ffff, #e0eeff); color: #285f9f; font: 600 10px ui-monospace, monospace; letter-spacing: .12em; transition: background .2s, box-shadow .2s; }
.movie-row-action svg { width: 17px; fill: currentColor; }
.movie-row-action:hover { background: #d4edff; box-shadow: 0 0 0 3px #7bbde327; }
@media(max-width:900px) {
  #movies .movie-featured { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 28px; }
  .movie-featured-art { padding: 0 9px 9px; }
  .movie-featured-info { padding-top: 20px; margin-bottom: 18px; }
  .movie-row-meta { flex-direction: column; align-items: flex-end; gap: 10px; }
}
@media(max-width:640px) {
  #movies .movie-featured { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .movie-featured-art { margin-inline: 3px; padding: 0 7px 7px; }
  .movie-window-bar { height: 30px; font-size: 8px; }
  .movie-play { padding: 6px 18px 6px 6px; gap: 10px; font-size: 10px; }
  .movie-play-icon { width: 34px; height: 34px; }
  #movies .movie-featured .movie-caption { margin: 0 7px; }
  .movie-counter { font-size: 10px; gap: 12px; }
  .movie-featured-info { padding-top: 16px; margin-bottom: 14px; }
  #movies .movie-featured h3 { font-size: 30px; margin-bottom: 6px; }
  .movie-actions { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; }
  .movie-text-link { font-size: 10px; letter-spacing: .12em; }
  .movie-share-status { width: 100%; }
  .movie-list-heading { margin-top: 38px; margin-bottom: 14px; }
  #movies .movie-list-heading h3, .movie-list-heading > span { font-size: 9px; letter-spacing: .12em; }
  #movies .movie-row { grid-template-columns: 27px minmax(0, 29%) minmax(0, 1fr); gap: 5px 9px; padding: 14px 7px; }
  .movie-row-number { grid-row: 1 / 3; font-size: 27px; }
  .movie-row .video { grid-row: 1 / 3; grid-column: 2; }
  .movie-row-copy { grid-row: 1; grid-column: 3; }
  #movies .movie-row h3 { margin-bottom: 3px; font-size: 14px; }
  #movies .movie-row .movie-format { font-size: 9px; letter-spacing: 0; }
  .movie-row-meta { grid-row: 2; grid-column: 3; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  #movies .movie-row time { font-size: 8px; letter-spacing: .05em; }
  .movie-row-action { padding: 5px 13px; font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .movie-play, .movie-text-link, .movie-row-action { transition: none; }
}
