.requests-page { max-width: 1280px; }
.page-header #requestUser { margin-left: auto; color: #aaa; }
.storage-section { padding: 2px 0 25px; }
.storage-labels { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.storage-labels > * { margin: 4px 12px 4px 0; }
.storage-bar { display: flex; height: 8px; margin: 9px 0; border-radius: 3px; background: #353535; overflow: hidden; }
.storage-bar span { display: block; height: 100%; }
#storageUsed { background: #939393; }
#storageReserved { background: #e50914; }
.request-tabs { display: flex; border-bottom: 1px solid #333; margin-bottom: 24px; }
.request-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 12px 18px; margin-right: 8px; color: #aaa; }
.request-tabs [aria-selected="true"] { border-bottom-color: #e50914; color: white; }
.request-tabs span { color: #ccc; margin-left: 4px; }
.request-search { display: flex; margin-bottom: 22px; }
.request-search select { width: 120px; flex-shrink: 0; margin-right: 12px; }
.request-search input { flex: 1; max-width: none; margin-right: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 10px; background: transparent; }
.icon-button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.request-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.request-result { display: flex; align-items: flex-start; padding: 0; background: #121212; overflow: hidden; text-align: left; min-height: 132px; }
.request-result img { width: 88px; height: 132px; flex-shrink: 0; object-fit: cover; background: #262626; }
.request-result > span { display: block; padding: 12px; min-width: 0; overflow-wrap: break-word; }
.request-result strong { display: block; line-height: 1.35; }
.request-result small { display: block; margin-top: 8px; color: #aaa; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.list-toolbar h2 { margin: 0; }
.request-entry { display: flex; border-bottom: 1px solid #333; padding: 20px 0; }
.request-entry > img { width: 72px; height: 108px; object-fit: cover; flex-shrink: 0; margin-right: 18px; background: #222; }
.request-entry-body { min-width: 0; flex: 1; }
.request-entry h3 { font-size: 18px; margin: 0 0 6px; overflow-wrap: break-word; }
.request-entry p { margin: 6px 0; font-size: 14px; }
.request-state { display: inline-block; font-size: 13px; padding: 3px 8px; border: 1px solid #777; border-radius: 4px; margin-right: 12px; }
.request-state.available { color: #7bd6ab; border-color: #408465; }
.request-state.attention, .request-state.blocked, .request-state.configuration { color: #ffd166; border-color: #886f38; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.request-actions > * { margin: 0 10px 8px 0; }
.request-actions button, .request-actions a { font-size: 14px; }
.download-progress { width: 100%; height: 6px; margin: 9px 0; background: #333; border: 0; border-radius: 3px; overflow: hidden; }
.download-progress > span { display: block; background: #e50914; height: 100%; }
.notification { border-left: 3px solid #666; padding: 8px 14px; margin-bottom: 16px; background: #151515; overflow-wrap: break-word; }
.notification.unread { border-color: #e50914; }
.notification p { margin: 6px 0; }
.notification small { color: #bcbcbc; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 22px 0; }
.settings-grid input { max-width: none; margin-top: 7px; }
.settings-grid label:last-child { max-width: 280px; }
.service-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 26px 0; }
.service-settings fieldset { border: 0; border-top: 1px solid #555; margin: 0; padding: 18px 0 0; min-width: 0; }
.service-settings label { font-size: 14px; margin-bottom: 16px; }
.service-settings input { margin-top: 6px; }
.service-status { font-size: 12px; color: #aaa; }
.check-row { display: flex; align-items: center; font-weight: normal; margin: 12px 0; }
.check-row input { display: inline-block; width: 20px; height: 20px; min-height: 20px; margin: 0 10px 0 0; flex-shrink: 0; accent-color: #e50914; }
.handoff-paths dd { margin: 4px 0 18px; color: #bbb; word-break: break-all; }
summary { cursor: pointer; padding: 12px 0; }
.request-overlay { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.8); z-index: 1000; overflow-y: auto; padding: 28px 16px; }
.request-dialog { position: relative; width: 100%; max-width: 740px; margin: auto; padding: 30px; background: #161616; border: 1px solid #555; border-radius: 6px; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.selected-heading { display: flex; padding-right: 26px; margin: 15px 0 26px; }
.selected-heading img { width: 100px; height: 150px; object-fit: cover; flex-shrink: 0; margin-right: 20px; background: #262626; }
.selected-heading > div { min-width: 0; }
.selected-heading h2 { font-size: 24px; margin: 6px 0 8px; overflow-wrap: break-word; }
.selected-heading p { font-size: 14px; margin: 0; color: #bbb; }
.quality-options { display: flex; align-items: center; flex-wrap: wrap; margin: 20px 0 12px; }
.quality-options label { margin: 0 24px 8px 0; }
.quality-options select { width: 190px; margin-top: 7px; }
#seasonField { border: 0; border-top: 1px solid #555; padding: 14px 0; margin: 0; }
.season-choices { display: flex; flex-wrap: wrap; max-height: 220px; overflow-y: auto; }
.season-choices label { width: 50%; font-size: 14px; }
#scopeField select { margin-top: 7px; }
.tv-page .requests-page { max-width: 1700px; }
.tv-page .request-dialog { max-width: 900px; }
.tv-page .request-result { min-height: 165px; }
.tv-page .request-result img { width: 110px; height: 165px; }
.tv-page .check-row input { min-height: 20px; }
@media (max-width: 900px) { .request-results { grid-template-columns: repeat(2, minmax(0,1fr)); } .service-settings { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .requests-page h1 { font-size: 26px; }
  .request-tabs button { padding: 10px 9px; font-size: 14px; margin-right: 0; }
  .request-search select { width: 92px; margin-right: 8px; padding: 8px; }
  .request-search input { margin-right: 8px; font-size: 14px; }
  .request-results { grid-template-columns: 1fr; }
  .request-result img { width: 70px; height: 105px; }
  .request-result { min-height: 105px; }
  .settings-grid { grid-template-columns: 1fr; }
  .request-dialog { padding: 20px 16px; }
  .selected-heading { display: block; margin-top: 42px; padding-right: 0; }
  .selected-heading img { float: left; width: 66px; height: 99px; margin: 0 14px 12px 0; }
  .selected-heading:after { content: ""; display: block; clear: both; }
  .selected-heading h2 { font-size: 21px; }
  .season-choices label { width: 100%; }
  .request-entry > img { width: 54px; height: 81px; margin-right: 12px; }
  .request-entry h3 { font-size: 16px; }
  .request-entry p { font-size: 13px; }
}
