/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-1: #0b1018;
  --bg-2: #101a28;
  --bg-3: #1a2740;
  --surface: #141e2d;
  --surface-soft: #18253a;
  --surface-strong: #1f304b;
  --text: #d9e6ff;
  --muted: #9bb1d8;
  --accent: #32d1b6;
  --accent-strong: #1ea48d;
  --line: #2f466a;
  --danger: #ff7f8e;
  --ok: #6bdc9f;
  --warn: #ffcc6a;
  --scroll-track: rgba(11, 19, 31, 0.92);
  --scroll-thumb: #3d5f8f;
  --scroll-thumb-hover: #4e78b0;
  --header-banner-height: 6.9rem;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid var(--scroll-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, #173056 0, transparent 28%),
    radial-gradient(circle at 87% 86%, #22335c 0, transparent 35%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

.page {
  min-height: 100vh;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 0 0 1rem;
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 18;
  width: 100%;
  background: linear-gradient(
    120deg,
    rgba(21, 34, 55, 0.96),
    rgba(15, 27, 45, 0.96)
  );
  border: 1px solid var(--line);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 0.86rem clamp(0.9rem, 2vw, 1.4rem);
  height: var(--header-banner-height);
  min-height: var(--header-banner-height);
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(340px, 720px) auto;
  align-items: center;
  grid-gap: 0.92rem;
  gap: 0.92rem;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.topbarTitle {
  min-width: 0;
}

.topbarTitle .meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbarSearchForm {
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.topbarSearchArea {
  position: relative;
  z-index: 19;
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.topbarActions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.55rem;
}

.contentLayout {
  width: min(1620px, 100%);
  margin: 0 auto;
  padding: 0 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  grid-gap: 1rem;
  gap: 1rem;
}

.mainColumn {
  min-width: 0;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.tasksColumn {
  min-width: 0;
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-banner-height);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(1.48rem, 2vw, 2rem);
}

h2 {
  margin: 0;
  font-size: 1.14rem;
}

.eyebrow {
  margin: 0 0 0.18rem;
  color: #7de8d5;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.meta {
  margin: 0.24rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.38fr;
  align-items: start;
  grid-gap: 1rem;
  gap: 1rem;
}

.libraryGrid {
  grid-template-columns: 1fr 1.38fr;
}

.card {
  background: linear-gradient(
    145deg,
    rgba(20, 30, 45, 0.95),
    rgba(15, 25, 39, 0.95)
  );
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  box-shadow: 0 16px 34px rgba(5, 10, 20, 0.45);
}

.fixedPanel {
  height: 500px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.tasksPanel {
  height: auto;
  max-height: calc(100vh - var(--header-banner-height));
  display: flex;
  flex-direction: column;
}

.panelScroll {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

.searchForm {
  margin-bottom: 0.7rem;
}

.searchInputWrap {
  position: relative;
}

.searchInput {
  width: 100%;
  padding-right: 2.7rem;
}

.topbarSearchForm .searchInput {
  font-size: 1.02rem;
  padding: 0.62rem 0.72rem;
  padding-right: 3rem;
}

.topbarSearchForm .searchIconButton {
  width: 2.2rem;
  height: 2.2rem;
}

.searchSuggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.38rem);
  max-height: min(440px, 60vh);
  overflow: auto;
  z-index: 36;
  border: 1px solid #3c5f8d;
  border-radius: 10px;
  background: rgba(12, 20, 33, 0.98);
  box-shadow: 0 16px 30px rgba(4, 9, 17, 0.56);
  padding: 0.55rem;
}

.searchSuggestionsList {
  gap: 0.38rem;
}

.searchIconButton {
  position: absolute;
  right: 0.32rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #3b5f8f;
  background: rgba(26, 45, 72, 0.95);
  color: #87f4e2;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.searchIconButton:hover {
  border-color: #4f79ad;
  color: #b3fff2;
}

.searchIconButton:disabled {
  opacity: 0.6;
  cursor: default;
}

.searchGlass {
  position: relative;
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.searchGlass::after {
  content: "";
  position: absolute;
  width: 0.44rem;
  height: 2px;
  right: -0.34rem;
  bottom: -0.16rem;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.sectionHeadRight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapsibleCard {
  padding: 0;
}

.collapsibleCard.fixedPanel:not([open]) {
  height: auto;
  min-height: 0;
}

.collapsibleCard.fixedPanel[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.downloadsPanel {
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.downloadsPanel[open] {
  max-height: min(500px, calc(100vh - 7rem));
  overflow-x: hidden;
  overflow-y: auto;
}

.collapsibleSummary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem;
}

.collapsibleSummary::-webkit-details-marker {
  display: none;
}

.collapsibleSummary .sectionHead {
  margin: 0;
}

.collapsibleCard[open] > .collapsibleSummary {
  border-bottom: 1px solid #345279;
}

.collapsibleBody {
  padding: 0.95rem;
}

.scrollCardBody {
  flex: 1 1;
  min-height: 0;
  padding-top: 0.65rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
}

.downloadsPanel .scrollCardBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.collapseHint {
  color: #7de8d5;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 0.46rem;
  gap: 0.46rem;
}

.list > li {
  border: 1px solid #2e4568;
  background: rgba(25, 38, 59, 0.9);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.list small {
  color: var(--muted);
}

.tasksMeta {
  margin: 0.18rem 0 0;
  font-size: 0.85rem;
}

.tasksPanel .sectionHead {
  flex: 0 0 auto;
}

.tasksPanel .panelScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.tasksList > li.taskListItem {
  align-items: flex-start;
  gap: 0.7rem;
}

.taskInfo {
  display: grid;
  grid-gap: 0.18rem;
  gap: 0.18rem;
  min-width: 0;
}

.taskActions {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  flex-shrink: 0;
}

.tmdbResults > li {
  align-items: center;
}

.tmdbTitle {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmdbRight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.tmdbMeta {
  white-space: nowrap;
}

.tmdbDownloadButton {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tmdbDownloadIcon {
  margin: 0;
}

.tmdbSeasonButton {
  min-width: 4.9rem;
  justify-content: center;
}

.shows {
  display: grid;
  grid-gap: 0.55rem;
  gap: 0.55rem;
}

.show {
  border: 1px solid #2f476d;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(19, 30, 48, 0.88);
}

.show > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.62rem 0.72rem;
  font-weight: 700;
  background: linear-gradient(
    100deg,
    rgba(30, 48, 76, 0.9),
    rgba(21, 34, 56, 0.9)
  );
  border-bottom: 1px solid #35517a;
}

.show > summary::-webkit-details-marker,
.season > summary::-webkit-details-marker {
  display: none;
}

.showName {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.showSummaryRight {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seasons {
  display: grid;
  grid-gap: 0.48rem;
  gap: 0.48rem;
  padding: 0.66rem;
}

.season {
  border: 1px solid #33507b;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(23, 36, 56, 0.9);
}

.seasonSummary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.56rem;
  border-bottom: 1px solid #36547f;
}

.seasonTitle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.seasonSummaryRight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggleWrap {
  display: flex;
  align-items: center;
}

.toggleInline {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #a9c2ea;
  letter-spacing: 0.01em;
}

.toggleInput {
  width: 1.02rem;
  height: 1.02rem;
  margin: 0;
  accent-color: #2dd5b8;
}

.toggleText {
  white-space: nowrap;
}

.episodes {
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  display: grid;
  grid-gap: 0.3rem;
  gap: 0.3rem;
}

.episodes li {
  font-size: 0.93rem;
  border: 1px solid #3a5680;
  background: rgba(20, 33, 52, 0.9);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
}

.jobs .list > li {
  display: block;
  width: 100%;
}

.jobsMeta {
  margin: 0.18rem 0 0;
  font-size: 0.85rem;
}

.jobsList > li.jobListItem {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

.jobItem {
  border: 1px solid #2f466a;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(24, 38, 58, 0.95);
  display: block;
  width: 100%;
}

.jobItem > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  padding: 0.58rem 0.68rem 0.62rem;
}

.jobItem > summary::-webkit-details-marker {
  display: none;
}

.jobTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.jobTopRight {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.jobMetaRow {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.jobMetaRow small:last-child {
  text-align: right;
}

.jobProgressTrack {
  position: relative;
  height: 0.42rem;
  border-radius: 999px;
  border: 1px solid #35557f;
  background: rgba(14, 23, 37, 0.95);
  overflow: hidden;
}

.jobProgressBar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #ffd37e, #f4aa3e);
  transition: width 0.35s ease;
}

.jobProgressBar.completed {
  background: linear-gradient(120deg, #7be7a9, #39bf77);
}

.jobProgressBar.failed {
  background: linear-gradient(120deg, #ff9aa4, #de5b69);
}

.jobOutput {
  margin: 0;
  border-top: 1px solid #35517a;
  background: rgba(15, 25, 39, 0.95);
  color: #d2e2ff;
  font-size: 0.83rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
  padding: 0.62rem 0.68rem;
}

.status.running {
  color: var(--warn);
}

.status.completed {
  color: var(--ok);
}

.status.failed {
  color: var(--danger);
}

.status.queued {
  color: #7de8d5;
}

.jobLog {
  margin: 0.2rem 0 0;
  color: #b7caeb;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gapWarning {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffadb7;
  border: 1px solid #ef6d7d;
  background: rgba(140, 33, 51, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.empty {
  margin: 0.45rem 0;
  color: var(--muted);
}

.seasonEmpty {
  padding: 0.1rem 0.56rem 0.56rem;
  margin: 0;
}

.btn {
  background: linear-gradient(120deg, #2dd5b8, #20aa90);
  color: #001e18;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: linear-gradient(120deg, #40e8ca, #2bc3a7);
}

.btn.subtle {
  background: rgba(28, 43, 65, 0.95);
  color: var(--text);
  border-color: #385477;
}

.btn.small {
  font-size: 0.86rem;
  padding: 0.36rem 0.65rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.iconAction {
  width: 1.78rem;
  height: 1.78rem;
  border-radius: 999px;
  border: 1px solid #3b5f8f;
  background: rgba(26, 45, 72, 0.95);
  color: #87f4e2;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.iconAction:hover {
  border-color: #4f79ad;
  color: #b3fff2;
}

.iconAction.smallIcon {
  width: 1.58rem;
  height: 1.58rem;
  font-size: 0.95rem;
}

.topbarDownloadButton {
  width: 2.1rem;
  height: 2.1rem;
}

.downloadIcon {
  position: relative;
  display: block;
  width: 0.85rem;
  height: 0.9rem;
  margin: 0 auto;
  border-bottom: 2px solid currentColor;
}

.downloadIcon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0.5rem;
  background: currentColor;
  transform: translateX(-50%);
}

.downloadIcon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.34rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 23, 0.78);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 10;
}

.modal {
  width: min(460px, 100%);
  border: 1px solid #3a577f;
  background: linear-gradient(150deg, #15233a, #101a2c);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}

.modalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.72rem;
}

.form {
  display: grid;
  grid-gap: 0.76rem;
  gap: 0.76rem;
}

label {
  display: grid;
  grid-gap: 0.26rem;
  gap: 0.26rem;
  font-size: 0.93rem;
  font-weight: 700;
}

input,
select {
  font: inherit;
  color: var(--text);
  border: 1px solid #3d5d89;
  border-radius: 8px;
  background: rgba(15, 26, 43, 0.95);
  padding: 0.52rem 0.56rem;
}

input::placeholder {
  color: #89a5cd;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(90vw, 420px);
  background: #17314f;
  border: 1px solid #4c74aa;
  color: #d8ebff;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  z-index: 20;
}

.error {
  color: #ffc5cd;
  background: rgba(88, 22, 32, 0.55);
  border: 1px solid #934151;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

@media (max-width: 1320px) {
  .contentLayout {
    grid-template-columns: 1fr;
  }

  .tasksColumn {
    position: static;
  }

  .tasksPanel {
    max-height: calc(100vh - var(--header-banner-height));
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.65rem;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .topbarSearchForm {
    max-width: none;
    justify-self: stretch;
  }

  .topbarSearchArea {
    max-width: none;
    justify-self: stretch;
  }

  .topbarActions {
    justify-self: stretch;
    justify-content: flex-end;
  }

  .contentLayout {
    padding: 0 0.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tmdbResults > li {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tmdbRight {
    width: 100%;
    justify-content: flex-end;
  }

  .show > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .showSummaryRight {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .seasonSummary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .seasonSummaryRight {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

