:root {
  color-scheme: dark;
  font-family: "Segoe UI", Cantarell, sans-serif;
  color: #edf1f5;
  background: #14202e;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.entry {
  min-height: 100svh;
  width: min(100% - 100px, 1060px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 100px;
  padding-block: 70px;
}
.identity { position: relative; padding-block: 32px; }
.mark { display: block; width: 64px; height: 64px; margin-bottom: 23px; color: #edf1f5; }
.identity h1 {
  font: 400 clamp(68px, 9vw, 112px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  margin: 0 0 23px;
}
.purpose { color: #a6b5c6; font-size: 19px; line-height: 1.6; margin: 0; }
.film-lines { display: flex; gap: 9px; margin-top: 55px; height: 72px; max-width: 260px; }
.film-lines span { flex: 1; border: 1px solid #34475b; border-radius: 5px; }
.film-lines span:nth-child(2) { border-color: #5c7b98; }
.access { padding: 45px 0 45px 45px; border-left: 1px solid #34475b; }
.access h2 { margin: 0 0 12px; font-size: 30px; font-weight: 550; letter-spacing: -.025em; }
.description { color: #a6b5c6; line-height: 1.6; margin: 0 0 32px; max-width: 38ch; }
.description strong { color: #edf1f5; font-weight: 600; }
form { display: flex; flex-direction: column; }
label { font-size: 14px; font-weight: 550; margin: 0 0 9px; }
input {
  width: 100%; height: 50px; border: 1px solid #53657a; border-radius: 6px;
  color: #edf1f5; background: #1c2c3f; padding: 0 14px; margin: 0 0 23px;
  outline: 0; transition: border-color .12s;
}
input:focus { border-color: #b9cbde; box-shadow: 0 0 0 3px #87b7d830; }
input:-webkit-autofill { -webkit-text-fill-color: #edf1f5; box-shadow: 0 0 0 40px #1c2c3f inset; }
button {
  min-height: 49px; width: 100%; border: 1px solid transparent; border-radius: 6px;
  background: #edf1f5; color: #14202e; font-weight: 650; cursor: pointer; margin-top: 5px;
}
button:hover { background: #d6e2ed; }
button:focus-visible { outline: 3px solid #87b7d8; outline-offset: 4px; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: transparent; border-color: #697f95; color: #edf1f5; }
.secondary:hover { background: #1c2c3f; }
.error { color: #f1b4a8; font-size: 14px; line-height: 1.55; margin: -3px 0 20px; }
.local-note { color: #a6b5c6; font-size: 12px; margin: 27px 0 0; }
.role { display: inline-block; border: 1px solid #53657a; color: #b9cbde; padding: 6px 10px; border-radius: 4px; margin: 0 0 24px; font-size: 13px; }
#loading { color: #a6b5c6; line-height: 1.6; }
@media (max-width: 740px) {
  .entry { width: min(100% - 40px, 420px); grid-template-columns: 1fr; gap: 35px; padding-block: 42px; }
  .identity { padding: 0; }
  .mark { width: 38px; height: 38px; margin-bottom: 12px; }
  .identity h1 { font-size: 66px; margin-bottom: 14px; }
  .purpose { font-size: 16px; }
  .film-lines { display: none; }
  .access { border-left: 0; border-top: 1px solid #34475b; padding: 32px 0 0; }
  .access h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The library shares the quiet blue palette and serif identity of the entry page. */
.muted { color: #a6b5c6; line-height: 1.6; }
.library-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1220px; margin: auto; min-height: 112px; padding: 24px 40px;
  border-bottom: 1px solid #34475b;
}
.library-brand { display: flex; align-items: center; gap: 15px; color: #edf1f5; text-decoration: none; }
.library-brand img { width: 36px; height: 36px; }
.library-brand span { font: 400 35px/1 Georgia, serif; letter-spacing: -.05em; }
.account-menu { display: flex; align-items: center; gap: 15px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.account-menu .role { margin: 0; padding: 5px 9px; font-size: 12px; }
.library-shell button { width: auto; min-height: 43px; padding: 0 18px; margin: 0; }
.account-menu button { min-height: 37px; padding-inline: 13px; font-size: 13px; }
.library-body { width: min(100% - 80px, 1140px); margin: 0 auto; padding-bottom: 60px; }
.library-body > .error { margin-top: 20px; }
.library-nav { display: flex; gap: 30px; padding-top: 22px; margin-bottom: 45px; }
.library-nav .nav-tab { background: none; color: #a6b5c6; border-radius: 0; border-bottom: 2px solid transparent; padding: 8px 0 14px; font-weight: 500; }
.library-nav .nav-tab[aria-pressed="true"] { color: #edf1f5; border-bottom-color: #87b7d8; }
.library-nav .nav-tab:hover { color: #edf1f5; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 33px; }
.page-heading h1 { font: 400 clamp(34px, 5vw, 48px)/1.15 Georgia, serif; letter-spacing: -.035em; margin: 0 0 12px; }
.page-heading p { margin: 0; }
.page-heading > button { flex-shrink: 0; }
.continue-section { margin: 0 0 34px; }
.continue-section h2 { margin: 0 0 18px; font: 400 26px/1.3 Georgia, serif; }
.continue-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.continue-list > li { position: relative; }
.library-shell .continue-open { display: grid; width: 100%; height: 100%; gap: 10px; padding: 17px; text-align: left; background: #192838; color: #edf1f5; border-color: #34475b; font-weight: 400; }
.library-shell .continue-options { position: absolute; top: 7px; right: 7px; min-height: 34px; width: 34px; padding: 0; border: 0; background: transparent; color: #b9cbde; font-size: 23px; line-height: 1; }
.library-shell .continue-options:hover { background: #2b4054; color: white; }
.continue-menu { position: fixed; z-index: 20; width: min(275px, calc(100vw - 24px)); padding: 5px; border: 1px solid #53657a; border-radius: 7px; background: #1c2c3f; box-shadow: 0 8px 30px #0006; }
.library-shell .continue-menu button { width: 100%; min-height: 40px; padding: 10px 12px; font-size: 13px; text-align: left; border: 0; background: transparent; color: #edf1f5; }
.library-shell .continue-menu button:hover { background: #30465b; }
.library-shell .continue-open:hover { background: #203246; border-color: #7890a4; }
.continue-open strong { font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; padding-right: 30px; }
.continue-open span { color: #a6b5c6; font-size: 12px; line-height: 1.5; }
.continue-open progress { appearance: none; -webkit-appearance: none; border: 0; width: 100%; height: 4px; border-radius: 3px; overflow: hidden; background: #34475b; color: #b9d8ef; }
.continue-open progress::-webkit-progress-bar { background: #34475b; }
.continue-open progress::-webkit-progress-value { background: #b9d8ef; }
.continue-open progress::-moz-progress-bar { background: #b9d8ef; }
#continue-status:empty { display: none; }
#continue-status.is-error { color: #f1b4a8; }
@media (max-width: 900px) { .continue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .continue-list { grid-template-columns: minmax(0, 1fr); } }
.library-search { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(170px, 1fr)); gap: 18px 16px; align-items: end; margin-bottom: 24px; }
.library-search label, .access-form > label { display: block; margin-bottom: 9px; }
.library-search input { margin: 0; height: 46px; }
.library-search button { min-height: 46px; }
.catalog-filter-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.catalog-filter-status { color: #a6b5c6; font-size: 13px; line-height: 1.6; margin: -18px 0 26px; }
.catalog-filter-status:empty { display: none; }
.catalog-filter-status.is-error { color: #f1b4a8; }
select { color: #edf1f5; background: #1c2c3f; border: 1px solid #53657a; border-radius: 6px; min-height: 46px; width: 100%; padding: 0 12px; }
select:focus-visible { outline: 2px solid #87b7d8; outline-offset: 3px; }
.list-heading, .video-list > li { display: grid; grid-template-columns: minmax(0, 1fr) 200px 110px; gap: 28px; align-items: center; }
.list-heading { color: #a6b5c6; font-size: 12px; padding: 0 0 15px; border-bottom: 1px solid #53657a; }
.list-heading > :last-child, .video-size { text-align: right; }
.video-list { padding: 0; margin: 0; list-style: none; }
.video-list > li { min-height: 78px; padding-block: 19px; border-bottom: 1px solid #34475b; }
.video-list h2 { font-size: 16px; line-height: 1.5; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.video-volume, .video-size { color: #a6b5c6; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.empty-message { color: #a6b5c6; line-height: 1.8; padding: 35px 0; margin: 0; max-width: 65ch; }
.empty-message.is-error { color: #f1b4a8; }
#catalog-status:empty, #access-status:empty { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; }
.pagination p { font-size: 13px; margin: 0; }
.pagination > div { display: flex; gap: 10px; }
.access-form { max-width: 620px; margin-top: 25px; }
.access-form > select { max-width: 380px; }
.access-form fieldset { border: 0; padding: 0; margin: 30px 0 26px; }
.access-form legend { color: #a6b5c6; font-size: 14px; margin-bottom: 14px; }
.volume-choice { display: flex; align-items: center; gap: 15px; min-height: 61px; border-bottom: 1px solid #34475b; margin: 0; cursor: pointer; font-weight: 400; }
.volume-choice input { width: 18px; height: 18px; margin: 0; accent-color: #87b7d8; flex-shrink: 0; }
.volume-choice span { overflow-wrap: anywhere; }
.access-form > button { align-self: flex-start; }
.access-help { font-size: 13px; margin-top: 30px; }
.network-form { max-width: 680px; margin-top: 26px; }
.network-form fieldset { border: 0; padding: 0; margin: 0 0 25px; }
.network-form legend, .network-form h2, .proxy-recipe h2 { font-size: 21px; font-weight: 500; margin: 0 0 22px; }
.network-form h2 { margin-top: 37px; }
.network-form label, .proxy-recipe label { display: block; }
.network-form input:not([type="checkbox"]) { margin: 0 0 10px; }
.network-form .setting-check { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 400; cursor: pointer; }
.setting-check input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: #87b7d8; }
.settings-help { font-size: 13px; margin: 10px 0 22px; max-width: 70ch; }
.proxy-details { margin: 26px 0 0; }
.proxy-details summary { cursor: pointer; color: #b9cbde; margin-bottom: 22px; }
.network-notice { color: #d2e6f5; border-left: 2px solid #87b7d8; padding: 10px 15px; max-width: 680px; line-height: 1.6; }
.network-notice h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.network-notice p { margin: 0; }
.proxy-recipe { margin-top: 45px; border-top: 1px solid #34475b; padding-top: 32px; max-width: 850px; }
.proxy-recipe p { max-width: 75ch; }
.download-link { display: inline-block; color: #b9cbde; margin: 8px 0 26px; text-underline-offset: 4px; }
.proxy-recipe textarea { width: 100%; resize: vertical; padding: 17px; border: 1px solid #53657a; border-radius: 6px; background: #1c2c3f; color: #edf1f5; font: 13px/1.65 monospace; }
.proxy-recipe pre { overflow-x: auto; padding: 18px; background: #1c2c3f; border-radius: 6px; font-size: 13px; }
#network-status.is-error { color: #f1b4a8; }
#network-status:empty { display: none; }
#access-status.is-error { color: #f1b4a8; }
.account-button {
  background: transparent;
  border: 1px solid #53657a;
  border-radius: 6px;
  color: #edf1f5;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background .12s, border-color .12s;
}
.account-button:hover {
  background: #1c2c3f;
  border-color: #87b7d8;
}
.account-form {
  max-width: 520px;
  margin-top: 26px;
}
.account-form label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 18px 0 8px;
}
.account-form label:first-of-type {
  margin-top: 0;
}
.account-form input {
  margin: 0 0 10px;
}
.account-form-actions {
  margin-top: 24px;
}
.account-form-actions button {
  width: auto;
  min-height: 44px;
  padding: 0 24px;
}
#account-status {
  margin: 0 0 14px;
  font-size: 14px;
}
#account-status.is-success {
  color: #a3e6b5;
}
#account-error {
  margin-bottom: 14px;
}
@media (max-width: 740px) {
  .library-header { padding: 22px 20px; min-height: 90px; gap: 12px; }
  .library-brand { gap: 8px; }
  .library-brand span { font-size: 29px; }
  .library-brand img { width: 28px; height: 28px; }
  .account-menu { gap: 10px; font-size: 13px; }
  .account-menu .role { display: none; }
  .library-body { width: calc(100% - 40px); }
  .library-nav { margin-bottom: 30px; }
  .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .page-heading > button { font-size: 12px; padding-inline: 10px; min-height: 36px; }
  .library-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .library-search > :first-child, .catalog-filter-actions { grid-column: 1 / -1; }
  .list-heading { display: none; }
  .video-list { border-top: 1px solid #53657a; }
  .video-list > li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 15px; }
  .video-list h2 { grid-column: 1 / -1; }
  .pagination { flex-wrap: wrap; }
}
